I have an indicator which looks at 15 different pairs at the same time to find a trend.
It works perfectly on H1 timeframe, however on any other timeframe it is blank.I suppose it is because there is no historical data on that pair downloaded.
But why it doesnt automatically download it from the broker, like if there is a MACD or Stochastic it updates the price as it comes, so why not do the same on other pairs aswell?
I tried using RefreshRates() but it still doesnt work.
Can the automatic download of price data from the broker be done in MQ4 code or this is a technical problem of the MT4 that it doesnt update price from broker data?
I`m aware that it can be done manually, by opening the charts but i`m not going to open 15 charts just for the sake of updating data from them, so i want an automatic method please.
Probably because of the lack of historical data in that pair.As it works perfectly on H1,
However i ask that is it possible to automatically download broker historical data with code, instead of opening up 15 charts at once to have updated data?
RaptorUK already answered your question, deal with the error 4066
To add comments, please log in or register