TF: Trend Phases Ribbon (TPR)TradingFlow: Trend Phases Ribbon (TPR)
Most trend indicators put the market into one of two boxes: bullish or bearish. Price rarely moves that neatly. Bullish trends have pullbacks, bearish trends have rallies, and a change of direction usually passes through an uncertain stage first.
Trend Phases Ribbon keeps those stages visible on the chart. It shows the prevailing direction while also telling you whether the current move is supporting that direction, pushing against it, or moving into transition.
How it works
TPR uses two ALMA-smoothed trend paths. The thicker path responds more quickly to price, while the thinner path follows the broader trend. The model reads their direction and separation in the context of recent price movement, then assigns one of five phases. A separate short-term reading allows a pullback or rally to appear without immediately reversing the broader trend.
A crossover is only one part of the picture and does not decide the phase on its own.
Phase changes and event markers are confirmed when the bar closes. On the open bar, the responsive path can still move with price while the last confirmed phase remains in place.
Reading the colors
Green: Bullish
The broader trend and the shorter-term move are both bullish.
Light green: Bullish Pullback
The broader trend is still bullish, but the shorter-term move is pulling back against it.
Blue-gray: Transition
The previous directional phase has weakened, while a new bullish or bearish phase has not yet been confirmed. Price may continue in the new direction, return to the previous one, or spend some time without a clear bias.
Light pink: Bearish Rally
The broader trend is still bearish, but the shorter-term move is rallying against it.
Red: Bearish
The broader trend and the shorter-term move are both bearish.
Reading the ribbon
The thick line is the responsive trend path; the thin line is the broader trend path. When both slope in the same direction and the ribbon opens up, the move is becoming more clearly separated in that direction. When the ribbon narrows or the paths begin to turn toward each other, the trend is losing alignment and may be approaching a different phase.
Ribbon width shows the distance between the two paths. It is best read together with the color and slope rather than as a strength value on its own.
Markers and settings
A green circle with "U" appears when a bearish phase ends and an upward transition begins. A red circle with "D" marks the opposite change: a bullish phase has ended and a downward transition has started. These are early transition points. The next confirmed regime may appear later, or the market may return to its previous direction.
For a more detailed chart, the Display settings can show diamonds at confirmed bullish or bearish regime starts. Smaller pale circles can also mark the beginning of bullish pullbacks and bearish rallies. Both are hidden by default so the main ribbon stays clean. Alerts are available for these phase events and for any change in state.
Balanced is the general-purpose default. Fast follows shorter swings more closely, while Slow gives more weight to persistent trends. Custom mode is available when a symbol or timeframe needs a different response.
Practical use
Start with the ribbon color to identify the current phase, then look at its slope and width for context. Strong colors show that the broader trend and shorter-term move agree. Pale colors show a temporary move against the prevailing trend. Blue-gray tells you that the old phase has faded and the next one is still being decided.
TPR is designed for standard time-based charts and can be used across different symbols and chart timeframes.
---
TradingFlow: Trend Phases Ribbon (TPR)
很多趨勢指標只把行情分成多頭或空頭,但實際走勢通常不會一次翻面。多頭裡會有回調,空頭裡也會有反彈;真正換方向之前,往往還會先走過一段不明朗的過渡期。
Trend Phases Ribbon 想做的事情很直接:先看目前的大方向,再分辨眼前這一段是在順勢推進、逆勢回檔,還是已經進入轉換。
運作方式
TPR 以兩條經過 ALMA 平滑的趨勢線作為基礎。粗線對價格反應較快,細線則用來觀察較長一段的方向。判斷階段時,模型不只看兩條線有沒有交叉,也會參考線條的方向、距離,以及近期價格的變化,再把行情歸入五種狀態。
短線走勢另有一層判讀,所以多頭中的回調、空頭中的反彈,可以先反映在色帶上,不必因為一小段逆向波動就把主趨勢整個翻面。TPR 的判斷方式也因此和一般快線/慢線交叉指標不同。
階段切換和事件標記都在收 K 後確認。即時 K 線尚未收盤時,反應較快的粗線仍會跟著價格移動,但色帶會保留上一個已確認的階段。
顏色怎麼看
綠色:Bullish
主趨勢向上,短線走勢也在配合多頭方向。
淺綠色:Bullish Pullback
主趨勢仍然向上,但短線正在回調。這時看到的是多頭趨勢裡的逆向段落。
藍灰色:Transition
原本的方向已經轉弱,新的多頭或空頭階段則還沒確認。行情可能繼續換方向,也可能回到原來的趨勢,或者先橫行一段時間。
淺粉紅色:Bearish Rally
主趨勢仍然向下,但短線正在反彈。這是空頭趨勢裡的逆向段落。
紅色:Bearish
主趨勢向下,短線走勢也在配合空頭方向。
色帶怎麼看
粗線是反應較快的趨勢線,細線代表較長一段的方向。兩條線同時往上或往下,而且距離逐漸拉開,通常表示行情正朝該方向展開。色帶開始收窄,或兩條線轉向彼此靠近時,代表原本的配合正在減弱,接下來可能切換到另一個階段。
色帶寬度只是兩條趨勢線之間的距離。閱讀時要連同顏色和斜率一起看,不需要把寬度單獨當成強弱分數。兩線交叉也不會直接決定多空,最後仍以收 K 後確認的色帶階段為準。
標記與設定
綠色圓點和「U」表示空頭階段告一段落,行情開始進入向上的轉換;紅色圓點和「D」則表示多頭階段結束,向下的轉換剛開始。它們是階段交接的早期提示。之後可能確認新的趨勢,也可能繞一圈回到原來的方向。
想看得更細,可以在 Display 裡開啟菱形標記。它會標出多頭或空頭趨勢正式確認的位置。另一組淺色小圓點則用來標示多頭回調和空頭反彈的起點。這兩組標記預設關閉,畫面會比較乾淨;各種階段事件與狀態切換也都可以設定提示。
Balanced 是一般情況下的預設選擇。Fast 比較貼近短線擺動,Slow 偏向保留較持久的趨勢。若個別商品或週期需要不同反應,也可以使用 Custom 自行調整。
實際看盤
先看顏色,知道行情目前在哪一個階段,再看色帶的方向和寬窄。深色代表主趨勢與短線走勢同向;淺色代表價格正在逆著主趨勢走一段;變成藍灰色,則表示上一個階段已經淡出,下一個方向還在形成。
TPR 為標準時間型圖表而設,可套用在不同商品和圖表週期。
Indicator

Fib Trend & Legs (BoaBias)█ OVERVIEW
Fib Trend & Legs (BoaBias) draws Fibonacci structure on two nested scales at once: a parent fib across the full market-structure trend cycle (trend-up ↔ trend-down), and child fibs on the BOS / CHoCH swing legs inside that trend. Optional golden / deep zones plus a CT-fade Edge panel (ALMA overheat · MTF EMA overheat · fib-anchored VWAP · golden proximity) with matching overlays. Structural context for discretionary work and alert workflows — not a black-box signal service.
█ WHY UNIQUE
Most Fib tools lock to a single hand-picked or last-swing range. This map keeps parent trend and child legs alive together : the parent tracks the whole structure trend cycle while child legs lock on each confirmed BOS/CHoCH segment (plus an optional forming leg). The Edge panel is a CT-fade confluence over that map: ALMA run overheat and MTF EMA above/below overheat (same lengths as BoaBias public EMA/ALMA), proximity to the parent golden zone, and a VWAP anchored at the parent fib start — so stretch + pullback context sit on one overlay instead of juggling three scripts.
█ HOW TO USE
First use: If the indicator appears in the wrong scale (squashed or fullscreen), right-click the indicator → Pin to scale → Pin to right scale.
Leave Show Parent Fib and Show Child Fibs on; tune Pivot Length so swings match your timeframe (higher length = fewer, larger structure events).
Watch Golden Zone / Deep Zone on the parent for pullback context; enable the same zones on child legs when you trade inside-leg retracements.
Use Pattern Edge (top-right) for parent-fib CT-fade confluence and Child Edge (bottom-left) for the active leg — high when pullback-side ALMA/EMA is stretched into golden near fib VWAP. Not a standalone entry trigger.
Alerts: Chart → Create alert → this indicator → choose a condition (Golden/Deep entry, Strong Edge, Cross Fib VWAP, Break 0%, Full Retrace, Trend Up/Down, BOS, Upsweep/Dnsweep). Prefer Once per bar close for cleaner automation.
█ HOW IT WORKS
Market structure: Pivot highs/lows feed a trend state. Trend flips (and BOS / CHoCH / optional liquidity sweeps) define when ranges update. Algorithm mode: Extreme Points or Adjusted Points.
Parent fib (Trend): Anchored to the full active trend cycle — from the cycle origin to the opposing extreme — with retracements, optional extensions, and zone fills between configurable ratios (defaults emphasize 61.8–78.6 golden and 78.6–88.6 deep).
Child fibs (Legs): Each leg = protective origin (CHoCH / last protect wick) → running extreme ( ms.main wick). Locked on BOS with those bars frozen. L1 = newest locked, L2 = previous, Lf = forming. Optional H/L anchor marks show the two wicks. Parent trend flip clears child history.
Edge layer (CT fade): Two panels — Pattern (parent fib) and Child (active leg). Each scores golden proximity (≤25) + ALMA pullback CT (≤25) + EMA pullback CT (≤25) + fib-start VWAP (≤25). ALMA/EMA CT use the chart timeframe only (panel shows e.g. ALMA 1D). For a bull fib, CT scores short / below-EMA stretch; bear fib scores the opposite. Optional plots: chart-TF ALMA SuperTrend, enabled EMAs, Pattern + Child fib VWAPs.
Sweep markers: Optional “x” markers when structure detects upsweep / dnsweep liquidity grabs (style group for color, size, max count).
█ CTA
More BoaBias public Scripts: PulseWire → Goldfinch_song → Scripts .
Ideas that use this stack: profile → Ideas tab.
█ LIMITATIONS
Pivot-based structure lags until pivots confirm; forming parent/child ranges can update until the next structure event.
Fib levels and zones are structural maps , not guaranteed support/resistance or trade signals.
Edge score is a confluence helper on the loaded history — descriptive, not predictive.
Heavy child history + many levels can hit drawing limits — lower Max Completed Child Legs or disable unused levels.
Educational / research overlay. Not financial advice.
Pine Script v6. License: MPL-2.0 . Indicator

Adpative Dual Cloud | NAL1. Overview
Adaptive Dual Cloud | NAL is a dual-baseline trend cloud built from two separate smoothing structures: a Kijun-style midpoint baseline and an ALMA baseline. Instead of relying on a single moving average or one volatility model, the indicator builds an adaptive cloud around both baselines and only confirms direction when price escapes the full combined structure.
The purpose of the indicator is to create a stricter trend envelope. The Kijun side captures broader structural balance, while the ALMA side adds a smoother adaptive layer. The final upper and lower cloud boundaries are selected from both systems, forcing price to clear the stronger side of the cloud before a bullish or bearish state is confirmed.
2. Calculation
The indicator starts by creating two independent baselines. The first baseline is a Kijun-style midpoint calculated from the highest and lowest values over the selected lookback. This represents a structural equilibrium zone.
kijun_sen = math.avg(ta.lowest(cloudLen1), ta.highest(cloudLen1))
The second baseline uses ALMA, giving the cloud a smoother weighted-average component with adjustable sigma and offset. This adds a more refined smoothing layer beside the Kijun structure.
alma_base = ta.alma(srcSeries, cloudLen2, cloud2Off, cloud2Sig)
The indicator then calculates volatility using a selectable deviation engine. The volatility source can be price, the residual between price and the cloud average, or the cloud structure itself. This allows the band width to be built from different layers of market behavior.
VolSrc = switch devSrc
"Price" => srcSeries
"Residuals" => srcSeries - math.avg(alma_base, kijun_sen)
"Cloud" => math.avg(alma_base, kijun_sen)
The volatility engine supports multiple deviation types, including standard deviation, mean absolute deviation, median absolute deviation, exponential deviation, ATR, linear regression deviation, Hull deviation, FRAMA deviation, Kauffman adaptive deviation, Gaussian deviation, and quantile deviation.
After volatility is calculated, adaptive upper and lower bands are created around both baselines.
upper_kijun = kijun_sen + vol * multi_u
lower_kijun = kijun_sen - vol * multi_l
upper_alma = alma_base + vol * multi_u
lower_alma = alma_base - vol * multi_l
The final cloud uses the highest upper boundary and the lowest lower boundary. This makes the signal more selective because price must break beyond the combined cloud, not just one individual baseline.
upper = math.max(upper_kijun, upper_alma)
lower = math.min(lower_kijun, lower_alma)
A bullish state triggers when price closes above the final upper cloud. A bearish state triggers when price closes below the final lower cloud. When price remains inside the cloud, the previous state is held.
3. Key Features
Dual-baseline cloud using Kijun structure and ALMA smoothing.
Adaptive upper and lower bands built from selectable volatility models.
Multiple deviation engines for different volatility interpretations.
Selectable volatility source: price, residuals, or cloud structure.
Final cloud requires price to clear the combined upper or lower boundary.
State-based candle coloring, cloud coloring, glow effect, and directional fills.
4. Use
Adaptive Dual Cloud is designed to identify when price escapes a combined structural and smoothed volatility envelope. A close above the upper cloud reflects bullish expansion beyond both baseline systems, while a close below the lower cloud reflects bearish expansion below the combined structure.
The indicator is intentionally stricter than a single-baseline channel. By combining a Kijun-style midpoint with an ALMA baseline, it creates a cloud that filters more of the internal noise before confirming a directional regime.
This indicator is best used as a specialized module within a complete strategy framework. Its role is to isolate a cloud-based volatility and structure layer, where price must prove strength or weakness against more than one adaptive baseline. The full value comes from how this regime signal is integrated into a broader process for timing, structure, and execution.
Indicator

Indicator

Indicator

BoaBias: MTF ALMA SuperTrend & Stats█ WHAT IT DOES
Multi-timeframe ALMA with SuperTrend-style regime logic on 15m, 1H, 4H, 1D, 1W on one chart. Per-TF ALMA lines ; separate bar colors for regime; optional filled bands between adjacent TF ALMAs. Optional statistics table : average and current run lengths, State ( BULL / BEAR / NEUT ), 1-bar and short-run (≤ N bars) counts, max runs, and Avg OH stretch columns. OH vs avg (per TF) controls how Cur Short / Cur Long cells highlight vs their rolling averages. MTF overheat labels on history (toggle in settings; on in default preset): ·S (bear run stretch) below the bar, ·L (bull run stretch) above the bar; one timeframe per text line; minimum overheated TF count is separate for bear vs bull; vertical stack spacing limits overlap on consecutive bars. No alert() in Pine — use PulseWire’s alert UI if needed.
█ HOW IT WORKS
ALMA: Arnaud Legoux moving average via ta.alma() (length, sigma, offset).
SuperTrend-style bands: upper = ALMA + factor × stdev; lower = ALMA − factor × stdev; regime flips on band-cross style logic.
MTF: request.security with barmerge.gaps_off and barmerge.lookahead_off (no lookahead). Parameters are per timeframe.
Statistics: Rolling window per TF for completed and current regime runs; chop metrics for very short runs; max run and Avg OH scans use min(window, Max bars for Max/OH scan) internally.
Labels: Toggle in inputs (on in defaults). Same heat thresholds as table per TF ; label fill colors follow bar regime colors (bear / bull) with white text.
█ ORIGINALITY
MTF overlay of ALMA-based SD SuperTrend combined with a per-TF run statistics layer, per-TF overheat multipliers , and MTF overheat labels (separate bear/bull gating + stack spacing; toggleable). Pine v6, self-contained. Inspired by public ALMA / SuperTrend discussion; wiring, table, heat logic, and labels are specific to this script.
█ HOW TO USE
First use: Wrong scale? Right-click → Pin to scale → Pin to right scale.
Enable/disable each timeframe; tune Factor, SD length, ALMA length, sigma, offset per TF.
Statistics: Set window length and Max bars for Max/OH scan (performance vs accuracy).
OH vs avg (per TF): Adjust each TF’s multiplier — drives red highlight on Cur Short/Long vs average and optional label conditions.
MTF overheat labels: On in the default preset (you can disable or change which TFs are included). Tune Min TFs per side (·S vs ·L), stack step (× ATR), and max label count (platform cap 500). Optional: only if chart ALMA flips — MTF overheat (min TFs + list) is read from the previous bar; ·S prints on the current bar if that prior bar was MTF·S overheated and the chart closes BEAR→BULL; ·L if prior was MTF·L and chart BULL→BEAR. With the option off, overheat and label stay on the same bar.
Chop rows: “Runs ≤ N bars” counts short regime lengths for context — not broker “fake” fills.
Interpretation: Stretched runs vs average are context , not predictions.
Performance: First attach or long history: full recalculation may take several seconds — wait until processing finishes. To speed up: less chart history, turn off the table or MTF labels, or reduce statistics windows / Max bars for Max/OH scan.
█ PERFORMANCE / LOAD TIME
The script runs multiple MTF security calls and statistics on each bar. On first load or a long visible history, PulseWire may need several seconds to finish — wait before assuming the table or labels failed. If the chart feels heavy, reduce loaded history, disable the table or overheat labels, or lower window sizes and the Max/OH scan cap.
█ LIMITATIONS
Trend logic lags; ranges whipsaw; MTF adds context, not certainty. Combine with other analysis. Indicator

QuantFlow: Precision Momentum OscillatorQuantFlow: Precision Momentum Oscillator
█ The Institutional Engine Room
The QuantFlow: Precision Momentum Oscillator is a professional-grade predictive engine designed to serve as the "Engine Room" for your trading chart. While the main chart shows where price is relative to value, this oscillator analyzes the velocity, quality, and exhaustion of momentum, providing signals that often precede price movement.
█ Technical Core
Zero-Lag DEMA Engine: Uses a Double Exponential Moving Average (DEMA) to eliminate the lag common in standard oscillators. This ensures that midline crosses and color flips happen in real-time with price action.
MIDAS Volume Integration: Calculations are rooted in the same cumulative volume-weighting as the QuantFlow: Precision Fibonacci VWAP, ensuring the oscillator is measuring "Smart Money" momentum rather than just retail price movement.
Adaptive Sensitivity: Defaulted to 3, specifically optimized for high-volatility 15m assets like Bitcoin, providing the fastest possible reaction time.
█ Visual Intelligence System
Momentum Wave & Gradient: A high-contrast wave that flips between Fluor Green (Bullish) and Fluor Red (Bearish). The gradient density shows the "depth" of the current momentum.
Early Warning Sparks (✦): These sparkles trigger when momentum velocity shifts before price reaches the zero-line. They are your "Get Ready" signals for an upcoming trend change.
Exhaustion Divergences (●): Tiny circles that appear on the wave to signal high-probability reversals.
Green Circle: Hidden strength (Price lower low, Momentum higher low).
Red Circle: Hidden weakness (Price higher high, Momentum lower high).
Platinum Thresholds (0.618): Solid thin lines representing the "Point of No Return." Once momentum clears these levels, it has escaped the "Gravity" of the mean and is in a high-velocity trend.
█ Intelligence Dashboard (HUD)
The top-right dashboard provides a real-time statistical breakdown:
Momentum: The raw numerical power of the current move.
Velocity: Displays ACCEL (Accelerating) or DECEL (Decelerating) to show if a trend is gaining or losing steam.
Heat Index: Automatically flags the market as STABLE or EXTREME (when momentum hits the 0.618 Fibonacci level).
Volatility: A measured squeeze metric.
COILING (Amber): Momentum is compressed in a tight range; an explosive breakout is imminent.
EXPANDING (Green): The market is currently in an explosive expansion phase.
Status: The final validated trend state (BULLISH / BEARISH / STABLE).
█ Trading Manual
1. The Early Entry (The Spark)
Watch for the Predictive Spark (✦) to appear while the price is still near the outer bands on your main chart. This signals that the "engine" has already turned around, even if the "car" (price) hasn't moved yet.
2. The Trend Confirmation (The Gate)
Enter a trend-following trade once the oscillator wave crosses the Solid Platinum 0.618 line. This confirms the move has institutional volume behind it and is likely to reach the Level 6 (1.618) target.
3. The Reversal Confluence (The Perfect Exit)
Look for a Divergence Circle (●) to appear at the same time the main chart hits a Level 6 Sparkle (✦). This represents maximum statistical exhaustion and is the highest-probability point for a reversal or profit-taking.
4. The Squeeze Play
When the Dashboard shows Volatility: COILING, do not enter new trend trades. Wait for the status to flip to EXPANDING and follow the direction of the next VWAP Star (★) on the main chart.
* This indicator is intended for educational and informational purposes only and should not be considered financial advice. Trading involves significant risk, and you should consult with a financial advisor before making any trading decisions. The performance of this indicator is not guaranteed, and past results do not predict future performance. Use at your own risk.
QuantFlow Strategic Trading System: Unified Manual
█ Integrating Institutional Value with Momentum Velocity
The QuantFlow Suite is designed to work as a synchronized dual-layer system.
Link to Quantflow: Precision Fibonacci VWAP:
The Precision Fibonacci VWAP (Main Chart) defines the "Where" (Institutional Fair Value), while the Quantflow: Precision Momentum Oscillator (Sub-pane) defines the "When" (Velocity and Timing).
█ Phase 1: Identifying the Market Regime
Before entering any trade, use the Main Chart Candle Colors and the Oscillator Dashboard to determine the current regime:
Bullish Regime: Main Chart candles are Fluor Green. Oscillator is above the Midline.
Bearish Regime: Main Chart candles are Fluor Red. Oscillator is below the Midline.
Neutral/Coiling Regime: Main Chart candles are Grey. Oscillator Dashboard shows Volatility: COILING.
Strategy: In a Coiling regime, avoid new entries. The market is building energy for an explosive break. Wait for a VWAP Star (★) to signal the direction of the breakout.
█ Phase 2: The Three Strategic Setups
Setup 1: The "Institutional Launch" (Trend Following)
This setup captures the meat of a new trend just as it gains institutional speed.
Main Chart: Look for a Bullish/Bearish Star (★) as price reclaims or loses the VWAP line.
Oscillator: Ensure momentum is crossing the 0.618 Platinum Gate.
Confirmation: Main chart candles must flip to Fluor Green/Red.
Target: The Fibonacci Level 5 (1.0) or Level 6 (1.618) bands on the main chart.
Setup 2: The "Perfect Exhaustion" (Mean Reversion)
This setup identifies the exact mathematical top or bottom of a move.
Main Chart: Price pierces the Level 6 (1.618) Fibonacci Band, triggering a Sparkle (✦) marker.
Oscillator: A Divergence Circle (●) appears (Green for long, Red for short), showing that momentum is dying while price is at an extreme.
Dashboard Check: The Reversion Prob should be >99% on the main chart table.
Entry: Wait for the first candle to turn Grey (Loss of momentum) or a Predictive Spark (✦) to appear on the oscillator in the opposite direction.
Setup 3: The "Early Spark" (The Scalper’s Lead)
This setup is for aggressive traders looking to enter before the VWAP break.
Oscillator: A Predictive Spark (✦) appears while the main chart is still near an outer Fibonacci band.
Momentum Check: Look at the Velocity on the dashboard. It should flip from DECEL to ACCEL in your trade direction.
The Play: Anticipate the price returning to the VWAP (The Zero Line). If price breaks the VWAP, you can hold for a full trend reversal.
█ Phase 3: Risk Management & Trailing
The Stop-Loss: In a trend trade, your primary "Hard Stop" should be the VWAP Line itself. If price crosses back over the VWAP and triggers an opposite-colored Star (★), the institutional thesis is invalidated.
The Trailing Stop: Use the Fibonacci Level 1 or 2 bands (The Range boundaries) to trail your stop-loss as the trend develops.
Profit Taking: Always take partial profits when the Heat Index on the oscillator dashboard reaches EXTREME. This tells you the "easy money" part of the move is over.
█ The "QuantFlow" Golden Rule
Never trade against the "Double Signal":
If the Main Chart is Fluor Red but the Oscillator shows a Bullish Spark (✦), do not short. You are at a statistical bottom.
If the Main Chart is Fluor Green but the Oscillator shows a Bearish Divergence (●), do not go long. You are at a statistical top.
Wait for the confluence of both "Alpha" (Price) and "Flow" (Momentum) for the highest-probability results.
* This indicator is intended for educational and informational purposes only and should not be considered financial advice. Trading involves significant risk, and you should consult with a financial advisor before making any trading decisions. The performance of this indicator is not guaranteed, and past results do not predict future performance. Use at your own risk. Indicator

Adaptive ALMA 2.0This script is a indicator that builds upon the Arnaud Legoux Moving Average (ALMA). Unlike a standard ALMA, which uses fixed settings, this version is "Adaptive" and "Evasive."
Here is a breakdown of what the code is doing:
1. The Adaptive Engine (Efficiency Ratio)
The core logic uses an Efficiency Ratio (ER) to measure market noise versus trend strength:
High Volatility/Clear Trend: The ER is high. The script automatically shortens the length and reduces the offset to make the line react faster (minimizing lag).
Low Volatility/Consolidation: The ER is low. The script increases the length and sigma to make the line smoother, preventing "whipsaws" (fake signals).
2. Global Evasion Engine (Noise Filtering)
This is the most unique part of the script. It uses two ATRs (Fast and Slow) to create a "Noise Zone":
Auto-Tune Evasion: It calculates a visual_noise_th (threshold). If the price is wiggling inside this gray/aqua band, the trend state won't change easily.
Volatility-Based Sensitivity: In "noisy" markets, it requires a larger price move (determined by d_atr) to flip the trend from Bullish to Bearish.
PS1: ATR is calculated on the full range of candle prices - open + close
3. Trend Logic & Signals
Bullish (Green): When the ALMA is rising, the price is above it, and the move exceeds the noise threshold.
Bearish (Red): When the ALMA is falling, the price is below it, and the move exceeds the noise threshold.
Neutral (Gray): When the price is stuck within the "Noise Band."
4. Extra Layers
It includes Medium (50) and Long (200) ALMA lines to give you a broader context of the trend (e.g., only taking Buy signals when the Long ALMA is also green).
Source: It uses a custom price source (open + close + close) / 3 to give more weight to the closing price while maintaining some "breath" from the open.
PS2: the sample chart is for BTC with a 5-minute interval
PS3: Works on any interval - you only need to adjust the parameters, default values are for fast-moving and liquid assets (e.g. BTC intervals 1 minute - 1 day and higher) and suggested Japanese candles (including Heikin Ashi) Indicator

ALMA SD Bands | RakoQuantALMA SD Bands | RakoQuant is a volatility-regime band system built from first principles using an institutional smoothing framework: an ALMA baseline combined with ALMA-smoothed standard deviation width, designed for clean trend containment and controlled regime classification.
This tool is part of the RakoQuant protected research line, focusing on minimal noise, persistent state logic, and volatility-aware market structure rather than traditional reactive Bollinger-style band behavior.
Core Concept
This indicator answers one key structural question:
Is price operating inside a stable volatility regime, or transitioning into a new directional band expansion phase?
Unlike classical deviation band systems that fluctuate aggressively candle-to-candle, ALMA SD Bands introduce:
* Ultra-smooth baseline structure
* Smoothed volatility width
* Persistent directional regime logic
* Deadband-based flip stabilization
The result is a clean institutional containment model rather than noisy retail band plotting.
How It Works
1. ALMA Baseline (Institutional Mean Structure)
The centerline of the system is computed using:
Arnaud Legoux Moving Average (ALMA)
ALMA provides:
* Reduced lag compared to EMA
* Superior smoothness compared to SMA
* Stable regime structure across crypto volatility
This baseline acts as the equilibrium axis of the band system.
2. Standard Deviation Volatility Width (Smoothed)
Band width is driven by volatility, measured through standard deviation, with two selectable modes:
* Price Standard Deviation
* Return Standard Deviation (log-return volatility)
Rather than using raw deviation directly, volatility is passed through a second ALMA smoothing layer:
Smoothed Volatility = ALMA(StdDev)
This eliminates the jitter and band shaking that defines most Bollinger-type systems.
3. Adaptive Containment Bands
Final bands are constructed as:
* Upper Band = ALMA Basis + Multiplier × Smoothed Volatility
* Lower Band = ALMA Basis − Multiplier × Smoothed Volatility
Unlike traditional ±2σ envelopes, the multiplier is intentionally adjustable and tuned for regime containment rather than extreme tagging.
4. Deadband Regime Engine (Persistent State Logic)
A defining feature of this protected release is its regime persistence model.
Instead of flipping trend bias instantly, the script applies a volatility-scaled deadband buffer:
* Bull regime activates only above Basis + Deadband
* Bear regime activates only below Basis − Deadband
This removes micro-flips and produces a true structural regime state:
* Bullish containment (green)
* Bearish containment (red)
* Neutral transition zone suppression
Regime state persists until a confirmed boundary transition occurs.
Visual Engine
ALMA SD Bands follows the RakoQuant minimal institutional plotting standard:
* Active volatility bands only
* Smooth containment fill
* Optional candle painting by regime bias
* Ultra-clean overlays suitable for confluence stacking
This indicator is designed as a structural layer, not a clutter generator.
How To Use
✅ Volatility containment framework
✅ Trend regime bias overlay
✅ Expansion / contraction classifier
✅ Portfolio directional filter (RSPS compatible)
Recommended workflow:
* Trade long only during bullish regime containment
* Defensive during bearish containment
* Watch for regime flips as volatility transition events
* Combine with momentum triggers for execution
Best environments:
* 4H–1D swing trend structure
* Volatility breakout classification
* Institutional band containment systems
Screenshot Placement
📸 Example chart / screenshot:
Indicator

Indicator

ALMA & EMA Ribbon by zdmreThis indicator combines a unique trend-following signal with a classic EMA ribbon to provide a clear view of the market trend.
The main signal line is not based on a typical ATR. Instead, it uses an Arnaud Legoux Moving Average (ALMA) as its baseline and calculates support/resistance bands using Standard Deviation. This creates a responsive trend line that adapts well to volatility. This is paired with a simple EMA Ribbon to help confirm momentum.
What It Does
ALMA + SD Trend Line: This is the core of the indicator. It uses an ALMA as the baseline (instead of a simple MA) and Standard Deviation for the bands. This tends to be more responsive than many traditional trend-following indicators.
Buy/Sell Signals: Simple "B" and "S" labels appear on your chart when the trend is calculated to have changed direction.
EMA Ribbon: A standard Fast/Slow EMA ribbon is plotted to give you a secondary confirmation of momentum. The fill between the EMAs changes color (green for bull, red for bear).
On-Screen Dashboard: A clean info panel in the corner shows you the current status of all components at a glance:
Current Signal (Long/Short)
Price vs. Trend Line (Above/Below)
Trend Strength (%)
EMA Trend (Bullish/Bearish)
Momentum
Fully Customizable: You can toggle every visual element on or off (the signals, the ribbon, the bar coloring, the dashboard) to keep your chart clean.
Settings
Trend Settings:
Factor: This is the main setting. It's the Standard Deviation multiplier. A higher value makes the line less sensitive (fewer signals). A lower value makes it more sensitive (more signals).
SD Length: The lookback for the Standard Deviation.
ALMA Settings:
ALMA Length, Sigma, Offset: Standard controls for the ALMA's smoothness and responsiveness.
EMA Ribbon:
Fast EMA & Slow EMA: Set the lengths for your ribbon.
Visual Settings:
Checkboxes to toggle all visual components (signals, ribbon, dashboard, etc.).
You can set up alerts in PulseWire for the following events:
🟢 Long Signal: Triggers on a new "B" (Buy) signal.
🔴 Short Signal: Triggers on a new "S" (Sell) signal.
⚠️ Price Crossed Trend: Triggers any time the price closes across the main trend line.
#DYOR Indicator

AlgoGram Trend Identifier📊 Algogram Trend Identifier (ATI)
The Algogram Trend Identifier (ATI) is a powerful trend-following oscillator designed to help traders identify market direction, momentum strength, divergences, and consolidation zones across multiple timeframes.
🔑 Key Features:
Multi-Timeframe Presets – Choose from 5m, 15m (default), 30m, 1h, and Daily for optimized settings.
Adaptive ALMA Calculation – Uses ALMA smoothing with dynamic thresholds to detect clean trend shifts.
Trend Highlighting – Visual coloring of oscillator and optional bar coloring for quick market bias recognition.
Customizable Thresholds & Bands – Fine-tune upper/lower thresholds, consolidation zones, and band multipliers.
Consolidation Detection – Highlights when the market is moving sideways with adjustable parameters.
Divergence Detection – Automatically detects bullish & bearish divergences with optional lines and dots.
Dynamic Alerts – Built-in alerts for:
Crossing thresholds
Zero line crosses
Uptrend / Downtrend detection
Bullish / Bearish divergences
RMS consolidation breakouts
🎯 How to Use:
Above Zero Line → Bullish trend bias.
Below Zero Line → Bearish trend bias.
Consolidation Zone → Market may range or prepare for breakout.
Bullish Divergence → Potential reversal to upside.
Bearish Divergence → Potential reversal to downside.
⚡ Best For:
Swing Traders, Scalpers, and Positional Traders
Identifying trend strength, early reversals, and breakout opportunities
Works on stocks, crypto, forex, and indices Indicator

Indicator

Alma SD SuperTrend | OquantAlma SD SuperTrend | Oquant
The "Alma SD SuperTrend | Oquant" is a trend-following indicator that integrates the Arnaud Legoux Moving Average (ALMA) with a SuperTrend calculation based on standard deviation (SD). Designed to quickly identify and follow market trends while reducing noise, this script provides buy and sell signals for traders across various assets and timeframes.
This script offers a unique approach by combining ALMA with a SuperTrend framework that uses standard deviation instead of the traditional Average True Range (ATR). This implementation focuses on fast trend detection with minimized noise, making it suitable for trend-following or swing trading strategies. The script’s customizable parameters allow traders to adapt it to their preferred trading style.
How It Works
Arnaud Legoux Moving Average (ALMA): ALMA is an advanced moving average that applies a Gaussian filter to smooth price data, reducing market noise while preserving responsiveness to price changes. It uses three parameters:
Length: Sets the lookback period for smoothing. Longer periods produce smoother results.
Offset: Shifts the moving average toward recent prices. Higher offsets emphasize newer data for faster trend detection.
Sigma controls the smoothness and lag of the Alma by adjusting the spread of the Gaussian distribution used in the calculation.
Standard Deviation (SD) Calculation: The script calculates the standard deviation of the price over a specified period to measure volatility. SD measures how much the prices deviate from its mean, offering a statistical perspective on market volatility. This is used to create dynamic upper and lower bands around the ALMA line, adjusted by a user-defined factor. The bands expand in volatile markets and contract in stable conditions, helping in trend detection.
SuperTrend Logic: The script generates a SuperTrend line that dynamically tracks market trends by switching between upper and lower volatility bands based on price movement. Here's how it works:
The SuperTrend line is calculated using the ALMA (Arnaud Legoux Moving Average) as a baseline, with upper and lower bands created by adding and subtracting a multiple(Factor) of the standard deviation (SD) from the ALMA.
When the price moves above the upper band, the SuperTrend line shifts to the lower band, indicating a bullish trend (potential buy signal).
When the price falls below the lower band, the SuperTrend line switches to the upper band, signaling a bearish trend (potential sell signal).
To avoid quick, unreliable changes, this script intelligently adjusts the SuperTrend bands for stability. While the SuperTrend line dynamically follows market movements, it's designed to hold at its previous level if the price doesn't cross a band or confirm a new trend direction. This approach ensures the SuperTrend quickly identifies and follows genuine market trends, providing clear signals while effectively reducing false alerts from short-term price swings.
Differences from Traditional SuperTrend:
Baseline: The traditional SuperTrend typically uses a hl2((high + low)/2)as its baseline, while this script employs ALMA for a smoother, noise-filtered trend foundation.
Volatility Measure: Instead of ATR, this script uses standard deviation to calculate the bands. Standard deviation measures how much the prices vary or spread out from its mean.
Visualization: The script plots the SuperTrend line, colors candles to match the trend, and fills the area between the price and the SuperTrend line for visual clarity, helping traders quickly identify trend direction and strength (green for bullish, purple for bearish).
How to Use It
Add to Chart: Apply the indicator to any market and timeframe.
Interpret Signals:
Green Line and Candles: Bullish trend (price above the SuperTrend line). Consider long entries.
Purple Line and Candles: Bearish trend (price below the SuperTrend line). Consider short entries.
Filled Area: The shaded area between price and the SuperTrend line highlights trend direction(green for bullish, purple for bearish).
Adjust Inputs:
Source: Select the price data to use (e.g., close, open, high, low).
Factor: Adjusts band width. Higher values widen bands, reducing sensitivity.
SD Length: Period for calculating standard deviation. Longer periods smooth volatility.
ALMA Length: Period for ALMA. Longer periods increase smoothness.
Alma Offset: Shift the moving average toward recent or older prices. Higher offsets emphasize newer data for faster trend detection.
ALMA Sigma control the smoothness and lag of the Alma by adjusting the spread of the Gaussian distribution used in the calculation.
Alerts
This indicator includes optional built-in alert conditions that notify you when the signal crosses above 0 (long signal, price above upper band) or below 0 (short signal, price below lower band). Enable these alerts to get timely updates on potential trend shifts without constantly monitoring the chart.
⚠️ Disclaimer: This indicator is intended for educational and informational purposes only. Trading/investing involves risk, and past performance does not guarantee future results. Always test and evaluate indicators/strategies before applying them in live markets. Use at your own risk.
Indicator

ALMA Trend-boxALMA Trend-box — an innovative indicator for detecting trend and consolidation based on the ALMA moving average
This indicator combines the Adaptive Laguerre Moving Average (ALMA) with unique visual representations of trend and consolidation zones, providing traders with clearer and deeper insight into current market conditions.
Originality and Usefulness
Unlike classic indicators based on simple moving averages, ALMA uses a Gaussian weighting function and an offset parameter to reduce lag, resulting in smoother and more accurate trend signals. This indicator not only plots the ALMA but also analyzes the slope angle of the ALMA line, combining it with the price’s position relative to the moving average to identify three key market states:
Uptrend (bullish): when the ALMA slope angle is above a defined threshold and the price is above ALMA,
Downtrend (bearish): when the slope angle is below a negative threshold and the price is below ALMA,
Consolidation or sideways trend: when neither of the above conditions is met.
A special contribution is the automatic identification of consolidation zones (periods of weak trend or transition between bullish and bearish phases), visually represented by blue-colored candlesticks on the chart. This feature can help traders better recognize moments when the market is indecisive and adjust their strategies accordingly.
How the Indicator Works
ALMA is calculated using user-defined parameters — length, offset, and sigma — which can be adjusted for different timeframes and instruments.
The slope angle of the ALMA line is calculated based on the difference between the current and previous ALMA values, converted into degrees.
Based on the slope angle and the relative price position to ALMA, the indicator determines the trend type and changes the candle colors accordingly:
Green for bullish (uptrend),
Red for bearish (downtrend),
Blue for sideways trend (consolidation).
When the slope angle falls within a certain range and the price behavior contradicts the trend, the indicator detects consolidation and displays it graphically through semi-transparent boxes and background color.
How to Use This Indicator
Use candle colors for quick identification of the current trend and potential trend reversals.
Pay attention to consolidation zones marked by boxes (blue candles), as these are potential signals for trend breaks or preparation for stronger price moves.
ALMA parameters can be adjusted depending on the timeframe and market volatility, providing flexibility in analysis.
The indicator is useful for both short-term scalping strategies and longer-term trend monitoring and position management.
Why This Indicator is Useful
Many existing trend indicators do not consider the slope angle of the moving average as a quantitative measure of trend strength, nor do they automatically detect consolidations as separate zones. ALMA Trend-box fills this gap by combining sophisticated mathematical processing with simple and intuitive visual representation. This way, users get a tool that helps make decisions based on more objective criteria of trend and consolidation rather than just price location relative to averages.
Indicator

Weighted Regression Bands (Zeiierman)█ Overview
Weighted Regression Bands is a precision-engineered trend and volatility tool designed to adapt to the real market structure instead of reacting to price noise.
This indicator analyzes Weighted High/Low medians and applies user-selectable smoothing methods — including Kalman Filtering, ALMA, and custom Linear Regression — to generate a Fair Value line. Around this, it constructs dynamic standard deviation bands that adapt in real-time to market volatility.
The result is a visually clean and structurally intelligent trend framework suitable for breakout traders, mean reversion strategies, and trend-driven analysis.
█ How It Works
⚪ Structural High/Low Analysis
At the heart of this indicator is a custom high/low weighting system. Instead of using just the raw high or low values, it calculates a midline = (high + low) / 2, then applies one of three weighting methods to determine which price zones matter most.
Users can select the method using the “Weighted HL Method” setting:
Simple
Selects the single most dominant median (highest or lowest) in the lookback window. Ideal for fast, reactive signals.
Advanced
Ranks each bar based on a composite score: median × range × recency. This method highlights structurally meaningful bars that had both volatility and recency. A built-in Kalman filter is applied for extra stability.
Smooth
Blends multiple bars into a single weighted average using smoothed decay and range. This provides the softest and most stable structural response.
⚪ Smoothing Methods (ALMA / Linear Regression)
ALMA provides responsive, low-lag smoothing for fast trend reading.
Linear Regression projects the Fair Value forward, ideal for trend modeling.
⚪ Kalman Smoothing Filter
Before trend calculations, the indicator applies an optional Kalman-style smoothing filter. This helps:
Reduce choppy false shifts in trend,
Retain signal clarity during volatile periods,
Provide stability for long-term setups.
⚪ Deviation Bands (Dynamic Volatility Envelopes)
The indicator builds ±1, ±2, and ±3 standard deviation bands around the fair value line:
Calculated from the standard deviation of price,
Bands expand and contract based on recent volatility,
Visualizes potential overbought/oversold or trending conditions.
█ How to Use
⚪ Trend Trading & Filtering
Use the Fair Value line to identify the dominant direction.
Only trade in the direction of the slope for higher probability setups.
⚪ Volatility-Based Entries
Watch for price reaching outer bands (+2σ, +3σ) for possible exhaustion.
Mean reversion entries become higher quality when far from Fair Value.
█ Settings
Length – Lookback for Weighted HL and trend smoothing
Deviation Multiplier – Controls how wide the bands are from the fair value line
Method – Choose between ALMA or Linear Regression smoothing
Smoothing – Strength of Kalman Filter (1 = none, <1 = stronger smoothing)
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Indicator

Adaptive Dual MA Trend FilterAdaptive Dual MA Trend Filter is a versatile Pine Script™ indicator that delivers clear, reliable trend signals using customizable moving averages:
Dual‑Stage Filtering – Apply any traditional MA (SMA, EMA, VWMA, HMA, RMA, TEMA, DEMA, FRAMA, TRIMA) or advanced smoothing (ALMA, T3) as your “main” and “filter” MAs. The filter MA is double‑smoothed for noise suppression, then converted into a robust “double‑filtered” baseline.
Flexible Inputs – Select lengths, sources (close, high, low, hl2), offsets, sigma, and volume factors to tailor the responsiveness and smoothness to your favorite timeframe or asset class.
Intuitive Signals – The script detects confirmed bullish (green) and bearish (red) trend shifts as:
Circle marker on the MA line
Triangle arrows below/above bars
Full candles and MA line colored by current trend
Clean Overlay – Works directly on your price chart, with optional semi‑transparent fills for extra visual clarity.
Theme Support – Choose from Vibrant, Pastel, Neon, Classic, Monochrome, Solarized, or Material palettes for seamless chart styling.
Ideal for swing traders and intraday scalpers alike, Multi‑Source Double‑Filter Trend offers both “set‑and‑forget” simplicity and deep customization for power users.
Usage
Add to chart → Inputs → tweak MA types/lengths
Watch for color changes and markers
Combine with volume or momentum filters for entry confirmation
Enjoy clearer trend identification and smoother trade signals!
Disclaimer
This script is for educational and informational purposes only. Not financial advice. Use at your own risk. Indicator

Ultimate Total MA + ATRIndicator Description (English)
Name: Tendencias FX - Multi-Line with Customizable Offsets (1x..6x)
This script is a multi-purpose trend-following indicator that calculates a central Moving Average (Mid Line) plus a set of 6 different bands (1x to 6x) above and below that average. Each band is determined by a user-defined ATR length and multiplier. Key features include:
Independent MA Types
Choose different moving average methods for the Mid Line and for the ATR calculation.
Available types: SMA, EMA, WMA, RMA, HMA, and ALMA.
Separate Lengths
Configure the length of the Mid Line independently from the ATR length.
This allows fine-tuning of both the central average and the volatility measure.
6 Customizable Multipliers
Bands are calculated for 1x, 2x, 3x, 4x, 5x, and 6x multiples of the chosen ATR.
Each level has its own checkbox in the Inputs tab so you can show or hide them at will.
Color Dynamics
The Mid Line automatically changes color to green when its current value is higher than the previous bar’s value, and red otherwise.
All upper/lower bands are rendered in a neutral gray (#787b86) for easy distinction.
Time Shift (Offset)
An offset parameter allows shifting the entire indicator (Mid Line plus bands) forward (to the right) or backward (to the left) by a certain number of bars.
This can help evaluate leads/lags, or compare the past behavior of these lines against future price developments.
Check Boxes for Visibility
Checkboxes in the Inputs let you toggle 1x..6x band levels.
By default, 1x, 2x, and 3x are visible, while 4x, 5x, and 6x are off.
Overlay with Shared Price Scale
The script is set as overlay=true and uses scale=scale.right, so it draws directly on the main chart and shares the same price axis as your candles.
This indicator is ideal if you want:
A central MA for trend detection.
ATR-based volatility bands (up to 6 multipliers).
Full control over the type and length of both the Mid Line MA and the ATR.
An optional offset to shift the lines in time for backtesting or forward-projection.
Usage Tips
In the Inputs tab, customize:
Mid Line length and ATR length independently.
MA methods for both Mid Line and ATR (SMA, EMA, WMA, RMA, HMA, ALMA).
Band visibility via checkboxes for 1x..6x.
Offset for shifting lines in time.
In the Style tab, you can further customize colors, line widths, and visibility of each element (Mid line, ±1x..±6x).
Enjoy exploring different settings to best match your preferred trading style and timeframe! Indicator

Dynamic ALMA with signalsEnhanced ALMA with Signals
This PulseWire indicator is designed to enhance your trading strategy by utilizing the Arnaud Legoux Moving Average (ALMA), a unique moving average that provides smoother price action while minimizing lag. The script not only plots the ALMA line but also dynamically adjusts its parameters based on market volatility to adapt to different trading conditions. Additionally, it highlights potential bounce points off the line, as well as breakout points, giving traders clear signals for potential support, resistance levels, and breakouts.
Key Features:
Dynamic ALMA Line with Glow Effect:
The core of this indicator is the ALMA line, which is dynamically adjusted to market volatility, providing more accurate signals in varying conditions. The line adapts to both trending and consolidating markets by adjusting its sensitivity in real time. A glow effect is created by plotting the ALMA line multiple times with increasing transparency, making it visually distinct.
Bounce Detection Signals with Volatility Filter:
The script detects and labels potential support and resistance bounces based on the crossover and crossunder of the price with the ALMA line, further filtered by a volatility condition. This helps in filtering out false signals during low-volatility conditions, making the signals more reliable.
Visual Enhancements:
Custom glow effects and labels for bounce detection enhance chart readability and help traders quickly identify key levels.
Inputs:
Base Window Size: Sets the number of bars used in calculating the ALMA, allowing traders to adjust the sensitivity of the moving average. This parameter is dynamically adjusted based on current market volatility.
Offset: Determines the position of the ALMA curve. Higher values move the curve further away from the price. This value remains constant for stability.
Sigma: Controls the smoothness of the ALMA curve; a higher sigma results in a smoother curve. This value also remains constant.
ATR Period and Threshold Multiplier: Used to calculate the Average True Range (ATR) for the volatility filter, which determines whether the market conditions are sufficiently volatile to consider bounce signals.
How It Works:
Dynamic ALMA Calculation:
The script calculates the ALMA (Arnaud Legoux Moving Average) using the ta.alma function, dynamically adjusting the window size based on market volatility measured by the ATR (Average True Range). This ensures that the ALMA line remains responsive in high-volatility environments and smooth in low-volatility conditions.
Glow Effect:
To create a glow effect around the ALMA line, the script plots the ALMA multiple times with varying degrees of transparency. This visual enhancement helps the ALMA line stand out on the chart.
Bounce Detection with Volatility Filter:
The script uses two conditions to detect potential bounces:
Support Bounce: Detected when the low of the bar crosses above the ALMA line (ta.crossover(low, alma)) and the close is above the ALMA, while the volatility filter confirms sufficient market activity. This suggests potential support at the ALMA line.
Resistance Bounce: Detected when the high of the bar crosses below the ALMA line (ta.crossunder(high, alma)) and the close is below the ALMA, while the volatility filter confirms sufficient market activity. This indicates potential resistance at the ALMA line.
Labeling Bounce Points:
When a bounce is detected, the script labels it on the chart:
Support Bounces (S): Labeled with a blue "S" below the bar where a support bounce is detected.
Resistance Bounces (R): Labeled with a white "R" above the bar where a resistance bounce is detected.
Usage:
This enhanced indicator helps traders visualize key support and resistance levels more effectively by dynamically adjusting the ALMA moving average to market conditions. By detecting and labeling potential bounce points and filtering these signals based on volatility, traders can better identify entry and exit points in their trading strategy. The dynamic adjustments and visual enhancements make it easier to spot critical levels quickly and adapt to changing market conditions.
Customize the inputs to fit your trading style, and use this enhanced ALMA indicator to gain a more refined understanding of market trends, potential reversals, and breakouts.
Indicator

Versatile Moving Average StrategyVersatile Moving Average Strategy (VMAS)
Overview:
The Versatile Moving Average Strategy (VMAS) is designed to provide traders with a flexible approach to trend-following, utilizing multiple types of moving averages. This strategy allows for customization in choosing the moving average type and length, catering to various market conditions and trading styles.
Key Features:
- Multiple Moving Average Types: Choose from SMA, EMA, SMMA (RMA), WMA, VWMA, HULL, LSMA, and ALMA to best suit your trading needs.
- Customizable Inputs: Adjust the moving average length, source of price data, and stop-loss source to fine-tune the strategy.
- Target Percent: Set the percentage difference between successive profit targets to manage your risk and rewards effectively.
- Position Management: Enable or disable long and short positions, allowing for versatility in different market conditions.
- Commission and Slippage: The strategy includes realistic commission settings to ensure accurate backtesting results.
Strategy Logic:
1. Moving Average Calculation: The selected moving average is calculated based on user-defined parameters.
2. Entry Conditions:
- A long position is entered when the entry source crosses over the moving average, if long positions are enabled.
- A short position is entered when the entry source crosses under the moving average, if short positions are enabled.
3. Stop-Loss: Positions are closed if the stop-loss source crosses the moving average in the opposite direction.
4. Profit Targets: Multiple profit targets are defined, with each target set at an incremental percentage above (for long positions) or below (for short positions) the entry price.
Default Properties:
- Account Size: $10000
- Commission: 0.01% per trade
- Risk Management: Positions are sized to risk 80% of the equity per trade, because we get very tight stoploss when position is open.
- Sample Size: Backtesting has been conducted to ensure a sufficient sample size of trades, ideally more than 100 trades.
How to Use:
1. Configure Inputs: Set your preferred moving average type, length, and other input parameters.
2. Enable Positions: Choose whether to enable long, short, or both types of positions.
3. Backtest and Analyze: Run backtests with realistic settings and analyze the results to ensure the strategy aligns with your trading goals.
4. Deploy and Monitor: Once satisfied with the backtesting results, deploy the strategy in a live environment and monitor its performance.
This strategy is suitable for traders looking to leverage moving averages in a versatile and customizable manner. Adjust the parameters to match your trading style and market conditions for optimal results.
Note: Ensure the strategy settings used for publication are the same as those described here. Always conduct thorough backtesting before deploying any strategy in a live trading environment. Strategy

Nasan Moving AverageNasan Moving Average belong to the group of moving average which provides a high degree of smoothness with very low lag.
The calculation process involves several steps to analyze the typical price of a financial asset over specific periods. It starts by computing a simple moving average and standard deviation of the typical price. Then, it standardizes (differencing TP - Average Typical price over previous n periods) the price and applies an inverse hyperbolic sine transformation to the standardized value. The transformed values are summed cumulatively, and various weighted moving averages are calculated to adjust and smooth the data. The final output is a smoothed signal with reduced lag.
Input Parameters:
len: Differencing length (default 21, Use a minimum of 5 and for lower time frames less than 15 min use values between 300 -3000)
len1: Correction Factor Length 1 (default 21, this determines the length of the MA you want , eg. 10 MA, 50 MA, 100 MA, )
len2: Correction Factor Length 2 (default 9, this works best if it is ~ </=1/2 of len1 )
len3: Smoothing Length (default 5, I would not change this and only use if I want to introduce lag where you want to use it for cross over strategies).
Differencing and Standardization:
The code calculates the standardized price a by differencing the typical price and normalizing it using the mean and standard deviation. This step standardizes the price changes.
Transformation:
The transformation using logarithms and square roots (b) aim to stabilize the variance and make the distribution more normal-like, improving the robustness of the cumulative sum c.
Cumulative Sum:
The cumulative sum c of the transformed series helps in integrating the series over time, capturing the overall trend and movement.
Correction Factors:
Correction factors c1 and c4 adjust the cumulative sum based on weighted averages, to correct any biases or to align it with the typical price.
Smoothing:
The final result c6 is smoothed using a weighted moving average, reducing noise and making it easier to interpret trends.
Indicator

ALMA Smoothed Gaussian Moving AverageThis indicator is an altered version of the Gaussian Moving Average (GMA) (Credit to author: © LeafAlgo ). The GMA applies weights to the prices, giving more importance to the values closer to the current period and gradually diminishing the significance of older prices. The ALMA Smoothed Gaussian Moving Average (ASGMA) applies an ALMA smoothing to its price data to minimize lag and provide a more accurate representation of the underlying trend by dynamically adapting to changing market conditions. The Arnaud Legoux Moving Average (ALMA) is a specialized smoothing technique that adjusts the weights of the moving average based on market volatility. Its calculation uses Wavelet Transform techniques which enables this type of smoothing to capture both high-frequency and low-frequency components of a signal or data. The rationale for this mashup between ALMA and Gaussian filtering is to smooth the moving average line over the smoothed price data and produce stronger trend signals.
ASGMA serves as a trend-following indicator, identifying both bullish and bearish trends. It provides buy and sell signals indicated by "B" and "S" labels plotted alongside the price data. Additionally, the ASGMA's Exponential Moving Average (EMA) line alternates between green and red, indicating bullish and bearish momentum, respectively.
The ASGMA also incorporates two popular momentum indicators, the Relative Strength Index (RSI) and the Chande Momentum Oscillator (CMO). The inclusion of these indicators aims to enhance trend identification and reversal signals. For a strong buy signal, all three indicators (RSI, CMO, and ASGMA) must indicate bullish conditions, resulting in a vertical green line. Conversely, a vertical red line is plotted when all indicators indicate bearish conditions, representing a strong sell signal.
The ASGMA, with its unique combination of smoothing techniques and indicator amalgamation, provides traders and investors with powerful analytical tools. It can be applied in trend-following strategies using the regular buy and sell signals generated by labels and the EMA line. Alternatively, the vertical lines offer stronger buy and sell signals. These features aid in identifying potential entry and exit points, thereby enhancing trading decisions and market analysis. However, it is important to remember that the future performance of any trading strategy is fundamentally unknowable, and past results do not guarantee future performance. Indicator

AIR Supertrend (Average Interpercentile Range)Supertrend (ST) is a popular stop loss and trend identification script. The simplicity of seeing a clean trend on a chart makes it attractive, yet it is restricted by only allowing the source, length and multiplier to be adjusted, & these tend to have a limited effect on the properties of the identified trend.
There is a wide variety of interesting ST scripts on PulseWire that give the user more control, but none to my knowledge, based on measuring the statistical dispersion of Average Interpercentile Range (AIR).
Two more levels of control:
Normally, ATR Average True Range is used to calculate the range in ST. ATR is initially calculated using RMA to smooth out True Range. This script gives the user the option of changing the MA to some more interesting varieties & modifying their parameters.
The default range setting when you load the indicator on a chart will be AIR.
The real strength of the indicator, however, and the reason I am publishing it, is to release AIR. Play round with the percentile range setting. Lowering it will allow you to stay longer in a trade in a volatile market. Raising it will make it tighter.
For comparison, you can switch back the range setting to ATR and load up RMA to see how the original, classic ST plots.
Alerts are included in this version. Alway use a stop loss.
DISCLAIMER: None of this is financial advice.
Credits to these authors, whose hard work inspired parts of this script:
@ KivancOzbilgic - SuperTrend
@ KioseffTrading - Tillson T3 MA
@ cheatcountry - Hann Window Smoothing
@ mutantdog - Interquartile Range function in his 'Blaze' script Indicator
