![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
If I guessed right, then this is mostly user error (incorrect settings). The expert did not try to send an order with an incorrect lot from the settings and this is already good. Therefore, I would not call this particular case an error of the advisor.
I have not tried to compile or run this. My comments only apply to the screenshot of the log you attached.
To get to the root of the problem causing it to not work for me, it appears to be this code I have highlighted here:
It will work when this is removed
Seems quite good and clean actually, better than other Martingale EAs.
I changed the TP from300 to 200 points
I also made this change in the code in order for it to run without problems:
Please don't post screenshots of code. Please use the CODE button (Alt-S) instead.
The log was too big to upload, it shows the error:
Thank you, i updated code, please download new version.
Looks like the reason is here:
Most likely, your lot in the settings is less than the minimum allowable
P.S. I'm not the author, I came here by chance😄
Yes, that was the problem..
It's working very well in demo account, good job Yury, thanks you, but remember it's bot of martingala, it's only for fun. Luck in the trading.
What time are you using to run the ea?
default, you can experiment with this