MACD Divergence Pro | Zero-Lag • No-Repaint中文介绍
MACD 背离 · 快速实时 / 不重绘 · 基于直方图(CN)
多数“MACD 背离”指标要么重绘严重(回测很漂亮、实盘不靠谱),要么触发很滞后(等几根 K 线后才给线/给提醒)。
这个脚本是我在十几版迭代中打磨出的方案(还是跟我的印度导师):在保持收盘级别不重绘的同时,尽可能把信号“提前到条内”,并且把“提前”和“稳健”两种需求拆开、让你按场景选择。
这款脚本为什么更好?
双模式,实盘&回测都可靠
确认模式(不重绘):只在枢轴成立时(上一根确认为顶/底)画线并提醒,收盘后不会改变,适合回测与稳健交易。
预判预览(零延迟,可选):条内一旦出现“价格创更高/更低而柱值更低/更高”的背离形态,就即时画“临时预判线”并提醒;如果形态被否定,会在本根内自动撤回。该模式给你“更早的入场观察”,但可能被取消。
基于 MACD 直方图:直接比较“柱值高/低”和“价格高/低”,不靠模糊的平滑线,背离定义清晰、可见性强。
多重背离/三背离:支持向前连接多段峰/谷,不是只找最近一段,把分层背离也抓出来。
分段规则可控
同侧最小间隔(柱):避免“同一段内频繁连线”。
可选“跨色分段(红→绿→红 / 绿→红→绿)”:只在真正换势后才允许下一段,显著减少“同色内伪背离”。
即时提醒,严格对齐
预判提醒:只有当图表上真的画出了“临时预判线”时才触发,不会“响了但没线”。
确认提醒:当正式背离线落地的那一刻触发,用于“信号确认”。
视觉简洁:顶背离线=红色,底背离线=绿色;标签可开关,不挡柱不抢视线。
通用:适配任意周期、任意交易品种;参数默认即可用,也可按策略微调。
如何使用(建议)
做回测/稳健交易:仅开“确认提醒”,并把“即时模式(条内)”关闭,得到严格不重绘的标注与提醒。
做超短线/埋伏:打开即时模式 + 零延迟预览,启用预判提醒;当预判线出现就会立马提醒(未确认时可能被撤回)。
如想减少“跨段过远”的连线,可调大同侧最小间隔或打开跨色分段。
需要三背离/多背离,可把“最多向前连接几段”设为 3 或更高。
提示:预判是“更早但可能被否定”,确认是“稳健且不重绘”。两者结合,既看得早,也落得稳。
English Description
MACD Divergence • Fast Live / No-Repaint • On Histogram
Most “MACD divergence” indicators either repaint heavily (great in hindsight, unreliable in live trading) or lag badly (you get lines/alerts several bars late).
This script has gone through 10+ iterations to strike the right balance: deliver earlier signals in real-time while keeping a truly no-repaint confirmation path. You decide when you need early preview or strict confirmation.
What makes it different?
Two operating modes—choose per scenario
Confirmation mode (No-Repaint): Lines/alerts are printed only when the pivot is confirmed (previous bar), and they never change after close. Perfect for backtesting and conservative trading.
Zero-Lag Preview (optional): As soon as an in-bar divergence forms on the histogram (price makes a higher high/lower low while the bar value fails), a temporary preview line is drawn immediately and an alert is fired; if invalidated before the bar closes, it’s removed. Earlier visibility with the right caveat.
Histogram-based logic: We compare bar heights against price highs/lows—clear definition and strong visual readability.
Multi-link divergences (incl. triple): Not limited to the nearest swing—you can extend lines across multiple prior pivots to capture stacked divergences.
Controllable segmentation
Minimum bars between same-side pivots to avoid noisy over-linking.
Optional cross-color segmentation (red→green→red / green→red→green) to reduce false divergences within a same-color run.
Alerts that match what you see
Preview alert fires only when a preview line is actually drawn—no more alerts without lines.
Confirmation alert fires when the final line is committed.
Clean visuals: Bearish lines = red, Bullish lines = green; labels are optional to keep the histogram unobstructed.
Works everywhere: Any symbol, any timeframe. Defaults are sensible; parameters can be tuned to your workflow.
Suggested workflow
Backtest / conservative execution: Use Confirmation alerts only, turn Live (in-bar) evaluation off to ensure strict no-repaint behavior.
Scalping / early entries: Turn Live mode + Zero-Lag Preview on and enable Preview alerts—you’ll be notified the moment a preview line appears (it may retract before close).
Increase Min same-side spacing or enable Cross-color segmentation to limit stretched links.
Raise Max links to capture double/triple divergences.
TL;DR: Preview = earlier but retractable. Confirmation = slower but rock-solid. Combine both to see early and act with confidence.
Centered Oscillators
Confirmed Pivots + MACD Signals (with BOS Lines)Confirmed Pivots + MACD Signals
This indicator combines confirmed swing highs/lows (pivots) with MACD-based momentum signals to highlight key reversal and continuation points on the chart.
Core Logic
Confirmed Pivots:
The script identifies swing highs and lows using the user-defined pivot confirmation length.
Once a structure is broken beyond the last pivot, that level becomes a confirmed support (CL) or resistance (CH) line.
These levels are plotted as dashed horizontal rays and labeled directly on the chart.
MACD Integration:
The classic MACD crossover/under logic is used:
Bullish Crossover: MACD line crosses above the Signal line.
Bearish Crossunder: MACD line crosses below the Signal line.
Signal Filtering by Proximity:
A Proximity Zone (%) defines how close price must be to an active support or resistance to trigger a signal.
Buy Signal: When price is within the support zone and a bullish MACD crossover occurs.
Sell Signal: When price is within the resistance zone and a bearish MACD crossunder occurs.
Inputs
Pivot Confirmation Length: Bars used to confirm swing points.
MACD Fast/Slow/Signal Lengths: Standard MACD settings.
Proximity Zone (%): Defines zone width (e.g., 1% around active level).
Output
Labels: "CH" (Confirmed High) and "CL" (Confirmed Low) with color-coded dashed lines.
Signals: "BUY" and "SELL" markers appear when both pivot and MACD conditions align.
Tips
Works best on higher timeframes (H1 and above).
Combine with price action or trend filters for confirmation.
Use proximity percentage according to volatility (e.g., smaller % for low-vol assets).
⚠️ Disclaimer:
This script is provided for educational and informational purposes only.
It does not constitute financial or investment advice, and the author is not responsible for any financial losses that may occur from its use.
Always perform your own analysis and use this indicator together with other technical and risk management tools before making trading decisions.
---------------------------------------------------------------------------------------------
سقف و کف تاییدشده + سیگنالهای MACD
این اندیکاتور ترکیبی از شناسایی سقفها و کفهای تاییدشده (Pivot High/Low) به همراه سیگنالهای مومنتوم MACD است که نقاط برگشت یا ادامهی روند را روی چارت مشخص میکند.
🔹 منطق عملکرد
تایید سقف و کفها:
ابتدا سقف و کفهای محلی بر اساس تعداد کندلهای تنظیمشده شناسایی میشوند.
وقتی ساختار قیمتی از آخرین سقف یا کف عبور کند، آن سطح به عنوان حمایت یا مقاومت تاییدشده در نظر گرفته شده و با برچسبهای “CL” (کف تاییدشده) و “CH” (سقف تاییدشده) و خطوط نقطهچین رسم میشود.
ادغام با MACD:
از منطق کلاسیک کراساور/کراسآندر MACD استفاده شده است:
کراس صعودی: عبور خط MACD از بالای خط سیگنال.
کراس نزولی: عبور خط MACD از زیر خط سیگنال.
فیلتر سیگنال با ناحیه مجاور:
با استفاده از درصد ناحیه مجاور (Proximity Zone %)، فقط زمانی سیگنال صادر میشود که قیمت نزدیک حمایت یا مقاومت فعال باشد.
سیگنال خرید: وقتی قیمت در ناحیهی حمایت و همزمان MACD صعودی شود.
سیگنال فروش: وقتی قیمت در ناحیهی مقاومت و همزمان MACD نزولی شود.
تنظیمات ورودی
طول تأیید پیوتها
تنظیمات MACD (Fast, Slow, Signal)
درصد ناحیه مجاور برای فعال شدن سیگنالها
خروجیها
برچسبهای “CL” و “CH” برای سطوح تاییدشده
نشانگرهای “BUY” و “SELL” در محل صدور سیگنال
نکات کاربردی
بهترین عملکرد در تایمفریمهای بالاتر (۱ ساعته به بالا)
برای دقت بیشتر، آن را با فیلتر روند یا پرایساکشن ترکیب کنید
درصد ناحیه مجاور را با توجه به نوسانات دارایی تنظیم کنید
Divergence Detector (MACD + Volume)Divergence Detector (MACD + Volume Confirmation)
This indicator automatically detects bullish and bearish divergences between price and MACD, enhanced with volume confirmation to filter out weak signals.
🔹 Core Logic
Pivot Detection:
The script identifies swing highs and lows (pivots) using customizable left/right lookback values.
Bullish Divergence:
Occurs when price makes a lower low, but MACD makes a higher low.
A label "Bull Div" appears below the bar; if confirmed by high volume, it shows "Bull Div 🔥".
Bearish Divergence:
Occurs when price makes a higher high, but MACD makes a lower high.
A label "Bear Div" appears above the bar; if confirmed by high volume, it shows "Bear Div 📉".
Volume Confirmation:
The indicator checks whether the volume at the pivot bar is above the moving average of volume (customizable length).
This ensures that divergence signals are backed by strong market participation.
Inputs
MACD Fast/Slow/Signal Length – standard MACD parameters
Pivot Lookback Left/Right – defines the swing structure sensitivity
Volume MA Length – defines how volume strength is validated
Output
Labels:
🔹 Bull Div / Bull Div 🔥 → Bullish divergence (confirmed with volume)
🔹 Bear Div / Bear Div 📉 → Bearish divergence (confirmed with volume)
Tips
Works best on higher timeframes and trending markets.
Volume confirmation helps filter false divergences in low liquidity conditions.
Combine with trend or structure indicators for better trade setups.
----------------------------------------------------------------------------------------------
اندیکاتور شناسایی واگرایی MACD با تأیید حجم
این اندیکاتور بهصورت خودکار واگراییهای صعودی و نزولی بین قیمت و MACD را شناسایی کرده و با استفاده از تأیید حجم (Volume Confirmation) سیگنالهای ضعیف را فیلتر میکند.
🔹 منطق عملکرد
شناسایی پیوتها:
نقاط چرخش (سقف و کف) با استفاده از تعداد کندلهای قابل تنظیم در دو سمت شناسایی میشوند.
واگرایی صعودی (Bullish):
زمانی که قیمت کف پایینتر و MACD کف بالاتر میسازد.
برچسب "Bull Div" در زیر کندل نمایش داده میشود؛ اگر حجم بالا باشد، با علامت 🔥 مشخص میگردد.
واگرایی نزولی (Bearish):
زمانی که قیمت سقف بالاتر و MACD سقف پایینتر میسازد.
برچسب "Bear Div" در بالای کندل نمایش داده میشود؛ اگر حجم بالا باشد، با 📉 مشخص میگردد.
تأیید حجم:
اگر حجم در کندل پیوت بالاتر از میانگین متحرک حجم باشد، سیگنال معتبرتر در نظر گرفته میشود.
تنظیمات ورودی
تنظیمات MACD (Fast, Slow, Signal)
پارامترهای شناسایی پیوت (Left / Right)
طول میانگین متحرک حجم (Volume MA Length)
خروجیها
Bull Div 🔥 / Bear Div 📉 برای واگراییهای تأییدشده با حجم
Bull Div / Bear Div برای واگراییهای بدون تأیید حجم
نکات کاربردی
بهترین عملکرد در تایمفریمهای بالا و بازارهای دارای روند
تأیید حجم به حذف سیگنالهای اشتباه در شرایط حجم پایین کمک میکند
برای دقت بیشتر، آن را با اندیکاتورهای روند یا ساختار ترکیب کنید
⚠️ Disclaimer:
This script is provided for educational and informational purposes only.
It does not constitute financial advice, and the author is not responsible for any financial losses caused by its use.
Always confirm signals with your own analysis and other tools before making trading decisions.
⚠️ توجه:
این اسکریپت صرفاً جهت آموزش و اطلاعرسانی طراحی شده و توصیه مالی یا سرمایهگذاری محسوب نمیشود.
نویسنده مسئول هیچگونه ضرر یا زیان احتمالی ناشی از استفاده از آن نیست.
لطفاً پیش از هر تصمیم معاملاتی، تحلیل شخصی خود را انجام داده و از این ابزار در کنار سایر ابزارهای تحلیل و مدیریت ریسک استفاده کنید.
Dual MACD AccelerationDual MACD Acceleration Indicator – Synopsis
Purpose:
This indicator identifies early momentum shifts in the market by comparing a fast MACD (8/20/6) with a slower MACD (12/26/9). It highlights potential strong buy and sell signals when the faster MACD crosses the slower MACD, allowing traders to catch trend accelerations before the full move develops.
Components
Fast MACD (8/20/6)
Responds quickly to short-term price changes.
Detects early momentum shifts.
Slow MACD (12/26/9)
Captures the dominant trend.
Provides a smoother reference for comparison.
Acceleration Signals
Long (▲): Fast MACD crosses above Slow MACD → potential bullish acceleration.
Short (▼): Fast MACD crosses below Slow MACD → potential bearish acceleration.
Zero Line
Optional visual reference for overall trend direction.
Crosses above zero = bullish trend, below zero = bearish trend.
Key Features
Clean, minimal chart display.
Optional toggles to show/hide each MACD line.
Label markers indicate crossovers.
Built-in alert conditions for automated notifications.
Trading Use
Trend Confirmation:
Best used with higher timeframe filters (VWAP or EMAs) to avoid fakeouts.
Entry Timing:
Enter on the first pullback after a crossover signal.
Only trade in the direction of the dominant trend.
Stops & Risk:
Use recent swing lows/highs for stop placement.
TP levels can be structure-based or trailing with price momentum.
Synopsis Summary:
The Dual MACD Acceleration Indicator is a lightweight, early-momentum tool designed for scalpers and short-term traders. It captures fast shifts in trend by comparing a faster and slower MACD, highlighting strong buy and sell opportunities while remaining clean and easy to read. For higher accuracy, combine with trend filters like VWAP or EMAs.
Dual MACD📘 Dual MACD — Synopsis
The Dual MACD indicator displays two separate MACD systems inside the same pane, allowing traders to compare fast and slow momentum behavior simultaneously.
What It Includes
Two fully adjustable MACDs
MACD 1 default: 12 / 12 / 9
MACD 2 default: 8 / 20 / 6
Show/Hide Toggles so each MACD can be viewed independently or together.
MACD Lines, Signal Lines, and Histograms for both systems.
Clean layout with a compact panel title: “MACD x2”
What It Helps You See
Short-term vs. longer-term momentum shifts
Faster MACD reacting to quick trend changes
Slower MACD confirming or filtering signals
Trend strength, momentum acceleration, and crossover behavior in a single pane
Why It’s Useful
The Dual MACD gives you momentum confirmation, fakeout filtering, and multi-speed trend insight—making it valuable for scalpers, intraday traders, and swing traders who want to reduce noise and improve signal quality.
Smart Accumulation Pro – US SmallCap Edition v2
Smart Accumulation Pro v2 — US SmallCap Edition
Institutional Footprint and Structural Behavior Engine
Overview
Smart Accumulation Pro v2 detects structural behavior, internal liquidity shifts, and multi-phase accumulation footprints that are not visible through momentum or volatility indicators. The engine focuses on underlying institutional habits rather than reacting to price alone.
ULTRA — High-Threshold Structural Trigger
ULTRA appears only when multiple internal phases align simultaneously. It is not a momentum spike or volume anomaly. It represents compression pressure, phase readiness, and structural alignment. ULTRA does not repaint. When this signal appears, internal liquidity has already transitioned into an acceleration phase.
PRE — Early Structural Drift (Not a Buy Signal)
PRE should not be interpreted as a buy signal. It indicates gradual accumulation or controlled liquidity positioning. PRE usually appears during stable or quiet phases but rarely appears during panic drops or disorderly downtrends.
ACC — Transitional Footprint Signal
ACC identifies late-stage structural footprints. It is not intended as a standalone buy trigger. ACC highlights that structural preparation is underway, but direction and timing require user validation. ACC often precedes larger institutional behavior.
Philosophy
This engine does not attempt to cover every market pattern. It focuses on the highest-probability institutional habits. Exit timing, risk management, and execution remain user responsibility. The tool minimizes noise and emphasizes rare, high-impact structural zones.
Preset Modes
1) Conservative
For ETFs or stable large-cap instruments. Minimal noise and lower signal frequency.
2) Normal
Optimized for US mid-cap and small-cap behavior. Balanced and recommended as the default mode.
3) Aggressive
For volatile or thematic instruments. Higher frequency, higher risk.
Usage Notes
This indicator does not provide financial advice. It highlights structural conditions that often precede institutional movement. Execution and risk decisions depend on the user.
License Notice
Unauthorized copying, redistribution, or sharing is prohibited. Invite-Only access requires your TradingView username. One purchase equals one user license.
------------------------------------------------------------
Korean Summary (한국어 요약본)
------------------------------------------------------------
Smart Accumulation Pro v2는 세력의 습관, 유동성 이동, 압축 단계 등의 “보이지 않는 내부 구조”를 추적하는 지표다. 기존 모멘텀 기반 지표로는 포착되지 않는 패턴을 분석한다.
ULTRA 신호는 여러 내부 단계가 동시에 정렬될 때만 등장하는 극히 희귀한 트리거다. 페인팅이 없으며, 신호가 뜰 때 이미 내부 구조는 가속 단계에 진입한 상태다.
PRE는 매수 신호가 아니다. 세력이 서서히 움직이기 시작하거나 유동성을 재정렬할 때 나타나는 미세한 초기 흔적이다.
ACC는 본격 움직임 전에 나타나는 마지막 흔적이다. 단독 매수 신호가 아니며, 이후 더 큰 구조적 변화로 이어질 가능성을 나타내는 정도로 해석해야 한다.
이 지표는 모든 패턴을 잡지 않는다. 세력이 반복적으로 사용해 온 고확률 구조만 좁게 추적한다. 출구 전략과 리스크 관리는 사용자의 몫이다.
프리셋은 Conservative, Normal, Aggressive의 3가지 모드로 구성되며, 각각 안정형·균형형·변동성형 종목에 맞춰 설계되었다.
본 지표는 금융 조언을 제공하지 않으며, 무단 공유 또는 재배포는 금지된다. Invite-Only 기반이며 1인 1라이선스 방식이다.
QuantMotions - TPR Sentinel LineTPR Sentinel Line is an advanced adaptive Support/Resistance system that combines multi-layered trend analysis with a directional Time-Price Ratio (TPR) engine. The indicator dynamically builds a stabilized support or resistance line that adjusts to market volatility, trend strength, ATR expansion and contraction, and real-time slope changes.
This creates a high-precision, self-adjusting trend barrier that acts as support in uptrends, resistance in downtrends, and a neutral anchor during sideways phases.
Key Features
✔ Adaptive Trend Base
- A composite trend model blending:
- Kijun-style midpoint
- Donchian midline
- SMA & EMA smoothing
This creates a stable baseline that reacts smoothly but reliably to structural trend shifts.
✔ Directional TPR Calculation
The indicator measures slope across short, medium, and long trend windows, normalizes it with ATR, and determines:
- Trend direction
- Trend strength
- Momentum quality
✔ Dynamic Support/Resistance Line
Depending on trend direction:
- In uptrends → the line becomes adaptive support
- In downtrends → the line becomes adaptive resistance
- In neutral phases → the line centers around the smoothed trend base
A built-in lag factor prevents unrealistic jumps and keeps the level stable.
✔ Automatic Support/Resistance Zones
The indicator expands the main line into upper and lower zones based on ATR and trend strength, creating a dynamic volatility envelope around the trend structure.
✔ Signals & Alerts
- Support bounce
- Resistance rejection
- Breakouts above/below the dynamic line
These events help identify high-probability continuation or reversal moments.
✔ Information Panel
A real-time status table displays:
- Trend direction
- Trend strength
- Current S/R level
🎯 Ideal For
- Precision entries on pullbacks
- Detecting trend shifts earlier
- Identifying strong or weak trend phases
- Adaptive take-profit and stop-loss zones
- Filtering false breakouts
💡 Summary
TPR Sentinel Line gives you a living, breathing support/resistance structure that evolves with the market.
Instead of relying on static levels, you get a continuously adapting trend barrier that reflects real strength, real volatility, and real momentum.
A powerful tool for traders who want structure, clarity, and trend confidence.
EGGY SIGNALEGGY SIGNAL is a custom trading system designed to eliminate market noise and provide clean, high-probability entry signals. Unlike standard indicators that often give conflicting information, this script uses a Triple Confirmation Algorithm that works in the background.
The script combines three essential market elements:
Trend Filter: Determines the overall market direction to prevent counter-trend trading.
Momentum Detector: Identifies the speed of price movement.
Strength Validator: Confirms the power of the current candle.
How it Works: This indicator utilizes a "Clean Chart" philosophy. You will not see messy lines or clouds.
BUY Signal: Appears only when the Trend is Bullish, Momentum is shifting upwards, and Market Strength is confirmed.
SELL Signal: Appears only when the Trend is Bearish, Momentum is shifting downwards, and Market Strength is confirmed.
Features:
No Repaint: Signals are permanent once the candle closes.
False Signal Filtering: The algorithm automatically filters out signals during choppy/sideways markets.
Proprietary Settings: The input parameters are hardcoded and optimized for specific market conditions to ensure strategy integrity.
How to Use: Simply wait for the "BUY" or "SELL" label to appear. If no label is present, the market is considered neutral or too risky for entry.
Patrice - GC M1 Bot (MACD EMA RSI)//@version=6
indicator("Patrice - GC M1 Bot (MACD EMA RSI)", overlay = true)
//----------------------
// Inputs (optimisés GC)
//----------------------
emaLenFast = input.int(9, "EMA rapide")
emaLenSlow = input.int(14, "EMA lente")
rsiLen = input.int(14, "RSI length")
atrLen = input.int(14, "ATR length")
volLen = input.int(20, "Volume moyenne")
slMult = input.float(0.4, "SL = ATR x", step = 0.1)
tpMult = input.float(0.7, "TP = ATR x", step = 0.1)
minAtr = input.float(0.7, "ATR minimum pour trader", step = 0.1)
maxDistEmaPct = input.float(0.3, "Distance max EMA9 (%)", step = 0.1)
//----------------------
// Indicateurs
//----------------------
ema9 = ta.ema(close, emaLenFast)
ema14 = ta.ema(close, emaLenSlow)
= ta.macd(close, 12, 26, 9)
hist = macdLine - signalLine
rsi = ta.rsi(close, rsiLen)
atr = ta.atr(atrLen)
volMa = ta.sma(volume, volLen)
//----------------------
// Session 9:30 - 11:00 (NY)
//----------------------
hourSession = hour(time, "America/New_York")
minuteSession = minute(time, "America/New_York")
inSession = (hourSession == 9 and minuteSession >= 30) or
(hourSession > 9 and hourSession < 11) or
(hourSession == 11 and minuteSession == 0)
//----------------------
// Filtres vol / ATR / distance EMA
//----------------------
volFilter = volume > volMa
atrFilter = atr > minAtr
distEmaPct = math.abs(close - ema9) / close * 100.0
distFilter = distEmaPct < maxDistEmaPct
//----------------------
// Tendance
//----------------------
bullTrend = close > ema9 and close > ema14 and ema9 > ema14
bearTrend = close < ema9 and close < ema14 and ema9 < ema14
//----------------------
// MACD : 2e barre
//----------------------
bullSecondBar = hist > 0 and hist > 0 and hist <= 0
bearSecondBar = hist < 0 and hist < 0 and hist >= 0
//----------------------
// Filtres RSI
//----------------------
rsiLongOk = rsi < 70 and rsi >= 45 and rsi <= 65
rsiShortOk = rsi > 30 and rsi >= 35 and rsi <= 55
//----------------------
// Gestion du risque (simple pour l'instant)
//----------------------
canTradeRisk = true
//----------------------
// Conditions d'entrée
//----------------------
longCond = bullTrend and bullSecondBar and rsiLongOk and inSession and volFilter and atrFilter and distFilter and canTradeRisk
shortCond = bearTrend and bearSecondBar and rsiShortOk and inSession and volFilter and atrFilter and distFilter and canTradeRisk
//----------------------
// SL / TP (info seulement, pas d'ordres)
//----------------------
slPoints = atr * slMult
tpPoints = atr * tpMult
longSL = close - slPoints
longTP = close + tpPoints
shortSL = close + slPoints
shortTP = close - tpPoints
//----------------------
// Visuels
//----------------------
plot(ema9, title = "EMA 9")
plot(ema14, title = "EMA 14")
plotshape(longCond, title = "Signal Long", style = shape.triangleup, location = location.belowbar, size = size.tiny, text = "L")
plotshape(shortCond, title = "Signal Short", style = shape.triangledown, location = location.abovebar, size = size.tiny, text = "S")
//----------------------
// Conditions d'ALERTE
//----------------------
alertcondition(longCond, title = "ALERTE LONG", message = "Signal LONG Patrice GC bot")
alertcondition(shortCond, title = "ALERTE SHORT", message = "Signal SHORT Patrice GC bot")
KLS Ultimate V.1"KLS Ultimate V.1" is a meticulously designed trading indicator. It is built specifically for "Scalpers" (traders who want quick in-and-out profits).
**🚀 How it Works: The 3-Level Logic**
This indicator doesn't just rely on one tool. It gathers several indicators to have a "meeting" and confirm everything before giving you a Buy or Sell signal.
**🎯 Level 1: Core Trend (The Gatekeepers)**
This is the first checkpoint. If the price doesn't pass this stage, no signal gets generated.
- EMA: Is the price standing above the trend line? (Uptrend needs to be above, Downtrend below).
- MACD: Checks momentum and looks at the Histogram to see if real buying/selling volume is coming in.
- ADX: Measures trend strength (it won’t trade in boring, sideways markets).
**🔥 Level 2: Momentum (Finding the Best Entry)**
The second checkpoint to find the perfect spot to jump in.
- RSI: Checks if the price is Oversold (too cheap) or Overbought (too expensive).
- Stochastic: Finds short-term reversal crossovers.
**⭐ Level 3: Signal Boosters (For Strict Mode)**
A special bonus stage for those who want high accuracy (enable this in settings).
- RSI Divergence: Spots conflicts between price and RSI (e.g., Price drops but RSI rises = ready to pump).
- Price Action: Checks for strong candlestick patterns that show a clear winner between buyers and sellers.
------------------------------------------------------------
**🎮 User Guide**
Once you add this code to TradingView, here is what you will see and how to use it:
**A. Entry Signals**
🟢 Green BUY Label: Pops up below the candle.
* Means: Uptrend + Momentum + All filters passed.
🔴 Red SELL Label: Pops up above the candle.
* Means: Downtrend + Selling pressure + All filters passed.
**B. TP/SL Lines (Profit & Loss)**
The system calculates these automatically—no need to measure manually!
- Blue Line: Entry point.
- Light Green (TP1, TP2): Short-term profit targets.
- Dark Green (TP3): Long-term profit target.
- Red Line (SL): Stop Loss point.
**C. Special Mode: Strict Filter**
- Normal (False): Uses only Level 1 + Level 2. You get more signals.
- Strict (True): Needs Level 1 + 2 + 3 to trigger. Fewer signals, but much higher accuracy.
------------------------------------------------------------
**🛠️ Settings & Customization**
Click the gear icon to tweak the settings as you like:
1. Show BUY/SELL Signals: Uncheck if you don't want to see the labels.
2. Use Strict Filter: Check this for high precision (but you'll wait longer for signals).
3. Point Size: **Very Important!** This defines the TP/SL distance.
- For Gold (XAUUSD): Use **0.01**.
- For Forex pairs: Try **0.0001**.
- *Tip: Adjust this number until the TP/SL lines look reasonable on your chart.*
4. TP/SL Points: Set your desired profit/loss distance (e.g., TP1 = 50 points).
------------------------------------------------------------
💡 **Pro Tips**
- Trading Time: This code is smart—it checks sessions (based on GMT+7/Thai Time). It only gives signals during active markets (Sydney, Tokyo, London, NY). It stays quiet during dead hours.
- Recommended Timeframe: Since it's for Scalping, it works best on **M5, M15, or M30**.
- Money Management: Even with SL lines, always calculate your Lot Size properly. Don't overtrade!
------------------------------------------------------------
"KLS Ultimate V.1" เป็นเครื่องมือช่วยเทรด (Indicator) ที่ออกแบบมาอย่างปราณีตและซับซ้อนพอสมควร โดยเน้นไปที่ "สาย Scalping" (เทรดสั้นทำกำไรเร็ว) โดยเฉพาะ
🚀 เจาะลึกการทำงาน: ระบบกรอง 3 ชั้น (The 3-Level Logic)
อินดิเคเตอร์ตัวนี้ไม่ได้ใช้แค่เครื่องมือเดียวตัดสินใจ แต่มันเอาอินดิเคเตอร์หลายตัวมา "คอนเฟิร์ม" กันก่อนจะบอกให้คุณ Buy หรือ Sell ครับ
🎯 Level 1: ตัวคุมเทรนด์หลัก (Core Indicators)
นี่คือด่านแรก ถ้าไม่ผ่านด่านนี้ จะไม่มีสัญญาณเกิดขึ้น
- EMA (เส้นค่าเฉลี่ย): เช็คว่าราคายืนเหนือเส้นเทรนด์ไหม? (ขาขึ้นต้องยืนเหนือ, ขาลงต้องอยู่ใต้)
- MACD (โมเมนตัม): ดูแรงส่งของกราฟ และดู Histogram ว่ามีแรงซื้อ/ขาย เข้ามาจริงไหม
- ADX: วัดความแข็งแรงของเทรนด์ (ถ้าตลาดไซด์เวย์น่าเบื่อๆ ADX ต่ำๆ มันจะไม่เทรด)
🔥 Level 2: จุดกลับตัว (Momentum Indicators) ด่านที่สอง หาจังหวะเข้าที่ได้เปรียบ
- RSI: ดูว่าราคาถูกเกินไป (Oversold) หรือแพงเกินไป (Overbought) หรือยัง
- Stochastic: หาจุดตัดเพื่อยืนยันจุดกลับตัวระยะสั้น
⭐ Level 3: ตัวบูสต์สัญญาณ (Boost Indicators - สำหรับโหมด Strict)
ด่านพิเศษ สำหรับคนที่ต้องการความชัวร์ระดับสูง (เปิดใช้ได้ในตั้งค่า)
- RSI Divergence: หาสัญญาณขัดแย้งระหว่างราคากับ RSI (เช่น ราคาลงแต่ RSI ยกขึ้น = เตรียมพุ่ง)
- Price Action: ดูรูปแบบแท่งเทียนว่ามีแรงซื้อ/ขาย ชนะขาดลอยหรือไม่
------------------------------------------------------------
🎮 คู่มือการใช้งาน (User Guide)
เมื่อคุณแปะโค้ดนี้ลงใน TradingView แล้ว สิ่งที่คุณจะเห็นและการใช้งานมีดังนี้ครับ:
A. สัญญาณเข้าออเดอร์ (Entry Signals)
🟢 ป้าย BUY (สีเขียว): จะโผล่ใต้แท่งเทียน
แปลว่า: เทรนด์เป็นขาขึ้น + โมเมนตัมมา + ผ่านเงื่อนไขกรองต่างๆ แล้ว
🔴 ป้าย SELL (สีแดง): จะโผล่เหนือแท่งเทียน
แปลว่า: เทรนด์เป็นขาลง + แรงขายมา + ผ่านเงื่อนไขกรองต่างๆ แล้ว
B. เส้นเป้าหมายกำไร/ขาดทุน (TP/SL Lines)
ระบบคำนวณให้อัตโนมัติ ไม่ต้องนั่งวัดเอง!
- เส้นสีน้ำเงิน: จุดเข้า (Entry)
- เส้นสีเขียวอ่อน (TP1, TP2): เป้าทำกำไรระยะใกล้
เส้นสีเขียวเข้ม (TP3): เป้าทำกำไรระยะไกล
เส้นสีแดง (SL): จุดยอมแพ้ (Stop Loss)
C. โหมดพิเศษ: Strict Filter (โหมดเข้มงวด)
- ค่าปกติ (False): ใช้แค่ Level 1 + Level 2 ก็เกิดสัญญาณแล้ว (สัญญาณเยอะหน่อย)
- ถ้าเปิดใช้ (True): ต้องผ่าน Level 1 + 2 + 3 ถึงจะเกิดสัญญาณ (สัญญาณน้อย แต่แม่นยำสูงมาก)
------------------------------------------------------------
🛠️ วิธีตั้งค่าและปรับแต่ง (Settings)
ในหน้าตั้งค่า (รูปเฟือง) คุณสามารถปรับจูนได้ตามใจชอบ:
1. Show BUY/SELL Signals: ติ๊กออกถ้าไม่อยากเห็นป้ายสัญญาณ
2. Use Strict Filter: ติ๊กถูกถ้าอยากได้สัญญาณแม่นๆ (แต่รอนานหน่อย)
3. Point Size: สำคัญมาก! ใช้กำหนดระยะ TP/SL
- ถ้าเทรดทอง (XAUUSD) ตั้งค่าพื้นฐาน 0.01 เท่านั้น
- ถ้าเทรดคู่เงิน (Forex) อาจจะปรับเป็น 0.0001
- แนะนำให้ลองปรับจนเส้น TP/SL บนกราฟดูสมเหตุสมผล
4. TP/SL Points: กำหนดระยะจุดกำไรขาดทุนที่ต้องการ (เช่น TP1 = 50 จุด)
------------------------------------------------------------
💡 คำแนะนำเพิ่มเติม (Tips)
- เวลาเทรด: โค้ดนี้ฉลาดมาก มันมีการเช็คเวลา (Session) ให้ด้วย โดยอิงเวลา GMT+7 (เวลาไทย) โดยจะเทรดเฉพาะช่วงที่มีตลาดหลักเปิด (Sydney, Tokyo, London, NY) ช่วงตลาดวายดึกๆ หรือเช้ามืดเงียบๆ มันจะไม่บอกสัญญาณ
- Timeframe ที่แนะนำ: เนื่องจากเขียนมาเพื่อ Scalping แนะนำให้ใช้กับ M5, M15 หรือ M30 จะเห็นผลดีที่สุดครับ
- การบริหารเงิน (MM): แม้ระบบจะมี SL ให้ แต่คุณควรคำนวณ Lot Size ให้เหมาะสม ไม่ควร Overtrade ครับ
Ryan Bot Signals ProRyan EMA Trend Screener Pro — Smart Auto Signals + TP/SL Engine + MTF Dashboard
Ryan EMA Trend Screener Pro is an advanced trading system that combines
✔ EMA Ribbon Trend Confirmation
✔ Auto BUY/SELL Signals
✔ ATR-based TP & SL engine
✔ Multi-Timeframe Trend Dashboard
✔ Real-Time Screener
into one clean, powerful tool.
Key Features
🔹 Smart EMA Crossover Signals
Automatically detects momentum shifts using fast vs slow EMA cloud.
🔹 Auto TP/SL System
– Up to 4 Take-Profit levels
– ATR-based dynamic Stop Loss
– Entry, SL & TP lines with labels
– Trade zones highlighted using boxes
🔹 MTF Trend Dashboard
Trend status from 5m, 15m, 30m, 1h, Daily
Shows combined trend strength (Bullish / Bearish).
🔹 Built-in Screener
Scan multiple symbols directly on your chart.
Displays trend direction & recent signals.
🔹 Fully Customizable
Modify EMA lengths, ATR settings, TP count, dashboard position & screener layout.
How to Use
Follow BUY/SELL labels created by EMA2/EMA8 crossover.
Use TP/SL lines to plan exits.
Check dashboard to confirm higher-timeframe trend.
Optional: add your favourite chart structure (S/R, Fibs, Liquidity).
Disclaimer
This tool does not guarantee profits. Use proper risk management.
Order Flow AnalysisOrder Flow Pressure Suite — Wick, Volume & Absorption-Based Pressure Map
This indicator builds a composite buying/selling pressure score from candle structure, volume behavior, and absorption signals.
It is designed to infer the “intent” behind price moves by looking at how candles form, where they close, and how volume behaves — even without access to true bid/ask or footprint data.
Core Concepts
Wick-to-Body Analysis
The script evaluates the ratio of upper and lower wicks to the total candle range.
Strong wicks with relatively small bodies are treated as rejections :
Long upper wick → potential selling pressure / rejection of higher prices
Long lower wick → potential buying pressure / rejection of lower prices
Close Position Analysis
The close is normalized within the candle range:
Close near the high → bullish pressure
Close near the low → bearish pressure
Close near the middle → more neutral , context taken from wicks and volume
Volume Delta Estimation
Since true bid/ask data is not available on standard charts, the script estimates “volume delta” by distributing total volume between buyers and sellers based on candle characteristics:
Bull candles receive more “buying volume,” weighted toward closes near the high
Bear candles receive more “selling volume,” weighted toward closes near the low
This is an approximation of order flow, not a direct time & sales feed.
Absorption Detection
The script looks for candles where volume is high but price movement is relatively small .
This combination often suggests:
Bullish absorption → buyers absorbing aggressive selling (potential accumulation)
Bearish absorption → sellers absorbing aggressive buying (potential distribution)
Absorption zones are tracked over a configurable lookback and can be shaded in the background.
Composite Pressure Oscillator
All the above components (wicks, close position, heuristic volume delta, absorption bias) are blended into a single pressure score :
Values > 0 → net buying pressure
Values < 0 → net selling pressure
The raw score is smoothed with an EMA to reduce noise and create a cleaner oscillator line.
Divergence Detection
The indicator compares price pivots to pressure pivots:
Bullish divergence : price makes a lower low while pressure makes a higher low
Bearish divergence : price makes a higher high while pressure makes a lower high
These conditions can help highlight potential exhaustion or hidden participation from larger players.
Visual Elements
Histogram showing the intensity of buying/selling pressure
Color-coding for increasing vs. decreasing pressure
Background shading for detected absorption zones
Status table summarizing current pressure, trend bias, volume delta, wick signal, and absorption state in real time
How To Use
Use the pressure oscillator to gauge whether the current bar sequence is dominated by buyers or sellers. Strong positive readings may indicate sustained buying pressure; strong negatives may indicate sustained selling pressure.
Watch for divergences between price and the pressure oscillator around key levels, swings, or zones you already care about.
Use absorption zones and wick rejection signals as additional context around support/resistance, breakouts, or failed moves.
Treat all signals as context and confluence , not as stand-alone trade entries or exits. This tool is best used alongside your existing price action, volume, and risk management framework.
Important Notes & Limitations
This script does not access real bid/ask, footprint, or order book data . All volume delta and absorption interpretations are heuristic estimates derived from OHLCV candles.
Signals are probabilistic , not guarantees. They can be early, late, or outright wrong in fast or low-liquidity markets.
Always validate signals with your own analysis, timeframe alignment, and risk management. This indicator is intended as an analytical tool , not financial advice.
CS Trend NavigatorCS Trend Navigator (Zero Lag MACD + SMA 200)
General Overview
The CS Trend Navigator is an "all-in-one" trend-following system designed to operate directly on the price chart.
Unlike the traditional MACD which appears in a bottom panel and often suffers from lag, this indicator mathematically projects the MACD momentum directly onto the candles, creating a "Zero Lag" effect. Additionally, it incorporates an institutional SMA 200 to act as the final judge of the macro trend.
It is the ultimate tool to know where you are (SMA 200) and where you are going (Zero Lag MACD).
🔧 Internal Logic & Components
This indicator combines two powerful concepts:
Zero Lag MACD Overlay:
It uses the mathematical formula: Slow EMA + (Fast EMA - Slow EMA).
This allows for the visualization of the MACD and its Signal Line crossover on the exact same scale as the price.
Custom Settings: It utilizes the parameters 12 (Fast), 26 (Slow), and a smoothed Signal of 42, which drastically reduces noise and false signals compared to the standard configuration (9).
SMA 200 Trend Filter:
This is the thick black line. It represents the long-term institutional trend.
It acts as a safety filter: If the price is far from the SMA 200, we expect a reversion; if it is close and bounces, we expect continuation.
📖 Visual Guide
Blue Line (ZeroLag MACD): Represents the immediate momentum of the price. It is fast and reactive.
Red Line (ZeroLag Signal): This is the confirmation line. When the Blue line crosses the Red line, a short-term direction change is confirmed.
Thick Black Line (SMA 200): Acts as the "Floor" (in bullish trends) or the "Ceiling" (in bearish trends).
Candle Coloring:
🟢 Green: Bullish Momentum (MACD > Signal).
🔴 Red: Bearish Momentum (MACD < Signal).
Triangles (▲ / ▼): Signal the exact moment of the Zero Lag line crossovers.
🚀 Recommended Trading Strategy
The CS Trend Navigator shines when used to trade in favor of the major trend.
Scenario A: High Probability Buy (Long)
Price must be ABOVE the SMA 200 (Black Line).
Wait for a pullback where the candles momentarily turn red.
Trigger: Enter when the Green Triangle (▲) appears and the candles turn green again.
Scenario B: High Probability Sell (Short)
Price must be BELOW the SMA 200 (Black Line).
Wait for a bullish bounce towards the average.
Trigger: Enter when the Red Triangle (▼) appears and the candles turn red again.
Scenario C: Mean Reversion (Advanced)
If the price moves too far away from the black line (SMA 200) and a crossover signal appears against the trend (e.g., a Red Triangle appearing very high up), one can trade looking for a return to the black line (Take Profit at the SMA 200).
⚙️ Settings
MACD Settings: 12 / 26 / 42 (Adjustable).
Trend Filter: SMA 200 (Adjustable).
Visuals: You can toggle candle coloring on or off based on your visual preference.
Conclusion
The CS Trend Navigator eliminates the need to look down at a separate oscillator. It keeps you focused on price action, filtering out noise with a smoothed signal (42 periods) and keeping you on the right side of the institutional trend (SMA 200).
CS Ultimate OscillatorCS Ultimate Oscillator (Composite Indicator)
General Overview
The CS Ultimate Oscillator is an advanced "Composite" technical indicator. Unlike traditional oscillators that only look at one dimension of the market, this script mathematically fuses four of the most powerful indicators in trading (RSI, MACD, Elliott Waves, and MFI) into a single normalized signal.
Its primary objective is to eliminate market noise and provide high-probability entry signals by confirming price action with volume.
Under the Hood (Mathematical Logic)
The indicator calculates four components separately, normalizes their values to a common scale (approximately -1 to +1), and then sums them up to create the "Composite Value."
RSI (14): Measures the speed and change of price movements. Detects overbought and oversold conditions.
Elliott Wave Oscillator (EWO - 5/35): Measures the difference between a fast and a slow EMA. Helps identify the current wave cycle.
MACD (12, 26, 9): Provides trend direction and momentum.
MFI (Money Flow Index - 14): The key component. It incorporates VOLUME into the equation. If price rises but volume does not support the move, the MFI will drag the oscillator down, filtering out false breakouts.
Visual Guide: What are you seeing?
The Background Area (Soft Red/Green): This represents the total sum of all indicators (the "Composite").
Green (10% Opacity): The sum of forces is positive (Bullish Trend).
Red (10% Opacity): The sum of forces is negative (Bearish Trend).
Note: It is configured with high transparency to act as a non-distracting background "heatmap."
The White Line (Trend EMA): An Exponential Moving Average (default 9 periods) applied to the composite value. It acts as the "Main Signal" or trigger line, smoothing out the noise of the composite oscillator.
The Thin Colored Line (MACD Signal Component): This is the normalized MACD signal line. It changes color (Lime/Red) based on its own internal trend.
Trading Strategy and Signals
The indicator generates visual signals based on the crossover of the smoothed trend (White Line) against the MACD signal component.
1. BUY Signal (Green Triangle ▲)
Logic: The White Line (EMA 9) crosses UP over the Thin Line (MACD Signal).
Interpretation: The average market momentum, backed by volume and RSI, is exceeding its previous average and gaining bullish strength.
2. SELL Signal (Red Triangle ▼)
Logic: The White Line (EMA 9) crosses DOWN under the Thin Line (MACD Signal).
Interpretation: Buying momentum has been exhausted, and the confluence of indicators suggests the start of a bearish move.
3. Divergences (Advanced Usage)
Since this indicator includes volume (MFI), it is excellent for detecting divergences:
If Price makes a Higher High, but the CS Ultimate Area makes a Lower High, it is a very strong sell signal (volume is not supporting the rise).
Recommended Settings
Timeframes: Works best on 15m, 1H, and 4H.
EMA Length: Defaults to 9.
Lower it to 5-7 for Scalping (more signals, more false alarms).
Raise it to 14-21 for Swing Trading (fewer signals, more confirmation).
Conclusion
The CS Ultimate Oscillator is not just a "line cross" indicator. It is an automatic confluence tool. When you wait for a signal from this indicator, you aren't just waiting for a moving average cross; you are waiting for the RSI, MACD, Waves, and Volume to all agree on a direction.
AJFFRSI+QQEROC Uses Jurik RSI for smooth, responsive momentum measurement
Incorporates QQE features for trend strength and dynamic trailing stop signals
Designed for clearer, more reliable overbought/oversold and reversal signals on TradingView
Suitable for intraday, swing, and longer-term analysis
Not a financial advice. DYOR
RSI Divergence Indicator with closingRSI Divergence Indicator with Closing Line is an advanced momentum-analysis tool that combines Regular Divergence, Hidden Divergence, Multi-RSI comparison, Moving Averages, and a dynamic RSI Closing Line into one powerful oscillator panel.
This script is designed for traders who want deeper insight into momentum strength, trend exhaustion, and reversal zones by analyzing both price action and RSI structure.
Momentum + Volume Percentile
This advanced momentum indicator combines smoothed momentum analysis with percentile-based volume filtering to identify high-quality trading opportunities backed by significant market participation.
How It Works:
The indicator calculates momentum (rate of change) over a customizable period and applies multiple smoothing techniques to reduce noise. It then filters price action by highlighting only periods where volume exceeds a specified percentile threshold.
The algorithm:
Calculates raw momentum based on price changes over the specified period
Applies customizable smoothing (SMA, EMA, WMA, or HMA) to the momentum values
Computes a moving average of the smoothed momentum as a trend reference
Analyzes volume over a lookback period to establish percentile rankings
Highlights candles where volume exceeds the percentile threshold with color-coded backgrounds
Distinguishes between bullish (green) and bearish (red) high-volume events
MACD Enhanced with FiltersProfessional MACD indicator with buy/sell signals and real-time alerts. Features: ✅ MACD crossover signals with triangles ✅ Green buy triangles (below bars) ✅ Red sell triangles (above bars) ✅ Real-time browser/email/Slack alerts ✅ Signal strength analysis ✅ Customizable parameters Perfect for active traders managing multiple accounts. Supports Webull, Interactive Brokers, and other platforms.
Trinity KST (known sure thing) ProThis version is the **modern, low-lag evolution** of Martin Pring’s original 1990s KST.
Key differences from the classic KST
- Original uses only simple moving averages (SMA) on the four ROCs → quite a bit of lag.
- This version lets you replace every SMA with **ALMA, HEMA, TEMA, or EMA** → dramatically reduces lag while keeping the signal smooth and reliable.
- ALMA + progressive offset (0.90–0.97) is especially powerful because longer-term ROCs react almost as fast as the short ones without getting noisy.
- Histogram, clean labels inside the oscillator pane, alerts, background tint — all the quality-of-life stuff the original never had.
How traders actually use it in >2026
1. Primary signal: KST crosses above/below the red signal line = momentum shift (bullish/bearish).
2. Zero-line cross = confirmation of trend change (especially strong on daily/weekly).
3. Divergences between price and KST = high-probability reversals (works great on BTC, SPX, NAS100).
4. Histogram turning from red to green (or vice-versa) = early warning before the actual line cross.
Best settings I and many others run live right now (no table, just the winners)
- Crypto & Nasdaq: **ALMA + aggressiveness 0.93–0.96** → fastest valid signals.
- Forex pairs & Gold: **HEMA** (zero-lag Hull) → super clean, almost no whipsaw.
- Broad stock indices (SPX, DAX, etc.): **ALMA 0.91–0.93** or **TEMA** → perfect middle ground.
- Classic conservative daily/weekly swings: leave it on **SMA** (original Pring) or ALMA 0.88–0.90.
In short: same reliable KST logic you already know, but now it reacts 6–12 bars earlier and with far fewer fakeouts — exactly what you need in today’s fast markets.
Volatility Signal-to-Noise Ratio🙏🏻 this is VSNR: the most effective and simple volatility regime detector & automatic volatility threshold scaler that somehow no1 ever talks about.
This is simply an inverse of the coefficient of variation of absolute returns, but properly constructed taking into account temporal information, and made online via recursive math with algocomplexity O(1) both in expanding and moving windows modes.
How do the available alternatives differ (while some’re just worse)?
Mainstream quant stat tests like Durbin-Watson, Dickey-Fuller etc: default implementations are ALL not time aware. They measure different kinds of regime, which is less (if at all) relevant for actual trading context. Mix of different math, high algocomplexity.
The closest one is MMI by financialhacker, but his approach is also not time aware, and has a higher algocomplexity anyways. Best alternative to mine, but pls modify it to use a time-weighted median.
Fractal dimension & its derivatives by John Ehlers: again not time aware, very low info gain, relies on bar sizes (high and lows), which don’t always exist unlike changes between datapoints. But it’s a geometric tool in essence, so this is fundamental. Let it watch your back if you already use it.
Hurst exponent: much higher algocomplexity, mix of parametric and non-parametric math inside. An invention, not a math entity. Again, not time aware. Also measures different kinds of regime.
How to set it up:
Given my other tools, I choose length so that it will match the amount of data that your trading method or study uses multiplied by ~ 4-5. E.g if you use some kind of bands to trade volatility and you calculate them over moving window 64, put VSNR on 256.
However it depends mathematically on many things, so for your methods you may instead need multipliers of 1 or ~ 16.
Additionally if you wanna use all data to estimate SNR, put 0 into length input.
How to use for regime detection:
First we define:
MR bias: mean reversion bias meaning volatility shorts would work better, fading levels would work better
Momo bias: momentum bias meaning volatility longs would work better, trading breakouts of levels would work better.
The study plots 3 horizontal thresholds for VSNR, just check its location:
Above upper level: significant Momo bias
Above 1 : Momo bias
Below 1 : MR bias
Below lower level: significant MR bias
Take a look at the screenshots, 2 completely different volatility regimes are spotted by VSNR, while an ADF does not show different regime:
^^ CBOT:ZN1!
^^ INDEX:BTCUSD
How to use as automatic volatility threshold scaler
Copy the code from the script, and use VSNR as a multiplier for your volatility threshold.
E.g you use a regression channel and fade/push upper and lower thresholds which are RMSEs multiples. Inside the code, multiply RMSE by VSNR, now you’re adaptive.
^^ The same logic as when MM bots widen spreads with vola goes wild.
How it works:
Returns follow Laplace distro -> logically abs returns follow exponential distro , cuz laplace = double exponential.
Exponential distro has a natural coefficient of variation = 1 -> signal to noise ratio defined as mean/stdev = 1 as well. The same can be said for Student t distro with parameter v = 4. So 1 is our main threshold.
We can add additional thresholds by discovering SNRs of Student t with v = 3 and v = 5 (+- 1 from baseline v = 4). These have lighter & heavier tails each favoring mean reversion or momentum more. I computed the SNR values you see in the code with mpmath python module, with precision 256 decimals, so you can trust it I put it on my momma.
Then I use exponential smoothing with properly defined alphas (one matches cumulative WMA and another minimizes error with WMA in moving window mode) to estimate SNR of abs returns.
…
Lightweight huh?
∞
Z-Fusion Oscillator | Lyro RSThe Z-Fusion Oscillator converts five momentum indicators into Z-scores and blends them into one normalized signal that adapts across markets.
By combining normalization, smoothing, and divergence detection, users can easily identify when momentum is accelerating, weakening, reversing, or entering extreme zones
🔶 USAGE
The Z-Fusion Oscillator is designed to give traders a unified reading of market momentum—removing the noise of comparing tools that normally run on different scales.
By transforming RSI, MACD histogram, Stochastic, Momentum, and Rate of Change into Z-scores, this tool standardizes all inputs, making trend strength and shifts easier to interpret.
A dual-line system (fast Z-fusion line + slower baseline) highlights turning points, while overbought/oversold bands and “X-marks” help traders spot exhaustion and potential reversals.
🔹 Unified Momentum Structure
The indicator’s core strength comes from combining five Z-scored signals into one average.
Which makes momentum behavior more consistent across assets, reduces false extremes, and highlights true shifts in trend conviction.
🔹 Divergence Detection
The tool includes fully integrated divergence detection:
Regular Bullish Divergence: Price makes a lower low while Z-Fusion forms a higher low.
Regular Bearish Divergence: Price makes a higher high while Z-Fusion forms a lower high
Bullish and bearish divergences are marked directly on the oscillator with labels and colored pivot connections, making hidden momentum shifts obvious.
🔹 Visual Extremes
Two sets of upper and lower Z-score thresholds help identify:
Extreme overbought surges
Extreme oversold drops
Reversal zones
Potential exhaustion conditions
Background coloring reinforces when the oscillator moves beyond major levels, helping traders quickly assess momentum pressure.
🔹 Detecting Momentum Anomalies
Z-scores allow the oscillator to highlight when market momentum behaves abnormally relative to its own recent history.
For example:
The oscillator reaching +1 or –1 after an extended trend may indicate a climax.
A sharp Z-score reversal within an extreme zone can signal a trend exhaustion or a corrective move.
Divergences often appear earlier due to normalization smoothing out indicator noise.
This makes the Z-Fusion Oscillator particularly useful for spotting subtle shifts in trend direction that traditional indicators may miss.
🔶 DETAILS
🔹 Composite Z-Score Framework
Each momentum tool is smoothed, normalized, and transformed:
RSI → EMA-smoothed, Z-scored
MACD histogram → Z-scored
Stochastic → EMA + SMA smoothing, then Z-scored
Momentum → EMA-smoothed, Z-scored
Rate of Change → EMA-smoothed, Z-scored
These are averaged into one composite Z-score to provide a consistent reading across assets and market conditions.
🔹 Fusion Trend Lines
Two lines serve as the core signal:
Fast Line (savg) – reacts quicker to trend changes
Slow Line (savg2) – acts as a baseline filter
Crossovers between these lines highlight momentum shifts, while their color reflects trend bias.
🔹 Overbought/Oversold Zones
Two upper and two lower Z-score thresholds define “zones”:
Upper zones highlight overheated momentum or potential bearish reversals
Lower zones highlight depressed momentum or potential bullish reversals
Filled regions and background colors help visually confirm extreme conditions.
🔹 Pivot-Based Divergence Engine
The script includes filtered pivot detection with customizable look-backs and range limits to ensure divergences are meaningful, not noise-driven.
🔶 SETTINGS
🔹 Indicator Settings
Source — Price series used for all calculations.
Z-Score Length — Lookback period for Z-score normalization.
Z-Score MA Length — Smoothing length for the fusion signal lines.
Overbought/Oversold Levels — Four customizable threshold lines.
Color Palette — Choose from preset themes or define custom colors.
🔹 RSI
Length — RSI calculation period.
EMA Smoothing Length — Smooths RSI before Z-score conversion.
🔹 MACD
Fast Length — Fast EMA length.
Slow Length — Slow EMA length.
Signal Line Length — MACD signal smoothing.
🔹 Stochastic
%K Length — Main stochastic length.
EMA Smoothing — Smooths %K for stability.
%D Length — Smoothing for the signal line.
🔹 Momentum
Length — Momentum lookback.
EMA Smoothing — Smooths momentum before Z-scoring.
🔹 Rate of Change
Length — ROC lookback.
EMA Smoothing — Smooths ROC values.
🔹 Divergence
Enable/Disable Divergence Detection — Toggle divergence engine.
Pivot Left/Right Lookback — Defines pivot detection sensitivity.
Detection Range Limits — Controls allowable range for divergence.
Bull/Bear Colors & Styling — Customize divergence visualization.
🔶 SUMMARY
The Z-Fusion Oscillator combines multiple momentum signatures into a single normalized signal, enabling traders to:
Identify reversals early
Detect momentum exhaustion
Spot bullish and bearish divergences
Track overbought/oversold conditions
Visualize trend strength with clarity
Whether you're a swing trader, intraday analyst, or trend-reversal hunter, the Z-Fusion Oscillator provides a powerful and adaptive way to read momentum.
Valdex - Squeeze Momentum Indicator [MTF]📝 TradingView Publication Description (English)
SQM-MTF: Multi-Timeframe Squeeze Momentum Indicator (v6)
This is a powerful, multi-timeframe (MTF) version of the renowned Squeeze Momentum Indicator originally developed by LazyBear, completely updated for Pine Script v6.
This version allows traders to calculate the momentum and the Teeza Squeeze status from a higher or lower timeframe than the one currently displayed on the chart, providing superior context for entries and exits.
🚀 Key Features
Multi-Timeframe (MTF) Functionality: Use the "Timeframe del Indicador" setting to select a resolution (e.g., "60" for 1-hour or "240" for 4-hour) independent of your chart's resolution.
Momentum Area Plot: The default style is set to Area for better visual continuity, instead of the traditional histogram columns.
Original Color Logic: Uses the original four-color scheme to clearly identify momentum status and acceleration/deceleration:
Bright Green/Lime: Positive Momentum, Accelerating
Dark Green: Positive Momentum, Decelerating
Bright Red: Negative Momentum, Accelerating
Dark Red/Maroon: Negative Momentum, Decelerating
Optimized for V6: Code fully updated to Pine Script v6 syntax, including optimized request.security usage.
💡 How to Use
This indicator is typically used to identify periods of low volatility (the Squeeze) that signal a potential explosive move is imminent.
Use the MTF feature to:
Find the Squeeze: Check a higher timeframe (e.g., 4H) for the Squeeze status while executing trades on a lower timeframe (e.g., 1H or 15m).
Confirm Entry: Wait for the momentum bars to cross the zero line in the desired direction on the MTF indicator, confirming the start of the trend.
📋 Notas de Publicación (Para ti)
Cuando publiques, asegúrate de añadir las siguientes etiquetas (tags) para que sea fácil de encontrar:
Tags Sugeridas: SQUEEZE, MOMENTUM, MTF, MULTITIMEFRAME, SQUEEZEMOMENTUM, LAZYBEAR, VOLATILITY, PINEV6.
Source Code (Código Fuente): Siempre incluye el código Pine Script en la parte inferior de tu descripción en TradingView.
NICHI Beta (NuwenPham's Ichimoku)# **NuwenPham’s Ichimoku (NICHI)**
**Version BETA.251123a.3.1.2 – Pine Script v6**
**Author:** NuwenPham
**Forked from:** Donovan Wall
**Contributors:** Claude (Anthropic)
**License:** MPL 2.0
---
# **Overview**
**NICHI (Nuwen’s Ichimoku)** is a next-generation Ichimoku system that merges the classical Hosoda Ichimoku with a modular adaptive-smoothing engine, enhanced Kumo logic, directional trend counters, and multi-mode bar coloring.
The indicator includes **two completely separate Ichimoku engines**:
* **Standard Ichimoku** – Traditional Donchian-based Tenkan, Kijun, Senkou A/B, and Chikou
* **Advanced Ichimoku** – Fully customizable Ichimoku using 15+ moving-average filters and enhanced logic
NICHI is designed for modern markets—especially **futures and volatile instruments** (NG, CL, ES, NQ, crypto).
---
# **Key Features**
## **1. Dual Ichimoku Systems**
* **Standard Mode:**
Classic Donchian Ichimoku with Tenkan, Kijun, Senkou A/B, and Chikou.
Clean, faithful implementation.
* **Advanced Mode:**
Every Ichimoku line uses a **selected smoothing filter** (EMA, KAMA, FRAMA, Hull, McGinley, etc.).
Includes directional persistence tracking, enhanced cloud logic, and adaptive bar coloring.
---
## **2. Advanced Filter Engine (15+ Smooth Types)**
Use any of the following for Tenkan, Kijun, Senkou B, or Chikou:
* EMA
* DEMA
* SMA
* SMMA (RMA)
* WMA
* VWMA
* Hull MA
* ALMA
* LSMA (Linear Regression)
* McGinley Dynamic
* KAMA
* FRAMA
* COVWMA
* Moving Median
* 50th Percentile (Nearest Rank)
This transforms Ichimoku into an **adaptive trend system**.
---
## **3. Enhanced Cloud (Kumo) Modeling**
* Independent forward offsets for Span A & Span B
* Cloud colors adapt based on strength, direction, and filter behavior
* Cloud thickness reflects volatility
* Neutral cloud state available when spans disagree
---
## **4. Directional Persistence Counters**
NICHI tracks the **trend streak** of each main component:
* Tenkan rising/falling
* Kijun rising/falling
* Span A rising/falling
* Span B rising/falling
These counters make cloud and line colors more accurate and stable.
---
## **5. Regime-Based Bar Coloring (3 Modes)**
NICHI includes three built-in trading frameworks:
### **Mode 1: Kumo-Based**
Bar color reflects price relative to the cloud:
* Green = Above Kumo
* Red = Below Kumo
* Orange = Inside Kumo
Ideal for **trend-following** and **market regime detection**.
---
### **Mode 2: Tenkan/Kijun-Based**
Bar color reflects momentum structure:
* Green = Price above both Tenkan & Kijun
* Red = Price below both
Designed for **momentum entries and TK breakouts**.
---
### **Mode 3: Chikou-Based**
Bars reflect historical confirmation:
* Green = Chikou > price (offset period)
* Red = Chikou < price
Excellent for **confirmation-first strategies** where accuracy matters most.
---
## **6. Multi-MA Overlay System**
Up to **four optional moving averages**:
* SMA, EMA, SMMA, WMA, HMA, VWMA
* Independent lengths, widths, colors
* Useful for bias, confluence, trend filters
Default: **SMA 200** enabled.
---
## **7. TK Cross Signals**
Both systems show TK crosses:
* Standard TK Cross (classic)
* Advanced TK Cross (filtered version)
Crosses appear with clear markers for entry/exit logic.
---
# **How to Use NICHI**
## **1. Choose Your Engine**
* **Standard:** Clean, classic Ichimoku
* **Advanced:** Adaptive, filter-driven Ichimoku
* **Both:** Comparative analysis
---
## **2. Select Your Filter Type (Advanced Mode)**
Suggested filters:
| Market | Filter Type | Notes |
| ---------------- | ---------------- | -------------------------- |
| Natural Gas (NG) | KAMA or FRAMA | Handles extreme volatility |
| Crude Oil (CL) | McGinley Dynamic | Smooths spikes |
| ES / NQ | SMMA or WMA | Balanced response |
| Crypto | Hull or ALMA | Handles momentum bursts |
| FX | EMA or SMMA | Classic, stable |
---
## **3. Choose a Bar-Color Strategy**
* **Kumo-Based:** Trend following
* **TK-Based:** Momentum and breakouts
* **Chikou-Based:** Highest confirmation/accuracy
Each strategy is valid and intentionally distinct.
---
## **4. Reading the Cloud**
* **Bullish Cloud:** Span A > Span B
* **Bearish Cloud:** Span A < Span B
* **Neutral Cloud:** Disagreement between spans
* **Thick Cloud:** High volatility / stronger structure
* **Thin Cloud:** Weak trend / potential twist
---
## **5. Entry & Exit Concepts**
### **Entries**
* **Momentum Entry:** TK cross with price above the cloud
* **Reversal Entry:** TK cross before a cloud twist
* **Confirmation Entry:** Chikou breaks cleanly above/below past price
### **Exits**
* Price falling through Kijun
* Re-entering the cloud
* Opposite TK cross
* Cloud flipping against position
---
# **Recommended Trading Approaches**
## **Kumo-Based Trend Strategy**
* Long above cloud, short below
* Avoid signals inside cloud
Best for swing/position trading.
---
## **TK-Based Momentum Strategy**
* Enter on Tenkan/Kijun breakout
* Bar color confirms momentum
* Cloud filter optional but helps
Great for high-velocity markets.
---
## **Chikou-Based Confirmation Strategy**
* Enter only when Chikou confirms structure
* Highest accuracy, fewest trades
* Ideal for volatile markets (NG, CL)
---
# **Closing Notes**
NICHI is a **research-grade Ichimoku framework** designed to handle modern volatility where traditional Ichimoku often fails.
It supports scalpers, swing traders, and system developers alike.
Experiment with:
* Filter types
* Cloud offsets
* Bar-color modes
* MA overlays
to match your strategy and market.






















