Skip to main content

Interface: BrokerConfigFlags

Broker.BrokerConfigFlags

Properties

calculatePLUsingLast

Optional calculatePLUsingLast: boolean

Enables Profit & Loss calculations using last value.

Default

false

closePositionCancelsOrders

Optional closePositionCancelsOrders: boolean

Closing a position cancels its brackets.

Default

false

positionPLInInstrumentCurrency

Optional positionPLInInstrumentCurrency: boolean

Enables displaying Profit & Loss values in instrument currency.

Default

false

requiresFIFOCloseIndividualPositions

Optional requiresFIFOCloseIndividualPositions: boolean

Enables closing of individual positions in FIFO order.

Default

false

showNotificationsLog

Optional showNotificationsLog: boolean

Enables the Notifications log tab in the Account Manager.

Default

true

showQuantityInsteadOfAmount

Optional showQuantityInsteadOfAmount: boolean

Changes Amount to Quantity in Order Ticket.

Default

false

supportAddBracketsToExistingOrder

Optional supportAddBracketsToExistingOrder: boolean

Enables adding brackets to the existing order.

Default

true

supportBalances

Optional supportBalances: boolean

Allows getting crypto balances for an account. Balances are displayed as the first table of the Account Summary tab. Use the flag for crypto currencies only. This flag requires the IBrokerConnectionAdapterHost.cryptoBalanceUpdate method to be implemented.

Default

false

supportCancellingBothBracketsOnly

Optional supportCancellingBothBracketsOnly: boolean

Modifies the confirmation dialog text for closing a bracket order. When set to true, the text explicitly states that cancelling a bracket order will also cancel its associated pair. When set to false, the text will include the ID of the singular bracket order being cancelled.

Note that the library does not cancel orders itself. You should implement the IBrokerTerminal.cancelOrder or IBrokerTerminal.cancelOrders method.

Default

false

supportCloseIndividualPosition

Optional supportCloseIndividualPosition: boolean

Enables individual position closing. This flag requires the IBrokerTerminal.closeIndividualPosition method to be implemented.

Default

false

supportClosePosition

Optional supportClosePosition: boolean

Enables position closing. This flag requires the IBrokerTerminal.closePosition method to be implemented. If supportClosePosition is set to true, the library displays a close button and calls the closePosition method. If supportClosePosition is set to false, the library displays a close button but calls the IBrokerTerminal.placeOrder method with the isClose property set to true.

Default

false

supportCryptoBrackets

Optional supportCryptoBrackets: boolean

Enables crypto brackets.

Default

false

supportCryptoExchangeOrderTicket

Optional supportCryptoExchangeOrderTicket: boolean

Enables cryptocurrency trading (exchanging). This flag switches the Order Ticket to Crypto Exchange mode, which provides additional controls for entering the quantity in either the base or quote currency.

Default

false

supportDOM

Optional supportDOM: boolean

Enables the Depth of Market (DOM) widget. Note that you should also enable the BrokerConfigFlags.supportLevel2Data flag and implement the subscribeDepth and unsubscribeDepth methods to provide Level 2 data for the DOM widget.

Default

false

supportDemoLiveSwitcher

Optional supportDemoLiveSwitcher: boolean

Enables demo live switcher.

Default

true

supportEditAmount

Optional supportEditAmount: boolean

Enables order quantity editing. If you set this flag to false, the quantity control in the Order Ticket will be disabled when users modify orders.

Default

true

supportExecutions

Optional supportExecutions: boolean

Enables executions. This flag requires the IBrokerTerminal.executions method to be implemented.

Default

false

supportIndividualPositionBrackets

Optional supportIndividualPositionBrackets: boolean

Enables brackets for individual positions: take-profit and stop-loss orders. If you set this flag to true, the library displays an Edit button for individual positions and Edit position... in the individual position's context menu. This flag requires the IBrokerTerminal.editIndividualPositionBrackets method to be implemented.

Default

false

supportLevel2Data

Optional supportLevel2Data: boolean

Enables Level 2 data for the Depth of Market (DOM) widget. This flag requires the subscribeDepth and unsubscribeDepth methods to be implemented. Note that you should also enable the BrokerConfigFlags.supportDOM flag to display the DOM widget in the UI.

Default

false

supportLeverage

Optional supportLeverage: boolean

Enables trading with leverage. If the flag is set to true, you should calculate the leverage using the IBrokerWithoutRealtime.leverageInfo method.

Default

false

supportLeverageButton

Optional supportLeverageButton: boolean

Displays a leverage button in the UI. Note that you should also enable the BrokerConfigFlags.supportLeverage flag. If supportLeverageButton is set to true, the leverage input field appears in the Order Ticket. Clicking the input field activates a dedicated Leverage Dialog.

Default

true

supportLimitOrders

Optional supportLimitOrders: boolean

Enables limit orders type in the Order Ticket.

Default

true

supportMargin

Optional supportMargin: boolean

Allows margin. If supportMargin is set to true, you should call IBrokerConnectionAdapterHost.marginAvailableUpdate when the Trading Platform subscribes to margin available updates using IBrokerWithoutRealtime.subscribeMarginAvailable.

Default

false

supportMarketBrackets

Optional supportMarketBrackets: boolean

Enables brackets for market orders.

Default

true

supportMarketOrders

Optional supportMarketOrders: boolean

Enables market orders type in the Order Ticket.

Default

true

supportModifyBrackets

Optional supportModifyBrackets: boolean

Enables order brackets editing. If you set this flag to false, the bracket's control in the Order Ticket will be disabled, and the Modify button will be hidden from the chart and in the Account Manager.

Default

true

supportModifyDuration

Optional supportModifyDuration: boolean

Allows modifying existing order duration.

Default

false

supportModifyOrderPreview

Optional supportModifyOrderPreview: boolean

Allows providing the estimated commission, fees, margin, and other order information before modifying the order without actually modifying it. This information will be displayed in the Order confirmation dialog.

This flag requires the IBrokerTerminal.previewOrder method to be implemented and confirmId parameter to be passed in the IBrokerTerminal.modifyOrder method. Refer to Enable order preview for more information.

Default

false

supportModifyOrderPrice

Optional supportModifyOrderPrice: boolean

Enables order price editing. If you set this flag to false, the price control in the Order Ticket will be disabled when users modify orders.

Default

true

supportModifyOrderType

Optional supportModifyOrderType: boolean

Allows modifying order type.

Default

false

supportModifyTrailingStop

Optional supportModifyTrailingStop: boolean

Allows modifying trailing stop orders.

Default

true

supportMultiposition

Optional supportMultiposition: boolean

Enables multiple positions for one instrument at the same time. Supporting multiple positions prevents creating the default implementation for a reversing position.

Default

false

supportNativeReversePosition

Optional supportNativeReversePosition: boolean

Enables native position reversing. This flag requires the IBrokerTerminal.reversePosition method to be implemented. If supportNativeReversePosition is set to false, the library expects you to place a reversing order via the IBrokerTerminal.placeOrder method.

Default

false

supportOnlyPairPositionBrackets

Optional supportOnlyPairPositionBrackets: boolean

Stop Loss and Take Profit are added or removed only together.

Default

false

supportOrderBrackets

Optional supportOrderBrackets: boolean

Enables order brackets: take-profit and stop-loss.

Default

false

supportOrdersHistory

Optional supportOrdersHistory: boolean

Enables orders history. If supportOrdersHistory is set to true, the Account Manager will have an additional tab: Orders History. This flag requires the IBrokerTerminal.ordersHistory method to be implemented. The method should return a list of orders with the filled, cancelled, and rejected statuses from previous trade sessions.

Default

false

supportPLUpdate

Optional supportPLUpdate: boolean

Allows you to use your own Profit & Loss (P&L) values for positions. If supportPLUpdate is set to true, you should call the IBrokerConnectionAdapterHost.plUpdate method as soon as P&L values are changed. If supportPLUpdate is set to false, the library automatically calculates P&L values as the difference between the current trade and the average position price.

Default

true

supportPartialCloseIndividualPosition

Optional supportPartialCloseIndividualPosition: boolean

Enables partial individual position closing. This flag requires the IBrokerTerminal.closeIndividualPosition method to be implemented.

Default

false

supportPartialClosePosition

Optional supportPartialClosePosition: boolean

Enables partial position closing. This flag requires the IBrokerTerminal.closePosition method to be implemented.

Default

false

supportPlaceOrderPreview

Optional supportPlaceOrderPreview: boolean

Allows providing the estimated commission, fees, margin, and other order information before placing the order without actually placing it. This information will be displayed in the Order confirmation dialog.

This flag requires the IBrokerTerminal.previewOrder method to be implemented and confirmId parameter to be passed in the IBrokerTerminal.placeOrder method. Refer to Enable order preview for more information.

Default

false

supportPositionBrackets

Optional supportPositionBrackets: boolean

Enables position brackets: take-profit and stop-loss orders. If you set supportPositionBrackets to true, the library displays an Edit button for positions and Edit position... in the position's context menu. This flag requires the IBrokerTerminal.editPositionBrackets method to be implemented.

Default

false

supportPositionNetting

Optional supportPositionNetting: boolean

Enables individual and net positions. If you set this flag to true, the Account Manager will have two tabs: Individual Positions and Net Positions. This flag requires the IBrokerTerminal.individualPositions method to be implemented.

Default

false

supportPositions

Optional supportPositions: boolean

Enables positions. This flag requires the IBrokerTerminal.positions method to be implemented. If you set supportPositions to false, the Positions tab in the Account Manager will be hidden.

Default

true

supportReversePosition

Optional supportReversePosition: boolean

Enables position reversing. If supportReversePosition is set to false, the Reverse Position button will be hidden from the UI.

Default

false

supportStopLimitOrders

Optional supportStopLimitOrders: boolean

Enables stop-limit orders type in the Order Ticket.

Default

false

supportStopLimitOrdersInBothDirections

Optional supportStopLimitOrdersInBothDirections: boolean

Whether stop-limit orders should behave like Limit-if-Touched in both directions. Enabling this flag prevents the check of stop price direction from the stop limit Order Ticket.


supportStopOrders

Optional supportStopOrders: boolean

Enables stop orders type in the Order Ticket.

Default

true

supportStopOrdersInBothDirections

Optional supportStopOrdersInBothDirections: boolean

Whether stop orders should behave like Market-if-Touched in both directions. Enabling this flag prevents the check of stop price direction from the stop limit Order Ticket.

Default

false

supportStrictCheckingLimitOrderPrice

Optional supportStrictCheckingLimitOrderPrice: boolean

Whether the integration supports limit price validation in the order ticket to eliminate the possibility to place an order on the wrong side of the market that will most likely trigger and get filled immediately.


supportSymbolSearch

Optional supportSymbolSearch: boolean

Enables symbol searching.

Default

false

supportTrailingStop

Optional supportTrailingStop: boolean

Enables trailing stop orders. If you set this flag to true, the library displays trailing stop orders and a user can place a trailing stop order using the Order Ticket.

Default

false