this will do!
crossup= Cross( ROCadj , ROC( C, periods )) ; crossdown= Cross( ROC( C, periods ), ROCadj ) ; x = LastValue(ValueWhen(crossup, BarIndex(), 1)); PlotShapes(IIf(BarIndex() == x, shapeUpArrow, Null), colorBrightGreen); y = LastValue(ValueWhen(crossdown, BarIndex(), 1)); PlotShapes(IIf(BarIndex() == y, shapeDownArrow, Null), colorRed);
