// Downloaded From https://www.WiseStockTrader.com _SECTION_BEGIN("PLOTTEXT"); Plot(C,"Price", colorBlack, styleLine ); Plot(MA(C,20),"MA20", colorRed ); Buy=Cross( C, MA(C,20 ) ); Sell= Cross( MA( C, 20 ), C ); dist = 1.5*ATR(10); for( i = 0; i < BarCount; i++ ) { if( Buy[i] ) PlotText( "Buy\n@" + C[ i ], i, L[ i ]-dist[i], colorGreen ); if( Sell[i] ) PlotText( "Sell\n@" + C[ i ], i, H[ i ]+dist[i], colorRed, colorYellow ); } PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow, IIf( Buy, colorGreen, colorRed ) ); _SECTION_END();