Home MarketXLS
Dashboard MarketXLS
Screener MarketXLS
Options Profit Calculator MarketXLS
Stock Ranks MarketXLS
Spreadsheet Builder MarketXLS
Documentation MarketXLS
Logout MarketXLS

Accumulated Trade Value Function (fn_00009) for Real-Time Monitoring

The “Accumulated Trade Value” function (fn_00009) offers real-time tracking of the total traded amount for any valid financial instrument symbol. Powered by MarketXLS’s RTD (Real-Time Data) infrastructure, it dynamically aggregates executed trades in Excel, helping you monitor and analyze portfolio changes on the fly. From individual stock positions (like “AAPL” or “TSLA”) to currency pairs and futures contracts, you can retrieve up-to-date totals of trades executed within your preferred timeframe.

By automating the aggregation of trade values, analysts and traders can quickly assess performance, track position sizes, reconcile broker statements, and manage risk—without repeatedly logging into separate trading platforms.

Why Use This Function?

  • Live, Dynamic Updates: The function leverages RTD streaming to deliver continuous data on your accumulated trades.
  • Comprehensive Monitoring: Quickly gauge how much has been traded in a particular symbol, whether it be stocks, currencies, or futures.
  • Automated Reconciliation: Spot discrepancies between your broker’s trade records and your Excel sheets in real time.
  • Portfolio Oversight: Consolidate this metric alongside other Excel functions (e.g., last price, volume) to build a complete trading dashboard.
  • Efficient Risk Management: Track overall exposures by symbol, identifying potential over-leveraging or large positions quickly.

How to Use in Excel

=QM_Stream_AccumulatedTradeValue(symbol)
  1. In any blank cell, type =QM_Stream_AccumulatedTradeValue(.
  2. Enter a valid symbol (e.g., "AAPL", "TSLA", "EUR/USD") inside quotes or reference a cell containing the symbol.
  3. Press Enter. If the symbol is valid, you’ll see a dynamically updating number—the accumulated trade value.

Before use:
• Confirm you have a valid MarketXLS or QuoteMedia license configured in Excel.
• Ensure the data provider is properly set up in MarketXLS’s Settings.
• Verify that the symbol is recognized. Invalid or unrecognized symbols will return “NA.”

Parameters Explained

Parameter Description Example Values Notes
symbol The financial instrument (stock ticker, currency pair) "AAPL" Must be a valid identifier. If missing, invalid, or unrecognized, the function will return "NA".

Key points:
• Symbol is automatically converted to uppercase and checked for validity.
• Real-time data streaming begins only when the symbol is valid and your license/configuration is active.

Example Usage

Basic Examples

  1. Single Symbol in One Cell

    • Objective: Retrieve the accumulated trade value for Apple.
    • Enter in a cell:
      =QM_Stream_AccumulatedTradeValue("AAPL")
    • Result: The cell displays the running total of AAPL trades, updating throughout the trading day.
  2. Using a Cell Reference

    • Objective: Make the symbol flexible by referencing a cell.
    • Suppose cell A2 has “TSLA”. In cell B2, enter:
      =QM_Stream_AccumulatedTradeValue(A2)
    • Result: If you change A2 to "MSFT", cell B2 automatically updates to show MSFT’s accumulated trade value.
  3. Handling Invalid Symbols

    • Objective: See what happens with an unrecognized symbol.
    • Formula:
      =QM_Stream_AccumulatedTradeValue("INVALID!")
    • Result: Typically returns “NA” (or “ERR”) and does not subscribe to real-time updates.

Advanced Scenarios

  1. Multi-Symbol Portfolio Dashboard

    • You can create a small table with different symbols in Column A (like A2: TSLA, A3: MSFT, A4: CLZ23).
    • In Column B, reference each symbol with the function:
      B2: =QM_Stream_AccumulatedTradeValue(A2)
      B3: =QM_Stream_AccumulatedTradeValue(A3)
      B4: =QM_Stream_AccumulatedTradeValue(A4)
    • Combine other MarketXLS data points (such as last traded price, bid/ask, volume) in adjacent columns for a complete real-time portfolio overview.
  2. Automated Trading Systems and VBA Integration

    • For advanced traders, this function can be embedded into macros or VBA.
      Example snippet in VBA:
      Sub UpdateTradeValues()
          Range("B2").Formula = "=QM_Stream_AccumulatedTradeValue(""AAPL"")"
      End Sub
    • This approach allows you to bulk-update or integrate the function into custom logic (like triggers or alert systems).
  3. Risk Management

    • By observing the Accumulated Trade Value across multiple symbols, you can set conditional formatting or Excel-based alerts (e.g., if the sum of certain positions exceeds a threshold, highlight the cell).

Common Questions and Troubleshooting

  1. “Why am I getting ‘NA’ or a blank value?”

    • Most likely the symbol is invalid, blank, or unrecognized. Double-check spelling and syntax.
    • Ensure you have typed a recognized symbol (e.g., “AAPL,” not “AAPPL”).
  2. “Why does the function show ‘XYZ is not configured...’?”

    • You need to configure MarketXLS (or the active data provider) in the Excel add-in settings.
    • Make sure your subscription is active and the provider is enabled.
  3. “I’m receiving ‘ERR’ or an exception.”

    • A network or unexpected system error occurred. Inspect logs to see the complicated error details. Confirm your internet connection and retry.
  4. “Why am I missing some trade data?”

    • Your data feed may only provide real-time (not historical) accumulations. Past trades that occurred before the feed started might not be included.
  5. “Does it update automatically?”

    • Yes. In Excel’s automatic calculation mode, new trades will push updated totals into the cell. If Excel is in manual mode, pressing F9 (Windows) or CMD+= (Mac) recalculates the workbook.

Remember, the Accumulated Trade Value function is specifically designed for real-time or near-real-time monitoring of your trades. Before relying on it for mission-critical tasks, always validate that your license, data feed, and symbol settings are correct. By leveraging this function in your Excel workflows, you can maintain an up-to-the-minute view of your trading activity—supporting informed decisions and streamlined portfolio management.

Get Access to 1 Billion Usable Market data points IN YOUR EXCEL SHEETS WITH EASY TO USE EXCEL FUNCTIONS

Get started today
MarketXLS Excel Add-in Tutorial - How to Use Stream Accumulated Trade Value  and Other Financial Formulas
How does MarketXLS work?