Mod needed to this code for ECN /STP gomarkets - page 2

 
He gave you the code, had you bothered to click.
 
qjol:

OrderSelect(res, SELECT_BY_TICKET);
bool retrn = OrderModify(res, OrderOpenPrice(), Bid+StopLoss, Bid-TakeProfit, 0, Red);
or

OrderSelect(res, SELECT_BY_TICKET);

bool retrn = OrderModify(res, OrderOpenPrice(), Bid+StopLoss*Point, Bid-TakeProfit*Point, 0, Red);


Thx, gjol

I learnt a lot from this. and it works. Now I see I should be checking if the orders actually happened.

Rodney