Skip to content
Algo Trade Analytics Docs

Choose Backtest vs Alerts Data Scope

The first workflow step defines the records that can enter the comparison. A valid date range and one alert source are required before continuing.

Set Start Date, Start Time, End Date, and End Time so the window overlaps both the TradingView backtest events and the alert records.

For a first investigation, use the smallest window that contains a known event pair. Expand it only after you have verified timestamps, symbol, direction, and entry/exit classification. A fixed number of days is not universally meaningful; the useful window depends on event frequency and the question you are testing.

Choose Webhook Events when Algo Trade Analytics captured the TradingView payloads for the selected window. The page fetches matching event history from the backend when the analysis runs.

Before continuing:

  • verify the endpoint is active in Webhook Management;
  • confirm the selected range covers stored events; and
  • inspect at least one payload for symbol, position direction, price, and timestamp.

Header matching is case-insensitive. The standard parser recognizes these fields:

PurposeRecognized fieldsRequirement
TimestampDate/Time, datetime, date, or timestampRequired and parseable
PricepriceRequired and greater than zero
Entry or exittype or signalMust contain entry or exit
Directiondirection, or a derivable sideMust resolve to long or short
SymbolsymbolOptional; missing values become UNKNOWN until strategy scope supplies context
Contextstrategy, quantityOptional

Use the parser-tested sample alert CSV to inspect the supported shape.

  1. Set both ends of the date range.
  2. Select Webhook Events or CSV Import.
  3. For CSV, upload or paste data and confirm at least one signal loaded.
  4. For webhooks, verify the range; records are fetched on demand.
  5. Continue to Strategy Properties when the step shows complete.

The optional chart uses historical bars from a connected Alpaca account or the platform IEX stock-bar fallback when that fallback is enabled. Chart availability does not change whether the two event datasets can be compared.

  • Confirm the selected time window and timezone interpretation.
  • Check that the source contains a positive price and recognizable entry/exit plus long/short direction.
  • For a TradingView Alerts Log, verify Description contains valid JSON with positionIntent or positionDirection.
  • For webhooks, inspect stored events in Webhook Management.
  • Use the sample workflow to separate a parser problem from a problem in your own export.