Download MetaTrader 5

SetTypeFillingBySymbol

Sets filling type of the order according to the specified symbol settings.

bool  SetTypeFillingBySymbol(
   const string   symbol      // symbol name
   )

Parameters

symbol

[in] Name of the symbol, in which SYMBOL_FILLING_MODE contains allowed order filling policies.

Return Value

true — successful execution, false — failed to define the filling policy.

Note

If SYMBOL_FILLING_FOK and SYMBOL_FILLING_IOC filling policies are allowed for a symbol simultaneously, the ORDER_FILLING_FOK value is set for the order.