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

[amibroker] help with barssince statement



PureBytes Links

Trading Reference Links

I have not been able to get it to give me the correct number of bars 
that have passed since the condition was satisfied. I am only looking 
back ten days so I could manually check the results but the only 
results I can get are 0 bars or 1.0 bar. The problem is that it may 
be 5 or 6 bars since the condition was satisfied. Any help and or 
suggestions to help me solve this part of my formula would be greatly 
appreciated.

tod = EMA(Close,5);
tod1 = EMA(Close,35);
today = tod-tod1;
Hv = HHV(today,10);
Lv = LLV(today,10); 

lbar = BarsSince(Lv) > today;




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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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