Backtrail Strategy Backtester

Backtest your Pine Script strategy right in the chat

Paste your strategy, attach your price data as CSV, and see how it would have traded: profit, drawdown, win rate and every trade.

Free plan, no card needed

How it works

  1. 1

    Paste your strategy

    Any Pine Script v5 or v6 strategy() script, the one on your chart or one you just wrote with your assistant.

  2. 2

    Attach your data

    A CSV of price bars: your chart's data export or your exchange's OHLC export. Upload it, paste it or link it.

  3. 3

    Read the result

    Net profit, drawdown, win rate, profit factor, an equity curve and the trade list, next to buy and hold.

Everything a backtest should tell you

Your own script

Real Pine Script v5 and v6 with strategy.entry, strategy.exit and strategy.close, inputs and the ta functions you use.

Your own data

Any market and timeframe you have bars for. Times in Unix seconds, milliseconds or dates; comma or semicolon separated.

The key numbers

Net profit and return, maximum drawdown, win rate, profit factor, average trade and buy and hold for comparison.

Equity curve

See when the strategy made and lost money, not just where it ended.

Every trade

Entry and exit, price, size and result of each trade, so you can check the rules did what you meant.

Error check

Find out whether a script compiles before you run it, with every error and its line.

Optimize inputs

Give an input a range, such as a length from 10 to 50, and see the five best settings (Pro).

Nothing stored

Your script and your data are used for the run and then discarded.

Inside your assistant

Write or fix a strategy with ChatGPT or Claude, then backtest it in the same conversation.

Test your next strategy before you trade it

Run your first backtest free

Just ask your assistant

Once the connector is added, talk to ChatGPT or Claude the way you normally would.

  • Backtest this strategy on the attached CSV from 2022 to 2024
  • Does this Pine Script compile? Fix the errors
  • Find the best fast and slow lengths for this crossover
  • Run it again with 0.1% commission and 5,000 starting capital

Use it in ChatGPT and Claude

Add Backtrail Strategy Backtester as a connector, then say: backtest this strategy on the attached data.

Connector address

https://backtrail.inyour.chat/api/mcp
How to connect

Frequently asked questions

Where does the price data come from?

From you. Export your chart's data or your exchange's candles as CSV and upload, paste or link it. Backtrail has no market data of its own, so you can test any market and timeframe you have data for.

Is it free?

Yes. You can run 3 backtests a day for free, and checking scripts for errors is never limited. Pro has no daily limit and adds parameter optimization.

Will the results match my chart exactly?

Usually closely. Backtrail runs your script with an open-source Pine Script runtime that emulates the strategy broker, on exactly the bars you give it. Differences can come from different data, intrabar settings, or Pine features the runtime does not support yet.

Is my strategy stored?

No. Your script and data are used for the run and then discarded. Only the fact that a tool was used is logged to your account.

Is this investment advice?

No. A backtest is a historical simulation of rules you wrote, for learning and research. It gives no buy or sell signals, past results do not predict future results, and nothing is traded.

Pine Script® and TradingView® are trademarks of TradingView, Inc. Backtrail is an independent product, not affiliated with, endorsed by or sponsored by TradingView. Backtests are historical simulations for education, not investment advice or trading signals.

Know how your idea did before you trust it.

Start free