Type/to search
Built-in Functions
Structures
Built-in Variables and Constants
EXCHANGE
exchange
exchanges
ORDER_STATE
ORDER_TYPE
ORDER_CONDITION_TYPE
POSITION_DIRECTION
ORDER_OFFSET
PERIOD
LOG_TYPE
Conventions
Exchanges

The first exchange object added in the robot or backtest configuration is exchange; exchanges is the array of all exchange objects in the order they were added, so exchanges[0] is exchange.

Market, trading, account and futures functions are member functions of an exchange object, for example exchange.GetTicker() and exchanges[1].GetAccount(), and act only on the account bound to that object.

In this sectionRead the whole section

NameDescription
exchangeThe first exchange object added in the strategy live trading settings and backtesting settings.
exchangesAn array of exchange objects that contains all the exchange objects added in the strategy's live trading settings or backtesting settings, where exchanges[0] is…