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

RE: [amibroker] Barssince Help and Clarification



PureBytes Links

Trading Reference Links

 

Please comment if the following logic is correct…

 

I intend to check the CCI(10) is below 0 in the previous 3 bars (not including the current bar).

 

weak     =          cci(10);

cond1    =          barssince(weak)<=3 and barssince(weak)>=1;

 

or

 

weak     =          cci(10);

cond1    =          ref(weak,-1) or ref(weak,-2) or ref(weak,-3);

 

The results are different. ??? Did I do anything stupid? Sorry… new to APL. :>

 

Clement

 

 



Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html




Yahoo! Groups Links