Editors' picks
OPEN-SOURCE SCRIPT
Updated

Focus Bars [Kioseff Trading]

21 930
Hello Traders!

🔹Focus Bars

Focus Bars is a lower-timeframe reconstruction tool designed to break each candle into a price-based internal structure.

Instead of viewing a bar as a single OHLC print, this tool redistributes intrabar participation across price levels, showing where activity, delta, and directional pressure concentrated inside the bar itself.

Think of it as a way to look inside the candle.

  • intrabar participation distributed by price level
  • buy vs sell pressure mapped inside each bar
  • delta-driven visualization of internal structure
  • volume-based or delta-based profile sizing
  • stacked recent bars for direct comparison
  • lower timeframe reconstruction of candle internals (up to 1 tick)


🔹What the tool shows

🔸Focus Bar Structure

Each visible bar is reconstructed using lower timeframe data and divided into configurable price rows.

This allows the script to build an internal map of activity inside the candle, showing how participation distributed throughout its range.
This helps reveal:

  • where activity concentrated inside the bar
  • which price regions attracted the most interaction
  • how the bar built from low to high


snapshot

🔸Directional participation

The script estimates directional pressure using lower timeframe price movement and distributes that pressure across the bar’s traded range.

This allows you to observe:
  • where buying pressure was strongest
  • where selling pressure dominated
  • how directional activity distributed through the candle


Instead of treating the candle as one net result, Focus Bars breaks it into a layered participation structure.

🔸Volume mode

In its default form, the profile width reflects total intrabar participation at each price level.

This helps identify:
  • high activity zones inside the bar
  • areas where the market spent more effort
  • internal high-interest regions


This mode focuses on where the bar traded most actively, regardless of which side was dominant.

snapshot

🔸Delta Bars mode

When Delta Bars mode is enabled, the visualization shifts from general activity to directional imbalance.

Positive delta levels extend one way, while negative delta levels extend the other, helping expose where directional pressure accumulated inside the bar.

This makes it easier to see:
  • which prices were dominated by buyers
  • which prices were dominated by sellers
  • where internal imbalance became most extreme


This mode is about pressure and imbalance, not just participation.

snapshot

🔸Recent bar stacking

The script displays multiple recent reconstructed bars side by side, allowing you to compare internal structure across the most recent candles.

This helps reveal:

  • whether participation is shifting higher or lower
  • whether recent bars are building similarly or differently
    [**]how internal pressure changes from one bar to the next


Rather than looking at candles in isolation, you get a stacked structural view of recent bar development.

🔸Price-row resolution

Each bar is divided into a configurable number of rows.
Higher row counts provide finer structural detail, while lower row counts simplify the visualization.

This lets you control the balance between:

  • detail
  • clarity
  • performance


🔸Lower timeframe reconstruction

The script uses lower timeframe data to estimate how participation distributed through each candle.

Granularity can be selected between:

  • 1-minute
  • 1-second
  • 1-tick

This allows the internal structure to become more detailed as lower granularity data becomes available.

🔸Buy / sell volume labels

Each price row includes separate displayed values for:
  • sell-side participation
  • buy-side participation


This gives a direct read on how activity distributed at each level, rather than relying only on color or profile width.

🔸Gradient-based intensity

Color gradients help represent the magnitude of participation and directional pressure at each price level.

This makes it easier to spot:
  • high-intensity zones
  • low-interest areas
  • strong directional concentrations


Stronger color intensity reflects stronger internal participation or imbalance.

🔹How to read it

Each component gives a different layer of information:
Candle body / wick → the outer structure of the bar
Profile width → where participation concentrated
Delta mode → where directional imbalance built
Buy / sell labels → how each side contributed at a level
Stacking → how internal structure changes bar to bar

🔹Why this tool is useful

It gives you:
  • a way to look inside candles instead of only at candle outcomes
  • price-based intrabar participation mapping
  • clear visualization of internal volume and delta structure
  • context for where buying or selling pressure concentrated
    [**]a deeper structural view of recent bar development

🔹Best use cases
  • analyzing internal candle structure
  • comparing recent bars side by side
  • spotting hidden participation concentrations
  • finding where directional pressure built inside a move
    [**]adding lower-timeframe context to bar-by-bar analysis

🔹Important note

This tool uses lower timeframe data to reconstruct intrabar structure.
This means:
  • it is an approximation of internal order flow
  • accuracy depends on available lower timeframe data
  • selected granularity impacts precision
  • different symbols and data feeds may produce different levels of detail

🔹Inputs you can customize

The script includes flexible controls such as:
  • granularity selection
  • bar count to display
  • row resolution
  • volume mode vs Delta Bars mode
  • color customization
  • display offset

Closing Notes

Focus Bars is built to shift the focus from how a candle finished to how it developed internally.

It helps reveal not just what the bar looked like from the outside, but where participation and pressure were concentrated inside it.
Thank you for checking it out!


Release Notes
Changed default color scheme
Release Notes
Added additional lower timeframe option
Release Notes
Made delta bars the default option - sorry for mass updates
Release Notes
Updating main chart image to be compliant with house rules!
Release Notes
Updated chart image for compliance

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.