Сообщение: 25130 Написал: lesvangent Ваш ответ:,
TypeFillingThe type of fill positions and orders.
Used for MT5 terminal.
In AUTO mode, the Expert Advisor tries to determine the fill type automatically. But, in some situations, you need to set the fill type yourself.
If you get an error when opening a position
TRADE_RETCODE_INVALID_FILL 4756 Unsupported filling mode
An unsupported type of execution of the remaining order is indicated.
Set the type of fill that your broker indicates.
This execution policy means that the order can be executed only in the specified amount. If the market currently does not have a sufficient amount of a financial instrument, then the order will not be executed. The required volume can be made up of several offers available at the moment in the market.
It means the agreement to make a deal on the maximum available volume on the market within the limits specified in the warrant. In case of impossibility of full execution, the order will be executed for an accessible volume, and the executed order volume will be canceled.
This mode is used for market, limit and stop-limit orders, and only in the modes "Market Execution" and "Stock Execution". In case of partial execution, a market or limit order with a residual volume is not withdrawn but continues to operate.
For stop-limit orders, the corresponding limit order with the execution type Return will be created upon activation.
gestureс Уважением, Владислав Expforex