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

Re: [amibroker] Barssince Help and Clarification



PureBytes Links

Trading Reference Links

weak     =          cci(10); needs to have a condition to give
true/false to have in the barssince function

eg weak     =          cci(10)==10;


On Wed, 2 Feb 2005 15:12:23 +0800, Clement Chin <clement@xxxxxxxxxx> wrote:
> 
> 
>  
> 
> 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
> 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 the Yahoo! Terms of Service. 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

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