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

Re: [amibroker] Re: Explain output please for clarification



PureBytes Links

Trading Reference Links

x=ValueWhen( H==HHV(H,260), BarIndex() );
y=ValueWhen( H==HHV(H,260), Cum(1) );
Filter=1;
AddColumn(x,"x",1);
AddColumn(y,"y",1);
 
 
-------Original Message-------
 
From: amibroker@xxxxxxxxxxxxxxx
Date: Sunday, March 23, 2003 12:42:09
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Explain output please for clarification
 
> BARINDEX
> - get zero-based bar number
 
Ok, you can start counting from 1 or from 0 and "zero-based" means that 
barindex() starts counting from 0.
 
 
> returns zero-based bar number -  the same as Cum(1)-1 but it is 
 
cum(1) instead starts counting from 1. So barindex() gives 0 for the first 
bar and cum(1) gives 1 for the first bar. As clearly stated in the manual 
barindex() == cum(1) - 1.
 
Clear enough?
 
 
Yahoo! Groups Sponsor
ADVERTISEMENT
 
 
 
 
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 the Yahoo! Terms of Service. 
 
 

------------------------ 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/