[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Question on User Defined Arrays (Static)



PureBytes Links

Trading Reference Links

Hi All, 

With the intro of the new looping constucts in AFL,  the scripting hosts are not as useful as they were. 
I am struggling a bit with the programming of a loop as follows: 

Dim Zones(3), Multipliers(3)
A[0]= SomeValue; 
A[1]= AnotherValue; 
A[2]= ..; 
M[0]= ..; 
M[1]= ..; 
M[2]= ..; 

Result=0 ; 
i = 2;
while( i >= 0 ){  
Result= Result+ Function (A[i],M[i]] ; 
}

Notice here that the arrays do not change with time (such as the price array for example).


Thanks in advance for any hint,
Sam


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 http://docs.yahoo.com/info/terms/