PureBytes Links
Trading Reference Links
|
Bill,
You can increment as many variables as you want.
Example (useless but simple :-))
for( i = <FONT color=#ff00ff
size=1>0, j = <FONT color=#ff00ff
size=1>0; i < BarCount; i++, j++ ){
r<FONT
size=1>esult[j]=C[i]+V[j];
}
You can also nest loops:
for( j = 0; j < 10 ; j++ ) for( k = 0; k <
BarCount; k++ ) {
result[ k ] =
j+result[k]; }
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
wavemechanic
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">AmiBroker
Sent: Wednesday, May 28, 2003 1:32
AM
Subject: [amibroker] For loop
Does the FOR loop statement, which is normally shown
as for (xxx; yyy; zzz), permit the addition of another statement for
incrementing the variable xxx? And if so, what is the
syntax?
TIA
BillSend
BUG REPORTS to <A
href="">bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
<A
href="">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
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
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
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|