Bar Close vs Intrabar: Choosing How Your Indicator Conditions Evaluate
You set your bot to enter when RSI drops below 30. Simple enough. But there is a hidden question inside that rule that changes when, and even whether, your bot actually trades: do you want it to enter the moment RSI touches 30 while the candle is still forming, or only after the candle closes with RSI still below 30?
Those are two different strategies wearing the same condition. Freya lets you choose per entry condition with one setting: bar close or intrabar. Getting it right is the difference between a bot that acts decisively on real signals and one that gets whipsawed by moves that unwind before the candle even ends.
Key Takeaways
- Bar close evaluates your condition only when the candle closes, so the signal is confirmed and cannot un-happen.
- Intrabar evaluates continuously inside the candle, firing the instant your condition is met, before the candle closes.
- Bar close is slower but stabler; intrabar is faster but can trigger on a level the candle later moves away from.
- Bar close is the default on Freya, and for most indicator strategies it is the safer choice.
- Intrabar suits fast conditions where waiting a full candle would miss the move, at the cost of more false triggers.
- This setting is per condition and applies to candle indicators; webhook triggers do not use it.
This builds on Freya's entry conditions and trigger system. Read that first if multi-condition entries are new.
The examples below illustrate a mechanism, not a recommendation. Faster triggers mean more trades and more noise, not necessarily more profit. Crypto trading can lose money. Read the Risk Disclosure before going live.
What the Two Modes Actually Do
Every candle indicator, like RSI or a moving-average cross, produces a value that moves around while the candle is forming and only settles when the candle closes. The evaluation mode decides which of those values your bot acts on.
Bar close checks your condition once, at the moment the candle closes. If RSI is below 30 at the close, the condition is true and your bot acts. If RSI dipped to 28 mid-candle but recovered to 34 by the close, the condition never fired. The signal is confirmed, and once a closed candle says it happened, it cannot un-happen.
Intrabar checks your condition continuously as the candle forms. The instant RSI ticks below 30, the condition is true and your bot acts, without waiting for the candle to close. It is faster by up to a full candle, but it acts on a value that is still in motion. That same RSI that touched 28 and recovered would have fired an intrabar entry that a bar-close bot correctly ignored.
The Trade-Off in One Picture
| Bar close | Intrabar | |
|---|---|---|
| When it fires | At candle close, confirmed | The instant the level is touched |
| Speed | Slower, up to one candle late | Faster, acts immediately |
| Reliability | Stable; the signal cannot reverse | Can fire on a wick that unwinds |
| False triggers | Fewer | More |
| Best for | Most indicator strategies | Fast moves where a candle of delay is costly |
The core trade-off is confirmation versus speed. Bar close pays for reliability with delay: you always act on a settled signal, but you act late, and on a fast move that full candle can be an expensive wait. Intrabar pays for speed with noise: you catch the move early, but you also catch the fakeouts, the wicks that pierce your level for a second and then reverse.
Why Intrabar Feels Like Repainting
Traders who have been burned by "repainting" indicators are right to be cautious about intrabar. The reason is the same. Inside a live candle, an indicator's value is provisional. RSI can read 29 halfway through the candle and 33 by the close. An intrabar entry acted on the 29 that, in the final closed history, never existed as a closing value.
This is not a bug, it is the nature of acting before confirmation. But it means an intrabar strategy will sometimes take trades that, looking back at the closed candles, seem to have no trigger at all. If that unsettles you, or makes your results hard to reason about, bar close removes it entirely, because it only ever acts on values that are final.
Which to Choose
- Default to bar close. For the large majority of indicator strategies, waiting for the candle to confirm the signal is the right call. It filters out the intrabar noise and makes your bot's behavior match what you see on a closed-candle chart.
- Reach for intrabar deliberately. Use it when a full candle of delay genuinely costs you: a fast breakout condition on a lower timeframe, or a stop-like exit condition where reacting the instant a level breaks matters more than confirmation.
- Match it to your timeframe. On a 1-day candle, bar close can mean waiting many hours; if that delay defeats the strategy, either drop to a lower timeframe or accept intrabar's noise as the cost of speed. On fast timeframes the delay is small, so bar close is usually free.
- Test both. Run the strategy in a backtest with each mode. Intrabar often shows more trades and a lower win rate; whether the extra speed pays is a question only the results answer.
Remember this setting applies to candle indicators. If your entry is a TradingView webhook, the signal timing is decided by your webhook, not by this mode.
Frequently Asked Questions
What is the difference between bar close and intrabar?
Bar close evaluates your indicator condition only when the candle closes, so the signal is confirmed and final. Intrabar evaluates continuously as the candle forms and fires the instant the condition is met, before the candle closes. Bar close is slower but stabler; intrabar is faster but can trigger on a value that the candle later moves away from.
Which one should I use?
Bar close is the default and the safer choice for most indicator strategies, because it acts only on confirmed signals and matches what you see on a closed-candle chart. Choose intrabar only when waiting a full candle would genuinely cost you the move, and accept that it will produce more false triggers in exchange for speed.
Does intrabar cause repainting?
Intrabar acts on an indicator value while the candle is still forming, and that value can change before the candle closes. So an intrabar bot can take a trade that, looking back at the finished candles, appears to have no trigger. It is not a malfunction, it is the cost of acting before confirmation. Bar close avoids it entirely by only using final, closed values.
Does this setting affect webhook triggers?
No. The bar close versus intrabar setting applies to candle indicator conditions like RSI or moving averages. If your entry or exit is a TradingView webhook, the timing of the signal is controlled by your webhook alert, not by this evaluation mode.
