I'm having trouble placing my stop loss and take profit orders as stealth orders - becoming market orders when hit. Where the broker cannot see them. As here it goes straight to zero. As most often when I tried.( In one it did alot better for a while.) How can I get the similar? The file ending in 51 is stealth. You'll find this idea where I close the trade at the bottom section. There I comment out what works -as I'd like -as in file 41. Also I commented out the order modify where I open the trades. Thank-You for any help. Deetrader999
Check if OrderOpenPrice() vs OrderClosePrice() meet your Distance. Then OrderClose(). Example Here. The example does-not consider FreezeLevel. Also there's no-error-processing if closing Fails.
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.
I'm having trouble placing my stop loss and take profit orders as stealth orders - becoming market orders when hit. Where the broker cannot see them. As here it goes straight to zero. As most often when I tried.( In one it did alot better for a while.) How can I get the similar? The file ending in 51 is stealth. You'll find this idea where I close the trade at the bottom section. There I comment out what works -as I'd like -as in file 41. Also I commented out the order modify where I open the trades. Thank-You for any help. Deetrader999