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
Can you please explain a little more ? we have no error of compiling of code , we have no error on live , we have only error on backtest
============================================
Its obvious the code has no problem because its MACD simple!
I cant find nowhere this error returning form server after execution order
The problem is in class CTrade. Under 2 conditions PositionOpen() quits without leaving an explanation to the caller, that is if order type check or filling check failed.
To fix this you can add these lines to Trade.mqh file in function CTrade::PositionOpen (line 330):
Then compile the MACD sample and test again.
Post the findings here to get it examined further.
https://www.metatrader5.com/en/metaeditor/help/development/debug