I've a problem with the follow code to get the trailing Stop to start after a minimum profit is reached.
As it is when a profit of 5 pips is reached, the stop loss should get positioned at 3 pips after the order open price, but what is happening is that once we get a profit of 5 pips the stop loss line start to move but is keeping beyond almost 40 pips.
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.
Hi all,
I've a problem with the follow code to get the trailing Stop to start after a minimum profit is reached.
As it is when a profit of 5 pips is reached, the stop loss should get positioned at 3 pips after the order open price, but what is happening is that once we get a profit of 5 pips the stop loss line start to move but is keeping beyond almost 40 pips.
Is that possible to get from you an idea where I'm wrong ?
Thank you in advance for any support provided
Luis