I'm trying to get an arrow drawn on all bars of my chart, not just the recent. So far, I was able to get it done for the most recent. I'm trying to get the arrows to be shown for all conditions that were satisfied on the entire chart.
How can I do that?
This is what I have in my UpDateBar function
if(CrossAbove(SMA(movingAverage1) , SMA(movingAverage2), 1)){
DrawArrowUp("Long", true, 0, Low[0] - TickSize, Color.Green);
}
if(CrossBelow(SMA(movingAverage1) , SMA(movingAverage2), 1)){
DrawArrowDown("Short", true, 0, High[0] + TickSize, Color.Red);
}
Thanks so much
Comment