Skip to main content

Simple EMA CrossOver for Amibroker (AFL)

prasad1247 almost 14 years ago Amibroker (AFL)

  • Rating:
    5 / 5 (Votes 1)
  • Tags:
    trading system, amibroker

Simple EMA CrossOver

Indicator / Formula

Copy & Paste Friendly
LongMA    = EMA( C, Param("Long Period", 50, 30, 100, 5 )); 
ShortMA   = EMA( C, Param("Short Period", 5, 3, 50, 1 )); 
Buy       = Cross( ShortMA, LongMA ); 
Sell      = Cross( LongMA, ShortMA ); 
if (EndValue(Buy)==1) Say("Buy"); 
if (EndValue(Sell)==1) Say("Sell");

0 comments

Leave Comment

Please login here to leave a comment.