mungkin tambahkan kode seperti ini setelah startCode:if(OrdersTotal()>0)
{
OrderSelect(0,SELECT_BY_POS,MODE_TRADES);
if((OrderType()==0)&&(Bid>=OrderOpenPrice()+50*Point)) OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,0);
if((OrderType()==1)&&(Ask<=OrderOpenPrice()-50*Point)) OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,0);
}
Tags :