Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5
On MT5: Unless the chart is that specific pair/TF, you must Synchronize the terminal Data from the Server.
Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5
Many, thanks but I am using MT4.
And TickStory to generate fxt file.
Is it the same answer ?
Many, thanks but I am using MT4.
And TickStory to generate fxt file.
Is it the same answer ?
When using 3rd party tick data tools, such as via TickStory, you must generate both the FXT file as well as all the HST files (for all time-frames) and set them all to "read-only", otherwise the broker data will override the files.
Also, you have to handle 4066/4073 errors in your code, especially when using the EA live, but also on Strategy Tester as it sometimes still happens even with the data present.
-
Why did you post your MT4 question in the
Root /
MT5 EA section
instead of the
MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum - On MT4: Unless the current chart is the specific pair/TF referenced, you must handle
4066/4073 errors.
Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum -
If you don't have any history, here's how you can get all available from
your broker.
- Most brokers only have 32 or 65K bars of history per timeframe. That's 45 days of M1, 2.5 years on M15, etc.
- Quickly DL all available history from your broker: Problem loading historical data - MQL4 and MetaTrader 4 - MQL4 programming forum
Many thanks,
the problem has been resolved with a new and clean re-generation of fxt files.
thanks for your support and time spent.
On MT5: Unless the chart is that specific pair/TF, you must Synchronize the terminal Data from the Server.
Timeseries and Indicators Access / Data Access - Reference on algorithmic/automated trading language for MetaTrader 5

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I am using the strategy tester with PERIOD H1.
And I want to calcultate height of M1 candles.
So I have entered
if (nbBuy>=1) {
double height=iHigh(Symbol(),1,1)-iLow(Symbol(),1,1)
Print(DoubleToStr(height,2));
}
But the calcul return 0.00.
If I want to acces to this type of calculation, I have to set strategy tester to M1 ?
And would it be the same in on line trading ?
Thanks for your support