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

[amibroker] Re: Explain output please for clarification



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, Anthony Faragasso 
<ajf1111@xxxx> wrote:
> Tomasz,
> 
> The following produces different results...could you explain for further
> clarification
> 
> x=ValueWhen( DateNum() == 1010904, BarIndex() );
> y=ValueWhen( DateNum() == 1010904, Cum(1) );
> 
> Filter=1;
> AddColumn(x,"x",1);
> AddColumn(y,"y",1);
> 
> Thank you
> Anthony

It's so easy to check the manual...


BARINDEX
- get zero-based bar number

returns zero-based bar number -  the same as Cum(1)-1 but it is much 
faster than Cum(1) when used in Indicators





------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make Money Online Auctions! Make $500.00 or We Will Give You Thirty Dollars for Trying!
http://us.click.yahoo.com/yMx78A/fNtFAA/46VHAA/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/