Simple-EMA-Crossover-Trading-System

Simple-EMA-Crossover-Trading-System
Simple-EMA-Crossover-Trading-System



//www.aflcode.com
_SECTION_BEGIN("AccDistbn");

// Plotting Accumulation & Distribution
Plot( AccDist(), "AccDist", colorRed,ParamStyle("Style") );


Plot( EMA(AccDist(),5), "EMA 5", colorBlue,ParamStyle("Style") ); 

Plot( EMA(AccDist(),15), "EMA 15", colorGreen, ParamStyle("Style") ); 

event1=Cross(EMA(AccDist(),5),EMA(AccDist(),15));
event2=Cross(EMA(AccDist(),15),EMA(AccDist(),5));



PlotShapes( shapeUpArrow*event1, colorGreen, 0, L, -10 );
PlotShapes( shapeDownArrow*event2, colorRed, 0, H, -10 );
_SECTION_END();
Previous
Next Post »