Good afternoon. tell me who faced the problem of the limit experation.
In General, I describe that a limited order should be available until the end of the day, but the next day the limited order is not removed.
Who solved the problem how ?
I run the EA on Forex.
MqlTradeRequest request={0};
MqlTradeResult result={0};
request.action = TRADE_ACTION_PENDING;
request.symbol = _Symbol;
request.volume = Volumes;
request.type_filling = ORDER_FILLING_FOK;
request.expiration = ORDER_TIME_DAY;
alexeyvik
Because that’s not where you put it.
ENUM_ORDER_TYPE_TIME
ID
Description
ORDER_TIME_GTC
The order will remain in the queue until it is withdrawn
ORDER_TIME_DAY
The order will only be valid for the current trading day
ORDER_TIME_SPECIFIED
The order will be valid until the expiration date
ORDER_TIME_SPECIFIED_DAY
The order will be valid until 23: 59: 59 of the specified day. If this time does not fall within the trading session, the expiration will occur in the nearest trading time.