インジケーター

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
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. インジケーター

Trend Maturity Ladder [AGPro Series]Trend Maturity Ladder
🧠 Core Idea
Is the trend still early, healthy, mature, stretched, or vulnerable to exhaustion?
📌 Overview / What it does
Trend Maturity Ladder is a trend lifecycle visualization tool built to classify the stage of an active trend.
The script builds a staged trend ladder, maps a healthy pullback shelf, marks an invalidation shelf, tracks maturity score, evaluates extension, identifies exhaustion risk, and summarizes the current lifecycle state in an AG Pro panel.
It does not predict price direction, automate trades, or claim that a mature trend must reverse. It is a structured decision-support tool for reading trend stage, pullback quality, and late-trend risk.
🎯 Purpose & Design Philosophy
Many trend tools answer only one question:
Is price trending?
This script was built to answer a more useful question:
Where is the trend in its lifecycle?
The design goal is to help traders separate early trend development, healthy continuation, mature structure, stretched extension, and invalidation pressure.
⚡ Why This Script Is Different
Most trend tools focus on moving average direction, ribbon color, or generic trend strength.
This script does NOT act as another trend-strength meter or moving-average ribbon.
Instead, it models the trend as a ladder with stages: early trend, active trend, mature trend, stretched trend, exhaustion watch, and invalidation pressure. It combines trend alignment, slope, ADX, distance from the slow trend reference, trend age, pullback depth, and momentum risk into one visual lifecycle map.
⚙️ Methodology
1. Context Detection
The script checks fast, slow, and anchor trend alignment to determine whether the market has a bullish trend, bearish trend, or mixed structure.
2. Maturity Scoring
It scores trend age, ATR-adjusted extension, slope, ADX, and moving-average alignment to estimate how mature the trend is.
3. Pullback Evaluation
It builds a healthy pullback shelf around the trend references and checks whether price is pulling back without breaking the broader ladder.
4. Exhaustion and Invalidation Review
It identifies late-trend extension risk and invalidation pressure when price closes through the trend shelf.
5. Visual Output
The chart displays maturity ladder zones, pullback shelves, invalidation shelves, trend rails, event labels, right-side tags, alerts, and a compact AG Pro panel.
🗺️ How to Read the Chart
Trend Maturity Ladder = the active lifecycle zone around the current trend.
Healthy Pullback Shelf = the area where pullbacks can remain structurally constructive.
Invalidation Shelf = the area where the trend ladder becomes vulnerable.
Trend Rails = fast, slow, and anchor trend references.
EARLY TREND = trend alignment is fresh.
ACTIVE TREND = trend structure is aligned and still developing.
MATURE TREND = trend has aged and expanded meaningfully.
STRETCHED TREND = the trend is extended relative to its slow reference.
EXHAUSTION WATCH = maturity, extension, and momentum conditions suggest late-trend risk.
INVALIDATION PRESSURE = price has closed through the invalidation shelf.
Panel = summarizes trend stage, maturity score, direction, pullback health, exhaustion risk, age, extension, and next context.
🚦 Signals & States
• EARLY TREND → trend alignment is fresh and still developing.
• ACTIVE TREND → trend is aligned and not yet deeply mature.
• MATURE TREND → trend has aged and expanded.
• STRETCHED TREND → price is extended from the slow trend reference.
• HEALTHY PULLBACK → price has pulled into the trend shelf without invalidating it.
• EXHAUSTION RISK → maturity, extension, and momentum risk are aligned.
• INVALIDATION PRESSURE → price has closed through the invalidation shelf.
• NO CLEAR TREND → fast, slow, and anchor references are not aligned.
🔔 Alerts Logic
Alerts trigger when a major trend lifecycle state appears.
• Trend Maturity Transition → the active trend stage changes.
• Healthy Trend Pullback → price pulls into the healthy trend shelf without invalidating the ladder.
• Trend Exhaustion Risk → maturity, extension, and momentum conditions align.
• Trend Invalidation Pressure → price closes through the invalidation shelf.
Alerts are attention markers, not trade instructions.
🧩 Confluence Logic
The context becomes stronger when:
• Fast, slow, and anchor trend references align
• The slow reference has directional slope
• ADX supports directional structure
• Pullbacks respect the healthy shelf
• Extension is not excessively stretched
• The panel state agrees with the chart label
Late-trend caution increases when maturity, extension, and RSI pressure align.
📊 When to Use
• Trend-following review
• Pullback continuation planning
• Late-trend risk monitoring
• Crypto, stocks, futures, forex, and liquid markets
• 30m, 1H, 4H, 1D, and 1W charts
• Markets where trend structure is visible
⚠️ When NOT to Use
• Very choppy, non-directional markets
• Low-liquidity assets
• Extremely noisy micro timeframes
• Markets with frequent gaps that distort trend references
• Situations where a single trend score should not be over-interpreted
• When the user wants guaranteed entries or exits
🎛️ Key Inputs
• Fast Trend Length → controls short-term trend pressure.
• Slow Trend Length → controls the main maturity reference.
• Anchor Trend Length → filters weak or mixed trend regimes.
• ATR Length → controls ladder spacing, extension scoring, and label offsets.
• Early Trend Max Age → defines how long a fresh trend can remain early.
• Mature Trend Age → defines when age contributes strongly to maturity.
• Stretched Distance ATR → defines when trend extension becomes stretched.
• Healthy Pullback Width ATR → controls the pullback shelf thickness.
• Invalidation Shelf ATR → controls the distance of the invalidation shelf.
• Exhaustion RSI Level → adds momentum pressure to exhaustion-risk logic.
🖥️ Interface & Visual Design
The visual hierarchy is built around the trend lifecycle:
The ladder shows the active maturity zone.
The pullback shelf shows where continuation can be evaluated.
The invalidation shelf shows where the trend becomes vulnerable.
Event labels mark lifecycle transitions and risk states.
Right-side tags keep the current trend stage visible.
The AG Pro panel compresses the current trend lifecycle into a fast, readable summary.
🧪 Practical Usage Workflow
1. Read the panel trend stage.
2. Check whether trend direction is aligned.
3. Locate the healthy pullback shelf.
4. Watch whether price respects or breaks the shelf.
5. Check maturity score and exhaustion risk.
6. Confirm with market structure, liquidity, volume, and risk planning.
🔍 Interpretation Guidelines
An early trend does not guarantee continuation.
A mature trend does not guarantee reversal.
Exhaustion risk does not mean price must immediately turn.
Invalidation pressure means the current ladder structure has weakened.
The script is best used to understand trend lifecycle context, not to replace independent analysis.
🚫 What This Script Is NOT
This script is not a prediction engine.
It is not financial advice.
It is not an auto-trading system.
It does not provide guaranteed entry or exit signals.
It is not a moving-average ribbon or a simple trend-strength meter.
⚠️ Limitations & Transparency
Trend stages depend on timeframe.
Choppy markets can create frequent stage changes.
Strong news moves can stretch trend references quickly.
Low-liquidity markets may create unreliable trend readings.
Different assets may require different trend lengths.
🧠 Market Context Notes
Trends often move through recognizable phases:
alignment → expansion → maturity → extension → pullback or invalidation.
This script visualizes that sequence so the user can avoid treating every trend as equally fresh.
🧾 Use Case Examples
If trend references align shortly after a transition, the script may classify EARLY TREND.
If price pulls into the shelf while the ladder remains intact, the script may mark HEALTHY PULLBACK.
If the trend becomes aged and extended while RSI is stretched, the script may mark EXHAUSTION RISK.
If price closes through the invalidation shelf, the script may mark INVALIDATION PRESSURE.
🧱 System Philosophy
The goal is not to chase trend strength.
The goal is to understand trend timing.
This script treats trend as a lifecycle:
early → active → mature → stretched → vulnerable.
🔐 Non-Promise Statement
No trend stage guarantees future price direction.
No pullback shelf guarantees continuation.
No exhaustion label guarantees reversal.
All outputs should be interpreted as analytical context.
📉 Risk Disclosure
Trading involves risk.
This script is for educational and analytical purposes only.
It does not provide financial advice, investment advice, or guaranteed trading outcomes.
Users are fully responsible for their own decisions, risk management, and trade execution.
📚 Educational Note
Use the script to study where trends tend to age, stretch, reset, or fail.
The most important question is not only whether a market is trending.
The better question is whether the trend is still fresh enough to deserve attention.
インジケーター

Sequential Exhaustion Tracker [AGPro Series]Sequential Exhaustion Tracker
🔷 Overview
Sequential Exhaustion Tracker is a price-action based trend maturity tool built for traders who want to read how far a directional candle sequence has developed, when that sequence is becoming late-stage, and whether the market is more likely to recycle the move or fail back through its terminal zone.
The script is not an oscillator, not a crossover tool, and not a protected-brand sequential clone. It does not depend on classic overbought or oversold thresholds. Instead, it tracks qualified directional progress bar by bar, measures the quality of the active count, opens a visual exhaustion window when the run becomes mature, and then follows the next phase as either recycle, testing, or failure.
That makes the script useful for a very specific question:
Is the current directional run still building cleanly, or has it entered the kind of late-sequence area where follow-through, failure, and reset behavior need closer attention?
🔷 What The Script Measures
The engine combines four practical components:
1. Directional candle count
The script counts qualified progress candles in the active direction. A candle must show meaningful close-to-close progress, sufficient body commitment, and optional trend-filter alignment before it can advance the count.
2. Exhaustion threshold
The count becomes mature only after it reaches the selected threshold. This avoids treating every small move as exhaustion and keeps the tool focused on developed directional sequences.
3. Exhaustion quality
The quality model blends count maturity, ATR-normalized stretch from the baseline, opposing wick absorption, and body-efficiency fade. A high reading means the sequence is not only long enough, but also showing late-run characteristics.
4. Recycle/failure lifecycle
Once a qualified exhaustion window appears, the script continues tracking price behavior. Strong continuation through the terminal zone can classify the sequence as recycled. A break back through the zone can classify it as failed. This turns the indicator into a lifecycle tracker instead of a one-bar label generator.
🔷 Visual Design
The chart output is designed to stay premium and readable:
- Compact count labels use milestone-based defaults so the chart shows sequence progress without turning into a label wall.
- ATR-based label offsets keep labels away from candle bodies.
- Exhaustion zones are drawn as rectangular terminal windows, not generic support/resistance blocks.
- Recycle and failure markers are intentionally short and selective.
- Older labels and zones are automatically removed to protect chart performance.
- The summary panel uses the AGPro standard merged blue title row and a clean four-line state readout.
🔷 Panel Readout
The panel summarizes the active condition in a compact format:
Direction
Shows whether the current qualified run is bullish, bearish, or neutral.
Count
Shows the active sequential count against the selected exhaustion threshold.
Exhaustion Quality
Shows the maturity score and the current quality band.
Recycle Status
Shows whether the sequence is building, mature, testing an exhaustion window, recycling, recycled, failed, or waiting.
🔷 How This Differs From Other AGPro Scripts
This script is intentionally separated from AGPro oscillator exhaustion tools.
Stochastic Exhaustion Map focuses on stochastic behavior, momentum fatigue, and reset context inside an oscillator framework.
Williams %R Exhaustion Map focuses on Williams %R extension behavior and release-corridor logic.
Sequential Exhaustion Tracker focuses on the visible candle sequence itself: directional progress, count maturity, terminal exhaustion zone, and post-exhaustion lifecycle behavior.
It is also different from support/resistance reaction tools because the rectangles are not structural S/R zones. They are temporary terminal sequence windows created only when a mature count and exhaustion quality condition are present.
🔷 How This Differs From Common Sequential Count Scripts
Many sequential scripts focus mainly on printing a fixed count and stopping there. Sequential Exhaustion Tracker takes a different path.
It does not simply count bars for visual decoration. It asks whether the count is supported by meaningful directional progress, whether the run has become stretched relative to its own volatility, whether the candle structure is showing absorption, and what happens after the mature sequence appears.
The key difference is the lifecycle layer:
- Building sequence
- Mature count
- Exhaustion window
- Testing window
- Recycle build
- Recycled continuation
- Failed exhaustion window
This gives the script a cleaner analytical role than a basic numbered label tool.
🔷 Suggested Use
The script is best used as a chart-context layer for:
- identifying late-stage directional runs
- separating fresh continuation from mature extension
- watching terminal sequence zones
- studying continuation recycle behavior
- spotting failed late-run pressure
- keeping sequential count context visible without overcrowding the chart
It is designed to complement market structure, trend context, volatility conditions, and the trader's broader workflow.
🔷 Default Settings
The default settings are built for a balanced public-chart presentation:
- Count threshold: 8
- Quality threshold: 62
- Trend alignment: enabled
- Count label mode: Mature Milestones
- Count label start: 6
- Minimum label spacing: 8 bars
- Exhaustion zones: enabled
- Panel: enabled
- Label and panel font sizes: Normal
These defaults aim to keep the chart informative without turning it into a noisy label wall.
🔷 Why It Was Built
Directional markets often move in phases. Early movement can be clean and efficient. Middle movement can be supported and persistent. Late movement can still continue, but the character of the candles often starts to change.
Sequential Exhaustion Tracker was built to make that progression easier to read directly on the chart. The goal is not to call every top or bottom. The goal is to show where the current sequence sits in its own lifecycle and whether the post-exhaustion behavior is confirming continuation, stalling, or failing.
That narrow focus is what makes the tool distinct: it is not a general momentum dashboard, not an oscillator map, not a support/resistance engine, and not a signal checklist. It is a dedicated sequential maturity and lifecycle tracker.
インジケーター
