Join our facebook group for Amibroker afl code discussion https://www.facebook.com/groups/603980776889348

Triple-Momentum-Indicator-AFL

Triple-Momentum-Indicator-AFL
Triple-Momentum-Indicator-AFL

//www.aflcode.com
_SECTION_BEGIN("");
x = ROC (C,5);
y = ROC (C,15);
Z = ROC (C,25);

AROC=x+y+z;

Plot (AROC, "Triple Momentum Indicator", colorRed);
Plot (4, "", 3, styleThick, styleNoLabel);

Buy = Cross (AROC,4);
Sell = Cross (4, AROC);
PlotShapes(Buy*shapeUpArrow,colorGreen,0,Graph0);
PlotShapes(Sell*shapeDownArrow,colorRed,0,Graph0);

_SECTION_END();

Buy  = Cross( AROC, -30 );
Sell = Cross( 30, AROC );
PlotShapes(Buy*shapeUpArrow,colorGreen,0,Graph0);
PlotShapes(Sell*shapeDownArrow,colorRed,0,Graph0);
Previous
Next Post »