2.11.2Account features

Different accounts can have different capabilities. The features available on the current account are described by its Account.features block.

Feature

Description

platform

General ID for the type of broker platform which MyTrader is logged into (e.g. "TradingHub")

platformInstance

Specific instance of the back-end platform which MyTrader is logged into (e.g. "MyBroker-Live" or "MyBroker-Demo")

hedging

Boolean. Indicates whether the back-end platform is hedging/non-netting; whether it allows simultaneous open trades in opposite directions on the same market.

singleNetPosition

Boolean. Indicates that the back-end platform only ever reports a single net position for each market. If singleNetPosition:true then hedging will by definition be false. But if singleNetPosition:false then hedging can still be false; the platform may allow multiple open trades in a single market, but only in the same direction.

chartTimeframes[]

Array of integer chart timeframes for which candle data is available. For example, [60, 300, 1800, 3600 etc]

dataOnly

Boolean. Indicates that the account is a data-only connection with no actual trading account or trading functionality. All account metrics will be zero, and trade lists will be empty. (In addition, Account.accountReadOnly will be true.)

dayHighLow

Boolean. Indicates that high and low are available within FXB.Instrument data.

dayChange

Boolean. Indicates that change and changePc are available within FXB.Instrument data.

comment

Boolean. Indicates that orders can have textual comments.

magicNumber

Boolean. Indicates that orders can have MT4/5-style "magic numbers".

trail

Boolean. Indicates that orders can have trailing stops.

changePendingVolume

Boolean. Indicates that the volume can be changed on a pending order. (If not, volume can only be changed by deleting the order and placing a new one.)

hasStopLimit

Boolean. Indicates that the account supports stop-limit orders.

marketDepth

Boolean. Indicates that the account provides market depth.

orderBook

Boolean. Indicates that the account provides client order book.

noHistoricCredits

Boolean. If set, indicates that account history does not include credit movements, and only provides historic trading activity. (Therefore, not possible to calculate statistics such as % returns.)

noHistoricSLTP

Boolean. If set, indicates that account history does not include s/l or t/p on historic trades.