This is exit afl for rmo. this is not my coding. given in some forum, but works well along with rmo afl by sudhir
_SECTION_BEGIN("rmo Exit Swing");
periods = Param( "Periods", 5, 1, 200, 1 );
Ksmooth = Param( "%K avg", 2, 1, 200, 1 );
Dsmooth = Param( "%D avg", 1, 1, 200, 1 );
Plot( StochD(periods,ksmooth,dsmooth), "EXIT SWING SIGNAL", ParamColor( "Color", colorDarkBlue ), ParamStyle("Style" , styleHistogram + styleThick, maskHistogram ) );
Plot(75,"", ParamColor("UP-LINECOLOR", colorBlue),ParamStyle("UPLINESTYLE", styleThick));
Plot(25,"", ParamColor("DN-LINECOLOR", colorRed),ParamStyle("DN-LINESTYLE", styleThick));
_SECTION_END();