How to Use

Step-by-step guide for building and backtesting a strategy with the AlgoAlpha Strategy Builder.

This guide walks you through building your first strategy with the Backtest Strategy Builder, from initial setup to interpreting the results.

Step 1 — Prepare Your Chart

Before using the Strategy Builder, add the AlgoAlpha indicators whose signals you want to test:

  1. Open a chart on any asset and timeframe in TradingView
  2. Add one or more AlgoAlpha indicators:
    • Smart Signals Assistant — for trend, reversal, and scalping signals
    • ILPAC — for BOS, CHoCH, and FOMO Bubble events
    • Momentum Concepts — for oscillator reversals, zero-line crosses, and divergences
  3. Ensure the indicators are loaded and displaying on your chart

Preparing your chart with AlgoAlpha indicators

The Strategy Builder reads signals from the other AlgoAlpha indicators on the same chart. If an indicator is not present, its signals will not be available as conditions.

Step 2 — Add the Strategy Builder

  1. Click the Indicators button in TradingView's toolbar
  2. Select the Invite-only scripts tab
  3. Find and add Backtest Strategy Builder
  4. The strategy will appear on your chart, and the Strategy Tester tab will become available at the bottom of the screen

Adding the Strategy Builder from invite-only scripts

Step 3 — Configure Entry Conditions

Open the Strategy Builder's settings (gear icon) and navigate to the entry conditions section.

Selecting Signals

Choose which events trigger a trade entry. For example:

  • SSA Long Signal — enter long when Smart Signals Assistant generates a bullish signal
  • ILPAC Bullish BOS — enter long when a bullish Break of Structure is detected
  • MC Fast Oscillator Reversal — enter long when the Fast Oscillator reverses from oversold

Applying Logic Operators

You can combine multiple conditions using AND/OR logic:

LogicBehavior
ANDAll selected conditions must be true on the same bar to trigger an entry
ORAny one of the selected conditions being true triggers an entry

For example:

  • SSA Long Signal AND ILPAC Bullish BOS — only enters when both signals fire on the same bar (higher selectivity, fewer trades)
  • SSA Long Signal OR MC Reversal — enters when either signal fires (lower selectivity, more trades)

Configuring entry conditions with AND/OR logic

Step 4 — Configure Exit Conditions

Define how and when positions are closed:

Exit TypeDescription
Take Profit (%)Close the position when unrealized profit reaches a specified percentage
Stop Loss (%)Close the position when unrealized loss reaches a specified percentage
Signal-based exitClose when an opposing signal fires (e.g., a bearish signal closes a long position)
Time-based exitClose the position after a specified number of bars
Trailing stopA stop-loss that moves in the trade's favor as price advances

You can combine multiple exit conditions — the position closes when any one of them triggers.

Configuring exit conditions in the Strategy Builder

Step 5 — Set Trade Parameters

Configure realistic trading conditions:

ParameterDescription
Initial CapitalThe starting account balance for the simulation
Position SizeHow much capital to allocate per trade (fixed amount, percentage of equity, or contracts)
LeverageThe leverage multiplier (1x for no leverage, up to your preferred level)
CommissionPer-trade fee as a percentage or fixed amount
SlippageEstimated price slippage per trade in ticks or percentage

Always include realistic commission and slippage values. A strategy that looks profitable with zero costs may break even or lose money after fees are accounted for.

Setting trade parameters for realistic backtesting

Step 6 — Review the Results

After configuring all settings, the Strategy Tester tab at the bottom of TradingView displays:

Performance Summary

MetricWhat It Tells You
Net ProfitTotal profit or loss after all trades, commissions, and slippage
Win RatePercentage of trades that were profitable
Profit FactorRatio of gross profit to gross loss (above 1.0 means profitable overall)
Max DrawdownThe largest peak-to-trough decline in equity during the test period
Sharpe RatioRisk-adjusted return — higher values indicate better return per unit of risk
Total TradesNumber of trades executed during the simulation
Average TradeAverage profit or loss per trade

Equity Curve

A visual chart showing how the account equity changed over time. Look for:

  • Steadily rising curve — consistent profitability
  • Large drawdowns — periods of significant loss that may exceed your risk tolerance
  • Flat periods — times when the strategy was not active or breaking even

Trade List

A detailed log of every trade the strategy executed, including entry/exit prices, profit/loss, and the signals that triggered each trade.

Strategy Builder performance dashboard with equity curve and metrics

Step 7 — Iterate and Optimize

Based on the results, adjust your strategy:

  • Too few trades? — Loosen conditions (use OR instead of AND, or add more signal types)
  • Too many losing trades? — Tighten conditions (use AND, add filters, or increase signal selectivity)
  • Large drawdowns? — Reduce position size, add a tighter stop loss, or filter trades by trend direction
  • Good on one asset, bad on others? — The strategy may be overfit; test across multiple symbols and timeframes
⌘K