// Downloaded From https://www.WiseStockTrader.com _SECTION_BEGIN("PGS"); Plot(C,"Price",colorDefault,styleCandle); M1=EMA(((2*WMA(C,150/2))-WMA(C,150)),2); M2=EMA(((2*WMA(C,150/2))-WMA(C,150)),10); Buy = Cross(M1, M2) ; Sell = Cross(M2, M1) ; PlotShapes(Buy*shapeUpArrow,colorGreen,0,L); PlotShapes(Sell*shapeDownArrow,colorRed,0,H); dist = 1.5*ATR(10); dist1 = 2*ATR(10); for( i = 0; i < BarCount; i++ ) { if( Buy[i] ) { PlotText( "\nBuy:" + H[ i ] + "\nT= " + (H[i]*1.005) + "\nSL= " + (H[i]*0.9975), i, H[ i ]-dist[i], colorWhite, colorGreen ); } if( Sell[i] ) { PlotText( "Sell:" + L[ i ] + "\nT= " + (L[i]*0.995) + "\nSL= " + (L[i]*1.0025), i, L[ i ]+dist1[i], colorWhite, colorRed ); } } _SECTION_END();