
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
kanaps,
Did you ever solve this problem? My original problem is, like yours, that Backtesting registers trades, Optimization registers ZERO trades. In debugging, I've realized my EA oddly doesn't create an OBJECT during "Optimization" (which it successfully creates during Backtesting).
Why do you find this odd ? From here: Testing Features and Limits in MetaTrader 4
Special Features of Optimization Process
This was done in order to accelerate the testing and save disk space. If complete logs are output the journal files will need hundreds of MByte.
The objects are disabled in order to accelerate the testing.
RaptorUK,
Wow! I apologize for not thinking of looking for something like "Special Features.." myself--my assumption of correspondence between Backtesting and Optimization was too strong. Thank you once again for your assistance, jtd
kanaps,
Did you ever solve this problem? My original problem is, like yours, that Backtesting registers trades, Optimization registers ZERO trades. In debugging, I've realized my EA oddly doesn't create an OBJECT during "Optimization" (which it successfully creates during Backtesting). When I run "Optimization" and send the errors to a .txt file, according to the following code, I get error 4105 ("No order selected"). I'm confused--I believe I'm working with an OBJECT, not an ORDER.
I also fail to comprehend why this code successfully creates the OBJECT during Backtesting but fails during Optimization.
Any assistance would, as always, be greatly appreciated, jtd
No, sorry. never resolved the issue.
I guess backtesting performed differently when optimizing. I guess. some functions are ignored. f.e. sleep is ignored when backtesting.
The problem optimization yields zero profit or zero trades are TRENDLINES.
They are not drawn during optimization, IMHO.