CQG Desktop and CQG One: Create Custom Conditions for Account Risk and Status Monitoring

Thom Hartle – September 8, 2026

In CQG Desktop or CQG One, you can write custom formulas for monitoring risk and account status using the "account." prefix. These formulas can be used to create custom columns or filters in the Account Summary widget.

To create these formulas in CQG Desktop, open the Account Summary widget along with the Formulas widget, click the + button to create a new formula. Assign a name to the formula. Use the "account" prefix followed by the field name (two tables are below) you want to reference.

The formula editor supports elementary operations: "||", "&&", "|", "^", "&", "==", "!=", "<", ">", "<=", ">=", "<<", ">>", ">>>", "+", "-", "*", "/", "%"

To use the formula as a filter, check the "Condition" box. Save the formula.

In this example, we created a filter to show accounts with a negative balance:

Filter for negative balance:

account.currentBalance < 0

Go to the Filters menu in the Account Summary view and choose the filter you just created.

For more information regarding creating account conditions, including two videos, please visit MHelp Page Formulas.

For more information regarding setting up the Account Alerts, please visit MHelp Account Alerts.

Here are two tables: First, groups the Formula Fields and second, lists the Formula Fields in alphabetical order.

Available Account Formula Fields

CategoryFormula FieldDefinition
Core Account Valuesaccount.currentBalanceAccount balance (cash balance in the account)
account.nlvNet Liquidation Value (total value of the account including positions)
account.oteOpen Trade Equity (unrealized P&L for futures positions)
account.mvoMarket Value of Options (value of option positions)
account.uplUnrealized Profit/Loss (specifically for options)
account.pl or account.profit_lossProfit/Loss
account.collateralCollateral on Deposit
Margin Related Fieldsaccount.margin or account.margin_valueTotal margin value/requirement
account.margin_excessMargin Excess (calculated as: purchasing power - total margin value)
account.purchasing_powerPurchasing Power (calculated as: balance + MVO + OTE)
account.margin_creditMargin Credit
account.cash_excessCash Excess
Calculated Valuesaccount.ote_plOTE + P/L combined

Key Definitions

TermDefinition
Purchasing PowerBalance + MVO + OTE
Margin ExcessPurchasing Power - Total Margin Value
NLV (Net Liquidation Value)Total account value including all positions
OTE (Open Trade Equity)Unrealized profit/loss on futures positions
MVO (Market Value of Options)Current market value of option positions
UPL (Unrealized Profit/Loss)Specifically for options

Notes:

  • Values that change in real time include Balance, OTE, P/L, UPL, MVO, and NLV.
  • Margin data is refreshed automatically when updated by your broker.
  • Some values may display "N/A" when margin data is unavailable or when the margin subsystem is disabled for the account.

Account Value in Alphabetical Order

Account ValueSimple Explanation
account.cashExcessCash available above the amount required for margin. Think of it as your extra cash cushion.
account.currentBalanceYour current account balance. Basically, the cash amount currently recorded in the account.
account.longOpenPositionsQtyThe total quantity of long positions currently open — trades where you expect the price to rise.
account.marginThe amount of margin currently required to support your open positions.
account.marginCreditA credit applied toward your margin requirement, depending on the broker/account setup.
account.marginExcessThe amount of margin you have available above the required margin. It represents your margin safety cushion.
account.minDaysTillPositionContractExpirationThe minimum number of days until one of your open contracts expires.
account.mvoMarket Value of Open positions — the current market value of your open positions.
account.netChangePercentThe percentage change in your account value, usually compared with a previous/reference value.
account.netLiquidationValuePercentNet Liquidation Value expressed as a percentage, usually relative to a reference value.
account.noMultiplierPositionMarginPosition margin before applying the contract multiplier. Useful for seeing the underlying margin calculation.
account.openTradeLossUnrealizedLossThe current unrealized loss from open trades. The loss isn't final until the position is closed.
account.oteUplOpen Trade Equity / Unrealized P&L — the current profit or loss from positions that are still open.
account.oteUplAndPlUnrealized P&L + realized P&L. Combines open-trade results with profit/loss from completed trades.
account.positionMarginThe margin required for your current positions. This is collateral tied up to support the trades.
account.profitLossYour profit or loss. Positive means profit; negative means loss.
account.purchasingPowerThe amount you can

Requires CQG One or Desktop.

Disclaimer

Trading and investment carry a high level of risk, and CQG, Inc. does not make any recommendations for buying or selling any financial instruments. We offer educational information on ways to use our sophisticated CQG trading tools, but it is up to our customers and other readers to make their own trading and investment decisions or to consult with a registered investment advisor. The opinions expressed here are solely those of the author and do not reflect the opinions of CQG, Inc. or its affiliates.