Master Line Plus. Multi-MA ConsensusMaster Line Plus — Multi-MA Consensus with Agreement Score
Master Line Plus blends eight different moving-average families into a single consensus trend line, measures how strongly those averages agree, and filters direction with a volatility-aware band. It's a clean, open-source way to read one trend reference — plus a sense of how much conviction is behind it — instead of stacking many moving averages on the chart.
How it works
Every moving-average type reacts to price differently. EMA and WMA weight recent bars heavily and turn quickly; SMA weights all bars equally and turns slowly; RMA (Wilder's) is the smoothest; HMA cuts lag while staying responsive; DEMA and TEMA use multiple EMA passes to reduce lag further; and ALMA applies a Gaussian weighting to balance smoothness and responsiveness. Each one alone is a compromise — fast types whipsaw in chop, slow types lag at turns.
Plus computes all eight over the same length and averages them into one line:
consensus = ( EMA + SMA + WMA + HMA + RMA + DEMA + TEMA + ALMA ) / 8
The purpose of the combination is not to stack indicators, but to average out the bias of each MA type: the lag-reducing members keep the line responsive while the smoother members damp noise, producing a trend estimate steadier than any single fast MA yet more responsive than any single slow one. Using eight diverse families (rather than eight EMAs) is what makes the blend meaningful — they disagree in different conditions, and that disagreement is itself information.
Agreement score. Because the eight averages are diverse, Plus also counts how many of them price is trading above. When most agree (e.g. 8/8) the trend is broad and well-supported; when they split (e.g. 5/8) the move is weaker or transitioning. The dashboard shows this as a percentage aligned with the current trend — a simple conviction gauge a single line can't give.
Direction. Trend is decided with an ATR band rather than a raw cross: it turns bullish only when price closes above the consensus by more than Flip band × ATR, bearish only when it closes the same distance below, and holds the previous trend in between. This deadband suppresses the constant flip-flopping of a plain price/MA cross in sideways markets. Triangles mark the exact flip bar, and the line and optional band are colored by trend.
Signal line & higher-timeframe filter. A signal line (an EMA of the consensus) can be shown for slope/cross context. Optionally, a higher-timeframe consensus must agree before a flip is allowed — so on a 1H chart you can require the daily consensus to also be bullish before a long flip prints.
How to use it
Use the consensus line as your trend reference and bias filter — favor longs while it's teal, shorts while it's red.
Read the Agreement % as conviction: high agreement supports staying with the trend; a falling score warns the move is losing breadth.
Enable higher-timeframe agreement to trade only with the larger trend and cut counter-trend signals.
Widen the Flip band on noisy instruments to reduce false flips; narrow it on clean trends for earlier turns. Increase Length for a slower bias; decrease it for a faster read.
Two built-in alerts fire on bullish and bearish flips.
Settings
Consensus — Source, Length (used by all eight MAs), ALMA offset/sigma.
Trend & signal — Flip band (× ATR) and the signal-line length.
Higher timeframe — require HTF agreement for flips, and the HTF to use.
Display — show/fill band, signal line, flip markers, bar coloring, dashboard.
Notes and limitations
This is a trend-following tool. Like all moving-average methods it lags at turning points and can flip late after sharp reversals; the ATR band trades some timing for fewer false signals.
The higher-timeframe consensus uses request.security with lookahead disabled, so it can update on the still-forming HTF bar until that bar closes. On-chart values are likewise evaluated on the current bar and can update in real time until the bar closes.
It does not predict price and makes no performance claims — use it as one input alongside your own analysis and risk management.
For research and education only. This is not financial advice. อินดิเคเตอร์

EMA Trend ProEMA Trend Pro
OVERVIEW
EMA Trend Pro is a dual moving-average trend tool with built-in confluence filters. It colors the trend, marks momentum shifts when the fast average crosses the slow one, and — unlike a plain moving-average cross — filters those signals through a higher-timeframe trend check and an ATR-based range check to cut down on false signals. A compact info panel keeps the current state visible at a glance.
HOW IT WORKS
The script builds two moving averages from a source of your choice, and you can select the averaging method (EMA, SMA, WMA, RMA, or VWMA):
• Fast MA (default 21) — reacts quickly to recent price.
• Slow MA (default 55) — represents the broader trend.
Their relationship defines the regime:
• Fast above slow → momentum aligned to the upside → bullish (green).
• Fast below slow → momentum aligned to the downside → bearish (red).
A moving average smooths price into a single line; an exponential MA weights recent bars more heavily so it tracks price faster than a simple average. Using two lengths separates short-term momentum (fast) from the prevailing trend (slow), and the point where they cross is a classic signal for a potential shift of control between buyers and sellers.
THE FILTERS (what makes this more than a plain cross)
A raw moving-average cross has two well-known weaknesses: it fires against the larger trend, and it whipsaws when the market is flat. EMA Trend Pro addresses both:
• Higher-timeframe (HTF) filter — the same two averages are also computed on a higher timeframe you choose. Long signals are only allowed when the HTF trend is up, and short signals only when it is down. This keeps you trading with the larger trend instead of against it. The HTF values are read without lookahead, so historical signals do not repaint.
• ATR separation filter — the Average True Range (ATR) measures how much price typically moves per bar. This filter ignores any cross where the two averages are closer together than a chosen multiple of ATR, which removes the low-conviction crosses that happen when the averages are tangled in a tight range.
Both filters are optional and independent, so you can run the tool as a simple cross, a trend-aligned system, or a strict range-aware system.
WHAT IT DRAWS
• Fast MA line, colored by the active trend (green / red).
• Slow MA line as a neutral reference.
• A fill between the two averages, tinted by direction — a wider gap means stronger separation.
• Optional background tint and optional bar coloring for the current regime.
• Triangle markers on the exact bar where a filtered signal occurs (up / down).
INFO PANEL
A small top-right table shows, at a glance:
• Trend — current lower-timeframe direction.
• HTF — the higher-timeframe direction and the timeframe used.
• Signal — LONG, SHORT, or none on the current bar.
HOW TO USE IT
• Trend bias: read green as a long bias and red as a short bias.
• Signals: the up / down triangles mark filtered momentum shifts. With the HTF filter on, they only appear in the direction of the larger trend.
• Reduce noise: enable the ATR separation filter, or raise its multiplier, to keep only stronger crosses.
• Tuning: shorter lengths give faster, more frequent signals; longer lengths give fewer, smoother ones. Try different MA types and a higher timeframe that suits your trading style (for example, a 4H filter for signals taken on lower timeframes).
SETTINGS
• MA type — averaging method (EMA / SMA / WMA / RMA / VWMA).
• Source — price series the averages are built from (default close).
• Fast length / Slow length — the two averages (defaults 21 / 55).
• Higher-timeframe filter + Higher timeframe — enable and choose the HTF trend check.
• Min separation filter + Min separation (× ATR) — enable and set the range filter.
• Trend fill / Trend background / Color bars by trend / Signal markers / Info panel — display toggles.
ALERTS
Four ready-made alerts: filtered Long and Short signals, plus Trend flip up and Trend flip down — so you can be notified on any symbol or timeframe.
NOTES & LIMITATIONS
Moving-average crosses are lagging by nature: they confirm a move after it has begun rather than predicting it. The filters reduce false signals but cannot remove them, and a higher-timeframe filter naturally produces fewer, later entries in exchange for better alignment. This tool is a visual aid for trend direction and momentum shifts — it is not a complete trading system and does not manage risk or position size. Always confirm with your own analysis.
Open-source — feel free to study, use, and build on it.
For research and educational purposes only. This is not financial advice. อินดิเคเตอร์

Master Line Lite: 5-MA ConsensusMaster Line Lite condenses five different moving-average families into a single, easy-to-read consensus trend line, then filters its direction with a volatility-aware band so the trend only changes when price commits. It's a clean, open-source alternative to stacking several moving averages on one chart.
How it works
Each moving-average type reacts to price differently. An EMA and a WMA weight recent bars heavily and turn quickly; an SMA weights every bar equally and turns slowly; an RMA (Wilder's) is the smoothest; and an HMA cuts lag while staying responsive. Any single one is a compromise — fast types whipsaw in chop, slow types lag at turns.
Master Line Lite computes all five over the same length and averages them into one line:
consensus = ( EMA + SMA + WMA + HMA + RMA ) / 5
Blending the five balances their individual biases: the fast members keep the line responsive while the slow members damp noise. That's the purpose of the combination — not to stack indicators, but to average out the weakness of each MA type into one steadier reference than a single fast MA, yet more responsive than a single slow one.
Direction is then decided with an ATR band instead of a raw cross. The trend turns bullish only when price closes above the line by more than Flip band × ATR, and bearish only when it closes the same distance below; between those thresholds the previous trend is held. This deadband is what suppresses the constant flip-flopping of a plain price/MA cross during sideways markets.
The line is colored by the current trend, an optional band shows the flip thresholds, and triangles mark the exact bar where the trend flips.
How to use it
Use the line as a trend reference and bias filter — favor longs while it's teal, shorts while it's red.
The triangles flag where the consensus trend changes — a "context has shifted" cue, not a standalone entry.
Widen the Flip band on noisy/ranging instruments to cut false flips; narrow it on clean trends for earlier turns.
Increase Length for a slower higher-timeframe bias; decrease it for a faster intraday read.
Two built-in alerts fire on bullish and bearish flips.
Settings
Source — price series the averages are built from (default: close).
Length — lookback used for all five moving averages.
Flip band (× ATR) — how far price must clear the line to change the trend; the core noise filter.
Show band — draw the upper/lower flip thresholds.
Color bars by trend — tint candles with the trend color.
Show status box — small top-right label with the current Bull / Bear / Flat state.
Notes and limitations
Like all moving-average methods, this lags at turning points and can flip late after sharp reversals — the ATR band trades some timing for fewer false signals. Values can update on the still-forming real-time bar until it closes. It does not predict price and makes no performance claims; use it as one input alongside your own analysis and risk management.
For research and education only. This is not financial advice. อินดิเคเตอร์

Adaptive MA Ribbon [StrixEDGE]📊 WHAT IT DOES
StrixEDGE Adaptive MA Ribbon plots three of the most advanced low-lag moving averages — Hull MA, Arnaud Legoux MA, and Kaufman Adaptive MA — with automatic period adjustment based on current volatility. A consensus score (0-6) instantly shows whether all three agree on trend direction.
🔬 WHY IT'S DIFFERENT
Traditional MA ribbons use fixed periods that work in one market condition and fail in another. This ribbon automatically shortens its period when volatility spikes (for faster reaction) and lengthens it when markets are calm (to avoid whipsaws). The three MAs used — HMA, ALMA, and KAMA — are specifically chosen because each adapts to the market differently, so their agreement carries more weight than three similar MAs agreeing.
⚙️ HOW IT WORKS
The volatility ratio (current ATR / 50-period average ATR) dynamically adjusts the base period. This adjusted period feeds into all three MAs simultaneously. The consensus score counts two things: how many MAs are below price (0-3 points) and how many are rising (0-3 points). A score of 6 means all three MAs are below price AND rising — the strongest possible bullish configuration.
📈 HOW TO USE
• Consensus 5-6 (green fill): Strong uptrend — buy pullbacks to the ribbon
• Consensus 0-1 (red fill): Strong downtrend — sell rallies to the ribbon
• Consensus 2-4 (gray fill): Mixed — avoid trend strategies
• Diamond markers at consensus flips = key entry/exit signals
• Ribbon twist (MAs crossing) = early warning of trend change
• Works best on 4H and Daily timeframes
🎛️ INPUTS & DEFAULTS
Base Period: 21 | Min: 8, Max: 55 | ALMA Offset: 0.85, Sigma: 6.0
═══════════════════════════════════════════════════════
🔧 CUSTOMIZATION
All parameters are fully adjustable through the indicator settings panel. Inputs are grouped logically:
• ⚙️ Core Parameters — main calculation settings
• 📊 Table Settings — table size (Tiny to Huge), position (4 corners), visibility toggle
• 🎨 Visual Settings — colors, show/hide elements
• 🔔 Alert Settings — threshold values for notifications
📊 DATA TABLE
A built-in data table displays all key metrics in real-time. Adjust the table size from Tiny to Huge to match your chart layout. Position it in any corner. Toggle visibility on/off.
🔔 ALERTS
Pre-built alert conditions for all major signals. Set up alerts via TradingView's alert dialog — select this indicator and choose from the available conditions.
⏱️ RECOMMENDED TIMEFRAMES
Works on all timeframes. Recommended: 1H, 4H, Daily for best signal quality. Lower timeframes produce more signals but with higher noise. Weekly/Monthly for position trading context.
✅ COMPLIANCE
• No repainting — all signals based on confirmed bar close data
• No future data references
• Open-source code — verify the logic yourself
⚠️ DISCLAIMER
This indicator is a technical analysis tool, not financial advice. It does not predict future price movements. Past patterns and signals do not guarantee future results. Trading involves substantial risk of loss. Always use proper risk management, including stop losses and appropriate position sizing. Never risk more than you can afford to lose. อินดิเคเตอร์

Gaussian Filter Trend [QuantAlgo]🟢 Overview
The Gaussian Filter Trend passes price through a multi-pole Gaussian filter and holds the result inside an adaptive volatility deadband, producing a stepped trend path that advances only once a move has cleared the band. That band is sized by an Efficiency Ratio, tightening when price travels directionally and widening through chop, so the line tracks sustained moves and sits still through noise. Around that path, a star field orbits at two volatility-scaled radii that fade with distance, echoing the decay of the filter's own weighting and making the current trend distinctly recognizable at a glance on any instrument or timeframe.
🟢 How It Works
The indicator's core methodology combines two mechanisms: a cascaded Gaussian filter that smooths the source series, and an efficiency-driven deadband that governs when that smoothed value is permitted to move the trend line.
First, the selected source is passed through one to four cascaded single-pole stages. A beta term derived from the filter length and the pole count sets the smoothing coefficient. Because pole count enters that calculation directly, adding poles rescales the filter response rather than layering more averaging onto the same curve:
beta = (1 - math.cos(2 * math.pi / length)) / (math.pow(1.414, 2.0 / poleCount) - 1)
alpha = -beta + math.sqrt(beta * beta + 2 * beta)
Next, efficiency is measured by comparing net directional movement against the total distance traveled over the efficiency window. The ratio moves toward one when travel is more directional and toward zero when price covers ground without net progress. It is then smoothed, so the deadband width is less likely to shift sharply from one bar to the next:
efficiency_ratio = path_length == 0 ? 0.0 : net_move / path_length
smoothed_efficiency = ta.ema(efficiency_ratio, efficiency_smooth)
The smoothed reading blends between a wider chop multiplier and a tighter trend multiplier, and that result scales Average True Range into the deadband width. Higher readings pull the envelope in, so the line can follow a move more closely. Lower readings push it out, which is intended to reduce flips in conditions where they are more likely. Disabling Adaptive Width bypasses the blend and applies a single fixed multiplier:
width_multiplier = adaptive_width ? chop_multiplier + (trend_multiplier - chop_multiplier) * smoothed_efficiency : fixed_multiplier
trend_width = ta.atr(atr_length) * width_multiplier
Finally, the trend line carries its previous value forward and steps only when the envelope has moved past it. It drops when the upper band falls below the current level and rises when the lower band climbs above it, producing a stepped path rather than a continuous curve:
if upper_band < trend_line
trend_line := upper_band
if lower_band > trend_line
trend_line := lower_band
A persistent direction state records the last step and carries it through flat segments, so the line color, star field, bar coloring and alerts all read from the same value rather than diverging while the line is stationary. The star field orbits that path at a distance scaled to recent average bar range, spreading as ranges expand and drawing in as they compress, so the trend and the volatility it is being measured against are visible in one read.
🟢 Signal Interpretation
▶ Bullish Trend (Long/Buy): When the lower band climbs above the trend line, the line steps higher and the indicator enters bullish state. The trend line and star field switch to the bullish color. This condition identifies potential long or buy opportunities and remains active until the upper band falls below the line and confirms a bearish step.
▶ Bearish Trend (Short/Sell): When the upper band falls below the trend line, the line steps lower and the indicator enters bearish state. The visual elements switch to the bearish color. This condition identifies potential short or sell opportunities and holds until the lower band climbs above the line and confirms a bullish step.
▶ Flat Path (Hold): When price stays inside the deadband, neither band displaces the line and it holds level. Color does not change, so the prior state is carried rather than reconfirmed. Extended flat runs indicate the efficiency reading has widened the band against choppier conditions, and the state resolves only when one side of the envelope clears the line.
🟢 Features
▶ Preconfigured Presets: Three parameter sets cover a range of trading styles and timeframes. "Default" uses four poles over a fourteen bar window for a balanced configuration aimed at swing trading on 1-hour and daily charts. "Fast Response" shortens the filter length and drops to two poles for a tighter path on 5-minute to 1-hour charts, which may suit intraday work at the cost of more frequent steps in choppier conditions. "Smooth Trend" lengthens the filter and widens the chop multiplier for a steadier baseline on daily and weekly charts, aimed at position trading. Selecting any preset other than Default overrides every Gaussian Filter and Trend Width input beneath it.
▶ Built-in Alerts: Three alert conditions support automated monitoring of trend transitions. "Bullish Trend Signal" fires on the bar the direction state flips to bullish. "Bearish Trend Signal" fires on the bar it flips to bearish. "Any Trend Change" triggers on either transition for traders who want a single unified alert regardless of direction. All alerts include the exchange, ticker, and timeframe in the message for immediate context.
▶ Visual Customization: Six color presets, Custom, Classic, Aqua, Cosmic, Cyber, and Neon, provide coordinated bullish and bearish color pairings suited to different chart themes and personal preferences. Selecting Custom exposes independent color pickers for both states, alongside an adjustable neutral color used during the initial warmup before the first directional step. Line width is configurable from one for a minimal look up to eight for a heavier path, and the star field toggles separately from the line so either element can be displayed on its own. Optional bar coloring and background shading tint the candles and chart field with the active trend color at configurable transparency levels, reflecting the current state without reading the line directly.
อินดิเคเตอร์

Weinstein Human-Like Stage Layout [v6]This indicator automates the classic Stan Weinstein 4-Stage Market Cycle Analysis (from his legendary book “Secrets for Profiting in Bull and Bear Markets” ) using a custom context-aware layout engine.
Most automated stage analysis scripts create immense visual clutter, resetting indicators and stacking labels on every minor bar cross. This script uses a human-like design philosophy, relying on multi-week absolute price structures to print exactly one clean, dynamic tracking label per macro phase.
Human-Centric Visual Design
The indicator adapts its graphics engine based on the style of phase the market is currently experiencing:
Stage 1 (Accumulation) : Draws a clean, horizontal Dashed Blue Box around the absolute support/resistance boundary floor, with a floating blue label centered over the base.
Stage 2 (Markup) : Strips away consolidation frames and softly tints the entire chart vertical background Green to signify a clean, institutional buying regime.
Stage 3 (Distribution) : Places a precise, horizontal Dashed Orange Box around the macro topping range to track turning points.
Stage 4 (Markdown) : Softly tints the chart vertical background Red to warn traders away from catching a falling knife.
How the Boundary Engine Works
Instead of calculating mathematical slope percentages (which shift falsely on volatile weeks), the engine operates via a shifted Donchian Price Channel Model:
Breakout Tracking : It evaluates the asset's closing price against the Highest High / Lowest Low of the prior 20 weeks (using a lookback offset to remove current bar skew).
Expansion Filtering : A true Stage 2 or Stage 4 regime shift will only trigger when price completely bursts out of the historical multi-month ceiling or floor line while confirming its position relative to the 30-Week Simple Moving Average.
Automatic Clean-Up : The script natively tracks historical nodes. The moment a new cycle phase is mathematically confirmed, it deletes overlapping data to keep your screen spotless.
Best Practices for Setup
Timeframe : To stay true to Weinstein's original methodology, always run this indicator on a Weekly (1W) chart.
Customization : Open the settings gear panel to adjust the Consolidation Range Lookback (Weeks) up or down depending on whether you want to focus on intermediate market movements or structural multi-year cycles.
⚠️ Disclaimer & Risk Disclosure
Educational Purpose Only : This script is an automated open-source visual aid designed solely for educational, historical analysis, and charting convenience. It does not constitute investment advice, financial advice, or a recommendation to buy, sell, or hold any financial asset or security.
No Guarantees of Accuracy : Market conditions are subject to rapid change. Past performance, channel breakouts, or historical bounding boxes generated by this script are not indicative of future market results.
Backtesting & Verification : Systems using algorithmic filters can generate false breakouts or delayed lag-signals during highly volatile or macroeconomic events. Users should always cross-reference these automated stages with their own fundamental analysis, independent price action charting, and volume verification.
Risk of Loss : Trading financial markets involves a high degree of financial risk. The author of this script assumes absolutely no liability or responsibility for any direct or indirect financial losses, trading errors, or damages resulting from the use or interpretation of this indicator.
อินดิเคเตอร์

Wavelet Transform Trend [QuantAlgo]🟢 Overview
The Wavelet Transform Trend is a trend-following indicator built on multi-level undecimated Haar wavelet decomposition rather than moving averages or fixed volatility bands. It separates the price series into approximation components that carry structural trend and detail components that carry short-term noise, discards or shrinks the noise, then reconstructs a denoised wavelet path from what remains. That path is wrapped in an ATR confirmation band that price must close beyond before the trend state flips, helping traders separate genuine directional structure from local oscillation across every timeframe and market.
🟢 How It Works
The core engine is a dilated à trous cascade. Each stage widens the Haar filter by a factor of two and splits the series into a coarser approximation and the detail band at that scale, with no downsampling, so the decomposition stays shift invariant and every bar receives a coefficient at every level:
float a1 = (a0 + a0 ) * 0.5
float d1 = a0 - a1
float a2 = wavelet_levels >= 2 ? (a1 + a1 ) * 0.5 : a1
float d2 = a1 - a2
Wavelet Period sets how much history the trend component draws on, and Wavelet Levels determines how that span is divided across scales. The dilation schedule is derived from both, so the deepest approximation always spans the requested period. Reconstruction is exact by construction, meaning the deepest approximation plus every detail band returns the original source, so removing or shrinking detail is the only thing that changes the output. With Wavelet Approximation Only enabled the details are discarded outright. With it disabled, each band is soft thresholded against its own estimated noise magnitude, so the same setting behaves consistently on any instrument.
The resulting path is smooth but continuous, so direction comes from wrapping it in an ATR band and requiring a close through it. Each band only trails in the favorable direction and freezes otherwise:
lower_band := lower_raw > prev_lower or prev_close < prev_lower ? lower_raw : prev_lower
upper_band := upper_raw < prev_upper or prev_close > prev_upper ? upper_raw : prev_upper
The result is a binary state that holds through pullbacks inside the band and flips only on a confirmed close beyond it. The entire engine runs on confirmed bar data, so the wavelet path, the bands, the trailing level, the trend state, and the alerts all hold their last closed-bar values and the indicator does not repaint.
🟢 Signal Interpretation
▶ Bullish Trend (Green): When price closes above the upper confirmation band, the indicator enters bullish mode with green coloring applied across the trend line, glow, radial layering, wave trail, and optional bar and background coloring. The trailing level switches to the lower band and ratchets upward with the wavelet path, holding through pullbacks that fail to close beneath it.
▶ Bearish Trend (Red): When price closes below the lower confirmation band, the indicator enters bearish mode with red coloring across all visual elements. The trailing level switches to the upper band and only tracks lower from that point, requiring a close above it before the state can flip back.
🟢 Features
▶ Preconfigured Presets: Three parameter sets cover different trading approaches. "Default" targets swing trading on 1-hour and daily charts. "Fast Response" shortens the span, reduces decomposition depth, and narrows the band for intraday charts where the indicator needs to adapt to shorter-duration moves. "Smooth Trend" extends the span, deepens the decomposition, and widens the band for position trading on daily and weekly timeframes, where the cost of a false flip is higher than the cost of a delayed one. Selecting a preset overrides the individual wavelet and ATR inputs.
▶ Built-in Alerts: Three alert conditions cover all directional states. "Bullish Wavelet Trend" fires on the bar where the trend direction flips from bearish to bullish. "Bearish Wavelet Trend" fires on the bar where it flips from bullish to bearish. "Any Wavelet Trend Flip" combines both into a single condition for traders who want a unified notification regardless of direction.
▶ Visual Customisation: Two display modes cover different reading styles. Line plots the confirmed trailing level with glow and optional radial layering, Wave instead builds a smoke-trail from copies of the wavelet path with configurable layers, span, and brightness. Six colour presets (Classic, Aqua, Cosmic, Cyber, Neon, and Custom) apply coordinated bullish and bearish schemes across the trend line, glow, radial layering, wave shades, and optional bar and background colouring. Bar colouring tints price candles with the active trend colour at a configurable transparency level, and background colouring extends the directional tint across the full chart pane.
อินดิเคเตอร์

Recursive Kernel Trend [QuantAlgo]🟢 Overview
The Recursive Kernel Trend is a trend-following indicator built on a recursive residual estimator with adaptive rate scheduling. It applies one of six selectable filter structures to a residual-corrected recursion, modulates the update rate according to efficiency and volatility conditions, and confirms directional state through slope persistence. The result is a responsive yet controlled trend line that adapts its tracking behavior to market regime while filtering noise-driven fluctuations across every timeframe and instrument.
🟢 How It Works
The calculation begins with a residual between the selected price source and the current estimate. This residual drives a base recursive update whose rate is not fixed but scheduled on every bar:
resid = src - estimate
base = estimate + kern_rate * resid
The scheduled rate is produced by combining two adaptive weights. Efficiency weighting measures the ratio of net directional progress to total price path over a lookback window, raising the rate when movement is clean and lowering it during chop. Volatility weighting compares current ATR against a longer baseline and reduces the rate when volatility expands. The combined rate is then bounded by floor and ceiling limits and further scaled by an optional directional bias that applies different multipliers depending on whether price sits above or below the estimate:
eff_weight = eff_floor + (1.0 - eff_floor) * eff_ratio
vol_weight = math.min(math.max(1.0 / vol_ratio, 0.50), 1.75)
rate_sched = math.min(math.max(base_rate * eff_weight * vol_weight, rate_floor), rate_ceil)
kern_rate = rate_sched * bias
Six filter structures can be applied to the base update. Standard uses a single pass. Wilder halves the rate for smoother behavior. Double and Triple apply successive lag-compensated stages. Gaussian cascades four poles without compensation. Hull combines fast and slow passes then re-smooths the result. All structures receive the live scheduled rate so the adaptive weighting remains active.
A residual accumulator runs in parallel with the recursion. It retains a decaying memory of past residuals and applies a correction term that closes persistent offset during sustained trends. An optional ATR-based limiter can bound the accumulator to prevent overshoot after gaps or parabolic moves:
corr_acc := corr_acc * corr_decay + resid
estimate := kern_out + corr_weight * corr_acc
Directional state is derived from the slope of the finished estimate after a short smoothing window. A consecutive run of bars in the same slope direction must reach a confirmation threshold before the state is allowed to flip. This step prevents single-bar noise from reversing the trend color or firing alerts.
🟢 Signal Interpretation
▶ Bullish Trend (Long/Buy): When the smoothed slope of the estimate remains positive for the required number of confirmation bars, the indicator enters bullish state. The trend line and gradient layers switch to the bullish color. This condition identifies potential long or buy opportunities and remains active until an equal run of negative slope bars confirms a reversal.
▶ Bearish Trend (Short/Sell): When the smoothed slope remains negative for the required confirmation bars, the indicator enters bearish state. The visual elements switch to the bearish color. This condition identifies potential short or sell opportunities and holds until a confirmed positive run occurs.
🟢 Features
▶ Preconfigured Presets: Three parameter sets cover different trading approaches. Default targets swing trading on 1H to daily charts with balanced rate and confirmation. Fast Response raises the recursion rate and shortens confirmation for intraday charts where the indicator needs to adapt to shorter-duration moves. Smooth Trend lowers the rate and lengthens confirmation for position trading on daily and weekly timeframes, where the cost of a false flip is higher than the cost of a delayed one. Selecting a preset overrides the individual rate, efficiency, and state detection inputs.
▶ Built-in Alerts: Three alert conditions are provided. Bullish State Signal fires when the trend state flips from bearish to bullish. Bearish State Signal fires on the opposite transition. Any State Change combines both into a single notification.
▶ Visual Customization: Six color presets (Classic, Aqua, Cosmic, Cyber, Neon, Custom) coordinate the trend line and gradient layers. Optional bar coloring tints candles with the active state color at a configurable transparency.
*Tips: Layer the Recursive Kernel Trend with complementary analysis rather than treating it as a standalone trading tool. State flips hold most reliably when backed by participation, so combine each change with volume context, since a flip on expanding volume is far more likely to sustain than one on thin flow, and read the move against market structure, as a reversal that aligns with a clear swing high or low carries more significance than one in open space. Pairing this script with volume, open interest, CVD, market structure, and mean reversion indicators from our QuantAlgo toolkit can further validate a directional shift before entry. อินดิเคเตอร์

Monotonic Trend Consensus [QuantAlgo]🟢 Overview
Monotonic Trend Consensus is a trend-following oscillator built on rank correlation between price and time rather than moving averages or crossovers. It scores how consistently price is ordered across multiple lookback windows and combines them into a single bounded reading on a -1 to +1 scale, holding the same meaning on any symbol or timeframe so traders can separate a broadly aligned trend from directionless noise and read when a move has stretched to saturation.
🟢 How It Works
The foundation is Spearman rank correlation between price and time, computed over each active window. Closes inside the window are ranked against one another, time forms its own rising sequence of ranks, and the difference between the two collapses to a single coefficient (rho):
float price_rank = less + (eq + 1.0) / 2.0
float time_rank = float(len - i)
float rho = 1.0 - 6.0 * sumd2 / denom
The coefficient reads +1 when each bar closes above the last in unbroken order, 0 when there is no consistent order, and -1 when each bar steps lower. Because it scores ordering rather than smoothing price into a line, it reflects the current window directly rather than trailing behind it, though it still needs a full window of bars to form. Ranking also limits the pull of any single outlier bar, and the bounded output is what lets one threshold hold across markets without rescaling.
A single window describes direction; the tool runs several and averages them into a consensus spanning fast, medium, and slow horizons:
consensus := array.avg(rhos)
Agreement is then measured as the share of windows leaning the same way as the consensus, and this conviction figure must clear a floor before a direction prints, working alongside the strength threshold:
conviction := 100.0 * agree / active
raw_bull = consensus > threshold and conviction >= min_conviction
raw_bear = consensus < -threshold and conviction >= min_conviction
A reading registers only when both clear at once: consensus past the threshold and windows aligned enough to meet the conviction floor. Fail either and the line stays flat. With Show Neutral on, those flat stretches reset to neutral; with it off, the line holds its last direction until the next qualifying move.
🟢 Signal Interpretation
▶ Bullish Consensus (Green): Consensus sits above the upper threshold with enough windows aligned, meaning recent bars are ordered upward across horizons. Trend traders read the turn into green as a possible long or continuation as the score presses toward +1. Mean-reversion traders treat a reading pinned near +1 as a stretched, broadly-agreed advance rather than a buy, and look to fade only once the line rolls back off the extreme, since the score can hold high through a sustained trend.
▶ Bearish Consensus (Red): Consensus sits below the lower threshold with conviction met, with bars ordered downward across horizons. Trend traders read the turn into red as a possible short or continuation as the score presses toward -1. Mean-reversion traders treat a reading pinned near -1 as a saturated decline where a bounce becomes more plausible, and look to fade on the turn back up rather than at the low itself.
▶ Neutral (Gray): With Show Neutral on, the line goes gray whenever no direction qualifies, either because consensus sits inside the threshold or conviction falls short. The zero line acts as the balance point and behaves like support or resistance for the reading itself: a score rejected at zero from above points to bullish order reasserting, a score capped at zero from below points to bearish order holding, and a clean break through leans toward a regime change. Reading this midline behavior against price is where market structure tools pair well, separating a base building above a structural level from a coil forming under overhead supply. Trend traders stand aside until the line commits; mean-reversion traders find less to work with here than at the edges.
▶ Reading the Extremes: The axis caps at +1 and -1, marking maximum agreement across every active window. Trend traders take an extreme as a sign a move is still in force; mean-reversion traders take it as a stretched zone and watch for the score to turn back toward zero as agreement breaks. An extreme that aligns with a known structural level gives a fade a cleaner reference than one in open space, and neither read holds on the extreme alone, since a strong trend can stay saturated before it cools.
🟢 Features
▶ Preconfigured Presets: Three setups map to different holding styles. "Default" suits swing work on 4-hour and daily charts, pairing a mid-range window spread of 8, 13, 21, and 34 with a 0.35 threshold and a 60% conviction floor, so a direction needs both strength and agreement before it flags. "Fast Response" pulls the windows in to 5, 8, 13, and 21 and eases the threshold and conviction floor so the reading keeps pace with quicker intraday swings. "Smooth Trend" stretches the windows out to 21, 34, 55, and 89 and raises both gates for daily and weekly position trading, where a premature flip costs more than a late one. Choosing a preset takes over the manual window, threshold, and conviction fields.
▶ Built-in Alerts: Four conditions track every change in state. "Bullish Trend Signal" triggers when the consensus confirms to the upside. "Bearish Trend Signal" triggers when it confirms to the downside. "Trend Lost / Neutral" triggers when an active direction fades back to flat, which is also the event a mean-reversion trader watches for after an extreme. "Any Trend Change" rolls the two directional events into a single notification for anyone who wants one alert covering both ways.
▶ Visual Customization: Six color schemes (Classic, Aqua, Cosmic, Cyber, Neon, and Custom) carry a matched pair of bullish and bearish colors through the consensus line, its tiered gradient fill down to the zero baseline, and the optional bar and background tints. Marker lines sit at the positive and negative trigger levels to show the zone the consensus has to cross, and each window's own score can be switched on as a faint backing line so you can see which horizons are driving or dragging the combined figure. Bar coloring paints the price candles in the active trend color at an adjustable transparency, while background coloring spreads that tint across the pane.
อินดิเคเตอร์

NORN WEAVE | THURISAZ# NORN WEAVE ᚦ THURISAZ
---
### Overview
NORN WEAVE ᚦ THURISAZ is the third version of the NORN WEAVE series, built on URUZ as its foundation.
The core logic is unchanged — EMA slope, Dow Theory swing structure, ADX trend confirmation. What changed is the entry filter. THURISAZ adds one question before every trade: *where are we standing on the daily chart?*
URUZ was built to survive. THURISAZ is built to choose. Bad entries don't just lose money — they consume time, margin, and mental bandwidth. The goal of this version is to stop entering trades that look right on the current timeframe but are wrong on the bigger picture.
The philosophy remains: survival first, profit second. THURISAZ adds a third principle — *don't enter where you shouldn't be standing.*
---
### What's New: Daily Fibonacci Filter
THURISAZ introduces a daily timeframe Fibonacci filter as a structural context layer.
When the current timeframe trend and the daily trend align, the strategy behaves exactly like URUZ — no additional friction.
When they diverge, THURISAZ evaluates *where* price sits within the daily swing range using Fibonacci retracement levels (0.382 and 0.618):
- **Mid zone (0.382–0.618)** — Price is in the middle of the daily range. This is the "landing zone": the most likely area for a pullback to stall and reverse, not complete. Entries are blocked.
- **Shallow zone (below 0.382)** — The pullback is still early. Entry is allowed, but TP1 is adjusted to the 0.382 level rather than the standard ATR-based target. Partial profit is taken before the natural resistance zone.
- **Deep zone (above 0.618)** — Price has retraced significantly. Potential reversal territory. Entry is allowed with standard targets.
The daily swing detection period is independently configurable from the current timeframe's Focus Level, giving finer control over what constitutes a "daily swing."
---
### Entry Conditions
**Long:** EMA rising AND Dow Theory trend up AND ADX above threshold AND Daily Fibo zone allows AND Footprint Delta bullish (if filter enabled)
**Short:** EMA falling AND Dow Theory trend down AND ADX above threshold AND Daily Fibo zone allows AND Footprint Delta bearish (if filter enabled)
---
### Exit Conditions
- TP1 — ATR × Factor × 1 → closes 30% (or Fibo 0.382 if shallow counter-trend entry)
- TP2 — ATR × Factor × 2 → closes another 30%
- TP3 — ATR × Factor × 3 → closes a further 30%
- Stop Loss — fixed % from entry → closes full position
- Break Even Stop — once floating profit reaches the BE trigger %, stop moves to entry price and closes on pullback
- Trend Reversal — when Dow Theory swing flips → closes full position
---
### Focus Level & Auto Calibration
Unchanged from URUZ. Focus Level is the primary knob — adjust it first when applying to a new symbol or timeframe.
Auto Calibration computes ADX threshold, ATR factor, and Stop Loss from the chart's own volatility data. When enabled, no manual tuning is required.
---
### Break Even Stop
Unchanged from URUZ. One parameter: how far price must move from entry before the stop activates. Stop is always placed at entry price.
---
### Footprint Delta Filter *(Premium plan required)*
Unchanged from URUZ. Uses BTC or ETH footprint delta as a directional confirmation filter. Blocks entries when order flow contradicts the trade direction.
---
### Parameters
- **Focus Level** (default 13) — Main knob. Controls swing detection and EMA scaling.
- **EMA Scale Ratio** (default 5) — EMA length = Focus Level × this value.
- **Daily Swing Length** (default 10) — Swing detection period for the daily timeframe. Independent from Focus Level.
- **Show Daily Fibo Zone** (default ON) — Displays the 0.382 and 0.618 levels on the chart for visual reference.
- **Auto Calibration** (default ON) — Computes ADX threshold, ATR factor, and SL automatically.
- **BE Trigger %** (default 5.5%) — How far price must move before the BE stop activates.
- **ATR Factor** — Manual mode only. Default 3.8.
- **Stop Loss %** — Manual mode only. Default -10.0%.
- **ADX Threshold** — Manual mode only. Default 20.5.
- **Footprint SMA Period** (default 21) — Smoothing period for delta signal.
---
### On Overfitting
One of the design principles of the NORN WEAVE series has been to minimize the number of configurable parameters. More parameters means more room to fit historical data — and less reason to trust that the results will hold going forward.
THURISAZ adds one new parameter: Daily Swing Length. That's it.
The Fibonacci levels themselves (0.382 and 0.618) are not parameters — they are fixed, widely recognized structural levels used by traders across markets and timeframes. They were not chosen by optimizing against backtest data.
The Daily Fibonacci Filter was validated across six symbols (SOL, DOGE, ETH, SUI, NEAR, PEPE). Five of the six showed improvement in profit factor and drawdown. The one exception — PEPE — deteriorated, which is the expected behavior: PEPE's explosive, non-structural price action doesn't respect daily swing context the way trend-following instruments do. A filter that improves everything uniformly would be suspicious. This result is not.
The filter works because the idea behind it is sound, not because it was tuned to work.
---
### Visual Guide
- **EMA line** — 3-layer glow. Teal when rising, red when falling.
- **Dow Theory zones** — gradient fill from current swing level to current price.
- **Daily Fibo lines** — gold lines at 0.382 and 0.618 of the daily swing. Shaded zone between them marks where entries are blocked.
- **TP lines** — semi-transparent. TP1 faintest, TP3 most visible.
- **BE Stop line** — gold, appears only when active.
- **Gray background** — ADX below threshold. No entries.
- **Orange background** — Footprint Delta Filter blocking entry, or Daily Fibo mid zone active.
- **Status table** — real-time display of all conditions. Japanese/English toggle included. Daily Fibo status shown as: Same Dir / Mid Zone (blocked) / Shallow (TP adjusted) / Deep (reversal watch).
---
---
### 概要
NORN WEAVE ᚦ THURISAZ は、URUZを土台とした NORN WEAVE シリーズ第3バージョンです。
コアロジックは変わっていません——EMAの傾き・ダウ理論のスイング構造・ADXトレンド確認。変わったのはエントリーフィルターです。THURISAZは、すべてのトレードの前に一つの問いを加えます。*日足でみたとき、今どこに立っているのか?*
URUZは「生き残る」ために設計されました。THURISAZは「選ぶ」ために設計されています。悪いエントリーは資金を失うだけでなく、時間・証拠金・集中力を消費します。このバージョンの目標は、現在足ではシグナルが正しく見えても、大きな地形では立ってはいけない場所へのエントリーを止めることです。
哲学は変わっていません。まず生き残る、利益はその次。THURISAZは三つ目の原則を加えます——*立つべきでない場所には立たない。*
---
### 追加機能:日足フィボフィルター
THURISAZは、相場の地形を把握するための「日足フィボナッチフィルター」を新たに導入しました。
現在足のトレンドと日足のトレンドが同じ方向の場合、ストラテジーはURUZとまったく同じ挙動をします——追加の制約はありません。
方向が逆の場合、THURISAZはフィボナッチリトレースメント水準(0.382・0.618)を使い、日足スイングのどの位置に価格があるかを評価します。
- **中間ゾーン(0.382〜0.618)** — 価格が日足レンジの真ん中にある状態。「踊り場」と呼ぶべき位置で、押し目・戻しが途中で止まって反転する可能性が最も高い。エントリーをブロックします。
- **浅いゾーン(0.382以下)** — 押し目・戻しがまだ浅い段階。エントリーは許可しますが、TP1を通常のATRベースから日足フィボ0.382水準に調整します。自然な抵抗ゾーンの手前で部分利確します。
- **深いゾーン(0.618以上)** — 大きく押し込まれた位置。反転の可能性がある水準として通常通りエントリーします。
日足のスイング検出期間は現在足のフォーカスレベルとは独立して設定できます。
---
### エントリー条件
**ロング:** EMA上向き AND ダウ理論上昇 AND ADXしきい値以上 AND 日足フィボゾーン許可 AND フットプリントデルタ買い優勢(フィルター有効時)
**ショート:** EMA下向き AND ダウ理論下降 AND ADXしきい値以上 AND 日足フィボゾーン許可 AND フットプリントデルタ売り優勢(フィルター有効時)
---
### イグジット条件
- TP1 — ATR×倍率×1 → 30%決済(逆張り・浅いゾーン時はフィボ0.382水準)
- TP2 — ATR×倍率×2 → さらに30%決済
- TP3 — ATR×倍率×3 → さらに30%決済
- ストップロス — エントリーから設定%に達したら全決済
- ブレークイーブンストップ — 含み益がBE発動しきい値%に達したらストップが建値に移動。価格が戻ったら全決済
- トレンド反転 — ダウ理論スイングが逆転した時点で全決済
---
### フォーカスレベルとオートキャリブレーション
URUZから変更なし。フォーカスレベルが主軸ノブです。新しい銘柄・時間足に適用するときはここを最初に調整してください。
オートキャリブレーションをONにすると、ADXしきい値・ATR倍率・SLがチャートのボラティリティデータから自動算出されます。
---
### ブレークイーブンストップ
URUZから変更なし。設定項目は一つ——「何%動いたら発動するか」だけ。ストップ位置は常に建値です。
---
### フットプリント・デルタフィルター *(Premiumプラン以上が必要)*
URUZから変更なし。BTCまたはETHのフットプリントデルタを方向性確認フィルターとして使用します。
---
### パラメーター
- **フォーカスレベル**(デフォルト13)— 主軸ノブ。スイング検出・EMAスケールを制御。
- **EMAスケール倍率**(デフォルト5)— EMA期間 = フォーカスレベル × この値。
- **日足スイング検出期間**(デフォルト10)— 日足フィボ計算に使うスイング検出期間。フォーカスレベルとは独立。
- **日足フィボゾーン表示**(デフォルトON)— 0.382・0.618ラインをチャートに表示。
- **オートキャリブレーション**(デフォルトON)— ADXしきい値・ATR倍率・SLを自動算出。
- **BE発動しきい値%**(デフォルト5.5%)— エントリーからこの%動いたらBEストップが発動。
- **ATR倍率**(手動)— オートキャリブレーションOFF時に有効。デフォルト3.8。
- **損切り%**(手動)— オートキャリブレーションOFF時に有効。デフォルト-10.0%。
- **ADXしきい値**(手動)— オートキャリブレーションOFF時に有効。デフォルト20.5。
- **フットプリントSMA期間**(デフォルト21)— デルタシグナルの平滑化期間。
---
### 過剰最適化について
NORN WEAVE シリーズの設計方針の一つは、パラメーター数をできる限り減らすことでした。パラメーターが増えるほど過去データへの過剰適合が起きやすくなり、将来の結果を信頼する根拠が薄れるからです。
THURISAZで追加したパラメーターは「日足スイング検出期間」の一つだけです。
フィボナッチ水準(0.382・0.618)自体はパラメーターではありません——バックテストデータを最適化して選んだ値ではなく、多くのトレーダーが長年にわたって参照してきた普遍的な構造水準です。
日足フィボフィルターは6銘柄(SOL・DOGE・ETH・SUI・NEAR・PEPE)で検証しました。そのうち5銘柄でPFとDDが改善しました。唯一悪化したのはPEPEですが、これは想定内の結果です——PEPEの急騰急落型の値動きは日足スイング構造を参照するロジックとそもそも相性が悪い。すべての銘柄で一様に改善するフィルターの方が、むしろ過剰最適化を疑うべきです。
このフィルターが機能するのは、チューニングの結果ではなく、背後にある考え方が正しいからだと考えています。
---
### チャートの見方
- **EMAライン** — 3層グロー効果。上向きはティール、下向きはレッド。
- **ダウ理論ゾーン** — 現在のスイングレベルから現在価格へのグラデーション。
- **日足フィボライン** — 日足スイングの0.382・0.618をゴールドラインで表示。その間のシェードが「踊り場ゾーン(エントリーブロック)」。
- **TPライン** — 半透明。TP1が最も薄く、TP3が最も濃い。
- **BEストップライン** — ゴールド。発動中のみ表示。
- **グレー背景** — ADXがしきい値以下。エントリーなし。
- **オレンジ背景** — フットプリントデルタフィルターがブロック中、または日足フィボ踊り場ゾーンが有効。
- **ステータステーブル** — 全条件・パラメーター値をリアルタイム表示。日英切り替え対応。日足フィボの状態は「同方向 / 踊り場(ブロック)/ 浅い(TP調整)/ 深い(反転狙い)」で表示。 กลยุทธ์

MACD Divergence Suite [invincible3]MACD Divergence Suite
Overview
MACD Divergence Suite is an advanced MACD-based momentum and trend indicator designed to provide a clearer view of market direction, momentum strength, divergence, and multi-timeframe confirmation.
This indicator expands the traditional MACD by adding configurable moving average types, normalized MACD values, gradient cloud visualization, SMA-based candle coloring, divergence labels, signal arrows, and a compact multi-timeframe dashboard.
Configurable MACD Calculation
The indicator allows full customization of the MACD calculation. Users can choose the price source and select different moving average types for the fast line, slow line, and signal line.
Supported moving average types include:
• EMA
• SMA
• DEMA
• TEMA
• WMA
• VWMA
• HMA
• RMA
This makes the indicator flexible for different trading styles, assets, and timeframes.
Normalized MACD
The MACD values are normalized to a fixed scale, making momentum easier to compare across different markets and timeframes. This helps reduce the visual inconsistency that can happen when using raw MACD values on assets with very different price ranges.
Gradient MACD Cloud
A layered gradient cloud is plotted between the MACD line and the signal line. The cloud changes color based on bullish or bearish momentum and becomes visually stronger when the MACD spread increases.
This helps traders quickly identify momentum expansion, compression, and possible trend shifts.
Trend-Colored MACD Line
The main MACD line uses trend-sensitive coloring based on the selected bullish and bearish colors. Strong bullish movement appears with stronger bullish color, while strong bearish movement appears with stronger bearish color.
The signal line remains gray to keep the chart clean and easy to read.
Oscillator Bars
The oscillator bars show normalized MACD histogram strength. Bar colors use a gradient effect based on momentum strength, helping traders visually detect increasing or weakening momentum.
SMA Candle Coloring
The indicator includes SMA-based candle coloring on the main chart. Candles are colored bullish when price is above the selected SMA and bearish when price is below the selected SMA.
This provides quick trend confirmation directly on the price chart.
Divergence Detection
The indicator detects bullish and bearish divergence using the normalized MACD oscillator. Divergence lines and labels can appear on both the MACD pane and the price chart.
Bullish divergence highlights possible upside reversal areas, while bearish divergence highlights possible downside reversal areas.
Signal Arrows
MACD crossover signals are shown with arrows. The signals can be filtered using normalized MACD levels, helping reduce weak signals in neutral zones.
Arrow distance can also be adjusted so chart signals appear cleaner and do not overlap candles.
Multi-Timeframe Dashboard
A compact multi-timeframe dashboard summarizes market conditions across multiple timeframes.
The dashboard includes:
• Normalized MACD value
• MACD signal direction
• Histogram state
• Recent divergence status
• SMA-based trend condition
The trend row shows whether price is above or below the selected SMA, giving a simple Bull/Bear trend filter across timeframes.
Key Features
• Configurable MACD moving average types
• Adjustable fast, slow, and signal lengths
• Selectable price source
• Normalized MACD scale
• Gradient MACD cloud
• Trend-colored MACD line
• Gray signal line for cleaner visibility
• Strength-based oscillator bars
• SMA-based candle coloring
• Bullish and bearish divergence detection
• Divergence labels on MACD pane and price chart
• Multi-timeframe dashboard
• Optional normalized MACD signal filtering
• Adjustable signal arrow distance
• Custom bullish and bearish color presets
How to Use
Use the MACD line, signal line, and cloud to read momentum direction. A bullish cloud suggests positive momentum, while a bearish cloud suggests negative momentum.
Use the oscillator bars to confirm whether momentum is increasing or weakening.
Use divergence labels to identify potential reversal areas.
Use the SMA candle coloring and dashboard trend row as a trend filter. Bullish signals are generally stronger when price is above the SMA, while bearish signals are generally stronger when price is below the SMA.
Best Used For
This indicator is useful for:
• Trend-following analysis
• Momentum confirmation
• Multi-timeframe market structure
• Divergence-based reversal spotting
• Signal filtering
• Visual MACD analysis
Disclaimer
This indicator is intended for technical analysis and educational use only. It should not be used as financial advice. Always combine signals with proper risk management and additional market analysis.
อินดิเคเตอร์

อินดิเคเตอร์

EMA Edge - Multi-EMA Backtest Table with Golden/Death CrossEMA Edge — Multi-EMA Backtest Table with Golden/Death Cross
A clean, all-in-one performance dashboard that backtests 6 long-only strategies side-by-side against a Buy & Hold benchmark — 5 single-EMA crossover strategies plus a classic Golden Cross / Death Cross strategy — with on-chart cross markers and built-in alerts.
Instead of guessing which EMA length works best for a given stock or timeframe, this indicator runs the math for you and shows the answer in a single glance, ranked against simply holding the asset.
What It Does
For each of 5 user-defined EMA lengths, the indicator simulates a simple long-only strategy:
Buy when price closes above the EMA (when flat)
Sell when price closes below the EMA (when long)
Equity starts at 100 and compounds across trades using the close-to-close return of each trade
A 6th strategy row tests the classic Golden/Death Cross:
Buy when the fast EMA crosses above the slow EMA (Golden Cross)
Sell when the fast EMA crosses below the slow EMA (Death Cross)
Special first-bar handling: if the fast EMA is already above the slow EMA at the start of your backtest window (i.e., we're mid-trend with no fresh Golden Cross to wait for), the strategy enters immediately at that bar's opening price. This avoids the unrealistic outcome of sitting in cash for years waiting for a cross that already happened.
All strategies are compared against a Buy & Hold baseline that starts at the close of the first in-range bar. If a position is open at the last bar, its equity is marked-to-market so every strategy is compared on equal terms — fully invested vs. partially invested at the cutoff.
Features
5 configurable EMAs — defaults 9 / 21 / 50 / 100 / 200, fully editable
Golden/Death Cross strategy — uses independent fast/slow EMA inputs (default 50 / 200)
Performance table showing Return %, delta vs. Buy & Hold, and Outperform / Underperform status per strategy
Flexible backtest window — X weeks, X years, or full chart lifetime
On-chart GC / DC markers with optional subtle background tint on cross bars
Built-in alerts for both Golden Cross and Death Cross events
Fully customizable table — 9 position options, 6 text sizes, all colors exposed as inputs
Soft, light color palette designed not to dominate the chart
Optional EMA plotting (off by default to keep the chart clean)
How To Read The Table
ColumnMeaningStrategyThe rule being testedReturnTotal % return of the strategy over the chosen windowVs StockDifference between the strategy's return and Buy & HoldStatus▲ Outperform if the strategy beat Buy & Hold, ▼ Underperform if not
Green-tinted rows = strategy beat Buy & Hold
Red-tinted rows = strategy underperformed Buy & Hold
Cream row = the Buy & Hold baseline itself
How To Use
Add the indicator to any chart — works on stocks, ETFs, crypto, forex, any timeframe.
Choose your backtest window (e.g., 1 Year, 5 Years, or Lifetime).
Scan the table to see which strategy historically beat Buy & Hold on this asset.
Use the on-chart GC / DC labels to spot historical and live cross events. Right-click any marker → Add Alert to be notified on new crosses.
Tip: Test the same EMA lengths across daily and weekly timeframes and across different assets. You'll usually find that what works on a steady index like SPY does not work on a volatile single stock, and vice versa. That's the entire point of the table — to make those differences visible instead of assumed.
Key Inputs
EMA 1–5: Lengths for the 5 single-EMA strategies
Show EMAs: Plot EMAs on chart (off by default)
Use Lifetime Performance: Backtest from the very first bar instead of a fixed window
Performance Timeframe Type / Value: Weeks or Years lookback
Crosses group: Toggle GC/DC display, set fast/slow EMA lengths, customize colors
Table Style group: Position, text size, background and text colors
Notes & Limitations
All strategies are long-only — no shorts, no leverage, no stops, no commissions, no slippage. This is a clean rule-based comparison, not a turnkey trading system. Live results will differ.
Entries and exits use close prices, except for the GC/DC strategy's first-bar entry when already in a golden state, which uses open.
Open positions at the last bar are marked-to-market so the comparison vs. Buy & Hold is apples-to-apples.
Past performance is not indicative of future results. Use this as a research and screening tool.
The GC/DC strategy uses separate EMA lengths from the 5 table EMAs by design, so you can run 9/21/50/100/200 in the table while still testing the classic 50/200 cross.
Alerts Available
Golden Cross: Fast EMA crossed above Slow EMA
Death Cross: Fast EMA crossed below Slow EMA
If you find this useful, a boost is appreciated. Suggestions and feedback welcome in the comments.
Open-source — feel free to study, fork, and adapt. อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

Elaris Smart Scalping IndicatorElaris Smart Scalping Indicator is a non-repainting trend and momentum scalping tool designed to help traders identify higher-quality buy and sell conditions using a structured confluence model.
The indicator combines EMA trend direction, RSI momentum, MACD histogram confirmation, volume strength, ATR volatility filtering, optional higher-timeframe bias, and session filtering into a clean signal-scoring system. Signals are confirmed only after candle close, helping reduce intrabar noise and repainting behavior.
It also includes visual TP/SL guide levels, trend background shading, buy/sell labels, alert conditions, and a compact dashboard showing trend state, HTF bias, RSI, ATR percentage, volume filter status, and signal score.
This tool is designed for scalping and short-term trading analysis across crypto, forex, indices, and other liquid markets. It is not financial advice and should be used with proper risk management and additional market context.
Key Features
Non-repainting confirmed buy/sell signals
EMA-based trend engine with adjustable strictness
RSI and MACD momentum confirmation
Optional higher-timeframe trend filter
Volume and ATR volatility quality filters
Optional session filter
Signal score system from 0–100
Visual entry, stop loss, TP1, and TP2 guide levels
Clean dashboard for live market state
Built-in TradingView alert conditions อินดิเคเตอร์

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.
อินดิเคเตอร์

Squeeze Bollinger Bands Tracker [MarkitTick]💡 This institutional-grade analysis suite provides a sophisticated volatility-tracking environment designed to identify market compression phases and high-conviction breakouts. By integrating Bollinger Band standard deviation logic with Z-Score normalization and a non-linear sigmoid volatility engine, the script transforms raw price action into a multi-dimensional heatmap. This approach allows traders to distinguish between low-volatility "coiling" phases and institutional-driven momentum expansions, providing a clear visual representation of market energy.
● ✨ Originality and Utility
The Squeeze Bollinger Bands Tracker distinguishes itself through the implementation of a proprietary "Signal Engine" and a non-linear volatility grading system. Unlike standard Bollinger Band indicators that merely plot static lines, this tool actively monitors the rate of change in channel width relative to its own historical standard deviation.
• Dynamic Volatility Normalization
Most indicators rely on linear calculations that fail to account for the exponential nature of market expansion. This script utilizes a Z-Score calculation to determine how extreme a volatility move is compared to its history, then maps that value through a sigmoid function. This creates a "Heatmap" effect on the candles that reflects institutional participation levels rather than simple price movement.
• Institutional Breakout Grading
The utility is further enhanced by an automated grading system (Grades A, B, and C). By cross-referencing price spread (the distance between open and close) with actual volume metrics during a breakout, the script provides an objective measure of signal quality, helping traders filter out "fakeouts" that lack volume support.
● 🔬 Methodology and Concepts
The logic flow is divided into three core analytical pillars: Compression Detection, Momentum Normalization, and Signal Verification.
• Compression Detection (The Squeeze)
The script calculates the percentage-based width of the Bollinger Bands. When the current width falls below its SMA-based average, the market is classified as being in a "Squeeze" state. This signifies a period where market energy is being stored, often preceding a significant directional expansion.
• Sigmoid-Mapped Z-Score Volatility
To provide the neon heatmap coloring, the script calculates the Z-Score of the channel width. This tells us how many standard deviations the current volatility is from the mean. This Z-Score is then processed through a Sigmoid Function: 100 / (1 + exp(-Z-Score)). This mathematical transformation squashes the infinite Z-Score range into a 0–100 scale, creating a smooth gradient for the "True Institutional Heatmap."
• Breakout Validation Engine
Signals are not generated simply on a price cross. The Signal Engine (a custom User-Defined Type) calculates real-time Entry, Stop Loss (based on the previous basis line), and Take Profit levels. During the moment of crossover, the "calcGrade" method evaluates if the current bar's spread and volume are at least 150% of their historical averages to assign a Grade A "Institutional" breakout.
● 🎨 Visual Guide
The visual interface is designed with a high-contrast "3D Neon" aesthetic to ensure critical data points are immediately recognizable during fast-moving market conditions.
• The 3D Neon Channels
Upper Core & Glow: The upper Bollinger Band is rendered in Cyan (#00FFFF). It features three layers: a 2-pixel core for precision and two wider "Glow" layers with varying transparency (60% and 85%) to create a neon effect.
Lower Core & Glow: The lower band is rendered in Magenta (#FF00FF), following the same three-layer glow architecture to signify the support boundary.
Basis Core: The central moving average is rendered in Yellow (#FFFF00), acting as the dynamic mean and the primary stop-loss anchor.
• True Institutional Heatmap Candles
The candle colors are not fixed; they represent a gradient based on the Sigmoid Volatility score.
Bullish State: Transitions from a deep "Cold" Forest Green (#004D40) during low-volatility rises to a "Hot" Neon Green (#00FF00) during high-momentum surges.
Bearish State: Transitions from a deep "Cold" Purple (#4A148C) during low-volatility drops to a "Hot" Neon Red (#FF0000) during aggressive sell-offs.
Neutral State: Gray (#808080) candles appear when no definitive trend state is identified by the Signal Engine.
• Analytical Dashboard and Labels
Buy/Sell Labels: When a breakout occurs, a Cyan or Magenta label appears. It displays the signal Grade (A, B, or C) and the calculated E (Entry), TP (Take Profit), and SL (Stop Loss) values.
Institutional Analytics Dashboard: Located in the top-right, this table provides real-time data on Trend Maturity (in bars), Volatility State (Squeeze vs. Expanding), and the percentage proximity to the upper and lower breakout levels.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The indicator is built upon the foundation of Statistical Process Control and Information Theory. By treating price movement as a signal-to-noise problem, the script uses the following frameworks:
• Standard Deviation and Gaussian Distribution
The core of the Bollinger Band calculation relies on the assumption that price spends approximately 95% of its time within two standard deviations of the mean. The "Squeeze" logic identifies periods where the distribution is abnormally tight, suggesting an imminent return to the mean or a "Fat Tail" event (a breakout).
• Z-Score Normalization
In statistics, the Z-Score is used to compare observations from different data sets or time periods. By applying Z-Score logic to the width of the bands, the indicator removes the "unit" of price and focuses purely on the intensity of the volatility, allowing for a standardized comparison across different assets (e.g., Bitcoin vs. Apple).
• Non-Linear Sigmoid Mapping
The use of the Sigmoid function (common in Neural Network activation) serves to eliminate outliers in volatility data. This ensures that the candle heatmap provides meaningful color variations even during extreme "Black Swan" events, preventing the visual output from becoming saturated or unreadable.
● 📖 How to Use
Traders should focus on the transition between market states as displayed by the Analytics Dashboard and the Heatmap.
• Step 1: Identify the Squeeze
Monitor the "Volatility State" in the dashboard. When it displays "⚠️ SQUEEZE" in Neon Orange, the market is coiling. This is the preparation phase where no trades should be taken.
• Step 2: Evaluate the Breakout Grade
Wait for a "BUY" or "SELL" label to appear. Priority should be given to "Grade A" signals, as these indicate that both price spread and volume have significantly exceeded their 20-period averages, confirming institutional intent.
• Step 3: Execution and Risk Management
Upon a valid signal, the script provides an automated trade plan. The Stop Loss is set at the Basis (Yellow) line from the previous bar to allow for minor breathing room, while the Take Profit is projected at a 1:1 ratio relative to the width of the band at the time of entry.
● ⚙️ Inputs and Settings
The script provides granular control over the analytical engine and the visual experience.
• Channel Settings
Channel Length: Controls the SMA window for the Bollinger Bands (Default: 20).
Standard Deviation Multiplier: Adjusts the width of the neon boundaries (Default: 2.0).
• Analytics Settings
Squeeze/Z-Score Length: Determines the lookback period used to define what constitutes "average" volatility (Default: 50).
Quality SMA Length: Defines the window for the Grade A/B/C volume and spread verification (Default: 20).
• Color and Heatmap Settings
Users can fully customize the Neon Upper/Lower colors, the Dashboard background transparency, and the specific "Cold" and "Hot" thresholds for the candle gradient engine to match their preferred dark or light chart theme.
⚠️ 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. อินดิเคเตอร์

อินดิเคเตอร์

Breakeven Review Planner [AGPro Series]Breakeven Review Planner
🧠 Core Idea
Has the move progressed enough to review breakeven protection, or is the context still too early, weak, or exposed?
📌 Overview / What it does
Breakeven Review Planner is a trade-management overlay designed to evaluate post-activation move progress. Instead of asking users to manually draw a full entry, stop, and take-profit plan, the script detects a qualified directional move, anchors an activation reference, builds a structural invalidation shelf, and measures live R progress from that context.
The output is a clean breakeven review workflow: a BE review zone, activation reference, invalidation shelf, current R reading, trend-support state, pullback-risk state, event labels, alerts, and a premium AGPro panel.
It does not predict price direction, place trades, calculate position size, build a take-profit ladder, or tell users to move a stop. Alerts and labels are attention markers for review context only.
🎯 Purpose & Design Philosophy
This script was built for traders who already manage active moves and need a cleaner way to evaluate whether the move has earned a breakeven review.
The gap it fills is not pre-trade risk/reward planning. AGPro already has tools for that. This script focuses on the management phase after a move is active: progress, structure, trend support, and pullback risk.
The design supports a disciplined review mindset. It helps users read whether the chart has built enough progress to deserve attention without turning that review into an automated instruction.
⚡ Why This Script Is Different
Most risk/reward tools focus on manual entry, stop-loss, targets, position sizing, and breakeven probability.
This script does NOT build a full trade plan, does NOT create TP ladders, and does NOT tell users to move a stop.
Instead, it watches the live chart for a qualified management context, scores the move's progress toward a breakeven review threshold, and keeps the user focused on whether the current structure is strong, weak, stale, or invalidated.
⚙️ Methodology
1. Context Detection
The script detects directional activation when price escapes recent structure with enough ATR-normalized impulse, candle commitment, close-location quality, and trend support.
2. Reference Mapping
After activation, the script anchors an activation reference and builds an invalidation shelf from the latest confirmed swing plus an ATR buffer.
3. Reaction Evaluation
The engine measures current R, best favorable R, trend support, candle quality, volatility fit, and pullback depth after progress.
4. Visual Output
The chart displays the BE review zone, progress fill, context lines, event labels, candle tint, alerts, and the AGPro panel.
🗺️ How to Read the Chart
Zones = the BE review area around the configured R trigger. It is a review zone, not a command.
Labels = context markers such as armed context, progress milestones, BE review, pullback watch, stale context, and invalidation.
Colors = teal for bullish-supported context, pink for bearish or invalid context, amber for caution, and indigo for breakeven review focus.
Panel = the current decision cockpit. It shows Review Score, Current R, BE Trigger, Progress State, Trend Support, and Action.
🚦 Signals & States
• Bull Context Armed → a bullish management context was activated after structure escape.
• Bear Context Armed → a bearish management context was activated after structure escape.
• BE Review Active → current progress reached the configured R threshold for breakeven review.
• Review + Pullback → price reached review progress but has pulled back enough to require closer attention.
• Stale → the context spent too many bars without enough progress.
• Invalidated → price reached the structural invalidation shelf.
🔔 Alerts Logic
Alerts trigger when a new management context activates, the BE review zone is reached, the review quality is high, pullback risk increases after review progress, the invalidation shelf is reached, or the context becomes stale.
Alerts are attention markers. They are not trading instructions, broker actions, or automated stop-management commands.
🧩 Confluence Logic
The strongest review context appears when R progress, trend support, candle close quality, controlled pullback depth, and normal volatility fit align.
When these conditions align, the Review Score rises and the panel state becomes easier to interpret.
📊 When to Use
• Active directional moves after structure expansion
• Trend continuation environments
• Breakout follow-through review
• Trade-management review after favorable progress
• Charts where users want R-style context without a full manual RR planner
⚠️ When NOT to Use
• Very low-liquidity symbols
• Extremely noisy ranges
• News shock candles with distorted ATR behavior
• Non-standard chart types that alter candle structure
• Situations where the user needs exact broker-level stop management
🎛️ Key Inputs
• Sensitivity → changes how quickly or strictly the script activates a management context.
• Structure Lookback → controls the recent structure boundary used for activation.
• BE Review Trigger (R) → sets the R threshold for review-zone activation.
• Invalidation Shelf Buffer ATR → controls how much ATR padding is added beyond the latest swing.
• Pullback Warning Depth (R) → controls when post-review pullback risk is marked.
• Visual settings → control labels, zones, progress fill, line extension, candle tint, and object limits.
• Panel settings → control panel visibility, location, theme, and font size.
🖥️ Interface & Visual Design
The panel follows the AGPro public-release standard with one merged blue header row containing only the script name.
The chart is designed to stay active but not crowded. It uses a single review zone, clean context lines, a subtle progress fill, and capped event labels.
Label and panel font sizes are adjustable, with Normal as the default.
🧪 Practical Usage Workflow
1. Read the panel Review Score and Progress State.
2. Check whether price is below, inside, or beyond the BE review zone.
3. Compare Current R with best favorable R to understand whether progress is expanding or pulling back.
4. Confirm whether trend support is still aligned.
5. Treat alerts as review prompts, not as automated trade actions.
🔍 Interpretation Guidelines
A high score means the move has progressed toward the review zone with stronger internal structure according to the script's rules.
A low score means the move is early, weak, stale, pulling back, or structurally invalidated.
The most useful interpretation comes from reading score, state, trend support, and invalidation together instead of relying on a single label.
🚫 What This Script Is NOT
• Not a prediction engine
• Not financial advice
• Not auto trading
• Not guaranteed signals
• Not a position sizing calculator
• Not a manual risk/reward visualizer
• Not a take-profit planner
⚠️ Limitations & Transparency
The activation model is rule-based and depends on recent structure, ATR, candle behavior, and trend filters.
Different timeframes can produce different activation references and invalidation shelves.
Fast volatility expansion can make R progress move quickly, while low volatility can keep contexts stale.
No rule-based tool can know a user's actual broker order, risk tolerance, or execution plan.
🧠 Market Context Notes
Breakeven review is most useful when progress, structure, and volatility are read together.
A move can reach a review zone while still having weak trend support or heavy pullback risk.
The script is designed to keep those differences visible.
🧾 Use Case Examples
When price breaks recent structure, trend support is aligned, and current R approaches the BE review threshold, the panel may shift from Building to Approaching Review.
When current R reaches the configured BE trigger and the score is strong, the script marks the review zone and can trigger a high-quality review alert.
When best favorable R was strong but current R pulls back by the configured amount, the script marks Pullback Watch instead of treating the move as automatically healthy.
🧱 System Philosophy
The AGPro approach is to turn chart information into structured decision context.
This script follows that philosophy by converting move progress into a clean review framework: activation, invalidation, R progress, trend support, pullback risk, and next review state.
🔐 Non-Promise Statement
This script does not provide certainty.
It does not guarantee that a breakeven review will improve trade outcome.
It only organizes the conditions that may make breakeven review context more visible.
📉 Risk Disclosure
Trading involves risk.
Users are responsible for their own analysis, execution, risk management, and decisions.
This script is for educational and analytical purposes only and does not provide financial advice.
📚 Educational Note
Use the tool to study how active moves progress, stall, pull back, or invalidate around a structured management threshold.
อินดิเคเตอร์

Chandelier Exit Flip Zones [AGPro Series]Chandelier Exit Flip Zones
Chandelier Exit Flip Zones is a premium ATR trailing-stop and exit-state engine built for traders who want more than a simple stop line on the chart.
The script takes the classic Chandelier Exit concept and turns it into a structured decision layer:
Chandelier trail -> trail-side flip -> flip quality -> continuation state -> exit-pressure awareness
The result is a clean public-free tool for reading trend continuation, trailing-stop pressure, and Chandelier flip transitions without turning the chart into a crowded signal board.
📌 Why This Script Exists
Chandelier Exit is one of the most practical and searched trailing-stop concepts because it connects trend direction with volatility. Many traders use it to trail positions, judge when momentum is still holding, or identify when price is starting to lose distance from its active stop area.
Most Chandelier tools stop at the line.
This script adds the missing context:
- Which side of the Chandelier trail is active?
- How far is price from the trail in ATR terms?
- Was the latest trail flip strong or weak?
- Is the market still in continuation mode?
- Is price compressing back into an exit-watch area?
- Did the transition create a clean forward flip zone?
That extra layer is what makes the script more useful than a standard ATR trailing-stop overlay.
⚡ What Makes It Different From Standard Chandelier Exit Indicators
Most public Chandelier Exit indicators are visually simple. They usually plot a long stop, a short stop, and sometimes a basic flip marker.
Chandelier Exit Flip Zones is built around a stronger reading model.
It evaluates each trail flip through a quality score that combines:
- Trail-break strength
- EMA trend agreement
- Range expansion
- Candle close location
- Optional volume participation
This means the script does not treat every flip equally. A weak flip inside chop is not presented with the same weight as a cleaner transition with better structure, stronger expansion, and better directional agreement.
The script also uses quality-filtered Flip Zones. These boxes are not generic support and resistance areas. They are drawn around the Chandelier transition area where price breaks the previous trail and establishes a new active side. The purpose is to mark the actual trail-flip area, not to fill the chart with unrelated levels.
🧭 How It Is Different From Other AGProLabs Scripts
This script was intentionally kept in a narrow Chandelier Exit lane so it does not overlap with other AGProLabs public releases.
It is not a SuperTrend script. SuperTrend logic is built around a different volatility-band mechanism, while this tool is built around Chandelier high/low structure anchors and ATR trail distance.
It is not an ATR compression or ATR breakout script. Those concepts focus on volatility contraction, breakout pressure, or expansion behavior. This script focuses on the active trailing-stop side, distance from the Chandelier trail, and exit-state awareness.
It is not a generic trend dashboard. The panel is compact and centered on trail side, ATR multiple, distance, flip quality, and continuation or exit-watch state.
It is not a support/resistance zone engine. The only zones are concept-native Flip Zones created from qualified Chandelier trail transitions.
This keeps the script differentiated, practical, and publication-safe inside the AGPro Series catalog.
✅ Core Features
- Chandelier Exit trail based on ATR distance and recent structure anchors
- Long-side and short-side trail state
- Bullish and bearish trail-flip detection
- Flip quality score from 0 to 100
- Prime, qualified, and developing flip classifications
- ATR distance from the active trail
- Percentage distance from the active trail
- Continuation, control, and exit-watch state logic
- Quality-filtered forward Flip Zones
- Optional exit-watch labels, disabled by default for a cleaner public view
- Label cooldown and maximum label controls
- Maximum visible zone control
- Adjustable label font size
- Adjustable panel font size
- Adjustable panel location
- Dark, light, and auto panel theme options
- AGPro-style panel with a single merged blue header row
- Alerts for bullish flips, bearish flips, prime flips, and exit-watch conditions
📊 Panel Readout
The panel is designed to give a fast read without visual overload:
Trail Side
Shows whether the active Chandelier trail is currently long-side or short-side.
ATR Multiple
Shows the volatility multiple used by the current trail.
Distance
Shows how far price is from the active trail in both ATR and percentage terms.
Flip Quality
Displays the most recent flip score and classification.
State
Classifies the current condition as continuation, control, or exit watch.
🎯 How To Read It
A strong Chandelier flip means price has crossed the prior active trail with enough quality to deserve attention. The score helps separate cleaner transitions from weaker flips in noisy conditions.
A continuation state means price has moved far enough from the active trail and still has trend agreement behind it. This is the cleaner trend-following condition.
A control state means price is on one side of the trail, but the continuation profile is not yet strong enough to classify as a high-conviction continuation read.
An exit-watch state means price has compressed back toward the active Chandelier trail. This does not make the script a prediction tool. It simply highlights that the active trend has less distance from its trailing-stop structure and deserves closer attention.
💎 Why Traders May Like It
The script is useful because it keeps the original simplicity of Chandelier Exit while adding the context traders usually have to judge manually.
It can help users read:
- Trend-following continuation quality
- ATR trailing-stop distance
- Trail-side transitions
- Cleaner Chandelier flip zones
- Exit-pressure areas near the active trail
- Strong versus weak flip behavior
The default view is intentionally restrained. Exit-watch labels are available, but disabled by default so the first chart impression stays cleaner. Flip labels and zones are also filtered by score so the chart does not get flooded during sideways periods.
🛠 Suggested Use Cases
- Trend-following exit management
- Swing-trading trail awareness
- Crypto trend continuation tracking
- Forex and index trailing-stop context
- Stock trend-state monitoring
- Identifying stronger Chandelier trail transitions
- Monitoring when price compresses back toward the active trail
⚙️ Recommended Default Style
The defaults are tuned for a public-free premium view:
- ATR Length: 22
- Structure Lookback: 22
- ATR Multiple: 3.0
- Flip Zones: enabled
- Minimum Zone Score: 50
- Minimum Flip Label Score: 45
- Exit Labels: disabled by default
- Label Font Size: Normal
- Panel Font Size: Normal
- Panel Theme: Dark
These settings keep the tool immediately usable while preserving a clean chart presentation.
🔹 In One Sentence
Chandelier Exit Flip Zones turns a classic ATR trailing stop into a cleaner Chandelier trail, flip-quality, continuation-state, and exit-pressure map built for serious chart reading without unnecessary clutter. อินดิเคเตอร์

Hull MA Trend Zones [AGPro Series]Hull MA Trend Zones
📌 Overview
Hull MA Trend Zones is a premium HMA trend overlay built for traders who want a cleaner way to read Hull Moving Average direction, slope quality, and pullback behavior.
The script is centered on one clear idea: a strong HMA trend should not only move above or below a moving average; it should show measurable slope, orderly ribbon structure, and controlled pullback behavior around the active HMA path.
Instead of presenting a crowded moving average wall, the script uses a focused three-line HMA structure, a subtle pullback band, and concept-native trend zones that are tied directly to the active Hull MA state.
⚙️ How It Works
The engine calculates a fast HMA, an anchor HMA, and a slow HMA.
The anchor HMA is the main decision line. Its slope is normalized with ATR so the script can judge whether the current Hull MA movement is weak, transitional, or directional.
The ribbon structure then checks whether the fast, anchor, and slow HMA lines are aligned. This separates clean trend movement from mixed or unstable movement.
Finally, the pullback layer evaluates whether price is extending away from the HMA, testing the HMA zone, holding the HMA zone, rejecting from the HMA zone, or failing the active trend path.
🧭 What The Script Shows
- HMA ribbon for clean trend direction.
- ATR-based HMA pullback band around the anchor HMA.
- Rectangular HMA slope zones created from active directional states.
- Confirmed, quality-gated Bull Turn and Bear Turn labels.
- Optional Hold and Reject labels for pullback events.
- A compact AGPro panel with HMA State, Slope Strength, Pullback Status, and Quality Score.
📊 AGPro Panel
The panel is designed for fast scanning without taking over the chart.
HMA State shows whether the active read is bullish, bearish, transitional, or neutral.
Slope Strength converts the anchor HMA slope into a clear percentage-style reading.
Pullback Status explains whether price is extending, testing, holding, rejecting, or failing the HMA trend zone.
Quality Score combines slope strength, ribbon alignment, and pullback behavior into a single 0-100 reading.
🎯 What Makes It Different
Hull MA Trend Zones is not a generic moving average ribbon, not a ribbon compression map, and not a broad support/resistance tool.
Its focus is narrower and more practical: HMA slope, HMA trend-zone behavior, and pullback-to-HMA quality.
The rectangular zones are not drawn as generic support or resistance. They are HMA slope zones created from the active trend state and the ATR-sized HMA pullback area. This keeps the script visually useful while avoiding overlap with broader zone, corridor, or compression-style indicators.
The default visual design is intentionally restrained. Pullback labels are optional, turn labels require confirmation and a minimum quality score, and old zones are capped so the chart keeps a cleaner premium look on both intraday and higher-timeframe charts.
🔧 Key Settings
Fast HMA Length controls the responsive side of the ribbon.
Anchor HMA Length controls the main trend path, slope state, pullback band, and panel logic.
Slow HMA Length helps identify whether the HMA ribbon is aligned or still transitional.
Slope Lookback and Trend Slope Threshold control how selective the HMA state engine is.
Zone Width ATR controls the height of the HMA pullback band and slope-zone area.
Zone Forward Bars controls how far the active slope zone projects while the same trend state remains valid.
Turn Confirmation and Minimum Turn Label Score control how selective the default turn labels are.
Label Cooldown Bars, Max Visible Labels, and Label Offset ATR keep chart density suitable for publication-quality screenshots.
Panel Location, Panel Theme, Label Font Size, and Panel Font Size are adjustable.
✅ Suggested Use
Use Hull MA Trend Zones to study trend continuation, Hull MA pullback quality, HMA slope transitions, and cleaner moving-average trend behavior.
It is especially useful when you want an HMA-focused overlay that remains readable on active charts and avoids the clutter of large multi-average systems.
The script is designed as a public-free AGPro Series tool with a clean visual identity, a focused HMA concept, and a TradingView-safe publication structure. อินดิเคเตอร์

SuperTrend Flip Zones [AGPro Series]# SuperTrend Flip Zones
🔷 OVERVIEW
SuperTrend Flip Zones is a trend-following overlay designed for traders who appreciate the clarity of SuperTrend, but want a more selective and more structured version of it on the chart.
Traditional SuperTrend tools are popular because they are simple: the line flips, the color changes, and the chart immediately prints a directional signal. That simplicity is useful, but it also creates a familiar weakness. In many market conditions, raw SuperTrend flips can appear too early, too close to noise, or without enough expansion to show that a genuine directional transition is taking hold.
This script was built to solve that exact problem.
Instead of treating every SuperTrend direction change as equally meaningful, SuperTrend Flip Zones evaluates the quality of the flip itself. Only qualified flips are promoted into visible BUY / SELL events, and each accepted signal creates a forward-projecting support or resistance zone built around the new SuperTrend structure.
The result is not just another SuperTrend clone with different colors. It is a more selective, more chart-aware framework that helps traders judge whether a flip is worth paying attention to, and where the new trend should continue to defend itself after that flip occurs.
🔷 WHAT MAKES THIS DIFFERENT
The biggest difference is that this script does not stop at the flip.
Most SuperTrend indicators on the platform focus on one task only:
detect the directional switch and mark it immediately.
SuperTrend Flip Zones takes a broader view. It asks two additional questions:
1. Was the flip strong enough to deserve attention?
2. After the flip, where is the live structural zone that the new trend is expected to protect?
That design choice creates a very different chart experience.
Instead of receiving every mechanical transition equally, the user sees a filtered signal environment. Weak flips can be ignored, while stronger flips remain visible and are reinforced by an ATR-based zone that extends forward. This makes the tool useful not only at the exact moment of the flip, but also in the bars that follow, when traders are deciding whether the move is still being respected.
It also creates clear separation from other AGProLabs tools in the same family.
This is not a pullback-quality script.
It is not focused on grading retracements inside an already established trend.
It is focused on the transition point itself, and on the acceptance zone created by that transition.
🔷 CORE LOGIC
The script is built around a custom SuperTrend engine using the selected ATR model, source, and multiplier.
When the direction flips, the script does not blindly trust the event. The flip is scored through a multi-factor quality model that examines:
- candle body efficiency,
- range expansion relative to ATR,
- price separation from the active SuperTrend line,
- alignment with a trend EMA,
- maturity of the prior trend leg before the reversal occurred.
Only flips that meet the minimum quality threshold are accepted.
Once a bullish or bearish flip qualifies:
- a BUY or SELL signal is printed,
- the signal can be promoted to BUY+ or SELL+ when the score is stronger,
- a rectangular support or resistance zone is created around the new SuperTrend level,
- that zone is extended forward to provide ongoing structure.
This makes the indicator useful both as a signal filter and as a post-signal map.
🔷 WHY THE ZONES MATTER
A standard SuperTrend line tells you where the trailing stop or directional boundary currently sits.
This script adds another layer by converting qualified flips into live zones. Those zones are important because they help visualize where the market should continue to accept price if the new directional phase is healthy.
In bullish conditions, the zone behaves like a dynamic support belt around the fresh SuperTrend structure.
In bearish conditions, the zone behaves like a dynamic resistance belt.
If price continues to respect that zone, the flip remains structurally valid.
If price loses the zone, the chart communicates that the new directional state is weakening or failing.
This produces a more practical read than a line alone, especially for traders who do not always enter on the exact signal bar and instead evaluate continuation quality after the move begins.
🔷 VISUAL DESIGN
The script is designed to look polished and organized without overloading the chart.
Visual elements include:
- bullish and bearish SuperTrend line states,
- restrained BUY / SELL labels,
- right-extending flip zones,
- soft trend cloud for directional context,
- compact AGPro panel with merged header row,
- configurable panel placement,
- dark and light theme support,
- adjustable label and panel text sizing.
The goal is to keep the chart premium and readable rather than dense and noisy.
🔷 HOW TO USE IT
SuperTrend Flip Zones is most useful for traders who want a higher-quality directional read rather than every raw SuperTrend crossover.
A typical workflow is:
- use the line and cloud to identify the active directional state,
- wait for a qualified BUY or SELL rather than reacting to every raw flip,
- monitor the projected zone as a live support or resistance area,
- observe whether price continues to defend that zone or loses it.
This makes the script suitable for discretionary trend-following, continuation analysis, and cleaner overlay-based chart reading.
🔷 BEST FIT
This tool is especially useful for:
- traders who already use SuperTrend but want cleaner signal selection,
- traders who prefer support / resistance style context after the flip,
- users who want a premium visual overlay without excessive label density,
- trend traders who want a more selective buy sell workflow.
🔷 TRANSPARENCY
This is an analytical indicator, not a trading strategy.
Like all trend-following tools, it can become less effective in highly compressed or directionless market conditions. The filtering logic is designed to reduce weak transitions, but it does not replace chart context, timeframe awareness, or risk management.
All logic is based on confirmed bar data inside the script framework. The purpose is to organize price action more clearly, not to guarantee future market behavior. อินดิเคเตอร์
