TradeReign
Back to HomeEducation HubCompatibilityAboutDisclosures
TradingView Futures

TradingView Strategy Tester for Futures Check Backtest Costs and Order Fills

Start with a dated contract and a short period you can review. Save the symbol, session, interval and script settings with the report. This makes it possible to compare two runs when you change a single assumption.

Quick Answer

Add a strategy to a standard candles chart and open Strategy Report, formerly Strategy Tester. In the strategy’s Settings → Properties, verify position size, commission and slippage. Then open Trades and reconcile an entry and exit using that contract’s tick value and the simulated fill prices.

Start 7-Day TrialMore Guides

Compare standard and Heikin Ashi fill prices

Synthetic MES 5-minute candles. Times are bar closes in ET.

The invented raw 9:45 bar opens at 6,004.00 and trades no lower than that price. Under the drill’s default next-bar fill timing, a market buy submitted on the 9:40 close uses the 9:45 bar’s open before any modeled slippage.

Synthetic MES charts compare a standard fill at 6,004.00 with a Heikin Ashi fill at 6,001.75 for the same buy signal.
Both panels use the same price scale. The markers show each modeled fill at the open of the bar ending at 9:45 a.m. ET.

Commission

Enter a per-side amount when using currency per contract. The simulator applies it to both sides.

Slippage

Enter ticks for modeled market and stop fills.

Bar detalization

The current control for historical intrabar detail, previously called Bar Magnifier.

Comparison

Reconcile one hypothetical MES trade

Suppose one MES long has a market entry that would otherwise fill at 6,000.00 and a stop-market exit that would otherwise fill at 5,996.00. MES is $5 per point and $1.25 per tick.

One completed trade
No costs modeled
One tick per fill and $0.65 per side
Simulated buy fill
6,000.00
6,000.25
Simulated sell fill
5,996.00
5,995.75
P&L at those fill prices
−$20.00
−$22.50
Modeled commission
$0.00
$1.30
Net result
−$20.00
−$23.80

These prices and fees are hypothetical. If your own report already shows net P&L, use it as reported when reviewing the trade. Slippage is already reflected in the modeled fill prices.

Set up a repeatable futures backtest

Open Supercharts on your intended futures symbol and interval. In Indicators → Technicals → Strategies, add a built-in strategy for a practice run or add the Pine strategy you intend to test. A strategy opens the report below the chart. An indicator on its own only supplies chart data or signals.

Open Settings → Properties for the strategy. Confirm the account currency, initial capital, intended order quantity and margin assumptions. Check the actual quantity shown in Trades because a script can set order size itself. Record the dated contract, session and date range before running comparisons.

For an all-in fee quoted per contract per round trip, divide it by two before entering the Currency per contract commission setting. Include the costs you actually intend to model. A hypothetical $1.30 round trip is $0.65 per side. Enter slippage in ticks. TradingView applies the same setting to market and stop orders. Fixed slippage approximates an execution cost and does not predict an actual fill.

Find Bar Magnifier in the current Strategy Report

Look for Bar detalization in the strategy’s Properties or at the top of Strategy Report. TradingView replaced the old Bar Magnifier checkbox with this menu. Where High is available on your plan, it uses lower-timeframe prices when available to model historical fills in more detail.

Use a trade whose stop and target both fall inside the same chart candle to see why detail matters. If both orders were already working, the candle’s high and low alone cannot tell you which price came first. Compare the trade list with and without higher detail, using identical inputs otherwise. Higher detail can change the modeled order sequence. It still uses available historical bars.

TradingView documents a maximum of 200,000 requested lower-timeframe bars. Earlier trades may fall outside that coverage and use the default fill assumptions. Compare specific trades near the newest and oldest parts of the same test before treating High as a uniform change across the report.

Record Script execution settings along with bar detail. The default calculation runs after a completed bar, and a newly generated market order generally fills at the next available tick. On a historical bar-close test this usually means the next bar’s open. Other execution options can change when the script runs or how quickly an order can fill.

Check Limit order execution in TradingView

Open the strategy’s Settings → Properties and look for Limit order execution. Older help calls it Verify Price For Limit Orders. TradingView’s current Pine docs describe choices for filling when price reaches the limit or goes one tick beyond it. Pine uses backtest_fill_limits_assumption to set the default. For a buy limit, one tick beyond means one tick lower. For a sell limit, it means one tick higher.

Assume the same 6,000.00 MES buy limit is working before all four bars in the chart. The bar ending at 9:40 a.m. ET first reaches the limit. The 9:50 bar first trades one tick lower, at 5,999.75. The two settings can therefore record the entry in different bars. The verified model still records the order’s limit price of 6,000.00. If the strategy cancels an unfilled order at the 9:45 close, the one-tick version has no entry in this scenario.

Compare the two settings over the same dates. Keep Bar detalization, costs, and strategy inputs fixed. In Trades, record the changed entry time or the missing trade before comparing totals. A tick-through rule models price movement past your limit. It does not supply exchange queue position or a broker fill.

Compare a limit touch with a one-tick trade-through

Synthetic MES 5-minute candles. Times are bar closes in ET.

The 9:40 ET bar touches the 6,000.00 order price. The 9:50 bar is the first to reach 5,999.75, one tick beyond the buy limit.

Check Heikin Ashi fills against standard OHLC

In the chart exercise, hold the buy decision fixed to isolate the fill model. The Heikin Ashi series starts with an assumed previous open and close of 6,000.00. Assume a market entry on the next bar’s open and no modeled slippage. The standard candle ending at 9:45 opens at 6,004.00. Heikin Ashi takes its open from the previous Heikin Ashi open and close. Here 6,000.50 and 6,003.00 average to 6,001.75. That synthetic price is nine MES ticks, or $11.25 per contract, below the standard open.

To compare the fill models on a Heikin Ashi chart, open the strategy’s Settings → Properties and select Standard bars under Heikin Ashi mode. Older help calls this Using standard OHLC. Keep the symbol, dates and other settings fixed, then compare the simulated entry price in Trades. The candle marked Fill bar is labeled by its close time. In this example its modeled entry is at the bar’s open.

Standard bars changes which prices the emulator uses for fills. A script reading Heikin Ashi chart data can still calculate its signals from those transformed values. For a second comparison, switch the whole chart to standard candles and check whether the signals themselves change. Review the realized execution separately if you compare with broker fills.

Why TradingView strategy results can change after a reload

Open the strategy’s Settings → Properties → Script execution. On realtime bar tick corresponds to calc_on_every_tick in Pine. Older help calls it On every tick. With it enabled, a strategy can recalculate on live updates before the chart bar closes. After reload, the elapsed bars are historical and do not preserve the earlier live updates.

The rule in the chart below checks the current close strictly above 6,001.00. The same finished candle has a high of 6,002.00 and a close of 6,000.50 in all three views. For the close-only view, both On history bar tick and On order fill are off.

On history bar tick can run the script on modeled historical updates for eligible plans and standard charts. Default Bar detalization uses an assumed OHLC path. High detail can use available lower-timeframe data. Neither recreates the original live feed. TradingView also documents that barstate.isconfirmed stays true during these historical intrabar calculations, so it alone does not enforce a close-only test in this mode.

Audit On order fill separately from Order execution delay. One controls additional recalculations after simulated fills. The other controls when orders created on a closing tick can first fill. For a controlled check, record the dated contract, interval, script version, Properties settings and simulation or notification timestamp before refreshing. After that bar closes, reload and compare the same bar and Strategy Report entry. If an alert is involved, check Alerts Log and the saved alert inputs.

Compare one MES bar live and after reload

Synthetic MES 5-minute candles. Times are bar closes in ET.

At a fictional update at 9:42 ET, the developing candle’s close is 6,001.50. The strict close-above-6,001.00 check is true at that update. The marker sits on the bar ending at 9:45, not at the minute of the update.

Audit the trade list before trusting the summary

In Trades, pick an entry and exit. Record the type, time, fill price, quantity and net result. Compare the multiplier and tick conversion against the product spec. If your report differs from your hand calculation, check the order type, modeled fill timing, price and commissions before changing the strategy rules.

Run the same dates again with one added cost or a different fill-detail setting. Compare trade count, net P&L and drawdown and inspect individual trades that changed. Then keep the chosen assumptions fixed while checking a separate period. A historical backtest is a simulation and can miss live liquidity, gaps and variability in execution.

Sources

Official References

Platform details on this page were checked against these official resources.

TradingView Strategy Report setupFind built-in strategies and the report’s trade list and settings.TradingView Limit order executionCurrent Properties control, the Pine parameter, and the fill-price and timing trade-off.TradingView strategy propertiesVerify commission modes, slippage units and order settings.TradingView Heikin Ashi mode and standard fillsFind the current Properties setting that uses standard bars for simulated fills.TradingView Heikin Ashi candle calculationCheck how each open, high, low, and close is constructed.TradingView broker emulator and bar detailCheck how High detail changes the historical input series.TradingView strategy repainting after refreshWhy historical and live script calculations can give different results.TradingView Pine strategy execution FAQWhen live recalculation and ways of processing orders can each affect a comparison.TradingView On history bar tickHistorical tick assumptions, bar-state behavior, and the role of Bar detalization.CME MES contract specificationsVerify the contract multiplier and tick increment.
Related Guides

Keep Building the Rule System

Calculate MAE and MFE for a futures trade

Measure the worst and best price moves during the trade using a worked MES chart.

Compare NinjaTrader limit fills on the same bars

Check the Strategy Analyzer’s touch setting and the default trade-through rule.

Convert futures ticks and points to dollars

Check the simulated move and tick value for MES, MNQ, ES or NQ.

Calculate average net P&L per trade

Compare the results of closed trades on the same cost basis.

Write rules you can test consistently

Define which decisions are mechanical and which depend on judgment.

Check a TradingView strategy alert fill price

Match the signal close, strategy alert price, and broker execution record.

Review historical bars manually

Advance one bar at a time to audit when the rules qualified.

FAQ

Common Questions

Where is TradingView Strategy Tester now?

TradingView calls it Strategy Report. It opens below Supercharts after you add a strategy. Open Trades to review individual simulated orders.

Where did Bar Magnifier go?

TradingView replaced the former checkbox with the Bar detalization menu. Look in the strategy’s Properties or at the top of Strategy Report.

Can TradingView backtest Heikin Ashi using standard OHLC?

Yes. On a Heikin Ashi chart, select Standard bars in the strategy’s Heikin Ashi mode setting under Properties. It changes the simulated fill prices. A script reading the transformed chart can still use that data for its signals.

Is TradingView backtest slippage in points or ticks?

The input uses ticks for simulated market and stop fills. One MES tick is 0.25 index points or $1.25 per contract.

Can Bar Magnifier reproduce a signal that disappeared after reload?

Bar detalization provides modeled historical price detail. On history bar tick can expose that detail to the script, but the available history does not restore the original updates that On realtime bar tick saw.

Risk Disclosure

Futures trading contains substantial risk and is not suitable for every investor. TradeReign is a trading-discipline and rule-enforcement application. It does not provide trading advice, trade signals, investment recommendations, or performance guarantees.

TradeReign is not a broker-dealer, futures commission merchant, or investment advisor.

Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Only risk capital - money that can be lost without jeopardizing financial security or lifestyle - should be used for trading. Past performance is not necessarily indicative of future results.