|
Some help please with an EA
I am trying to close a sell order and open a new buy order. The buy opens but the sell gives error 4051
I am using
ticket = OrderClose(OrderTicket(), OrderLots(), Bid, Slippage, Gold);// close position
and
ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, Slippage, StopLossLevel, TakeProfitLevel, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue);
__________________
New to Forex? Get all you need for Free at my site Click HereYou can also get my Hot Forex System (scroll to the bottom of the page): Click Here
|