// Downloaded From https://www.WiseStockTrader.com
_SECTION_BEGIN("MA 20-60");

Length1 = 20;
Length2 = 60;
MA1 = MA(C,Length1);
MA2 = MA(C,Length2);
Buy = Cross(MA1,MA2);
Sell = Cross(MA2,MA1);

e = Equity();
Maxe = LastValue(Highest(e));
Plot(Close,"price",colorBlack,styleCandle);

Plot(MA1,"MA1",colorGreen,styleLine);
Plot(MA2,"MA2",colorBlue,styleLine);

shape = Buy*shapeUpArrow + Sell*shapeDownArrow;
PlotShapes(shape,IIf(Buy,colorGreen,colorRed),0,IIf(Buy,Low,High));

_SECTION_END();