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

[amibroker] Question about BarIndex()



PureBytes Links

Trading Reference Links

One factor in a study I want to try is the number of bars between two
events.  My best idea for getting it is abs(ValueWhen(Event1,BarIndex(),1) -
ValueWhen(Event2,BarIndex(),1)).  Unfortunately, the ValueWhen() statements
don't return anything.  Can anyone identify what I'm doing wrong?  Or
suggest some other route to the same destination?

Many thanks.

Owen Davies


------------------------ Yahoo! Groups Sponsor ---------------------~-->
ReplayTV: CNet Ranked #1 over Tivo!
Instant Replay & Pause live TV.
Special Sale: 50% off!
http://us.click.yahoo.com/UUMW7B/.5qGAA/ySSFAA/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/