Help with ordermodify - page 2

 
felipeds5:

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

Reason: