ararry does not receive anything in a distant period, in the near perio
if everything works fine with shorter periods but not with longer ones, it could be because there is simply no loner period data in your history. See how long a period you can download from the terminal from the broker. Or maybe is faulty. try to reinstall and reload data.
So first see how much data you have in your struct array: Print("your array size", ArraySize(lon));
If that is not enough then use other ways to get tick-data. Services such as tick data suite are available.
if everything works fine with shorter periods but not with longer ones, it could be because there is simply no loner period data in your history. See how long a period you can download from the terminal from the broker. Or maybe is faulty. try to reinstall and reload data.
So first see how much data you have in your struct array: Print("your array size", ArraySize(lon));
If that is not enough then use other ways to get tick-data. Services such as tick data suite are available.
How can I reset the information I have regarding the past data of the candles

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
No compilation errors