How to Back Test Trading Strategy in TradingView for Free

Many traders ask themselves the question: How to back test trading strategy in tradingview for free. Well, there is good news – it is quite possible and very simple. In this article, I will quickly show with a specific example how to back test trading strategy in tradingview for free, and also tell you where to get a trading strategy if you don’t have one, and how to evaluate the results of backtesting a trading algorithm. So, without further ado, let’s get started.

How to backtest on Tradingview for free – Full guide

Strategy Test TradingView: Registration

The first thing you need to do is register a TradingView account if you haven’t done so yet. To do this, go to the tradingview.com website and register. It is most convenient to do this with Google. Next, go to the ‘Products’ – ‘Charts’ tab, and you will see a candlestick chart.

TradingView Superchatrs

TradingView Backtesting: Choosing a Timeframe, Asset, and Strategy

At the top left, select the asset on which you are going to test your trading strategy, as well as the timeframe. Now you need to decide on a trading strategy. There can be two options here. If you have your own strategy, implemented in the form of code, then go to the ‘Pine Editor’ tab by clicking the button at the bottom left.

Pine editor

In the new version, an editor window will appear on the right, where you will need to paste your script and apply it to the chart. If you do not have a strategy, then you need to go to the ‘Indicators’ tab and write ‘strategy’ there. In the drop-down list, you will see many community trading strategies, most of which are free.

As an example, I will use the trading strategy ‘Fibo Correction Strategy’ by Script_Algo. You can choose any one you see fit. Click on it to add it to the chart. I must note that there are no other ways on TradingView besides choosing a strategy from the list or adding your own script via the Pine Editor.

Fibo Correction Strategy on TradingView

Backtest TradingView: Configuring the Trading Strategy and Evaluating Test Results

After you have added the trading strategy to the chart, you will see something like this.

Backtesting TradingView

At the top, there will be a visualization of trading signals, and at the bottom, the backtest results in the TradingView Strategy Tester. Since we are going to conduct backtesting in TradingView for free, I will say right away that the testing period will be limited compared to paid accounts.

For example, on crypto on an hourly timeframe, as can be seen in the figure, you will only be able to backtest for the period from the beginning of 2025 to the current date in November. But for a general assessment of the trading strategy, this will be quite enough, which is why I love TradingView.

As can be seen in the screenshot above, even with the default settings, the trading strategy showed positive results for the period available on the free account. To evaluate the test results, you need to pay attention to the followin:

  • The Cumulative PnL curve itself should be constantly ascending and green – this is the first sign of a profitable strategy.
  • Next, pay attention to Total PnL – it should be green, the higher the percentage, the better. The Max Equity Drawdown indicator, on the contrary, should be insignificant compared to the PnL.
  • Next, look at the number of Profitable Trades, this is essentially the winrate of your trading strategy.
  • And finally, the most important indicator is the Profit Factor. The larger it is, the better, but in any case, it must be greater than one, otherwise the strategy would be unprofitable.

backtest tradingview properties

You can improve the backtest results by playing with the settings. To do this, click on the strategy and go to the ‘Settings’ tab. Make sure that the capital parameters in the ‘Properties’ tab are set correctly. The Order Size should not exceed your risk limit, and commission and slippage should be configured. Do not be surprised if after all these parameters the backtesting metrics worsen.

Then try adjusting the parameters in the ‘Inputs’ tab. See how the backtest results change. Using this adjustment, try to find the best combination of backtesting results.

backtes tradingview inputs

Strategy Backtesting: Automation and Final Thoughts

That’s basically all, now you know how to backtest a trading strategy on TradingView for free. Essentially, the only limitation of the free testing capabilities is the period of historical data.

If you want to learn more about how to test a trading strategy, I recommend reading my article How to Backtest TradingView Strategy: Step-by-Step Guide with a Real Example.

I want to remind you that TradingView allows not only testing strategies but also automating them. For this, you will need the most minimal subscription so that the platform can send webhook signals to your exchange. To learn how to fully automate a strategy and run a bot directly, read my article How to Automate Trades on TradingView Directly without Third-Party-Services.

You can also use intermediate trading bot management platforms that allow for more advanced position management. If you are interested, here is a full list of trading bots that provide such capabilities.

Finally, a small disclaimer. Remember that no strategy guarantees you profit. Backtest results are not necessarily repeated in the future. You and only you are responsible for making any financial decisions, and I am not urging you to launch these strategies or deposit money with a broker. Observe risk management, do not risk more than 1-2 percent of your capital. I hope you understood how to backtest a trading strategy on TradingView for free. I wish everyone success and profitable trading.

FAQ

How to backtest on TradingView for free?

You can backtest for free by adding a strategy from the community ‘Indicators’ or your own script via the ‘Pine Editor’ and then using the ‘Strategy Tester’ tab to view the results, albeit with limited historical data.

What is the TradingView strategy tester?

The TradingView Strategy Tester is a built-in tool that allows you to backtest trading strategies on historical data, showing performance metrics like Profit Factor, Total PnL, and Drawdown.

Does TradingView offer automated backtesting?

TradingView provides automated backtesting for strategies written in Pine Script. While the backtest itself is automated, fully automated trading execution typically requires a paid subscription to utilize webhook alerts.

Leave a Comment