Skip to main content

combine ema 5 vs ema 20 and stochastic for Amibroker (AFL)

philipwij71 over 13 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 3)
  • Tags:
    trading system, amibroker, exploration

explore indikator
Buy = EMA5>EMA20 AND StochasticK>StochasticD

Indicator / Formula

Copy & Paste Friendly
//COMBINE AFL EMA 5 VS 24 AND STO 5,3,3
EMA5 = EMA(C, 5);
EMA20= EMA(C, 10);
StochasticD = StochD( 5 , 3 , 3 );
StochasticK = StochK( 5 , 5);
EmmaDIFF=(EMA5-EMA20)/EMA20;
StochDIFF=abs(StochasticK-StochasticD)/StochasticD;
AllDIFF=(EmmaDIFF+StochDIFF)/2;
Buy = EMA5>EMA20 AND StochasticK>StochasticD;
Filter = EMA5>EMA20 AND StochasticK>StochasticD;
Buy = EMA5>EMA20 AND StochasticK>StochasticD AND AllDIFF>=0.25;
Filter = Buy;
AddColumn(AllDIFF, "Power", 1.5);
AddColumn(Buy, "Beli", 1);

0 comments

Leave Comment

Please login here to leave a comment.