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

RE: [amibroker] AB Problem with IIF command.



PureBytes Links

Trading Reference Links

It would help if you posted the full code you are using


Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: gerryjoz [mailto:geraldj@xxxxxxxxxx] 
Sent: Thursday, June 24, 2004 10:21 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] help with getting NUMBER from ARRAY

AFL distinguishes between NUMBER and ARRAY for some functions.
Although there is a selectedvalue function for picking up the current 
NUMBER value on a chart, i can't see a way to pick the current NUMBER 
value of an array as AB is iterating through on a backtest (without a 
do loop?). 
What i want to be able to do is to assign
index=currentValueofArray1;//result to be a number not an array
variable[index]=currentValueOfArray2;
....And not get an error message that i need to have a NUMBER and not 
an ARRAY.
I would appreciate advice on a way of doing this.


Regards Gerry





Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
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:
     http://docs.yahoo.com/info/terms/