AO = MA( Avg,5) - MA(
Avg , 34);
AOUpBar = AO > Ref(AO, -1);
AODownBar = AO < Ref(AO, -1);
zeroBuy = Ref (aoupbar,-2)<0
AND Ref (aoupbar,-1)<0
AND Cross(aoupbar,0)
;
PlotShapes(IIf(zerobuy,shapeUpArrow,Null),colorGreen,0,Min(0,0),-10);
// Added this to show one that works
BuySig = Cross(Close,MA(Close,50));
Plot(Close,"Close",colorBlue,styleLine|styleThick);
Plot(MA(Close,50),"",colorBlack,styleLine);
PlotShapes(IIf(Buysig,shapeUpArrow,Null),colorGreen,0,Close,-20);