Closed kenorb closed 3 years ago
OrderTest.mq5
feature/conditions
The following code needs improvements:
if (_request.type == ORDER_TYPE_SELL) { MqlParam _cond_args[] = {{TYPE_INT, ORDER_TYPE_TIME}, {TYPE_INT, 0}}; _cond_args[1].integer_value = PeriodSeconds() * (MAX_ORDERS + _index); // Argument to fix. _oparams.SetConditionClose(ORDER_COND_LIFETIME_GT_ARG, _cond_args); // Uncomment this line. }
The expected result is to close sell orders by the condition at the right time (in sequence), so the test will pass.
Fixed in 8a7da42c3302c2fe3e15e5699e661ac23fc4723e.
OrderTest.mq5
feature/conditions
The following code needs improvements:
The expected result is to close sell orders by the condition at the right time (in sequence), so the test will pass.