i think it works.. just testing it now... but i use two step process... does it work for u on ecn when u have tp and sl in the actual ticket?
does the orderlib automatically make it two step?
mine is:
Ticket = OrderSendReliable(Symbol(), OP_BUY, Lots, Ask, Slippage*Pip,0,0, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
yours is:
Ticket = OrderSendReliable2Step(Symbol(), OP_BUY, Lots, Ask, Slippage*Pip,NormalizeDouble(Ask - StopLossLong * Pip,Digits),NormalizeDouble(Ask + TakeProfitLong * Pip,Digits), "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
OrderSendReliable2Step- does this automatically make it into two step process?? and u can have tp and sl in the actual ticket?
cos mine is only OrderSendReliable - with this you still need to modify order right?
Barauskas
does the orderlib automatically make it two step?
mine is:
Ticket = OrderSendReliable(Symbol(), OP_BUY, Lots, Ask, Slippage*Pip,0,0, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
yours is:
Ticket = OrderSendReliable2Step(Symbol(), OP_BUY, Lots, Ask, Slippage*Pip,NormalizeDouble(Ask - StopLossLong * Pip,Digits),NormalizeDouble(Ask + TakeProfitLong * Pip,Digits), "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
OrderSendReliable2Step- does this automatically make it into two step process?? and u can have tp and sl in the actual ticket?
cos mine is only OrderSendReliable - with this you still need to modify order right?
Barauskas