Skip to main content

MA3 Over MA18 for Amibroker (AFL)

acsleung over 11 years ago Amibroker (AFL)

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

This will provide a short term Bull signal for those who are looking for early rebounce

Indicator / Formula

Copy & Paste Friendly
//routine to display MA 3 over MA18


MA3 = MA(C, 3);

MA5 = MA (C, 5);

MA10 = MA (C, 10);

MA18 = MA (C, 18);

Plot (C, "Close Price", colorGreen, styleCandle);

Plot (MA3, "MA3", colorGreen);

Plot (MA18, "MA18", colorRed);

Bup = Cross (MA3, MA18);
Bdown = Cross (MA18, MA3);

PlotShapes (Bup*shapeUpArrow, colorYellow, 0, L, -12);

//printf ("Break Out %g", Bup);

Filter = Bup;

AddColumn ( C, "Closing Price", 1.2, colorBlue);

AddColumn (ROC(C,1), "Change %", 1.2, IIf(ROC(C, 1), colorGreen, colorRed) );

AddSummaryRows (16, 1.0);

0 comments

Leave Comment

Please login here to leave a comment.