OPEN-SOURCE SCRIPT
Aktualisiert Renko Heatmap Pro [MarkitTick]

💡 Multi-faceted trend analysis and price action visualization system engineered to filter out time-based market noise and strictly highlight price momentum. By computing synthetic Renko bricks directly on your traditional time-based chart, this tool overlays a completely volatility-adjusted perspective of the market. It seamlessly integrates a streak-based momentum heatmap, dynamic support and resistance tracking, and a comprehensive risk-management dashboard into a single, cohesive interface. This allows analysts to visualize trend maturity, identify precise structural shifts, and monitor key risk metrics without relying on lagging, time-dependent oscillators.
✨ Originality and Utility
Standard charting relies on fixed time intervals, which often introduces "noise"—price fluctuations that occur simply because time is passing, not because structural momentum is shifting. The utility of this indicator lies in its ability to reconstruct the market using Average True Range (ATR) based Renko methodology natively over standard candlesticks.
What sets this script apart is its Streak Engine and Gradient Color framework. Instead of merely showing bullish or bearish states, the indicator quantifies trend depth. It tracks consecutive directional blocks and dynamically adjusts the visual weighting (heatmap) based on the longevity of the trend. This is further hybridized with an automated risk-management engine that calculates dynamic Stop Loss (SL) and Take Profit (TP) levels, alongside trailing stops and historical support/resistance levels that visually "fade" as they age. This creates an all-in-one suite for trend-following and structural analysis.
🔬 Methodology and Concepts
● Renko Ticker Construction
The script bypasses standard open, high, low, close (OHLC) bar data for its core signals, instead utilizing a secondary data request to construct ATR-based Renko blocks. A Renko brick is only formed when price moves a specified distance, completely disregarding the time it takes to make that move. In this system, the brick size is defined by the ATR, ensuring the threshold adapts to current market volatility.
● The Streak Engine
Every time a new Renko brick is formed in the same direction as the previous one, the internal streak counter increases. If a bullish brick follows a bullish brick, the count iterates upward. If a bearish brick prints, the bullish streak breaks, resetting the count and initiating a bearish streak. This creates a quantitative measure of trend duration and exhaustion.
● Dynamic Risk Management Engine
Using the confirmed close of the previous Renko block, the system calculates algorithmic risk parameters. Stop Loss and Take Profit levels are calculated as distinct ATR multiples extending outward from the confirmed entry price. A trailing stop is also maintained, dynamically tightening behind the trend (higher in a bull trend, lower in a bear trend) and only resetting when the Renko structure reverses.
● Historical S/R Decay Logic
When a reversal occurs, the open price of that reversal block is recorded as a structural pivot. The indicator logs this price point and tracks its age (in bars). As time progresses, the visual representation of this level fades out, acknowledging the market theory that older, untested levels gradually lose their structural relevance compared to fresh pivots.
🎨 Visual Guide
● Heatmap Candles
● Structural Plot Lines
● On-Chart Shapes and Labels
● The Dashboard Panel
Located in the top right corner, this heads-up display provides real-time quantitative metrics:
📌 Important note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
● Trend Identification and Exhaustion
Traders can monitor the Heatmap Candles to gauge both direction and maturity. When the candles transition from their starting colors (dark blue / deep red) to their terminal colors (bright cyan / bright orange), it indicates that the trend streak is becoming highly extended. An extended streak does not automatically imply a reversal, but it suggests momentum has been sustained for an extended period, which may precede a consolidation or pullback.
● Entry and Execution
A primary use case is waiting for a confirmed trend shift. When a reversal is validated, the indicator plots the Reversal Close Circle and the ▲ BUY / ▼ SELL shape. Traders can use the Dashboard Panel to immediately read the calculated Entry, SL, and TP prices.
● Managing Risk In-Trade
Once a position is active, the Trailing Stop dashed line provides a dynamic, structural level to trail a stop-loss. Additionally, traders can monitor price action as it approaches the historical dotted S/R lines. If price approaches a sharply colored (recent) S/R line, higher friction is expected. If it approaches a heavily faded (old) line, the level may carry less structural weight.
Note on Data Resolution: Because this tool queries secondary Renko data using the current chart's resolution and employs lookahead functionality on historical data, real-time current-bar fluctuations may briefly cross thresholds before closing. Decisions should strictly be made on confirmed bar closes, as indicated by the script's internal logic.
⚙️ Inputs and Settings
● ◈ Renko
● ◈ Visuals
● ◈ Risk Management
● ◈ Structure Analysis
● ◈ Webhook Actions
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Market Noise and the Random Walk
In quantitative finance, high-frequency price data is often modeled with components of a Brownian motion or a Random Walk, where short-term movements contain significant "noise" (stochastic variation) independent of the underlying drift (trend). Standard time-based sampling captures all of this variance. By utilizing a Renko construction, this indicator applies a discrete filtration mechanism. It mathematically suppresses localized stochastic volatility by requiring price to traverse a minimum Euclidean distance (the ATR block size) before registering a state change.
● Volatility Clustering and Adaptive Thresholds
Mandelbrot and subsequent econometricians noted that market volatility clusters—periods of high variance are followed by high variance. Using a static brick size in Renko fails to account for leptokurtic market distributions. By anchoring the block size to the Average True Range, the indicator's filtration threshold becomes adaptive. During periods of volatility expansion, the required threshold widens, preventing the streak engine from being whipsawed by natural variance expansion.
● Momentum Decay and Mean Reversion Probability
The Gradient Streak Depth concept relies on the statistical premise of mean reversion following extended standard deviations from a mean. While trends can persist, the probability of a structural pullback increases as the streak count grows. The heatmap visually represents this probability density—translating a quantitative sequential count into a qualitative visual exhaustion metric, aiding in the assessment of asymmetric risk distribution.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
✨ Originality and Utility
Standard charting relies on fixed time intervals, which often introduces "noise"—price fluctuations that occur simply because time is passing, not because structural momentum is shifting. The utility of this indicator lies in its ability to reconstruct the market using Average True Range (ATR) based Renko methodology natively over standard candlesticks.
What sets this script apart is its Streak Engine and Gradient Color framework. Instead of merely showing bullish or bearish states, the indicator quantifies trend depth. It tracks consecutive directional blocks and dynamically adjusts the visual weighting (heatmap) based on the longevity of the trend. This is further hybridized with an automated risk-management engine that calculates dynamic Stop Loss (SL) and Take Profit (TP) levels, alongside trailing stops and historical support/resistance levels that visually "fade" as they age. This creates an all-in-one suite for trend-following and structural analysis.
🔬 Methodology and Concepts
● Renko Ticker Construction
The script bypasses standard open, high, low, close (OHLC) bar data for its core signals, instead utilizing a secondary data request to construct ATR-based Renko blocks. A Renko brick is only formed when price moves a specified distance, completely disregarding the time it takes to make that move. In this system, the brick size is defined by the ATR, ensuring the threshold adapts to current market volatility.
● The Streak Engine
Every time a new Renko brick is formed in the same direction as the previous one, the internal streak counter increases. If a bullish brick follows a bullish brick, the count iterates upward. If a bearish brick prints, the bullish streak breaks, resetting the count and initiating a bearish streak. This creates a quantitative measure of trend duration and exhaustion.
● Dynamic Risk Management Engine
Using the confirmed close of the previous Renko block, the system calculates algorithmic risk parameters. Stop Loss and Take Profit levels are calculated as distinct ATR multiples extending outward from the confirmed entry price. A trailing stop is also maintained, dynamically tightening behind the trend (higher in a bull trend, lower in a bear trend) and only resetting when the Renko structure reverses.
● Historical S/R Decay Logic
When a reversal occurs, the open price of that reversal block is recorded as a structural pivot. The indicator logs this price point and tracks its age (in bars). As time progresses, the visual representation of this level fades out, acknowledging the market theory that older, untested levels gradually lose their structural relevance compared to fresh pivots.
🎨 Visual Guide
● Heatmap Candles
- Trend Maturation (Gradients): The candlestick bodies are overridden with a heatmap gradient. A new bullish trend starts with a deep blue color and transitions toward a bright cyan as the streak extends. A bearish trend starts deep red and transitions to a bright orange/yellow as it matures.
- Stagnation: If a bar does not generate a new Renko block, it is colored a muted gray, signaling a period of consolidation where the volatility threshold hasn't been met.
● Structural Plot Lines
- OC Core Zone: A semi-transparent filled channel on the chart representing the upper and lower boundaries of the current active Renko block.
- Renko Midline: A dotted line tracking the exact mathematical center of the active block.
- Reversal Close Circles: Prominent circular plots that appear exclusively when a structural trend reversal is confirmed, marking a potential entry or exit node.
- Trailing Stop: A dashed line trailing behind the current price action, colored dynamically based on the active trend (cyan for bullish support, orange for bearish resistance).
- Support/Resistance (S/R) Lines: Dotted horizontal lines extending from past reversal points. Their opacity visually fades the longer they remain on the chart.
● On-Chart Shapes and Labels
- Signal Triangles: Distinct ▲ BUY (below bar) and ▼ SELL (above bar) shapes accompanied by text, printed precisely when the Renko direction shifts.
- Box Count Label: A small, dynamic text label appearing at reversals to indicate exactly how many consecutive boxes the previous structural leg lasted.
● The Dashboard Panel
Located in the top right corner, this heads-up display provides real-time quantitative metrics:
- Trend Bias: Text readout of the current structural direction (Bull/Bear).
- Streak Depth: A 10-block visual bar (e.g., ████░░░░░░) showing how far along the current trend is relative to the user-defined maximum gradient depth.
- R:R Quality: A visual score rating the current Reward-to-Risk ratio based on the dynamic SL/TP levels.
- Actionable Prices: Exact price readouts for Entry, Stop Loss, Take Profit, and the Trailing Stop.
📌 Important note : the best way to resolve visual overlap is to navigate to the Object Tree and drag the indicator above the main chart layer, or simply hide the native candles in your chart settings.
📖 How to Use
● Trend Identification and Exhaustion
Traders can monitor the Heatmap Candles to gauge both direction and maturity. When the candles transition from their starting colors (dark blue / deep red) to their terminal colors (bright cyan / bright orange), it indicates that the trend streak is becoming highly extended. An extended streak does not automatically imply a reversal, but it suggests momentum has been sustained for an extended period, which may precede a consolidation or pullback.
● Entry and Execution
A primary use case is waiting for a confirmed trend shift. When a reversal is validated, the indicator plots the Reversal Close Circle and the ▲ BUY / ▼ SELL shape. Traders can use the Dashboard Panel to immediately read the calculated Entry, SL, and TP prices.
● Managing Risk In-Trade
Once a position is active, the Trailing Stop dashed line provides a dynamic, structural level to trail a stop-loss. Additionally, traders can monitor price action as it approaches the historical dotted S/R lines. If price approaches a sharply colored (recent) S/R line, higher friction is expected. If it approaches a heavily faded (old) line, the level may carry less structural weight.
Note on Data Resolution: Because this tool queries secondary Renko data using the current chart's resolution and employs lookahead functionality on historical data, real-time current-bar fluctuations may briefly cross thresholds before closing. Decisions should strictly be made on confirmed bar closes, as indicated by the script's internal logic.
⚙️ Inputs and Settings
● ◈ Renko
- ATR Length: The lookback period used to calculate the Average True Range, determining the size of the underlying Renko bricks.
- ATR Resolution ×: A multiplier to scale the resolution up for higher-timeframe smoothing.
● ◈ Visuals
- Bull/Bear Colors (Start & End): Customization for the heatmap gradients. You can define the exact color of a fresh trend and an exhausted trend.
- Gradient Streak Depth: The number of consecutive bricks required to reach the "End" color. A higher number stretches the gradient over a longer trend.
● ◈ Risk Management
- Dynamic SL/TP in Alerts: Toggles whether the SL and TP values are dynamically injected into the outgoing Webhook alert JSON.
- SL / TP ATR Multiplier: Defines the distance (in ATR units) from the entry point to calculate the Stop Loss and Take Profit levels.
- Show Trailing Stop Line: Toggles the visibility of the dynamic trailing stop boundary.
● ◈ Structure Analysis
- Show S/R Levels & Max Levels: Toggles the historical reversal lines and sets a hard limit on how many previous levels are maintained on the chart to prevent clutter.
- S/R Fade Age (bars): Determines how quickly the S/R lines lose their opacity as time passes.
● ◈ Webhook Actions
- Configurable string inputs to match your specific execution bot commands (e.g., "long", "short", "closelong"). These are embedded into the JSON payload triggered by the indicator's alerts.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Market Noise and the Random Walk
In quantitative finance, high-frequency price data is often modeled with components of a Brownian motion or a Random Walk, where short-term movements contain significant "noise" (stochastic variation) independent of the underlying drift (trend). Standard time-based sampling captures all of this variance. By utilizing a Renko construction, this indicator applies a discrete filtration mechanism. It mathematically suppresses localized stochastic volatility by requiring price to traverse a minimum Euclidean distance (the ATR block size) before registering a state change.
● Volatility Clustering and Adaptive Thresholds
Mandelbrot and subsequent econometricians noted that market volatility clusters—periods of high variance are followed by high variance. Using a static brick size in Renko fails to account for leptokurtic market distributions. By anchoring the block size to the Average True Range, the indicator's filtration threshold becomes adaptive. During periods of volatility expansion, the required threshold widens, preventing the streak engine from being whipsawed by natural variance expansion.
● Momentum Decay and Mean Reversion Probability
The Gradient Streak Depth concept relies on the statistical premise of mean reversion following extended standard deviations from a mean. While trends can persist, the probability of a structural pullback increases as the streak count grows. The heatmap visually represents this probability density—translating a quantitative sequential count into a qualitative visual exhaustion metric, aiding in the assessment of asymmetric risk distribution.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Versionshinweise
Repainting issues resolvedVersionshinweise
fix issues Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
💡 Proprietary indicators. Original research. Built by analysts who trade.
👑 Premium: markittick.com
📢 Free Telegram: t.me/MarkitTick_Updates
👑 Premium: markittick.com
📢 Free Telegram: t.me/MarkitTick_Updates
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
💡 Proprietary indicators. Original research. Built by analysts who trade.
👑 Premium: markittick.com
📢 Free Telegram: t.me/MarkitTick_Updates
👑 Premium: markittick.com
📢 Free Telegram: t.me/MarkitTick_Updates
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.