Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Please use the SRC button to post code . . . .
It maybe that you are trying to close an order twice . .
You only need one of these . . . and use . . .
that covers OP_SELL and OP_BUY read this: https://docs.mql4.com/constants/trading
I changed the code like this:
Now I need to find out how I let the code count opensell and openbuy to 0 when hitting the StopLoss or TakeProfit
I changed the code like this:
Now I need to find out how I let the code count opensell and openbuy to 0 when hitting the StopLoss or TakeProfit
Select directly on magicnumber and symbol this code will then be written in a better way
If you use it the way you had made it then you will close all open trades longer running then a hour (also not from this one)
Select directly on magicnumber and symbol this code will then be written in a better way
If you use it the way you had made it then you will close all open trades longer running then a hour (also not from this one)
Hi deVries...I've tried it and will check it now with TP and SL...thanks a lot...
Wow now it looks good :) not the performance but the EA with SL and TP