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

Re: [amibroker] Count bars backwards?



PureBytes Links

Trading Reference Links

Hi,

Use the LastValue() function to reference the
last value of the close array.


Bars = BarsSince( Close > LastValue(Close));
Filter = 1;
AddColumn( Bars, "Bars", 1.0 );
AddColumn( C, "Close  " );
AddColumn( Ref( Close, -Bars ), "Highest Close");


Regards,
William Peters (AmiBroker Group Moderator)
www.amitools.com




Sunday, March 13, 2005, 9:55:41 AM, you wrote:
  
d>  How do you count backwards the number of bars until the close is 
d>  higher than today's close? I know there's barsince but I don't know
d>  how to get today's close to remain constant so that it will be 
d>  useful in the condition statement.

d>  Thanks!



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/