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

Re: [amibroker] need help with barsince fuction



PureBytes Links

Trading Reference Links

thanks for pointing that out Graham. I typed the codein email didn't check in afl.
 
so even with this code , it still won't work.
 
condition1=cross(c,ema(C,50));
condition1_high=valuewhen(condition1,HIGH,1);
TWO_CLOSES_ABOVE_condition1_high=BARSINCE(condition1==1)>=1 AND SUM(C > condition1_high,BARSINCE(condition1==1))>=2;
 
 
 
----- Original Message -----
From: Graham
Sent: Monday, October 29, 2007 7:37 PM
Subject: Re: [amibroker] need help with barsince fuction

ema(50) should be ema(C,50)


--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com



On 30/10/2007, Padhu <ccie8340@xxxxxxcom> wrote:
folks:
 
I am having a tough time to get this rule working:
basically I am looking for two candles to have closed above the condition1 value SINCE most recent condition1 is true.
 
condition1=cross(c,ema(50));
condition1_high=valuewhen(condition1,HIGH,1);
TWO_CLOSES_ABOVE_condition1_high=BARSINCE(condition1==1)>=1 AND SUM(C > condition1_high,BARSINCE(condition1==1))>=2;
 
but the code is not working. I am probably messing up somewhere.
 
Appreciate if someone can help.
 
thanks,Padhu
 


__._,_.___

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




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

__,_._,___