|
You are welcome, also to avoid to modify your orders all the time and do it once you could change:
if (OrderType()==OP_BUY && Bid-OrderOpenPrice()>=ProfitModifySL*Point)
fModifyStopLoss(OrderOpenPrice());
if (OrderType()==OP_SELL && OrderOpenPrice()-Ask>=ProfitModifySL*Point)
fModifyStopLoss(OrderOpenPrice());
to
if (OrderType()==OP_BUY && Bid-OrderOpenPrice()>=ProfitModifySL*Point)
if (OrderStopLoss()<OrderOpenPrice()) fModifyStopLoss(OrderOpenPrice());
if (OrderType()==OP_SELL && OrderOpenPrice()-Ask>=ProfitModifySL*Point)
if (OrderStopLoss()>OrderOpenPrice()) fModifyStopLoss(OrderOpenPrice());
S.
|