Your request is clear, but this is impossible, sorry.
OK, I hear you Slawa, but allow me to appeal: I'm a programmer as well and am sure that there is a way to do this. Nothing is impossible ;).
The spread is retrieved from the .fxt file and held in memory. You can't create a SetSpread( string Symbol, double Spread ) function to modify this value on the fly during testing?
Even if it would be alot of work, can you add it to the requested feature list for a future build?
Thanks.
The spread is retrieved from the .fxt file and held in memory. You can't create a SetSpread( string Symbol, double Spread ) function to modify this value on the fly during testing?
Even if it would be alot of work, can you add it to the requested feature list for a future build?
Thanks.
This is possible in the future, not in the MT4.
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
In order for backtesting to be accurate, the spread for each tick needs to match what happened on the real market. Please make the "Ask" and "Bid" variables read/write, or something similar, so that we may adjust them manually during a backtest.
I'm not asking at this point for you to include the spread in the .fxt files, although that would be very helpful. Those of us on this forum have ways of recording the spread for each tick. What we need NOW is the ability to set the spread manually on each pass through the EA. If you could only allow us to code the following
that would be terrific.
Please, please add this feature soon. It's critical to accurate backtesting.