EnglishفارسیTürkçe

Features

Journal Backtest Strategy Tester Automatic Backtest Auto Test Prop Firm Scripts Replay & Trade Charts Analysis Playbook Mentor Broker sync

Resources

Pricing Learn Forex calculator Crypto futures calculator Symbols Supported brokers Sign in Get started
ProductStrategy Tester

Test any strategy on years of real candles.

Pick a ready strategy, build one without code, test an indicator or paste your own Pine Script® strategy. The Strategy Tester runs it over the history you choose and gives you the whole report — profit, drawdown, every trade — the way TradingView's does.

In a minute

Four ways in
A ready strategy, one built without code, an indicator on your chart, or your own Pine Script® code.
The whole report
Net profit, drawdown, profit factor, win rate, the equity curve, monthly returns and every trade.
Real candles
The same market data as the backtester: 762 symbols, from 1-second to monthly charts.
Any period
The last 7, 30, 90 or 365 days, the whole history, or dates of your own.
Every trade on the chart
Show on chart takes you to any trade, its entry and exit marked on the candles.
TradingView's settings
Capital, order size, commission, currency, margin, bar magnifier — the properties a strategy has there.

How it works

  1. Open a backtest chartAny symbol, any timeframe. The Strategy Tester is a button on the right bar.
  2. Choose what to testA ready strategy, conditions of your own, an indicator, or Pine Script® code.
  3. Pick the periodFrom when to when: the last year, the whole history, or your own dates.
  4. Read the reportIt is there at once, and it updates the moment you change a condition or a setting.
Ready strategies

9 ready strategies, one click away.

In Indicators, open Strategies and pick one. It goes on the chart with its buy and sell marks, and the Strategy Tester opens with its report.

  • Supertrend, MACD, RSI, Bollinger Bands, moving-average cross and channel breakout — and popular TradingView community strategies such as PMax Explorer and Flawless Victory, each with its author.
  • Their inputs are the ones TradingView's built-in strategies open with, and you can change every one.
Build it by hand

Your own strategy, without a line of code.

Say when to buy, when to sell and where to get out, from hundreds of ready conditions. The trades and the report appear as you add them.

  • Buy when and Sell when: 40 indicators, 29 candlestick patterns, price levels and the clock — all must hold, or any one.
  • Exits: a stop in ATR, percent or points; a target in R; a trailing stop; the stop moved to entry; a close after N bars, at an hour or before the weekend.
  • When to trade: the Sydney, Tokyo, London and New York sessions, your own hours and days, a cap on trades a day.
  • Size: a percent of equity, a fixed quantity, a cash amount or a percent of equity risked at the stop.
  • Pine code shows the strategy as Pine Script®, to keep or to take elsewhere.
Test an indicator

Turn the indicator you use into a strategy.

Put an indicator on the chart — a built-in one or your own Pine Script® — open the Strategy Tester and build on it: its own lines become the conditions.

  • Buy when MACD crosses up its signal line, sell when it crosses down — or any line of any indicator above, below or crossing another.
  • Add exits, hours and size the same way as a strategy built by hand.
Your own code

Paste a strategy() script and press Add to chart.

Pine Script® v5 and v6 strategies run as they are: their orders are filled on the candles and the Strategy Tester reports them, beside the script's name.

  • strategy.entry, exit, order, close and cancel; stops, limits and trailing stops; pyramiding.
  • The script's own settings — capital, size, commission, slippage, margin — read from strategy(), and changed in Properties.
  • A line the engine cannot run is named in the editor, with its line and column.
The report

Everything TradingView's report has, laid out the same way.

  • Key stats: total P&L, max drawdown, profitable trades and profit factor.
  • The equity curve beside buy and hold, and the drawdown below it.
  • Performance analysis: breakdown by long and short, periodical returns, benchmarking, margin usage, growth and decline.
  • Trades analysis: returns distribution, winners and losers, streaks, time patterns and trade excursions.
  • The list of trades, with Show on chart on every one, and a CSV export.
Properties

Fills and costs as close to a real account as candles allow.

  • Initial capital, order size, pyramiding, commission and slippage.
  • A base currency: profits converted at each day's rate.
  • Margin for longs and shorts, with margin calls closing positions when equity runs short.
  • Bar magnifier: orders filled on the smaller candles inside each bar, for a truer order of stop and target.
  • Recalculate after an order fills or on every tick, as a strategy() asks.
  • Alerts: a note on screen when the strategy fills an order.

Specifications

What you can test9 ready strategies, the no-code Strategy Builder, any indicator on the chart, Pine Script® v5 and v6 strategy() scripts
Market dataThe backtester's: 762 symbols, 1-second to 12-month charts
PeriodRange from chart, entire history, last 7, 30, 90 or 365 days, or a custom range
ReportKey stats, performance, performance and trades analysis, list of trades, CSV export
PropertiesCapital, order size, pyramiding, commission, slippage, base currency, margin, bar magnifier, recalculation
WhereThe backtester's charts, in the panel under the chart

What each plan includes

The Strategy Tester is part of the backtester: on Pro and Elite, and in full during the 7-day trial.

FeatureFreeProElite
Backtest sessionsNo backtesting (7-day trial: unlimited)Unlimited backtest sessionsUnlimited backtest sessions
Backtest symbols10 main symbols750 symbols762 symbols, CME futures included
Timeframes1 minute to 12 months1 minute to 12 months1, 5, 10, 15, 30 and 45 seconds to 12 months
Your own Pine scriptsNot included5 own Pine scripts per chartUnlimited Pine scripts

Compare every plan

What it does not do

  • The past is not a promise. A test shows how a strategy would have traded these candles; markets change, and a good report is not a forecast.
  • Fills come from candles, not ticks. Inside a bar the order of prices is worked out from smaller candles with the bar magnifier, or from the bar's own shape without it.
  • Some data is not there. Scripts that ask for a company's earnings, dividends or financials cannot get them.
  • It is not TradingView. Pine Script® is TradingView's language; TradeAssay runs it with its own engine and is not affiliated with TradingView.
Questions

About the Strategy Tester.

Do I need to know how to code?

No. Pick a ready strategy from Indicators › Strategies, or build one in the Strategy Builder from ready conditions — when to buy, when to sell, where to get out. Code is only one of the four ways.

Will my TradingView strategy run?

Most strategy() scripts in Pine Script® v5 or v6 run as they are: paste the code into the Pine Editor and press Add to chart. If a line uses something the engine does not have, the editor names it.

How far back can I test?

As far as the backtester's data goes for that symbol — for forex and gold, many years of minute data. Pick the last year, the whole history, or dates of your own.

Can I see each trade?

Yes. The list of trades has every entry and exit with its price, size and result, and Show on chart takes you to it on the candles, marked as TradingView marks it.

Can a test run by itself, with my own risk rules?

Yes — the Automatic Backtest. Choose a symbol and a strategy, set the position size, the stop, the target and your daily limits, and it runs by itself into the full report, every trade on the chart; it can also take a prop firm's challenge for a pass rate.

Which plan has it?

Pro and Elite, and the 7-day trial in full. The Free plan does not include backtesting.

Your next trade deserves a reason.

Bring in your history and see what it says — free, in a few minutes.

Create your free account
Help centre

Answers to what traders ask us most — and a ticket to a person when they aren't enough.

Open help
Write to us

support@tradeassay.com — read by the people who build the app.

Send an email
Learn

Long reads on sample size, R and prop-firm rules, each with a calculator.

Start reading