You are computing an array, which is what usually happens so just use…

LastValue(Array);

--

Terry

-----Original Message-----
From:
[email protected] [mailto:[email protected]] On Behalf Of Chris DePuy
Sent: Friday, October 06, 2006 12:28
To:
[email protected]
Subject: [amibroker] barssince question

 

I am trying to display in an interpretation how many bars have passed since the close crossed a moving average, but I want to use the reference point of the last bar at all times.  Using BarsSince, its calculating the bars since the SelectedValue (see my below snippet).  Can anyone tell me how to get this to reference bars since last cross relative to the last bar?

"bars since c> wma long (blue) = "+BarsSince(Cross(C,WMA(C,period)));

__._,_.___

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






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to