Click or drag to resize

PlacedType Enumeration

Placed manually or ByExpert

Namespace: mtapi.mt5
Assembly: mt5api (in mt5api.dll) Version: 5.3677.1.2
Syntax
public enum PlacedType
Members
Member nameValueDescription
Manually0 The deal was executed as a result of activation of an order placed from a desktop terminal
ByExpert1 The deal was executed as a result of activation of an order placed from an MQL5 program, i.e. an Expert Advisor or a script
ByDealer2 In this case API uses MT5API.PlacedType field during OrderSend and OrderClose
OnSL3 The deal was executed as a result of Stop Loss activation
Default3 
OnTP4 The deal was executed as a result of Take Profit activation
OnStopOut5 The deal was executed as a result of the Stop Out event
OnRollover6 The deal was executed due to a rollover
OnVmargin8 The deal was executed after charging the variation margin
Mobile16 The deal was executed as a result of activation of an order placed from a mobile application
Web17 The deal was executed as a result of activation of an order placed from the web platform
OnSplit18 The deal was executed after the split (price reduction) of an instrument, which had an open position during split announcement
See Also