Click Image To Enlarge. Please Rate And Comment.
_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();