Markets
Backtest forex, futures, stocks, indices, and crypto on TradingView
TestingView works on the symbols your TradingView account can chart, so the market list is TradingView’s. What changes from one market to the next is the arithmetic: lot and contract size, the session clock, the costs, and the data feed. This page covers what to set up in each market, and what you still have to account for yourself.
Forex
Positions are sized in lots from the stop distance and your risk, as a fixed amount or a percent of the session balance. For crosses such as EURJPY in a USD account, TestingView stores the conversion rate at entry, so later moves in the conversion pair do not rewrite a closed result.
Data and spread
Spot FX has no single exchange price. Each TradingView FX symbol comes from a specific broker or data provider, and candles from different providers can differ. Backtest the feed closest to where you trade. A candle shows one price per moment, not the bid and ask you would trade, so a candle-based test does not pay the spread by itself.
Sessions
Spot FX trades around the clock on weekdays. If your playbook trades the London or New York open, add those times as predefined pauses and read the results by hour afterward.
Not modeled
Overnight swaps (rollover) are not modeled. If you hold trades for days, include them in your cost figure.
Stocks and ETFs
Positions are sized in shares from the stop distance and your risk. When price gaps through your entry at the open, TestingView opens the trade at the new candle’s open, not at your entry price.
Adjusted prices
Historical stock charts are usually adjusted for splits, and TradingView can also adjust them for dividends. Adjusted candles can show prices that never printed on the day, which matters if your playbook uses absolute levels or round numbers.
Sessions
Pre-market and after-hours bars appear only when the chart shows extended hours. Set the chart to the session your playbook trades before you start the session.
Survivorship
A watchlist built from today’s tickers leaves out companies that were delisted. That is a selection problem in your sample, and no replay tool fixes it.
ETFs are not their index
An ETF has fees, its own trading hours, and can track its index imperfectly. Test the instrument you trade.
Indices, CFDs, and commodities
A cash index such as the S&P 500 is not traded directly. Traders use futures, ETFs, or CFDs on it, and each has its own price, hours, and size per point. Index and commodity CFDs are broker products. Gold and oil also trade as futures and ETFs. TestingView sizes the trade from the symbol you replay, so replay the instrument you actually trade, not the closest-looking chart.