Table of Contents

Enum TradeMode

Namespace
ViiSync.AccountApi
Assembly
ViiSync.AccountApi.dll

Symbol trade permission.

public enum TradeMode

Fields

Disabled = 0

MT5 TradeMode.Disabled.

MT5 equivalent

  • TradeMode.Disabled — full
LongOnly = 1

MT5 TradeMode.LongOnly.

MT5 equivalent

  • TradeMode.LongOnly — full: enforced on market orders, pending placement, pending activation and gateway orders (ONLY_LONG_POSITION)
ShortOnly = 2

MT5 TradeMode.ShortOnly.

MT5 equivalent

  • TradeMode.ShortOnly — full: enforced on market orders, pending placement, pending activation and gateway orders (ONLY_SHORT_POSITION)
CloseOnly = 3

MT5 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 = 4

MT5 TradeMode.FullAccess.

MT5 equivalent

  • TradeMode.FullAccess — full