PolyFilter [BackQuant]PolyFilter
A flexible, low-lag trend filter with three smoothing engines—optimized for clean bias, fewer whipsaws, and clear alerting.
What it does
PolyFilter draws a single “intelligent” baseline that adapts to price while suppressing noise. You choose the engine— Fractional MA , Ehlers 2-Pole Super Smoother , or a Multi-Kernel blend . The line can color itself by slope (trend) or by position vs price (above/below), and you get four ready-made alerts for flips and crosses.
What it plots
PolyFilter line — your smoothed trend baseline (width set by “Line Width”).
Optional candle & background coloring — choose: color by trend slope or by whether price is above/below the filter.
Signal markers — Arrows with L/S when the slope flips or when price crosses the line (if you enable shapes/alerts).
How the three engines differ
Fractional MA (experimental) — A power-law weighting of past bars (heavier focus on the most recent samples without throwing away history). The Adaptation Speed acts like the “fraction” exponent (default 0.618). Lower values lean more on recent bars; higher values spread weight further back.
Ehlers 2-Pole Super Smoother — Classic low-lag IIR smoother that aggressively reduces high-frequency noise while preserving turns. Great default when you want a steady, responsive baseline with minimal parameter fuss.
Multi-Kernel — A 70/30 blend of a Gaussian window and an exponential kernel. The Gaussian contributes smooth structure; the exponential adds a hint of responsiveness. Useful for assets that oscillate but still trend.
Reading the colors
Trend mode (default) — Line & candles turn green while the filter is rising (signal > signal ) and red while it’s falling.
Above/Below mode — Line & candles reflect price’s position relative to the filter: green when price > filter, red when price < filter. This is handy if you treat the filter like a dynamic “fair value” or bias line.
Inputs you’ll actually use
Calculation Settings
Price Source — Default HLC/3. Switch to Close for stricter trend, or HLC3/HL2 to soften single-print spikes.
Filter Length — Window/period for all engines. Shorter = snappier turns; longer = smoother line.
Adaptation Speed — Only affects Fractional MA . Lower it for faster, more local weighting; raise it for smoother, more global weighting.
Filter Type — Pick one of: Fractional MA, Ehlers 2-Pole, Multi-Kernel.
UI & Plotting
Color based off… — Choose Trend (slope) or > or < Close (position vs price).
Long/Short Colors — Customize bull/bear hues to your theme.
Show Filter Line / Paint candles / Color background — Visual toggles for the line, bars, and backdrop.
Line Width — Make the filter stand out (2–3 works well on most charts).
Signals & Alerts
PolyFilter Trend Up — Slope flips upward (the filter crosses above its prior value). Good for early continuation entries or stop-tightening on shorts.
PolyFilter Trend Down — Slope flips downward. Often used to scale out longs or rotate bias.
PolyFilter Above Price — The filter line crosses up through price (filter > price). This can confirm that mean has “caught up” after a pullback.
PolyFilter Below Price — The filter line crosses down through price (filter < price). Useful to confirm momentum loss on bounces.
Quick starts (suggested presets)
Intraday (5–15m, crypto or indices) — Ehlers 2-Pole, Length 55–80. Trend coloring ON, candle paint ON. Look for pullbacks to a rising filter; avoid fading a falling one.
Swing (1H–4H) — Multi-Kernel, Length 80–120. Background color OFF (cleaner), candle paint ON. Add a higher-TF confirmation (e.g., 4H filter rising when you trade 1H).
Range-prone FX — Fractional MA, Length 70–100, Adaptation ~0.55–0.70. Consider Above/Below mode to trade mean reversion to the line with a strict risk cap.
How to use it in practice
Bias line — Trade in the direction of the filter slope; stand aside when it flattens and color chops back and forth.
Dynamic support/resistance — Treat the line as a moving value area. In trends, entries often appear on shallow tags of the line with structure confluence.
Regime switch — When the filter flips and holds color for several bars, tighten stops on the opposing side and look for first pullback in the new color.
Stacking filters — Many users run PolyFilter on the active chart and a slower instance (longer length) on a higher timeframe as a “macro bias” guardrail.
Tuning tips
If you see too many flips, lengthen the filter or switch to Multi-Kernel.
If turns feel late, shorten the filter or try Ehlers 2-Pole for lower lag.
On thin or very noisy symbols, prefer HLC3 as the source and longer lengths.
Performance note: very large lengths increase computation time for the Multi-Kernel and Fractional engines. Start moderate and scale up only if needed.
Summary
PolyFilter gives you a single, trustworthy baseline that you can read at a glance—either as a pure trend line (slope coloring) or as a dynamic “above/below fair value” reference. Pick the engine that matches your market’s personality, set a sensible length, and let the color and alerts guide bias, entries on pullbacks, and risk on reversals.
Analisi trend
Safety TradeOverview
Safety Trade plots a deterministic set of adaptive support levels anchored to 4H data and overlays them on any chart timeframe. The script does not use lookahead or future data. Line styles (color/width/type) are user-editable in the Style tab; logic parameters are fixed to keep results uniform across users.
What makes it different
All computations are centralized on 4H, then the finished values are displayed on lower or higher timeframes. This reduces parameter drift, simplifies cross-user comparisons, and avoids ambiguous “moving targets.”
Method (high level)
On 4H, a smoothed baseline is built from recent lowest lows using a moving average. From that baseline, LL2/LL3/LL4 are derived and smoothed on 4H as well. A deterministic mid-line between LL2 and LL3 is used internally (no bar-index tricks or animations). Five empirical extra levels are then computed between LL4 and LL3 using fixed multipliers: 5.33, 4.37, 3.52, 2.95, 2.30. These are not classic Fibonacci; they serve as research/visual guideposts only.
How to use (practical playbook)
Timeframe and confirmation: Values finalize on the 4H close. Confirm setups on 4H candles; use lower TFs only to fine-tune entries once a 4H condition is met.
Reading the levels: The LL4→LL3 corridor is an adaptive 4H support envelope. Level 1…Level 5 are non-linear subdivisions inside this corridor for staging partial exits, re-entries, and trailing stops. Basic bias: above LL3 with rising slope = bullish context; persistent 4H closes below LL4 with retests from below = bearish context.
Long setups:
• Rebound from LL4 (mean-reversion long): Wick through LL4, then a 4H close back above LL4. Entry next bar or on a small pullback; stop = LL4 − 0.5–1.0 × ATR(14, 4H). Targets: L5 → L4 → L3 (e.g., 30/30/40). After first take-profit move stop to breakeven, then trail under the next lower level.
• Retest of LL3 from above (trend-continuation long): Confirmed 4H close above LL3, then pullback holding LL3. Stop slightly below LL3 or below the retest swing low. Targets: structure highs or ladder via L3→L2→L1.
Short setup (mirror): 4H close below LL4, retest fails from below; stop above LL4; manage via structure/ATR and trail above swing highs or above the nearest level.
When to stand aside: High-impact news spikes; mid-corridor chop with no tests of LL4/LL3; before a decisive 4H close.
Confluence: Higher-TF market structure (D/1W), volume/OBV/MFI, and candle behavior right at LL4/LL3.
Risk: Keep per-trade risk small (e.g., 0.5–1%). Prefer partial take-profits over all-or-nothing. If volatility expands, widen stops slightly (ATR-based) and reduce size to keep risk constant.
Common mistakes: Treating lines as guaranteed reversal points; entering off a lower-TF touch without 4H confirmation; claiming performance on synthetic charts; fighting a strong down-slope below LL4.
Multi-timeframe behavior
On lower chart timeframes, values can shift intrabar until the current 4H candle closes. After the 4H close, values are fixed for that 4H segment. Lookahead is off.
What this is not
Not a strategy and not a signal generator. No claims about accuracy or ROI. Past performance does not guarantee future results.
Compatibility and scope
Pine v5, overlay, user-editable line styles. Works on any symbol/timeframe; all computations are centralized on 4H.
Changelog
v1.0 — Initial public release: 4H-anchored processing, no lookahead, user-editable styles, five empirical extra levels.
Disclaimer
For informational and educational purposes only. Not financial advice. Use at your own risk.
Cozys Black Van CandlesDescription:
Cozys Black Van Candles is a versatile, fully customizable overlay indicator designed to visually highlight multiple key candle structures on your chart. It allows traders to track precise OHLC levels and midpoints for a series of user-defined candles, offering a clear visual representation of market action. The indicator is optimized for clarity, flexibility, and session-based analysis.
This indicator is inspired by the unique trading methodology of ᴵᶜᵗ 👑 Cøzy🦁Bæb¹⁷ 💚. It is designed to visually represent multiple candle bodies along with their open, high, low, and close (OHLC) levels, allowing traders to monitor key price zones and session dynamics. The tool also features a settlement-level overlay, which dynamically extends throughout the session, providing a clear reference for decision-making. With customizable colors, line styles, and label settings, this indicator offers flexibility for both analysis and chart readability, making it suitable for professional traders seeking precise visual cues and enhanced market awareness.
Key Features:
Multiple Candle Visualization: Plot multiple custom candles on your chart with independent toggles for each, allowing full control over which candles are displayed.
OHLC & Midpoint Levels: Each candle displays its Open, High, Low, Close, and Midpoint levels using dedicated lines for accurate reference.
Dynamic Boxes & Lines: Candle ranges are highlighted with semi-transparent boxes and lines that expand in real-time, providing clear visualization of active sessions and historical candle structure.
Session Expansion: Candle boxes and lines automatically extend throughout the session until a defined cutoff, ensuring continuous visual tracking of each candle’s range.
Customizable Styles & Colors: Users can fully customize the colors, line styles (solid, dotted, dashed), and widths of all OHLC lines, midpoints, and candle boxes for maximum chart readability.
Labeling: Each candle can be labeled at its midpoint with customizable text, background, and size, providing instant identification without cluttering the chart.
Independent PD-Like Settlement Candle: The indicator supports a special, session-based candle with fully independent OHLC and midpoint plotting, including dynamic expansion and labeling, without affecting main candle plots.
Timezone Support: All candles and session-based calculations respect a user-defined timezone, ensuring accurate plotting across different markets and trading sessions.
Replay & Real-Time Compatible: All plotted boxes, lines, and labels expand correctly in both real-time and replay mode, providing reliable historical analysis and session review.
Performance Optimized: Designed with efficient use of Pine Script objects to avoid conflicts and maximize chart responsiveness.
Flexible Session Reset: Main candles and session-based candles can reset automatically at the start of a new trading session for a clean chart display.
Use Cases:
Visualize key intraday candles for reference in scalping or day trading strategies.
Track precise OHLC and midpoint levels for multiple candles simultaneously.
Overlay session-based structures without interfering with price action.
Enhance chart readability with labeled candle ranges and dynamic boxes.
Highlights:
Plot multiple candles simultaneously with independent toggles.
Track precise OHLC and midpoint levels at a glance.
Dynamic boxes and lines expand through the session automatically.
Fully customizable colors, line styles, widths, and labels.
Session-based candle plotting without affecting main candles.
Works in real-time and replay mode.
Timezone-aware for accurate market session tracking.
Perfect for day traders, scalpers, and anyone who wants a clean, visual overview of intraday candle action!
EMA-RSI-ADX Trend Bands
📌 EMA-RSI-ADX Trend Bands (ERA Trend Bands)
🔥 Overview
The ERA Trend Bands indicator combines Exponential Moving Average (EMA), Relative Strength Index (RSI), and Average Directional Index (ADX) into a powerful multi-factor trend system.
It helps traders:
Identify trend direction (Bullish / Bearish)
Measure trend strength using EMA deviation bands
Confirm momentum with RSI & ADX filters
Visualize conditions with dynamic colors, labels, tables, and signals
⚡ Key Features
📍 EMA Trend Bands
EMA100 with gradient glow effect showing trend bias
Strength bands around EMA (Very Weak → Hyper levels)
Bands color-coded for bullish/bearish extremes
📊 RSI + ADX Confluence
Bullish Signal: RSI ≥ threshold & ADX ≥ threshold → 🟢
Bearish Signal: RSI ≤ threshold & ADX ≤ threshold → 🔴
Candles recolored when conditions are met
Auto-generated labels show live RSI/ADX values
🧩 Strength Levels
Classifies deviation from EMA into 8 levels:
Neutral → Very Weak → Weak → Moderate → Strong → Very Strong → Extreme → Hyper
Dashboard table shows deviation % ranges & strength colors
Dynamic labels display Trend, Strength, Deviation %, RSI & ADX
🎨 Visual Enhancements
Gradient EMA line with glow effect
Bullish (greens) & bearish (reds) vibrant palettes
Background coloring (optional) based on strength
Symbols & labels for entry confirmation
🎯 How to Use
Trend Direction – EMA color + deviation bands show whether market is bullish or bearish.
Strength Confirmation – Use strength labels & dashboard table to gauge overextension.
Entry Signals – Watch for RSI/ADX confluence (green/red labels on chart).
Exits – Monitor when strength fades back toward Neutral/Weak levels.
⚙️ Settings & Inputs
EMA Settings → Length, Line Width, Gradient Intensity
RSI Settings → Length & Thresholds (Bullish / Bearish)
ADX Settings → Length & Thresholds (Bullish / Bearish)
Bands → Enable/disable EMA deviation bands
Labels/Table → Toggle strength info display
Colors → Fully customizable vibrant palettes
🚨 Alerts & Signals
Bullish Condition → RSI & ADX above thresholds
Bearish Condition → RSI & ADX below thresholds
Visual confirmation with labels, candles, and background
⚠️ Disclaimer
This script is for educational purposes only.
It does not constitute financial advice.
Always backtest and use proper risk management before trading live.
✨ Add EMA-RSI-ADX Trend Bands (ERA Trend Bands) to your chart to trade with clarity, strength, and precision.
Heikin FlowHeikin Flow
by Ben Deharde, 2025
Overview
Heikin Flow is a trend and momentum oscillator built on a smoothed reverse-Heikin-Ashi baseline. It quantifies the distance between price and this baseline, then colors the histogram to reflect both direction and acceleration/deceleration. Use it standalone to read trend energy and shifts, or pair it with Heikin Rider for momentum-aware breakout confirmation.
What It Does
Computes a reverse-HA baseline and optionally smooths it with a selectable MA.
Plots a histogram of distance (price minus baseline) to visualize directional pressure.
Colors the histogram by trend state (above/below baseline) and momentum (accelerating vs. decelerating).
Provides alerts on zero-line crosses to spotlight potential momentum regime changes.
The histogram also helps to spot divergence between price and momentum (e.g., price making new highs while the histogram weakens).
How It Works
Reverse-HA Baseline
Heikin Flow derives a “reverse close” value from Heikin Ashi context (using prior HA open/close with current bar range) to capture underlying pressure. This value is range-bounded to avoid extremes, then optionally smoothed. The resulting line acts as a soft directional baseline.
Smoothing (Noise Control)
Choose SMA/EMA/HMA/VWMA/RMA and a length to control baseline responsiveness. Shorter lengths react faster, longer lengths emphasize trend consistency by filtering noise—useful when pairing with breakout tools like Rider.
Trend & Momentum Logic
Trend: If price is above the baseline, the environment is considered uptrend; below indicates downtrend.
Momentum: The change in distance bar-to-bar distinguishes acceleration (growing distance) from deceleration (shrinking distance).
This dual readout helps you see not just direction, but the quality of that direction—strong push vs. weakening move.
Coloring (Aligned with Heikin Rider Palette)
Deep Blue: Uptrend & accelerating
Light Blue: Uptrend & decelerating
Deep Red: Downtrend & accelerating
Soft Orange: Downtrend & decelerating
This mirrors the palette logic from Heikin Rider for immediate visual consistency across the suite.
How to use
Read the histogram above/below zero (price–baseline) as directional bias; watch color changes for momentum context.
Use zero-line crosses as momentum regime shifts; confirm with price action or Heikin Rider breakout signals.
Watch for divergence between price action and the histogram as an early clue of weakening moves.
Adjust smoothing method/length to fit your market and timeframe—faster for scalping, slower to highlight sustained trends.
Inputs
Smoothing Type & Length for the baseline (SMA/EMA/HMA/VWMA/RMA)
Info Box toggles (display and formatting)
Live Mode option for real-time vs. confirmed-bar behavior (avoids inadvertent lookahead)
Originality
Heikin Flow adapts the HA-driven methodology to an oscillator that focuses on distance-to-baseline and momentum quality, using a reverse-HA construction and flexible MA smoothing—complementing Heikin Rider’s smoothed HA envelope breakout design for a cohesive, momentum-aware workflow.
Alerts
Bullish Heikin Flow Cross — distance crosses above 0 (on bar close)
Bearish Heikin Flow Cross — distance crosses below 0 (on bar close)
ICT Entry Models (Riz)The ICT Entry Models Indicator is a complete framework built to help traders visualize and apply multiple Institutional concepts on a single chart. Instead of relying on one entry technique, this tool combines 14+ ICT entry models and evaluates them under a unified structure. Each model is detected independently but filtered through a multi-factor confluence engine that considers liquidity, higher-timeframe structure, premium/discount zones, and session context. This ensures only high-probability setups are highlighted.
What This Indicator Does
⦁ Detects and plots ICT-based entry models such as: Fair Value Gaps, Order Blocks, Breakers, Liquidity Grabs, Stop Hunts, Asian Range Breakouts, Silver Bullet setups, Power of Three, Judas Swing, Unicorn model, Market Maker models, Previous Day High/Low breaks, and others.
⦁ Automatically validates entries using higher timeframe confirmation and confluence filters.
⦁ Provides risk management tools with structural stop-loss, ATR-based SL, TP1/TP2 targets, and R:R calculations.
⦁ Displays visual trade labels showing direction, strength, and expected risk/reward.
⦁ Includes a performance dashboard that tracks win rates, session stats, and risk outcomes.
How It Works
Each entry model is activated through custom detection logic. The script checks for key conditions like displacement, imbalance, BOS/CHoCH, liquidity sweeps, and premium/discount zones. When multiple models align, the indicator assigns a signal strength rating.
⦁ Weak setups: Highlighted but marked lower confidence.
⦁ Strong setups: Require confluence of liquidity, structure, and time-based filters (e.g., killzones).
⦁ The indicator then calculates a safe stop-loss placement (always on the correct side of price) and take-profit levels based on Goldbach ratios and volatility expansion.
Inputs
⦁ Model Toggles: Enable/disable individual entry models (e.g., FVG only, OB only, or full confluence).
⦁ Confluence Filters: Higher-timeframe structure, premium/discount zones, volatility thresholds.
⦁ Risk Management Settings: ATR multiplier, fixed SL/TP options, R:R target adjustments.
⦁ Dashboard & Visuals: Choose which stats, labels, and levels appear on chart.
How to Use
1. Apply the indicator to any forex, crypto, or index chart.
2. Select your timeframe. For scalping, use 1–5m with HTF confirmation. For day/swing trades, use 15m–1H with HTF overlays.
3. Toggle your preferred entry models (e.g., FVG + Liquidity Sweep) or enable all for confluence.
4. Watch for strong confluence signals: entry marker + calculated SL/TP + dashboard confirmation.
5. Use the signals as decision support not as automated buy/sell triggers.
Notes & Tips
Best used in liquid markets (Majors, Gold, Indices, BTC/ETH).
HTF confirmation greatly improves accuracy e.g., align 1m entries with 15m structure.
Combining time-based models (Silver Bullet, Killzones) with structural models improves precision.
Disclaimer
This tool is for educational and research purposes only. It is not financial advice, nor does it guarantee profitability. All trading involves risk, and users should test thoroughly before applying live.
Trendline Breakout Strategy [KedArc Quant] Description
A single, rule-based system that builds two trendlines from confirmed swing pivots and trades their breakouts, with optional retest, trend-regime gates (EMA / HTF EMA), and ATR-based risk. All parts serve one decision flow: structure → breakout → gated entry → managed risk.
What it does (for traders)
Draws Up line (teal) through the last two Higher Lows and Down line (red) through the last two Lower Highs, then extends them forward.
Long when price breaks above red; Short when price breaks below teal.
Optional Retest entry: after a break, wait for a pullback toward the broken line within an ATR-scaled buffer.
Uses ATR stop and R-multiple target so risk is consistent across symbols/timeframes.
Labels HL1/HL2/LH1/LH2 so non-coders can verify which pivots built each line.
Why these components are combined
Pure breakout systems on trendlines suffer from three practical issues:
False breaks in chop → solved by trend-regime gates (EMA / HTF EMA) that only allow trades aligned with the prevailing trend.
Uneven volatility across markets/timeframes → solved by ATR-based stop/target, normalizing distance so R-multiples are comparable.
First break whipsaws near wedge apices → mitigated by the optional retest rule that demands a pullback/hold before entry.
These modules are not separate indicators with their own signals. They are support roles inside one method.
The pivot engine defines structure, the breakout detector defines signal, the regime gates decide if we’re allowed to take that signal, and the ATR module sizes risk.
Together they make the trendline breakout usable, testable, and explainable.
How it works (mechanism; each component explained)
1) Pivot engine (structure, non-repainting)
Swings are confirmed with ta.pivotlow/high(L, R). A pivot only exists after R bars (no look-ahead), so once plotted, the line built from those pivots will not repaint.
2) Trendline builder (geometry)
Teal line updates when two consecutive pivot lows satisfy HL2.price > HL1.price (and HL2 occurs after HL1).
Red line updates when two consecutive pivot highs satisfy LH2.price < LH1.price.
Lines are extended right and their current value is read every bar via line.get_price().
3) Breakout detector (signal)
On every bar, compute:
crossover(close, redLine) ⇒ Long breakout
crossunder(close, tealLine) ⇒ Short breakdown
4) Regime gates (trend filters, not separate signals)
EMA gate: allow longs only if close > EMA(len), shorts only if close < EMA(len).
HTF EMA gate (optional): same rule on a higher timeframe to avoid fighting the larger trend.
These do not create entries; they simply permit or block the breakout signal.
5) Retest module (optional confirmation)
After a breakout, record the line price. A valid retest occurs if price pulls back within an ATR-scaled buffer toward that broken line and then closes back in the breakout direction.
This reduces first-tick fakeouts.
6) Risk module (position exit)
Initial stop = ATR(len) × atrMult from entry.
Target = tpR × (ATR × atrMult) (e.g., 2R).
This keeps results consistent across instruments/timeframes.
Entries & exits
Long entry
Base: close breaks above red and passes EMA/HTF gates.
Retest (if enabled): after the break, price pulls back near the broken red line (within the ATR buffer) and holds; then enter.
Short entry
Mirror logic with teal (break below & gates), optionally with a retest.
Exit
strategy.exit places ATR stop & R-multiple target automatically.
Optional “flip”: close if the opposite base signal triggers.
How to use it (step-by-step)
Timeframe: 1–15m for intraday, 1–4h for swing.
Start defaults: Pivot L/R = 5, EMA len = 200, ATR len = 14, ATR mult = 2, TP = 2R, Retest = ON.
Tune sensitivity:
Faster lines (more trades): set L/R = 3–4.
Fewer counter-trend trades: enable HTF EMA (e.g., 60-min or Daily).
Visual audit: labels HL1/HL2 & LH1/LH2 show which pivots built each line—verify by eye.
Alerts: use Long breakout, Short breakdown, and Retest alerts to automate.
Originality (why it merits publication)
Trades the visualization: many “auto-trendline” tools only draw lines; this one turns them into testable, alertable rules.
Integrated design: each component has a defined role in the same pipeline—no unrelated indicators bolted together.
Transparent & non-repainting: pivot confirmation removes look-ahead; labels let non-coders understand the setup that produced each signal.
Notes & limitations
Lines update only after pivot confirmation; that lag is intentional to avoid repainting.
Breakouts near an apex can whipsaw; prefer Retest and/or HTF gate in choppy regimes.
Backtests are idealized; forward-test and size risk appropriately.
⚠️ Disclaimer
This script is provided for educational purposes only.
Past performance does not guarantee future results.
Trading involves risk, and users should exercise caution and use proper risk management when applying this strategy.
TB DayProfile (stabil)TB DayProfile Indicator
The TB DayProfile plots intraday price movements relative to the current day’s opening price. Each bar is shifted so that the daily open acts as a fixed zero line, making it easy to see how far the market has moved above or below the open during the session.
The indicator includes:
Relative intraday bars (iOpen, iHigh, iLow, iClose): Displayed as a custom bar chart, showing price action normalized to the day’s open.
Zero line with color signals: Turns green if the number of consecutive bars above the open exceeds a user-defined threshold, or red if below.
ATR reference bands: Daily ATR(5) from the previous day (scaled by 0.25) is plotted as upper and lower bands, helping to gauge typical intraday ranges.
This tool helps traders quickly identify whether the market is trending strongly away from the daily open, or if price is reverting back toward it, independent of the chosen chart timeframe.
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
Weighted Sector ADD (sign-weighted)What it is
A true, cap-weighted advances/declines (ADD) proxy for the S&P 500 using sector ETFs. Each sector contributes +1 if it’s up on the bar, −1 if it’s down, 0 if flat. Those signals are then weighted by your sector weights (auto-normalized to 100%) and summed into a single breadth line. The result is a fast, low-noise read of how much of the S&P (by sector weight) is advancing vs. declining right now.
- Tracks participation, not price magnitude—perfect for spotting “broad vs. narrow” moves
- Heavily weighted sectors (e.g., Tech) matter proportionally more, reflecting real index impact
- Simple scale: ~−1 to +1 (all weight down → all weight up)
Chart Elements
- Green/Red Columns – “Weighted ADD”: Current bar’s weighted breadth (sign-based by default)
- Blue Line – “Weighted MA”: SMA of the weighted ADD (regime filter)
- Zero/Guide Lines (optional): 0.0, ±0.2 (mild), ±0.6 (strong)
- Labels (optional): Text markers at those guide levels
- Advancing Weight % (optional): Label showing ((ADD+1)/2)*100 → share of total sector weight advancing
How to Read (Quick Guide)
- +0.60 to +1.00 → Broad, one-sided risk-on (most sector weight advancing)
- +0.20 to +0.60 → Moderate, supportive breadth
- −0.20 to +0.20 → Mixed/choppy; rotation
- −0.60 to −1.00 → Broad, one-sided risk-off
- MA above/below zero → Simple regime indicator; zero-crosses could be potential alert triggers
- Divergence: Strong price move with a weak/flat ADD could potentially warn of narrow participation
Inputs & settings
Calculation
- Use returns instead of up/down sign?
OFF (default): true weighted participation (+1/−1/0)
ON: weighted sector returns (winsor-capped). Use if you want magnitude, not just direction
- Winsor cap (returns mode): Caps per-sector contribution in returns mode (e.g., 0.02 = ±2%)
- Smoothing MA length: SMA period for the blue “Weighted MA” line
- Source timeframe: Compute signals on another TF (e.g., “60”) but plot on your chart TF
Visibility
- Show Weighted ADD (bars): Toggle the green/red columns
- Show Weighted ADD MA: Toggle the blue SMA line
- Show Zero Line (0): Toggle the 0.0 reference line
- Show ±0.2 / ±0.6 guide lines: Toggle the helper levels
- Show guide labels: Draw small text labels at 0, ±0.2, ±0.6
- Guide label offset (bars left): Move labels left if they overlap the right edge values
- Show Advancing Weight % label: Toggle the % of sector weight currently advancing
Sector Symbols (ETF proxies)
- XLK, XLY, XLF, XLV, XLC, XLI, XLP, XLE, XLB, XLU, XLRE: Defaults to the SPDR sector ETFs. You can swap for alternative proxies if desired.
Sector Weights (auto-normalize)
- Weight inputs for each sector (e.g., Tech 0.30, Financials 0.13…). These auto-normalize to 1.0 so you can paste rough numbers; the script scales them.
- Keep weights fresh. GICS sector weights drift; update periodically (e.g., quarterly).
Alerts included
- “Weighted ADD crossed above 0”
- “Weighted ADD crossed below 0”
Version
v1.0 – Initial release (weighted sign-based ADD + SMA, zero/guide lines & labels, Adv % label, alerts).
Scalping MasterMarket Structure Analysis:
Swing Structure: Detects higher highs (HH), lower highs (LH), higher lows (HL), aur lower lows (LL) ko identify karta hai using pivot points (based on ta.highest aur ta.lowest).
Internal Structure: Chhote timeframes ke liye internal swing points aur break of structure (BOS)/change of character (CHoCH) ko track karta hai.
BOS/CHoCH Detection: Bullish aur bearish structure breaks (BOS) aur trend reversals (CHoCH) ko label karta hai.
Order Blocks (OB):
Internal Order Blocks: Chhote timeframe ke order blocks ko plot karta hai, jo liquidity zones ko represent karte hain.
Swing Order Blocks: Bade timeframe ke order blocks ko show karta hai.
Filtering: ATR ya Cumulative Mean Range ke basis par volatile order blocks ko filter karta hai.
Fair Value Gaps (FVG):
Price gaps (bullish aur bearish) ko detect aur plot karta hai.
Auto-threshold aur timeframe customization ke saath FVGs ko filter karta hai.
FVGs ko extend karne ka option deta hai (visual representation ke liye).
Equal Highs/Lows (EQH/EQL):
Equal highs aur lows ko identify karta hai, jo support/resistance zones ke liye useful hote hain.
Bars confirmation aur sensitivity threshold ke saath customizable hai.
Previous Highs/Lows (MTF):
Daily, weekly, aur monthly high/low levels ko plot karta hai.
Line style (solid, dashed, dotted) aur colors customizable hain.
Premium/Discount Zones:
Market ke premium, equilibrium, aur discount zones ko highlight karta hai, jo price action ke liye key areas hote hain.
Visual Customization:
Color Themes: Colored ya monochrome themes ke options.
Candle Coloring: Trend ke hisaab se candles ko color karta hai.
Labels aur Lines: Swing points, strong/weak highs/lows, aur structure breaks ke liye labels aur lines plot karta hai.
Modes:
Historical Mode: Past data ke saath complete structure dikhata hai.
Present Mode: Sirf recent structure aur signals dikhata hai, clutter reduce karne ke liye.
Alerts:
Bullish/Bearish BOS, CHoCH, order block breaks, aur EQH/EQL ke liye alerts set karne ka option.
Swing Points aur Trailing:
Strong/weak high aur low points ko track karta hai.
Trailing maximum/minimum ko extend karta hai for real-time analysis.
Kya Kya Mila Kar Bana Hai?
Yeh indicator Smart Money Concepts ke core principles par based hai aur in elements ko combine karta hai:
Pivot Point Analysis:
ta.highest aur ta.lowest functions se swing highs/lows detect karta hai.
Internal aur swing structure ke liye alag-alag lengths (e.g., length aur 5 for internal swings).
Price Action Concepts:
Break of Structure (BOS): Jab price pivot high/low ko break karta hai.
Change of Character (CHoCH): Jab trend reverse hota hai.
Confluence filtering ke saath accuracy improve karta hai.
Order Blocks:
Liquidity zones ko identify karne ke liye high/low ranges aur ATR/cumulative mean range ka use.
Bullish aur bearish order blocks ke liye customizable colors.
Fair Value Gaps:
Gaps in price action ko detect karne ke liye OHLC data ka analysis.
Timeframe aur auto-threshold ke saath flexibility.
MTF (Multi-Timeframe) Analysis:
Daily, weekly, monthly high/low levels ke liye ta.valuewhen aur time-based calculations.
Zones Detection:
Premium, equilibrium, aur discount zones ke liye price range calculations.
Visual Tools:
Lines, labels, aur boxes ke saath market structure ko visually represent karta hai (line.new, label.new, box.new).
Extendable lines aur boxes for better visibility.
User Inputs:
Customizable settings jaise timeframe, colors, lengths, aur filters, jo user ko flexibility dete hain.
Technical Components
PineScript Functions: ta.crossover, ta.crossunder, ta.highest, ta.lowest, ta.atr, ta.cum for calculations.
Arrays: Order blocks ke coordinates store karne ke liye (array.new_float, array.new_int, array.new_box).
Drawing Tools: Lines, labels, aur boxes ke saath dynamic plotting.
Conditional Logic: BOS, CHoCH, aur other signals ke liye complex conditions.
Timeframe Support: Multi-timeframe analysis ke liye input.timeframe.
Harmonic Super GuppyHarmonic Super Guppy – Harmonic & Golden Ratio Trend Analysis Framework
Overview
Harmonic Super Guppy is a comprehensive trend analysis and visualization tool that evolves the classic Guppy Multiple Moving Average (GMMA) methodology, pioneered by Daryl Guppy to visualize the interaction between short-term trader behavior and long-term investor trends. into a harmonic and phase-based market framework. By combining harmonic weighting, golden ratio phasing, and multiple moving averages, it provides traders with a deep understanding of market structure, momentum, and trend alignment. Fast and slow line groups visually differentiate short-term trader activity from longer-term investor positioning, while adaptive fills and dynamic coloring clearly illustrate trend coherence, expansion, and contraction in real time.
Traditional GMMA focuses primarily on moving average convergence and divergence. Harmonic Super Guppy extends this concept, integrating frequency-aware harmonic analysis and golden ratio modulation, allowing traders to detect subtle cyclical forces and early trend shifts before conventional moving averages would react. This is particularly valuable for traders seeking to identify early trend continuation setups, preemptive breakout entries, and potential trend exhaustion zones. The indicator provides a multi-dimensional view, making it suitable for scalping, intraday trading, swing setups, and even longer-term position strategies.
The visual structure of Harmonic Super Guppy is intentionally designed to convey trend clarity without oversimplification. Fast lines reflect short-term trader sentiment, slow lines capture longer-term investor alignment, and fills highlight compression or expansion. The adaptive color coding emphasizes trend alignment: strong green for bullish alignment, strong red for bearish, and subtle gray tones for indecision. This allows traders to quickly gauge market conditions while preserving the granularity necessary for sophisticated analysis.
How It Works
Harmonic Super Guppy uses a combination of harmonic averaging, golden ratio phasing, and adaptive weighting to generate its signals.
Harmonic Weighting : Each moving average integrates three layers of harmonics:
Primary harmonic captures the dominant cyclical structure of the market.
Secondary harmonic introduces a complementary frequency for oscillatory nuance.
Tertiary harmonic smooths higher-frequency noise while retaining meaningful trend signals.
Golden Ratio Phase : Phases of each harmonic contribution are adjusted using the golden ratio (default φ = 1.618), ensuring alignment with natural market rhythms. This reduces lag and allows traders to detect trend shifts earlier than conventional moving averages.
Adaptive Trend Detection : Fast SMAs are compared against slow SMAs to identify structural trends:
UpTrend : Fast SMA exceeds slow SMA.
DownTrend : Fast SMA falls below slow SMA.
Frequency Scaling : The wave frequency setting allows traders to modulate responsiveness versus smoothing. Higher frequency emphasizes short-term moves, while lower frequency highlights structural trends. This enables adaptation across asset classes with different volatility characteristics.
Through this combination, Harmonic Super Guppy captures micro and macro market cycles, helping traders distinguish between transient noise and genuine trend development. The multi-harmonic approach amplifies meaningful price action while reducing false signals inherent in standard moving averages.
Interpretation
Harmonic Super Guppy provides a multi-dimensional perspective on market dynamics:
Trend Analysis : Alignment of fast and slow lines reveals trend direction and strength. Expanding harmonics indicate momentum building, while contraction signals weakening conditions or potential reversals.
Momentum & Volatility : Rapid expansion of fast lines versus slow lines reflects short-term bullish or bearish pressure. Compression often precedes breakout scenarios or volatility expansion. Traders can quickly gauge trend vigor and potential turning points.
Market Context : The indicator overlays harmonic and structural insights without dictating entry or exit points. It complements order blocks, liquidity zones, oscillators, and other technical frameworks, providing context for informed decision-making.
Phase Divergence Detection : Subtle divergence between harmonic layers (primary, secondary, tertiary) often signals early exhaustion in trends or hidden strength, offering preemptive insight into potential reversals or sustained continuation.
By observing both structural alignment and harmonic expansion/contraction, traders gain a clear sense of when markets are trending with conviction versus when conditions are consolidating or becoming unpredictable. This allows for proactive trade management, rather than reactive responses to lagging indicators.
Strategy Integration
Harmonic Super Guppy adapts to various trading methodologies with clear, actionable guidance.
Trend Following : Enter positions when fast and slow lines are aligned and harmonics are expanding. The broader the alignment, the stronger the confirmation of trend persistence. For example:
A fast line crossover above slow lines with expanding fills confirms momentum-driven continuation.
Traders can use harmonic amplitude as a filter to reduce entries against prevailing trends.
Breakout Trading : Periods of line compression indicate potential volatility expansion. When fast lines diverge from slow lines after compression, this often precedes breakouts. Traders can combine this visual cue with structural supports/resistances or order flow analysis to improve timing and precision.
Exhaustion and Reversals : Divergences between harmonic components, or contraction of fast lines relative to slow lines, highlight weakening trends. This can indicate liquidity exhaustion, trend fatigue, or corrective phases. For example:
A flattening fast line group above a rising slow line can hint at short-term overextension.
Traders may use these signals to tighten stops, take partial profits, or prepare for contrarian setups.
Multi-Timeframe Analysis : Overlay slow lines from higher timeframes on lower timeframe charts to filter noise and trade in alignment with larger market structures. For example:
A daily bullish alignment combined with a 15-minute breakout pattern increases probability of a successful intraday trade.
Conversely, a higher timeframe divergence can warn against taking counter-trend trades in lower timeframes.
Adaptive Trade Management : Harmonic expansion/contraction can guide dynamic risk management:
Stops may be adjusted according to slow line support/resistance or harmonic contraction zones.
Position sizing can be modulated based on harmonic amplitude and compression levels, optimizing risk-reward without rigid rules.
Technical Implementation Details
Harmonic Super Guppy is powered by a multi-layered harmonic and phase calculation engine:
Harmonic Processing : Primary, secondary, and tertiary harmonics are calculated per period to capture multiple market cycles simultaneously. This reduces noise and amplifies meaningful signals.
Golden Ratio Modulation : Phase adjustments based on φ = 1.618 align harmonic contributions with natural market rhythms, smoothing lag and improving predictive value.
Adaptive Trend Scaling : Fast line expansion reflects short-term momentum; slow lines provide structural trend context. Fills adapt dynamically based on alignment intensity and harmonic amplitude.
Multi-Factor Trend Analysis : Trend strength is determined by alignment of fast and slow lines over multiple bars, expansion/contraction of harmonic amplitudes, divergences between primary, secondary, and tertiary harmonics and phase synchronization with golden ratio cycles.
These computations allow the indicator to be highly responsive yet smooth, providing traders with actionable insights in real time without overloading visual complexity.
Optimal Application Parameters
Asset-Specific Guidance:
Forex Majors : Wave frequency 1.0–2.0, φ = 1.618–1.8
Large-Cap Equities : Wave frequency 0.8–1.5, φ = 1.5–1.618
Cryptocurrency : Wave frequency 1.2–3.0, φ = 1.618–2.0
Index Futures : Wave frequency 0.5–1.5, φ = 1.618
Timeframe Optimization:
Scalping (1–5min) : Emphasize fast lines, higher frequency for micro-move capture.
Day Trading (15min–1hr) : Balance fast/slow interactions for trend confirmation.
Swing Trading (4hr–Daily) : Focus on slow lines for structural guidance, fast lines for entry timing.
Position Trading (Daily–Weekly) : Slow lines dominate; harmonics highlight long-term cycles.
Performance Characteristics
High Effectiveness Conditions:
Clear separation between short-term and long-term trends.
Moderate-to-high volatility environments.
Assets with consistent volume and price rhythm.
Reduced Effectiveness:
Flat or extremely low volatility markets.
Erratic assets with frequent gaps or algorithmic dominance.
Ultra-short timeframes (<1min), where noise dominates.
Integration Guidelines
Signal Confirmation : Confirm alignment of fast and slow lines over multiple bars. Expansion of harmonic amplitude signals trend persistence.
Risk Management : Place stops beyond slow line support/resistance. Adjust sizing based on compression/expansion zones.
Advanced Feature Settings :
Frequency tuning for different volatility environments.
Phase analysis to track divergences across harmonics.
Use fills and amplitude patterns as a guide for dynamic trade management.
Multi-timeframe confirmation to filter noise and align with structural trends.
Disclaimer
Harmonic Super Guppy is a trend analysis and visualization tool, not a guaranteed profit system. Optimal performance requires proper wave frequency, golden ratio phase, and line visibility settings per asset and timeframe. Traders should combine the indicator with other technical frameworks and maintain disciplined risk management practices.
Cointegration IndicationThis indicator is inspired by Nobel Prize–winning research (Engle & Granger, 1987). The core idea is simple but powerful: even if two markets look noisy on their own, their relationship can be surprisingly stable over the long run. When they drift apart, history suggests they often snap back together and that’s exactly where opportunities arise.
What this tool does is bring that theory into practice. It estimates a long-run equilibrium between two assets (Y ~ α + βX), calculates the residual spread (ε), and then evaluates whether that spread behaves in a mean-reverting way. The Z-Score tells you when the spread has moved far from its historical mean. The Error Correction Model (ECM) adds a second layer: it checks whether the spread tends to close again, and how strong that adjustment pressure is. If λ is negative and stable, the relationship is cointegrated and mean-reverting. If not, the pair is unstable — even if the Z-Score looks attractive.
Signals are summarized clearly:
– Strong Setup appears when we see both extreme divergence and a stable, negative λ.
– Weak Setup means only partial confirmation.
– Invalid means the relationship is breaking down.
Why this matters
Cointegration analysis is widely used by institutional desks, especially in pairs trading, statistical arbitrage, and risk management. Classic cases include equity index futures vs ETFs (Alexander, 2001), oil vs energy stocks (Chen & Huang, 2010), or swap spreads in fixed income (Tsay, 2010). In crypto, temporary cointegration has been observed between BTC and ETH in periods of high liquidity (Corbet et al., 2018). With this indicator, you can explore these relationships directly on TradingView, test asset pairs, and see when divergences become statistically significant.
Limitations to keep in mind
– Timeframe choice matters: Daily calculations are usually more stable; weekly or intraday often show unstable signals. To avoid confusion, you can fix the calculation timeframe in the settings.
– Cointegration is not permanent. Structural breaks (earnings, regulation, macro shifts) can destroy old relationships.
– Results are approximate. Rolling regressions, Z-Scores, and ECM estimates are sensitive to the length of the chosen windows.
– This is a research tool — not a ready-made trading system. It should be used as one piece in a broader framework.
References
Alexander, C. (2001). Market models: A guide to financial data analysis. Wiley.
Chen, S. S., & Huang, C. W. (2010). Long-run equilibrium and short-run dynamics in energy stock prices and oil prices. Energy Economics, 32(1), 19–26.
Corbet, S., Meegan, A., Larkin, C., Lucey, B., & Yarovaya, L. (2018). Exploring the dynamic relationships between cryptocurrencies and other financial assets. Economics Letters, 165, 28–34.
Engle, R. F., & Granger, C. W. J. (1987). Co-integration and error correction: Representation, estimation, and testing. Econometrica, 55(2), 251–276.
Tsay, R. S. (2010). Analysis of financial time series (3rd ed.). Wiley.
NY OPEN SIGNAL SCLAPER 📌 Indicator: US30 Scalper by TFE ALGOS
The US30 Scalper by TFE ALGOS is built for traders who want to capture fast and decisive moves on US30 during the New York session.
🔑 Key Features:
Clear Buy & Sell Signals with automatic plotting of trade levels.
Built-in Risk Management with stop loss and take profit levels, optimized at a 5:1 R:R.
Customizable Visuals – adjust colors, styles, and watermark display to fit your chart.
Alerts Included – stay updated when trade opportunities or key levels are reached.
Professional Branding – watermark logo keeps charts clean and consistent.
🎯 Designed For:
Scalpers and intraday traders who focus on US30.
Traders seeking a structured, professional charting tool.
⚠️ Disclaimer: This tool is for educational purposes only. Trading involves risk; always manage your capital wisely.
Trend Following S/R Fibonacci StrategyTrend Following S/R Fibonacci Strategy
Trend Following S/R Fibonacci Strategy
The Maker StrategyDESCRIPTION
The Maker Strategy is a trend-following system built around exponential moving averages (EMAs). By analyzing the alignment of multiple EMAs, the strategy identifies strong bullish or bearish momentum and generates precise entry signals. This method is designed to capture sustained trends while filtering out sideways or noisy market conditions.
USER INPUTS :
• EMA 1 Length (Default: 30)
• EMA 2 Length (Default: 35)
• EMA 3 Length (Default: 40)
• EMA 4 Length (Default: 45)
• EMA 5 Length (Default: 50)
• EMA 6 Length (Default: 60)
LONG CONDITION :
A long signal is triggered when all EMAs are perfectly aligned in ascending order:
EMA1 > EMA2 > EMA3 > EMA4 > EMA5 > EMA6
SHORT CONDITION :
A short signal is triggered when all EMAs are perfectly aligned in descending order:
EMA1 < EMA2 < EMA3 < EMA4 < EMA5 < EMA6
WHY IT IS UNIQUE:
Unlike traditional EMA crossover systems that rely on just 2 or 3 moving averages, The Maker Strategy uses 6 EMAs in sequence. This ensures that trades are only taken when there is clear and strong market momentum. The approach minimizes false signals in ranging markets and focuses on capturing trends with higher probability setups.
HOW USER CAN BENEFIT FROM IT :
• Clear entry alerts for both long and short positions.
• Visual confirmation through candle coloring and EMA band fills.
• Works on multiple timeframes and instruments (stocks, forex, crypto, indices).
• Helps traders stay on the right side of the trend while avoiding whipsaws.
• A simple yet effective tool for those who want a disciplined, rules-based strategy.
Support & ResistanceEnglish:
This indicator identifies support and resistance zones based on pivot points and high-volume areas.
It dynamically draws boxes to highlight key price levels where buying or selling pressure is concentrated.
Green zones = support (positive volume)
Red zones = resistance (negative volume)
Dashed boxes = breakout/failed support or resistance
Solid boxes = holding support or resistance
It also marks:
Resistance turning into support (R→S)
Support turning into resistance (S→R)
Breakout labels for quick recognition
This tool helps traders visually track volume-backed supply and demand zones to anticipate future price reactions.
中文 (Chinese):
本指标基于枢轴点与高成交量区域识别支撑与阻力。
它会动态绘制矩形框,标记价格在买卖力量集中的关键水平。
绿色区域 = 支撑(正成交量)
红色区域 = 阻力(负成交量)
虚线框 = 突破或失效的支撑/阻力
实线框 = 有效保持的支撑/阻力
同时标注:
阻力转为支撑 (R→S)
支撑转为阻力 (S→R)
突破标签,便于快速识别
该工具帮助交易者直观追踪成交量验证的供需区域,以便预判未来价格反应。
Adaptive Log Trend ChannelOne-line Summary / 一句话简介
EN: Adaptive log-scale trend channel using Pearson-optimized regression and deviation bands.
中文:基于皮尔逊优化回归的自适应对数趋势通道,带标准差波动带。
Full Description / 完整介绍
What it does / 功能
EN: This indicator fits a log-linear regression to price and builds a trend channel with ±k·σ deviation bands. It automatically selects the period with the highest Pearson correlation (R), ensuring the channel best matches the dominant market trend.
中文:该指标通过价格的对数线性回归拟合趋势,并在中线上下绘制 ±k·σ 偏差通道。它会自动选择皮尔逊相关系数 (R) 最高的周期,从而保证通道与主要趋势最贴合。
Why it’s useful / 适用价值
EN:
Naturally fits assets with multiplicative growth (crypto, tech stocks).
Adapts dynamically to different market regimes.
Provides CAGR estimates on Daily/Weekly charts for trend strength evaluation.
中文:
自然适用于呈现乘法增长的资产(如加密货币与科技股)。
可动态适应不同的市场阶段。
在日线/周线图上提供 趋势年化收益率 (CAGR),帮助评估趋势强度。
How it works / 工作原理
EN:
Computes log(price) → regression slope & intercept.
Draws a midline (log regression projection).
Upper & lower bands = ±k·σ in log space.
Info panel shows: Auto-Selected Period, Trend Strength (or Pearson’s R), and CAGR.
中文:
对价格取对数 → 计算回归斜率与截距。
绘制 中线(对数回归投影)。
上下轨 = 对数空间中的 ±k·σ。
信息面板显示:自动选择周期、趋势强度(或皮尔逊 R 值)、以及 CAGR 年化收益率。
Key Settings / 主要参数
EN:
Long-Term Mode: Uses extended periods (300–1200).
Deviation Multiplier (k): Controls channel width (default 2.0).
Styles: Colors, line type, and extension.
Panel Options: Toggle auto-period, Pearson’s R, and CAGR.
中文:
长期模式:采用更长周期 (300–1200)。
偏差倍数 (k):控制通道宽度(默认 2.0)。
样式:可设置颜色、线型、延长方式。
信息面板:可开关自动周期、皮尔逊 R、CAGR。
Notes / 注意事项
EN:
CAGR is only available on Daily/Weekly timeframes.
Regression-based tools may repaint as new bars form; treat it as context, not signals.
中文:
CAGR 仅在日线与周线周期可用。
回归类指标在新K线形成时可能重绘,仅用于趋势参考而非交易信号。
Multi EMA Pack (Full, Custom Multi-Cross)Exponential Moving Average (EMA) is a trend-following indicator that smooths price data by applying more weight to recent prices. It reacts faster to market changes than a Simple Moving Average (SMA). Traders often use multiple EMAs with different lengths to identify trend direction, spot crossovers as trade signals, and define dynamic support or resistance zones.
Nifty Trend vs Range (Final)This indicator is designed to help you quickly identify whether the Nifty market is trending, ranging, or preparing for a breakout by combining three volatility and trend-strength measures:
India VIX (Volatility Index)
ADX (Average Directional Index)
ATR (Average True Range)
It creates a Trend vs Range Decision Matrix that categorizes the market into actionable states such as Range – Quiet, Breakout Watch, Trend – Smooth, Trend – Confirmed, Trend – Volatile, or Choppy / Noisy.
🔑 How it Works
India VIX (Market Volatility)
Pulled directly from NSE:INDIAVIX (or your chosen symbol).
VIX thresholds are defined:
Below VIX Low → Calm market (often ranges).
Between VIX Low & High → Neutral/moderate volatility.
Above VIX High → High volatility (potential big moves or choppiness).
VIX can be scaled and plotted in the same pane with ADX/ATR, or shown separately with a companion script.
ADX (Trend Strength)
Custom calculation (Wilder’s smoothing, not built-in ta.adx), to ensure more consistent results.
Thresholds (auto-tuned by timeframe if enabled):
Low ADX → Weak/no trend, sideways.
High ADX → Strong directional trend.
ATR (Volatility Expansion)
ATR compared to a moving average of ATR detects whether volatility is rising or flat.
Used as confirmation for breakouts or fading moves.
🧠 Market State Logic
The script combines the three signals into an interpretable market state:
Range – Quiet → VIX low, ADX low, ATR flat
Trend – Smooth → VIX low, ADX high
Breakout Watch → VIX neutral, ADX low, ATR rising
Trend – Confirmed → VIX neutral, ADX high, ATR rising
Choppy / Noisy → VIX high, ADX low, ATR rising
Trend – Volatile → VIX high, ADX high, ATR rising
Neutral → fallback if conditions don’t match
Each state is color-coded with background shading and displayed as a persistent label with key metrics (VIX, ADX, ATR).
⚙️ Features
✅ Intraday Auto-Tuning
ADX/ATR thresholds automatically adjust depending on chart timeframe (5m, 15m, etc.).
✅ Scalable VIX Plotting
Option to overlay a scaled VIX line in the same pane or hide it if you use a separate VIX pane.
✅ Persistent State Label
Shows the current regime, timeframe, and key values. Updates every bar without stacking multiple labels.
✅ Alerts Ready
Alerts for each market regime can be set directly in TradingView.
✅ Background Coloring
Quick at-a-glance identification of current state.
🎯 How to Use
Ranging markets (low VIX, low ADX, flat ATR): Favor mean-reversion strategies like option selling, iron condors, or scalping.
Smooth trends (low VIX, high ADX): Favor directional trades with futures/options spreads.
Breakout Watch: Stay alert for possible trend initiation.
Confirmed trends (neutral VIX, high ADX, rising ATR): Ideal for momentum trading.
Volatile trends (high VIX, high ADX): Use caution, hedge positions, or trade with wider stops.
Choppy/Noisy (high VIX, low ADX): Avoid overtrading, expect false signals.
🕊️ Shemitah + Jubilee Cycle OverlayShemitah + Jubilee Cycle Overlay
This indicator overlays significant biblical cycle events—Shemitah and Jubilee years—onto your chart, providing a unique perspective on historical and potential future market cycles. The Shemitah cycle occurs every 7 years, while the Jubilee cycle spans 49 years, both starting from a user-defined year (defaulting to 1917). Key features include:
Highlight Shemitah Years: Shades the chart background in orange during Shemitah years, with customizable color and transparency.
Mark Jubilee Years: Draws bold blue vertical lines on the chart for Jubilee years, with optional labels.
Event Markers: Places vertical lines and labels (e.g., "Shemitah" or "Jubilee") on a specified month and day (defaulting to September 10th) for each cycle event.
Countdown Display: Shows the next upcoming Shemitah and Jubilee years on the chart for easy reference.
Customizable Inputs: Adjust the start year, cycle lengths, event date, colors, and visibility of highlights and labels to suit your analysis.
Ideal for traders and analysts exploring long-term economic or market patterns influenced by these traditional cycles, this overlay combines historical context with visual clarity. Use it on daily or higher timeframes for best results. The best markets to overlay this indicator on include major stock indices (e.g., S&P 500, Dow Jones), precious metals (e.g., Gold, Silver), cryptocurrencies (e.g., Bitcoin, Ethereum), and debt markets (e.g., U.S. Treasury Bonds, Corporate Bond ETFs), as these markets often reflect macroeconomic shifts, debt cycles, and speculative behavior that may correlate with Shemitah and Jubilee cycles.
Rationale for Including Debt Markets
U.S. Treasury Bonds:
Treasury securities (e.g., 10-year or 30-year bonds) are sensitive to interest rate changes and government debt levels. The Shemitah cycle (every 7 years) has been historically linked to debt-related economic adjustments, while the Jubilee cycle (every 49 years) aligns with broader debt forgiveness or restructuring concepts, making bonds a prime candidate.
Corporate Bond ETFs (e.g., LQD, HYG):
Corporate bond ETFs represent corporate debt and are influenced by credit cycles and economic resets. The indicator could highlight periods of potential default risk or yield shifts tied to Shemitah or Jubilee years.
Relevance to Biblical Context:
The Jubilee year, as described in the Bible (Leviticus 25), involves the release of debts and return of land, directly tying it to debt markets. The Shemitah year also includes a release of debts every seven years, making debt instruments a natural fit for this indicator’s thematic analysis.