PureBytes Links
Trading Reference Links
|
Hi ABers,
I'm trying to do something really simple but am stumped by AFL's
behavior, and the docs don't clear it up. If I want to do a
comparison of the current price with a price x bars ago, how do I pull
out a single value for the if-statement to work on? i.e. someone
please correct,
price_today = close[0] ;
price_yesterday = close[-1] ;
if (price_today > price_yesterday) etc. etc.
...a negative index number is not accepted, and the tutorial
"Understanding how AFL works" implies the latest price is the highest
array index number?? How does that work, without knowing the array
size beforehand? Is there another doc I'm missing? Thanks,
kw
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 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/
|