PureBytes Links
Trading Reference Links
|
Close_Above_50_Ema_First=C > ema(c,50);
Close_Above_50_Ema_Second=C > ema(c,50) and ref(C > ema(c,50),-1)>0;
here is a way to do it for the actual first and second bars after crossing
FirstClose = Cross( C, ema( c, 50 ) );
SecondClose = ref( FirstClose, -1 );
If you just want 2 consecutive closes above the EMA, not just the first 2
TwoCloses = Barssince( Cross( C, ema( c, 50 ) ) ) == 2;
or
TwoCloses = Sum( C > ema( c, 50 ), 2 ) == 2;
On Mon, 28 Mar 2005 00:08:25 -0600, Padhu <ccie8340@xxxxxxxxx> wrote:
> hello,
>
> Can someone confirm if the below AFL is correct for two consecutive closes
> above 50ema?
>
> Close_Above_50_Ema_First=C > ema(c,50);
> Close_Above_50_Ema_Second=C > ema(c,50) and ref(C > ema(c,50),-1)>0;
>
> Thanks.
>
> Cheers,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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
> ________________________________
> 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
--------------------------------------------------------------------~->
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
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/
|