Enum TradeMode
- Namespace
- ViiSync.AccountApi
- Assembly
- ViiSync.AccountApi.dll
Symbol trade permission.
public enum TradeMode
Fields
Disabled = 0MT5 TradeMode.Disabled.
MT5 equivalent
TradeMode.Disabled— full
LongOnly = 1MT5 TradeMode.LongOnly.
MT5 equivalent
TradeMode.LongOnly— full: enforced on market orders, pending placement, pending activation and gateway orders (ONLY_LONG_POSITION)
ShortOnly = 2MT5 TradeMode.ShortOnly.
MT5 equivalent
TradeMode.ShortOnly— full: enforced on market orders, pending placement, pending activation and gateway orders (ONLY_SHORT_POSITION)
CloseOnly = 3MT5 TradeMode.CloseOnly.
MT5 equivalent
TradeMode.CloseOnly— full: enforced: only an order that reduces a netting position is accepted; closes always allowed (ONLY_CLOSE_POSITION)
FullAccess = 4MT5 TradeMode.FullAccess.
MT5 equivalent
TradeMode.FullAccess— full