BrokerAccount functions are mostly used for accessing live brokerage account figures. These functions are only available when the Desktop is in live trading mode, which means they should not be used during backtesting and optimization. 


Sections


Functions

Function Details


Functions


Name

Description

double BrokerAccountBuyingPower()

Gets the brokerage account buying power.

double BrokerAccountCash()

Gets the brokerage account cash.

string BrokerAccountCurrencyCode()

Gets the brokerage account currency code.

double BrokerAccountEquity()

Gets the brokerage account equity.

double BrokerAccountExcessEquity()

Gets the brokerage account excess equity.

double BrokerAccountInitialMargin()

Gets the brokerage account initial margin.

double BrokerAccountInitialMarginOvernight()

Gets the brokerage account initial margin overnight.

double BrokerAccountMaintenanceMargin()

Gets the brokerage account maintenance margin.

double BrokerAccountMaintenanceMarginOvernight()

Gets the brokerage account maintenance margin overnight.

double BrokerAccountNetLiquidationValue()

Gets the brokerage account net liquidation value.

string BrokerAccountNumber()

Gets the brokerage account number.


Function Details


double BrokerAccountBuyingPower()

Gets the brokerage account buying power.


Returns


The brokerage account buying power.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy


double BrokerAccountCash()

Gets the brokerage account cash.


Returns


The brokerage account cash.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy


string BrokerAccountCurrencyCode()

Gets the brokerage account currency code.


Returns


The brokerage account currency code.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy


double BrokerAccountEquity()

Gets the brokerage account equity.


Returns


The brokerage account equity.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy


double BrokerAccountExcessEquity()

Gets the brokerage account excess equity.


Returns


The brokerage account excess equity.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy


double BrokerAccountInitialMargin()

Gets the brokerage account initial margin.


Returns


The brokerage account initial margin.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy


double BrokerAccountInitialMarginOvernight()

Gets the brokerage account initial margin overnight.


Returns


The brokerage account initial margin overnight.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy


double BrokerAccountMaintenanceMargin()

Gets the brokerage account maintenance margin.


Returns


The brokerage account maintenance margin.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy


double BrokerAccountMaintenanceMarginOvernight()

Gets the brokerage account maintenance margin overnight.


Returns


The brokerage account maintenance margin overnight.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy


double BrokerAccountNetLiquidationValue()

Gets the brokerage account net liquidation value.


Returns


The brokerage account net liquidation value.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy


string BrokerAccountNumber()

Gets the brokerage account number.


Returns


The brokerage account number.


Parameters


No Parameters


Scripts


AddOn, RiskManagement, Alert, TradeManagementStrategy, MultiSymbolTradingStrategy, Screener, TradingStrategy