MTF and Repainting

This is the most important page in the manual. If you read one page beyond the Quick Start, make it this one.

Written By Axiom Admin

Last updated About 1 month ago

MTF and Repainting

This is the most important page in the manual. If you read one page beyond the Quick Start, make it this one.

Axiom MA Pro is a multi-timeframe indicator. Every slot can pull data from a higher timeframe than the chart you are viewing. That creates an inherent problem: the higher-timeframe candle may still be forming, and what the indicator shows during formation may not match what it shows after the candle closes. This is the repainting problem, and how you handle it determines whether you can trust what the indicator shows you.


How multi-timeframe data works in this indicator

When a slot has a timeframe set higher than the chart timeframe, the indicator uses TradingView's request.security() to fetch data from that timeframe. The MA calculation and trend detection happen inside the higher-timeframe context β€” the MA is computed on the HTF bars, not computed on chart bars and then sampled.

On your chart, this means the slot's line represents a value that exists on a different time scale. A 1-hour MA shown on a 5-minute chart updates at most once every twelve 5-minute bars (once per hour). Between updates, the line holds flat. This is the staircase appearance described in Quick Start.

The question is: which hour's data does the indicator show? The last completed hour, or the hour that is currently still building?


The On Bar Close setting

Every slot has a toggle called On Bar Close that answers that question.

On Bar Close = On (the default)

The slot uses the previous completed higher-timeframe bar's values. The MA and trend state are locked in β€” they will not change until the next HTF bar closes.

What this means for you:

  • History is reliable. What you see on historical bars is what you would have seen in real time. There is no divergence between live and replay.

  • Backtests are reliable. Any strategy or manual backtesting that relies on this slot's values can trust that the historical picture is accurate.

  • Real-time updates are delayed. The slot's line does not move until the HTF candle closes. If you are watching a 1-hour slot on a 5-minute chart, the line holds flat for up to 59 minutes before updating. This can feel unresponsive, but it is the price of confirmed data.

The staircase appearance is this mode working correctly. Each flat step is a confirmed value that will not change.

On Bar Close = Off

The slot uses the current forming higher-timeframe bar's values. The MA and trend state update continuously as new ticks arrive within the forming HTF candle.

What this means for you:

  • Real-time response is faster. The line moves with the market during the HTF candle's formation. It feels smoother and more current.

  • History and live behavior diverge. The historical chart always shows the final value of each HTF candle β€” the value at the moment the candle closed. But in real time, you saw every intermediate value during the candle's formation. Those intermediate values are gone from the chart once the candle closes. The history looks cleaner than the live experience was.

  • Backtests are unreliable. A backtest replays historical bars. It sees only the final HTF values, not the intermediate values you would have seen live. Any conclusion drawn from a backtest involving this slot is based on information you would not have had in real time.

This is not a theoretical risk. It is the exact failure mode that makes indicators look brilliant in hindsight and mediocre live. The history shows the "right" value at every point because it only records the final answer. In real time, you were watching a moving target.


When turning Off Bar Close off is justified

This is not a setting you should never touch. There are legitimate reasons to turn it off:

  • You are building a real-time monitoring view, not a decision system. You want to see where the 1-hour MA is heading as the candle builds, understanding that the current value is preliminary. This is common for traders who watch a chart continuously during a session and want a sense of direction before the HTF candle closes β€” as long as they treat the reading as a preview, not a verdict.

  • You accept the repainting tradeoff explicitly for one slot while keeping the rest of your stack confirmed. You use the unconfirmed slot as a leading indicator of what the confirmed value might become, not as a substitute for it. The key is that the unconfirmed slot carries low weight or zero weight, and you read it separately from the confirmed stack rather than letting it mix silently into the blend.

  • You are not backtesting and do not plan to evaluate historical performance involving this slot. If the slot is purely a live-session monitoring aid, the fact that history will look different from live experience may not matter to your workflow.

The danger is not in turning it off. The danger is in turning it off and then forgetting β€” or not understanding β€” what that changes about the indicator's reliability. Three months from now, when you are looking at a historical chart and wondering why the blend looks so clean, you may not remember that one slot was unconfirmed during all those sessions.


Mixed confirmation: the real risk

Because On Bar Close is a per-slot setting, you can end up with some slots confirmed and others unconfirmed within the same indicator instance.

This creates a state the indicator does not label and cannot warn you about.

What happens

Imagine this setup:

  • Slot 01: 5-minute SMA, On Bar Close = On (confirmed)

  • Slot 02: 15-minute SMA, On Bar Close = On (confirmed)

  • Slot 03: 1-hour SMA, On Bar Close = Off (unconfirmed)

Slots 01 and 02 show values that are locked in and historically reliable. Slot 03 shows a value that is currently forming and may change before the hourly candle closes.

Now look at what the indicator does with these three values:

  • The Blended MA computes a weighted average of all three slots. It mixes two confirmed values and one unconfirmed value into a single number. There is no marker, no asterisk, no visual difference that tells you the blend is partially unconfirmed.

  • The alignment count checks whether all three slots agree on trend direction. If Slot 03's forming-candle trend state happens to agree with Slots 01 and 02, alignment reads as full. But Slot 03's contribution might reverse when the hourly candle closes, retroactively breaking the alignment that existed live.

  • Alerts fire based on the mixed state. An "All MA Slots Uptrend" alert might fire because the unconfirmed slot's current reading happens to be uptrend β€” a reading that could flip within the same hour.

Why this matters

The blend and alignment are designed to aggregate multiple opinions into a summary. They do their job faithfully β€” they weight the inputs and report the result. But they cannot distinguish between a confirmed input and a speculative one. That distinction exists only in the per-slot On Bar Close setting, which is invisible once the data flows into the aggregate.

If you are making decisions based on the blend or alignment, you need to know whether the aggregate is fully confirmed or partially speculative. The indicator does not tell you. You have to track it yourself.

The backtest trap

This is where mixed confirmation becomes genuinely dangerous rather than just imprecise.

When you look at a historical chart with mixed confirmation, every bar shows final values for every slot. The unconfirmed slot shows what the hourly candle eventually closed at, not what it was showing during formation. The blend and alignment look clean and decisive.

In real time, the unconfirmed slot was fluctuating. The blend was shifting with it. Alignment was forming and breaking and reforming within the same hour. None of that shows up on the historical chart.

If you evaluate this setup by scrolling back through history and saying "look, the alignment was reliable," you are evaluating a picture that did not exist in real time.


How to verify On Bar Close behavior

This walkthrough lets you see the repainting tradeoff with your own eyes.

Step 1: Set up the test

  1. Open a 1-minute chart.

  2. Configure Slot 01: timeframe = 5 minutes, On Bar Close = On.

  3. Make sure the slot is enabled and visible.

Step 2: Watch confirmed behavior

Watch the slot's line during a live 5-minute candle. The line should not move until the 5-minute candle closes. It holds flat as a staircase step. When the candle closes, the line steps to the new confirmed value.

This is the indicator waiting for confirmed data. The staircase is the confirmation in action.

Step 3: Toggle to unconfirmed

Now change Slot 01's On Bar Close to Off.

Watch the same slot's line. It should now update continuously as new ticks arrive within the forming 5-minute candle. The line moves smoothly rather than stepping. It feels more responsive.

Step 4: Compare

Switch back and forth a few times and notice:

  • With On Bar Close on: The line moves in steps. Each step is final. You can trust the history.

  • With On Bar Close off: The line moves smoothly. It looks better in real time. But the smooth line you saw during the candle is replaced by a single final value once the candle closes.

Step 5: Check the history

After watching several candles with On Bar Close off, scroll back on the chart. The historical bars show only the final values. The intermediate values you just watched β€” the line moving up and down during the candle β€” are gone. The history is cleaner than the experience was.

This is what repainting looks like. Not a bug. Not a glitch. Just the difference between what you saw live and what the chart remembers.

Step 6: Understand what this means for decisions

Now imagine you are looking at this chart tomorrow, or next week, and you do not remember which mode was active. The historical chart looks identical in both modes β€” clean staircase steps, each one at the final HTF value. There is no visual marker that says "this slot was unconfirmed when these bars were live." The only way to know is to check the setting. This is why the audit checklist above matters. The chart cannot tell you what you need to know about its own reliability.


How to audit your stack for confirmation integrity

If you want to be confident about the confirmation state of your entire setup, run through this checklist:

  1. Open the Settings panel and check On Bar Close for every enabled slot. Write down which are on and which are off. Do not skip disabled slots β€” check whether any of them used to be enabled and were disabled rather than having their On Bar Close corrected.

  2. If all are on: Your stack is fully confirmed. The blend and alignment aggregate confirmed data. History is reliable. Done.

  3. If some are off: You have mixed confirmation. Note which slots are unconfirmed and what weight they carry.

  4. Check whether the unconfirmed slots dominate the blend. Add up the weights of the unconfirmed slots and compare to the total weight across all contributing slots. If the unconfirmed weight is more than a third of the total, the blend is substantially speculative. If it is more than half, the blend's position and trend vote are both driven primarily by data that may change before the HTF candle closes.

  5. Check alignment exposure. Even a weight-0 unconfirmed slot affects alignment. If Slot 04 is unconfirmed at weight 0, it does not pull the blend β€” but if its trend state fluctuates during the HTF candle, it can break and restore alignment repeatedly within a single HTF period. The "All Uptrend" condition may flash on and off in ways that the confirmed slots alone would not produce.

  6. Decide whether you accept the tradeoff. If the unconfirmed slots are low-weight monitoring slots that you read with awareness and do not rely on for decisions, that may be fine. If you are making decisions based on the blend or alignment, you need every contributing slot to be confirmed β€” or you need to mentally discount the aggregate by the proportion of unconfirmed weight.


A naming note

Some traders call this "repainting" and think of it as a defect. In this context, it is better understood as a choice between two kinds of information:

  • Confirmed: stable, reliable, historically consistent, delayed

  • Live: current, responsive, historically inconsistent, provisional

Both have a place. The problem is not in choosing live data. The problem is in choosing live data and then treating it as if it were confirmed β€” or worse, not knowing which one you chose.

The On Bar Close toggle is how you make that choice deliberately for each slot. The rest of the indicator β€” the blend, the alignment, the alerts β€” simply does math on whatever you give it. The responsibility for knowing what you gave it belongs to you.