In advanced code you can access information about your trading account balances, positions and fills.
In order to do this, first set the Trading_AccountNumber string variable to the trading account number (you can find it in Settings - Trading Accounts). After you do that, the following variables will become available:
Trading_AccountValue |
The total account value |
Trading_Cash |
Cash available in the account |
Trading_DayTradeBP |
Daytrading buying power in the account |
Trading_OvernightBP |
Overnight buying power in the account |
Trading_Pos |
Currently held position (quantity) in the account |
Trading_PosPaid |
Average paid for the currently held position |
Trading_LastFillQty |
Quantity for the last fill |
Trading_LastFillPrice |
Price for the last fill |