Skip to content
Algo Trade Analytics Docs

Run your first Algo Lab baseline

Basic or Professional Historical bars required

This path starts from the New Strategy Pine tab created for a clean account. Your done state is one completed baseline that you can add to a case study.

  • Algo Lab requires a Basic or Professional subscription. An active trial counts when it grants Professional access.
  • Connect Alpaca in Account Integrations so the lab can request historical bars. If the app explicitly shows platform market data as available, you can use that instead.
  • The starter code is a strategy() script. If you replace it, use another strategy, not an indicator-only script.
  1. Open Algo Lab and select the New Strategy tab.

  2. In the test scope, choose the connected data source, a symbol it supports, a timeframe, and a short date range. Record these choices; they define the baseline.

  3. Select Refresh to load bars for that scope. Confirm that the chart or data status shows bars before continuing.

  4. Select Run. After a code or scope change, the same control may read Re-run.

  5. Review the trade count, warnings, date range, and strategy settings before interpreting return or risk metrics. A completed run only proves that this code executed on this data and configuration.

  6. Select Add to Case Study and either create a case study or choose an existing one. Give the baseline a name that includes the symbol and timeframe.

  7. When you preserve a later candidate, use Load into tab name to return it to its linked Pine tab. The final words change to the actual tab name.

SymptomCheck
Refresh cannot load barsConfirm the Alpaca connection, symbol entitlement, timeframe, and date range
Run is disabledConfirm bars are loaded and the active code declares strategy()
No trades appearExpand the date range and inspect whether the entry conditions occur; zero trades is still evidence
Results differ from TradingViewAlign symbol, timeframe, session, date range, commission, slippage, and strategy settings

Use the baseline as a fixed reference before changing code or parameters. When TradingView alert data exists, compare the backtest with alerts to investigate whether live signal generation agrees with historical intent.