Simple, not any dif than a real path
just use rules to close a transaction, rather than transfer a sl
heres a couple of lines of code only for you, u want have orders chosen
Inserted Code if (! HideTakeProfitOrderType()==OP_SELLOrderTakeProfit( )! =OrderOpenPrice()-TakeProfit*my_point) OrderModify(OrderTicket(),OrderOpenPrice(),OrderOp enPrice()-TakeProfit*my_point,OrderTakeProfit(),0,CLR_NONE); if (! HideTakeProfitOrderType()==OP_BUYOrderTakeProfit() ! =OrderOpenPrice() TakeProfit*my_point) OrderModify(OrderTicket(),OrderOpenPrice(),OrderOp enPrice() TakeProfit*my_point,OrderTakeProfit(),0,CLR_NONE); if (HideTakeProfitOrderType()==OP_SELLMarketInfo(Orde rSymbol(),MODE_BID)lt;=OrderOpenPrice()-TakeProfit*my_point) OrderClose(OrderTicket(),OrderLots(),MarketInfo(Or derSymbol(),MODE_BID),Slippage,CLR_NONE); if (HideTakeProfitOrderType()==OP_BUYMarketInfo(Order Symbol(),MODE_ASK)gt;=OrderOpenPrice() TakeProfit*my_point) OrderClose(OrderTicket(),OrderLots(),MarketInfo(Or derSymbol(),MODE_ASK),Slippage,CLR_NONE);




Reply With Quote