Hey,
Using MT4 build 610 from Alpari in offline mode with the /portable runtime switch, I've hit several cases where MarketInfo() don't return meaningful values.
These few script lines shows what I get:
The above ofcourse works perfectly well in online mode, when there's a Trade tab visible in the client.
MT4 is installed outside the %Program Files% path.
https://forum.mql4.com/46922 and https://forum.mql4.com/57278 somewhat approaches the issue I'm seeing but leaves me no further to a solution.
Staying in online mode opens up a whole new lot of issues with testing I'd most certainly want to avoid.
Perhaps you've found a solution you'd like to share?
I've updated to build 646 (latest as of today).
That does not solve the problem, angevoyageur.
I'll try the script fai made (i suppose that's what you refer to, qjol), although it seems written only for spread data.
Spread is increadibly important but it's not the only thing I need. MODE_TICKVALUE is of even higher priority.
Is the issue with missing offline MarketInfo data only relevant for scripts or does it also hamper offline Strategy Tester work?
I've updated to build 646 (latest as of today).
That does not solve the problem, angevoyageur.
I'll try the script fai made (i suppose that's what you refer to, qjol), although it seems written only for spread data.
Spread is increadibly important but it's not the only thing I need. MODE_TICKVALUE is of even higher priority.
Is the issue with missing offline MarketInfo data only relevant for scripts or does it also hamper offline Strategy Tester work?
Maybe you signed up in the past try Password recovery
Maybe you signed up in the past try Password recovery
Hi filson.
Did you got this resolved?
I have exactly the same issue and can't seem to find a solution anywhere on the web.
When I run EA backtest Online its all good, but when running back test in offline I can't get correct lot step and tick value so have wrong lot sizes for my trades.
When I run your script it returns 0 values

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hey,
Using MT4 build 610 from Alpari in offline mode with the /portable runtime switch, I've hit several cases where MarketInfo() don't return meaningful values.
These few script lines shows what I get:
The above ofcourse works perfectly well in online mode, when there's a Trade tab visible in the client.
MT4 is installed outside the %Program Files% path.
https://forum.mql4.com/46922 and https://forum.mql4.com/57278 somewhat approaches the issue I'm seeing but leaves me no further to a solution.
Staying in online mode opens up a whole new lot of issues with testing I'd most certainly want to avoid.
Perhaps you've found a solution you'd like to share?