I was wanting to see if there was some quick coding shortcuts to find the 3 most recent DOWN and to be able to see if I can find the highest open of these 3 candles. These candles do not necessarily have to follow each other. Alternatively I wish to find the Lowest Open of the three most recent UP candles. I want to be able to look at say 20 candles back and only take the value of the most recent 3 UP or DOWN arrows.
See image for a better explanation.
Hi daybyter, I'm not quite sure I follow the code. I'm not great at coding as I am teaching myself. Are you able to comment of what the code does at each line. Thanks in advance