0

Currently I'm sending orders with a slippage as parameter, but when there is news or high volatility the advisor is not respecting it. Also in my strategy there I modify the SL in a certain point, and with the high volatility, again, it took a minute since I modify the order (minute that I spent without SL, and bring me big loss).

Here is a normal OrderSend

OrderSend(_Symbol, OP_SELL, loteSize, entryPrice, 10, stopLoss, takeProfit, "Sell", magicNumber);

And here the ModifyOrder

OrderModify(OrderTicket(),OrderOpenPrice(),optimalStopLoss,OrderTakeProfit(),0,Blue);

So to deal with that I thought in to make a setTimeOut (I don’t know if there is something like that in MQL4), if after 5 sec there is no answer I cancel OrderSend and for the ModifyOrder case I close the order (due I don’t have a SL).

It is a good idea?, can you help me to do it?. There is better ways to handle the high volatility?

I have a good internet and is not the problem.

Thank you.

user16217248
  • 3,119
  • 19
  • 19
  • 37

0 Answers0