Account variables reference
All 13 account variables in AlgoBarsX, each with its parameters, defaults, ranges and an example: account.balance, account.equity, account.margin, account.free_margin, account.margin_level, account.currency, account.leverage, account.mode, account.venue, positions and 3 more.
account.balance account.equity account.margin account.free_margin account.margin_level account.currency account.leverage account.mode account.venue positions orders trades history
account.equity→ money#
Balance plus open profit and loss.
eq = account.equityaccount.free_margin→ money#
Margin available.
available = account.free_marginaccount.margin_level→ percent#
Equity as a percentage of margin.
level = account.margin_levelaccount.venue→ string#
house, metatrader, ibkr or a broker name.
where = account.venuepositions→ list<Trade>#
Open positions on the account, filterable by symbol, side and source.
open_count = positions.lenorders→ Orders#
Pending orders on the account.
waiting = orders.pending(tag: "grid")trades→ Trades#
The strategy's own trades: open(), closed(), last().
mine = trades.open()history→ History#
Closed trades with aggregates such as pnl, win_rate and profit_factor.
today_pnl = history.today.pnl