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 partners,
i have one error to put SL and TP after trade opened. Correct is with ordermodify command right?
follow my cod part with buy trade:
*******************************
// Buy criteria
if ( g_buy > 0 && lowA <= g_buy && ma2 > ma3)
int openbuy=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,0,"robot",BuyMagicNumber,0,Blue);
*****************************
How to modify SL and TP after trade opened? I need this to use in ECN broker, because not accept SL and SL directy.
kind regards,
philipe
check the return of the ordersend if this >0 then you can modify the trade with your SL and TP
again for you ECN Thanks to RaptorUK click on the blue ECN