How to select any number of arrays?
Hi!
When i need to select the close of the third candle away from current price i use: candle[2].close. In this case i need to write the [2], but what if i want to select the close of the last 100 candles? Do i need to select one by one or is there a better way to do that?
Currently i am doing this, it works great, but if i need to select a large amount of candles at once it is just not doable.
Hi!
When i need to select the close of the third candle away from current price i use: candle[2].close. In this case i need to write the [2], but what if i want to select the close of the last 100 candles? Do i need to select one by one or is there a better way to do that?
Currently i am doing this, it works great, but if i need to select a large amount of candles at once it is just not doable.