OPEN-SOURCE SCRIPT
Sin RSI Footprint

■ Overview
The Sin RSI Footprint【ALT_analyst】 indicator brings the concept of footprint charting to momentum oscillators.
Instead of mapping trading volume at price levels, this script peers inside the current higher-timeframe candle to map the internal momentum using Lower Timeframe (LTF) RSI data.
By visualizing exactly where and how momentum was distributed within a single bar, traders can identify hidden exhaustion, hidden accumulation/distribution, and intra-bar divergences that are invisible on standard charts.

■ Core Modes & How It Works
The script utilizesPine Script® to fetch an array of LTF RSI and Close prices for the duration of the current chart's bar. It then processes this data in one of two distinct visualization modes:
1. Matrix Mode (Traditional Price Level)
This mode acts like a traditional footprint or volume profile, but for RSI.

■ The Calculation
The script divides the high-to-low range of the current candle into user-defined bins (e.g., 10 rows). It calculates the step size:
Pine Script®
For each LTF data point, it determines the correct row using:
Pine Script®
Why this calculation is used
To map momentum to specific price levels, allowing you to see if buyers or sellers were exhibiting strong momentum at the extremes or the middle of the candle.
Actual Output Values
The script outputs an averaged RSI value (ranging from 0.00 to 100.00) for each specific price row. The boxes are colored based on this average (0-9 for extreme oversold, 90-100 for extreme overbought).
2. Stack Mode (Vertical Momentum)
This mode stacks LTF RSI prints vertically above or below the candle based on a baseline threshold.

■ The Calculation
By default, if the LTF RSI is > 50, it is categorized as bullish and stacked above the candle's high. If <= 50, it is stacked below the candle's low. The height of each box is calculated dynamically using:
Pine Script®
Why this calculation is used
Separating prints above and below the candle isolates bullish vs. bearish momentum bursts. Using ATR for box height ensures the boxes remain visually proportionate across different assets and timeframes regardless of absolute price volatility.
Actual Output Values
The output generates box coordinates (Top, Bottom, Left, Right) relative to the chart's price scale. The text inside represents the exact LTF RSI value at that sequence point (e.g., 72, 34).
■ Key Features
Noise Filter (Hide Range): Clean up the chart by hiding neutral RSI values (e.g., hiding everything between 40 and 60). This leaves only the significant momentum extremes visible.
Highlight & Enlarge: Automatically expand the width and height of boxes that contain extreme RSI readings (e.g., > 80 or < 20) to instantly draw your eye to critical exhaustion points.
Compression Logic: Consecutive LTF RSI prints that fall into the same color tier and threshold are grouped into a single, taller block to prevent chart clutter.
Custom Color Themes: Choose from Normal, Aurora, Rainbow, or Monochrome to suit your chart background.
Rendering Modes: Includes a Real-time mode for live trading and an "Ultra-Light" Historical Camera Track mode to efficiently review past data without exceeding Pine Script's drawing limits.
■ How to Use
1. Spotting Reversals (Matrix Mode)
Look for deep red (overbought) RSI footprints concentrated at the very top of a bullish candle. If the next candle fails to break that high, it suggests momentum exhaustion at resistance.
2. Confirming Breakouts (Stack Mode)
When price breaks a key level, look at the Stack Mode. A large stack of green/blue boxes above the candle confirms sustained LTF bullish momentum driving the move, rather than a single anomalous tick.
3. Filtering Noise
Set the "Hide Range" to 35-65. The indicator will now only display footprint boxes when the LTF RSI reaches true overbought/oversold extremes, making it highly effective for identifying turning points.

■ Developer's Note
As a fundamental characteristic of the RSI, momentum patterns observed on higher timeframes tend to carry greater reliability due to the natural reduction of market noise. To capture the purest momentum shifts, it is recommended to begin your analysis on larger timeframes.
Disclaimer: This script maps mathematical momentum and does not guarantee future price movements. It is best used in conjunction with price action and broader market context.
The Sin RSI Footprint【ALT_analyst】 indicator brings the concept of footprint charting to momentum oscillators.
Instead of mapping trading volume at price levels, this script peers inside the current higher-timeframe candle to map the internal momentum using Lower Timeframe (LTF) RSI data.
By visualizing exactly where and how momentum was distributed within a single bar, traders can identify hidden exhaustion, hidden accumulation/distribution, and intra-bar divergences that are invisible on standard charts.
■ Core Modes & How It Works
The script utilizes
request.security_lower_tf
1. Matrix Mode (Traditional Price Level)
This mode acts like a traditional footprint or volume profile, but for RSI.
■ The Calculation
The script divides the high-to-low range of the current candle into user-defined bins (e.g., 10 rows). It calculates the step size:
step = (high - low) / Matrix Rows
For each LTF data point, it determines the correct row using:
math.floor((close - low) / step)
Why this calculation is used
To map momentum to specific price levels, allowing you to see if buyers or sellers were exhibiting strong momentum at the extremes or the middle of the candle.
Actual Output Values
The script outputs an averaged RSI value (ranging from 0.00 to 100.00) for each specific price row. The boxes are colored based on this average (0-9 for extreme oversold, 90-100 for extreme overbought).
2. Stack Mode (Vertical Momentum)
This mode stacks LTF RSI prints vertically above or below the candle based on a baseline threshold.
■ The Calculation
By default, if the LTF RSI is > 50, it is categorized as bullish and stacked above the candle's high. If <= 50, it is stacked below the candle's low. The height of each box is calculated dynamically using:
box_height = ATR * Box Height Multiplier
Why this calculation is used
Separating prints above and below the candle isolates bullish vs. bearish momentum bursts. Using ATR for box height ensures the boxes remain visually proportionate across different assets and timeframes regardless of absolute price volatility.
Actual Output Values
The output generates box coordinates (Top, Bottom, Left, Right) relative to the chart's price scale. The text inside represents the exact LTF RSI value at that sequence point (e.g., 72, 34).
■ Key Features
Noise Filter (Hide Range): Clean up the chart by hiding neutral RSI values (e.g., hiding everything between 40 and 60). This leaves only the significant momentum extremes visible.
Highlight & Enlarge: Automatically expand the width and height of boxes that contain extreme RSI readings (e.g., > 80 or < 20) to instantly draw your eye to critical exhaustion points.
Compression Logic: Consecutive LTF RSI prints that fall into the same color tier and threshold are grouped into a single, taller block to prevent chart clutter.
Custom Color Themes: Choose from Normal, Aurora, Rainbow, or Monochrome to suit your chart background.
Rendering Modes: Includes a Real-time mode for live trading and an "Ultra-Light" Historical Camera Track mode to efficiently review past data without exceeding Pine Script's drawing limits.
■ How to Use
1. Spotting Reversals (Matrix Mode)
Look for deep red (overbought) RSI footprints concentrated at the very top of a bullish candle. If the next candle fails to break that high, it suggests momentum exhaustion at resistance.
2. Confirming Breakouts (Stack Mode)
When price breaks a key level, look at the Stack Mode. A large stack of green/blue boxes above the candle confirms sustained LTF bullish momentum driving the move, rather than a single anomalous tick.
3. Filtering Noise
Set the "Hide Range" to 35-65. The indicator will now only display footprint boxes when the LTF RSI reaches true overbought/oversold extremes, making it highly effective for identifying turning points.
■ Developer's Note
As a fundamental characteristic of the RSI, momentum patterns observed on higher timeframes tend to carry greater reliability due to the natural reduction of market noise. To capture the purest momentum shifts, it is recommended to begin your analysis on larger timeframes.
Disclaimer: This script maps mathematical momentum and does not guarantee future price movements. It is best used in conjunction with price action and broader market context.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Script Developer.
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Script Developer.
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
I specialize in pushing basic, fundamental concepts to their absolute limits. Dedicated to engineering noise-free indicators that reveal true market mechanics and logical edges. Clarity over https://clutter.https://www.youtube.com/@alt.analyst
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.