I have developed my own algorithm to plot a down or up arrow above/below the highs/lows of the current bar (upon close) if certain conditions are met.
It is possible that the next bar could also meet the same conditions, however if conditions were met on the previous bar, I would not want to plot an arrow on the new bar.
Is there a shorter way of checking if the previous bar had met the conditions or not, without having to recalculate for all conditions for the previous bar? I am looking for something along the lines of checking to see if the previous bar had an arrow associated with it or not. Is there a way of doing this?
Asim
Comment