Candle countin' of candles back from the current candle - page 2

 
Hello guys, I have a similar issue. I want to get the shift values of the last 20 candles with the forloop. Any help? Thank you.
Reason: