Edward_512:
It seems you have declared high and low price array static with only three bars but because ArraySetAsSeries is not equal true you don't get the most recent three bars but the oldest three. From 1970.Hi guys!
I'm a newbie to coding. Just getting started. This is the second program I now code.
Here is my current issue with the below coding:
1/ Why does the system give me the high of the candle from 1970.01.01 and this twice (see print statements in terminal)?
2/ Why my high_price_array[] seems to be of a size of 4 (see print statements) despite having a declared size of only 3 (line 22)?
What's going on here?
Thx for your input/help.
But in indicators you mostly work with Series = false, then you need rates_total as index of the latest bar.
What was your intention?

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 guys!
I'm a newbie to coding. Just getting started. This is the second program I now code.
Here is my current issue with the below coding:
1/ Why does the system give me the high of the candle from 1970.01.01 and this twice (see print statements in terminal)?
2/ Why my high_price_array[] seems to be of a size of 4 (see print statements) despite having a declared size of only 3 (line 22)?
What's going on here?
Thx for your input/help.