PureBytes Links
Trading Reference Links
|
<FONT
face=Arial>Note that there should be no semi-colon
at the closing bracket of your loop statement, it should be followed immediately
by statements within curly brackets.
<FONT face=Arial
size=2>
for(n=0.001;n<0.01;
n=n+0.001) <SPAN
class=830010407-11012004> { <SPAN
class=830010407-11012004> Plot(n,"n",1,1<FONT
face=Arial size=2>);
}
<FONT face=Arial color=#0000ff
size=2>Since it is legal to write single-line loops like
so:
<FONT face=Arial
size=2>
<FONT
face=Arial>for<FONT
color=#000000>(n=0.001<FONT
color=#000000>;n<0.01;
n=n+0.001<FONT
color=#000000>) Plot<FONT
color=#000000>(n,"n"<FONT
color=#000000>,1<FONT
color=#000000>,1);
<FONT face=Arial
size=2>
<FONT face=Arial
color=#0000ff size=2>the semi-colon was interpreted as a do-nothing
statement.
<SPAN
class=830010407-11012004>
<SPAN
class=830010407-11012004>It should be possible to replace you entire
code with one PlotGrid() but it wouldn't work for me... don't know what I did
wrong.
<FONT face=Arial
color=#0000ff size=2>
<FONT
face="Courier New"><FONT face=Arial color=#0000ff
size=2>herman.
<FONT face=Tahoma
size=2>-----Original Message-----From: Panos Boufardeas
[mailto:akaraman@xxxxxxx]Sent: January 11, 2004 11:53
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
Looping plotgridsHiFirst time trying to
make a loop :-(I like to plot lines in every 0.0010 spaces where I am
wrong?n=0.0010;for(i=n;i <n;
i++);{PlotGrid(i,1);}thanks
PanosSend BUG REPORTS to
bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:<A
href="">http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:<A
href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|