How does TradingView's Bar Magnifier change backtest order fills?
Bar Magnifier uses lower-timeframe prices to change how historical strategy orders are simulated within chart bars.
On this page
- What does Bar Magnifier change in a backtest?
- Why can an entry and exit move to the same bar?
- What detail is still missing inside a smaller bar?
- Does the setting cover the whole test period?
- Where is the setting, and what else should stay fixed?
- Is fill detail the same as strategy recalculation?
- Do costs and chart prices change the interpretation?
- How does the fill setting affect a manual parameter sweep?
- How can you explain a changed trade without overstating it?
- Sources
Key takeaways
- Bar Magnifier can change the timing and sequence of simulated fills within a chart bar.
- Lower-timeframe bars add detail, but they do not reconstruct every market event.
- Compare matched tests with the setting off and on, then inspect individual trades.
- Record the fill setting alongside strategy inputs when comparing parameter combinations, so the test conditions remain clear.
What does Bar Magnifier change in a backtest?
Bar Magnifier changes the price detail used to simulate historical order fills by using lower-timeframe prices instead of relying only on the chart bar. A fill is the simulated execution of an order, while a chart bar summarizes price over the interval selected on the chart, leaving much of the movement inside that interval unseen.
TradingView calls its simulation mechanism the broker emulator, and says Bar Magnifier gives it access to price changes from lower intervals during backtesting, which can give the emulator more information about the path taken inside a chart bar. That detail can change the timing or sequence of simulated fills, although it does not establish that the same fill would have been available in a live market.
The distinction matters when several order levels lie within the range of a bar. Its open, high, low and close describe endpoints and extremes, but do not by themselves show the full sequence in which price visited those levels, so a simulated result can depend on the path used to interpret the bar.
The Bar Magnifier documentation describes the setting and gives an example of a changed exit. Use that example to understand the mechanism, rather than assuming that every strategy will respond to the setting in the same way or that a different historical fill is necessarily closer to a live fill.
Why can an entry and exit move to the same bar?
Consider a strategy with a pending entry above the current price and a protective exit below it, where both levels fall within the range of a later chart bar. The exit matters only after the entry creates a position, so the order in which price reaches the levels matters more than the range alone.
TradingView’s published example shows the exit occurring inside the entry bar with Bar Magnifier enabled, while the exit occurs later in the example without it. The lower-timeframe view in that example shows price reaching the entry level and then moving through the exit level, which gives the emulator a different sequence to work with.
This is an illustration of changed timing, not a rule that every entry will close on its entry bar. The orders in a particular strategy still matter: an exit that has not been created cannot be assumed to exist when an earlier price movement occurs, even if that movement reaches the intended level.
When a fill looks surprising, trace order creation and cancellation as well as the price path, rather than treating the chart bar’s high and low as proof of when an order was active. A changed exit may also alter the position state used by later decisions, so begin with the earliest unmatched trade and work forward before trying to explain later differences.
What detail is still missing inside a smaller bar?
A lower-timeframe bar summarizes a shorter period, but it is not a record of every individual transaction within that period. TradingView says the intrabar interval used by Bar Magnifier adjusts with the chart interval, and its documentation lists the intervals, so the detail used for a test depends on the timeframe of the chart.
Even after a larger bar is divided into smaller bars, the sequence of movements inside an individual smaller bar can remain uncertain. The comparison may narrow the question from which level was reached during a long interval to which level was reached during a shorter interval, without resolving every possible ordering inside that shorter bar.
A backtest cannot establish from bar prices alone whether a particular order would have found enough available volume at its simulated price. Real markets can also have gaps, changing spreads and delays, while a test remains a model built from the data and settings available to it, not a complete record of an executable trade.
Treat a more detailed fill as a different simulation, and note the affected dates and order types before drawing a conclusion. If a result does not change, that observation describes the comparison actually made; it does not prove that the setting is irrelevant to other periods, instruments or versions of the same strategy.
Does the setting cover the whole test period?
Coverage deserves a separate check because a long chart history can include bars for which smaller-interval data is not used. TradingView notes that its lower-timeframe request has a limit and that earlier trades on a chart might not be affected by Bar Magnifier, so an enabled setting is not by itself proof of equal coverage throughout the test.
Mark the test period and compare trades near both ends of that range when investigating a difference. An unchanged early trade does not prove that detail was unavailable, since its fill could be the same under both models; investigate coverage alongside the order conditions and the observed path instead of assigning a cause from the trade list alone.
If you shorten the chart history to investigate, record that as a separate experiment and keep the other settings visible. Changing the start of the data can also change a strategy’s calculated state, so a difference between the shorter and longer tests cannot automatically be assigned to the fill setting without further inspection.
Write down any uncertainty about coverage beside the comparison, especially if a reader might otherwise treat the setting label as proof that every historical trade received the same detail. For the separate question of selecting a period, see the backtest date range guide.
Where is the setting, and what else should stay fixed?
TradingView’s support page says the Bar Magnifier option can be toggled in the strategy’s Settings and Properties window. Its strategy manual also describes a high historical bar detail control in the strategy report and Properties settings, so check the current documentation if the labels in your interface differ from those in a saved note.
Before changing fill detail, record the strategy version, symbol, chart type, timeframe, test period and input values, along with execution properties and cost assumptions. Changing several things at once makes a difference harder to explain, while a screenshot and a written record give you distinct ways to identify the setup later.
Run the same setup with the setting off and on, without changing orders or inputs between the tests. Label the records by fill setting rather than by a judgement about which result looks better, and inspect individual trades before using a summary to explain a difference.
The strategy properties page and the strategy manual describe the relevant controls. The TradingView Strategy Tester article provides context for inspecting simulated trades, but a trade displayed in a historical report is still not evidence that the same order filled in a live market.
Is fill detail the same as strategy recalculation?
Fill detail and strategy recalculation answer different questions about a test. Fill detail concerns the price information used to simulate an order, while recalculation concerns when the script evaluates its logic and can create or change orders, so a more detailed path cannot fill an order before the strategy makes it available.
TradingView says its after-order-fill recalculation option allows an additional intrabar calculation immediately after an order fills. It also says the realtime tick calculation option does not affect strategy behavior on historical bars, so those controls need their own notes rather than being treated as another name for Bar Magnifier.
Imagine a strategy that creates an exit only after calculating the entry price. Whether that exit is available during the entry bar depends on the script and its calculation settings, and a changed entry may affect a later calculation, so trace the order sequence rather than assuming the cause from the final trade list.
Keep recalculation settings unchanged for the initial off-and-on comparison, then make a separate test if calculation timing remains unclear. Label that test as a different question, and preserve the original records so a changed fill model is not confused with a changed calculation setting.
TradingView’s Pine execution model describes how a script runs across the bars in a dataset. That context helps when reading the strategy’s logic, because the timing of a calculation and the timing of a simulated fill are related but distinct parts of the test.
Do costs and chart prices change the interpretation?
Fill detail is only part of the model used to represent execution in a backtest. Commission is a trading fee, while slippage is a difference between an expected price and a fill price, so neither assumption disappears simply because the simulated price path has been examined in more detail.
TradingView lists commission and slippage as strategy properties, and says its limit-order verification setting makes limit fills more strict. A limit order has a price condition, so that setting can matter when comparing trades that use such orders; record the properties with the fill setting instead of silently changing them between runs.
Chart type matters as well. TradingView’s strategy manual warns that non-standard chart prices are synthetic by default and may not represent market prices, so more fill detail does not settle whether the strategy’s inputs and decisions were based on suitable prices; inspect the chart and applicable settings before explaining a changed trade.
The guide to modeling slippage and commission covers those cost assumptions in more depth. For this comparison, hold costs and chart configuration constant, describe what changed when historical fill detail changed, and keep the remaining limits of the test visible rather than treating a single switch as a complete execution model.
How does the fill setting affect a manual parameter sweep?
A parameter is an input value that changes a strategy’s behavior, such as the distance used for an exit. A parameter sweep repeats a backtest across combinations of those values and records each test, making it possible to compare the combinations only when the surrounding conditions are understood.
For a hand-run sweep, make a row for each combination and include the strategy version, test period, chart configuration, cost assumptions and Bar Magnifier state. Keep the fill state fixed during the initial sweep, because otherwise a difference between rows might come from the simulation setting rather than the input values being examined.
If a combination warrants closer inspection, repeat that exact combination with the other fill setting and compare its trades as a paired check, not as a continuation of the original sweep. Note the earliest changed entry or exit and whether subsequent differences appear to follow from the changed position state.
TradingTune is a free Chrome and Brave extension that automates TradingView strategy optimization. When a search replaces repeated manual tests, the same record-keeping principle applies: keep assumptions visible and check the surrounding configuration before attributing a changed result to an input, especially when reviewing a run later.
The manual parameter sweep article describes the hand-workflow in more detail, including the repeated work that makes clear notes useful when a trader wants to revisit a comparison.
TradingTune for Chrome
Stop tuning your strategy's inputs by hand.
Free tier, no API keys. A free account is required to run. Not affiliated with TradingView, Inc.
How can you explain a changed trade without overstating it?
Start with the order that differs, rather than a summary metric, because an individual order gives you a concrete sequence to inspect. Record when it was created, its type and price condition, and whether a position was already open, then compare the entry and exit sequence under each fill setting with the same period and inputs.
For an exit that moves into the entry bar, ask whether the exit was active after the entry and whether the smaller bars support that ordering. A visible touch of an intended level is not enough to explain a fill if the order was not yet active, so trace the strategy’s order logic before attributing the change to price detail alone.
If the trade lies near the start of a long history, include the coverage question in the note as well. An unchanged trade does not settle that question, and a changed trade still needs to be read alongside the order conditions and the configuration used for both tests.
A useful conclusion says that the simulated trade changed under a different historical fill model and identifies the observed sequence that led you to inspect it. Also record what remains unknown, such as the path within a smaller bar or whether a live fill was available at the modeled price, so the explanation stays within the evidence.
If the comparison exposes a broader setup problem, treat it as a separate research question and preserve both test records for review. The common backtesting mistakes guide covers other checks that can affect interpretation, without requiring a later reader to rely on memory of the original setup.
Sources
TradingTune for Chrome
Stop tuning your strategy's inputs by hand.
TradingTune runs systematic parameter searches on your own TradingView strategy, right inside the chart page. You keep the strategy, you read the results.
Free tier, no API keys. A free account is required to run. Not affiliated with TradingView, Inc.
TradingTune for Chrome
Stop tuning your strategy's inputs by hand.
TradingTune runs systematic parameter searches on your own TradingView strategy, right inside the chart page. You keep the strategy, you read the results.
Free tier, no API keys. A free account is required to run. Not affiliated with TradingView, Inc.
TradingTune for Chrome
Stop tuning your strategy's inputs by hand.
TradingTune runs systematic parameter searches on your own TradingView strategy, right inside the chart page. You keep the strategy, you read the results.
Free tier, no API keys. A free account is required to run. Not affiliated with TradingView, Inc.
TradingTune for Chrome
Stop tuning your strategy's inputs by hand.
TradingTune runs systematic parameter searches on your own TradingView strategy, right inside the chart page. You keep the strategy, you read the results.
Free tier, no API keys. A free account is required to run. Not affiliated with TradingView, Inc.
TradingTune for Chrome
Stop tuning your strategy's inputs by hand.
TradingTune runs systematic parameter searches on your own TradingView strategy, right inside the chart page. You keep the strategy, you read the results.
Free tier, no API keys. A free account is required to run. Not affiliated with TradingView, Inc.