Leonardo:
Why are you writing them all in separate variable? You can use and work with the array.
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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.