Turtle System 1 (20/10) + N-Stop + MTF Table V7.2🐢 Description: Turtle System 1 (20/10) IndicatorThis indicator implements the original trading signals of the Turtle Trading System 1 based on the classic Donchian Channels. It incorporates a historically correct, volatility-based Trailing Stop (N-Stop) and a Multi-Timeframe (MTF) status dashboard. The script is written in Pine Script v6, optimized for performance and reliability.📊 Core Logic and ParametersThe system is a pure trend-following model, utilizing the more widely known, conservative parameters of the Turtle System 1:FunctionParameterValueDescriptionEntry$\text{Donchian Breakout}$$\mathbf{20}$Buy/Sell upon breaking the 20-day High/Low.Exit (Turtle)$\text{Donchian Breakout}$$\mathbf{10}$Close the position upon breaking the 10-day Low/High.Volatility$\mathbf{N}$ (ATR Period)$\mathbf{20}$Calculation of market volatility using the Average True Range (ATR).Stop-LossMultiplier$\mathbf{2.0} BER:SETS the initial and Trailing Stop at $\mathbf{2N}$.🛠️ Key Technical Features1. Original Turtle Trailing Stop (Section 4)The stop-loss mechanism is implemented with the historically accurate Turtle Trailing Logic. The stop is not aggressively tied to the current candle's low/high, which often causes premature exits. Instead, the stop only trails in the direction of the trend, maximizing the previous stop price against the new calculated $\text{Close} \pm 2N$:$$\text{New Trailing Stop} = \text{max}(\text{Previous Stop}, \text{Close} \pm (2 \times N))$$2. Reliable Multi-Timeframe (MTF) Status (Section 6)The indicator features a robust MTF status table.Purpose: It calculates and persistently stores the Turtle System 1 status (LONG=1, SHORT=-1, FLAT=0) for various timeframes (1H, 4H, 8H, 1D, and 1W).Method: It uses global var int variables combined with request.security(), ensuring the status is accurately maintained and updated across different bars and timeframes, providing a reliable higher-timeframe context.3. VisualizationsChannels: The 20-period (Entry) and 10-period (Exit) Donchian Channels are plotted.Stop Line: The dynamic $\mathbf{2N}$ Trailing Stop is visible as a distinct line.Signals: plotshape markers indicate Entry and Exit.MTF Table: A clean, color-coded status summary is displayed in the upper right corner.
ボラティリティ
Turtle System 2 (55/20) + N-Stop + MTF Table V7.2🐢 Description: Turtle System 2 (55/20) IndicatorThis indicator implements the trading signals of the Turtle Trading System 2 based on the classic Donchian Channels, supplemented by a historically correct, volatility-based Trailing Stop (N-Stop) and a Multi-Timeframe (MTF) status overview. The script was developed in Pine Script v6 and is optimized for performance and robustness.📊 Core Logic and ParametersThe indicator is based on the rule-based trend-following system developed by Richard Dennis and William Eckhardt, utilizing the more aggressive Entry/Exit parameters of System 2:FunctionParameterValueDescriptionEntry$\text{Donchian Breakout}$$\mathbf{55}$Buy/Sell upon breaking the 55-day High/Low.Exit (Turtle)$\text{Donchian Breakout}$$\mathbf{20}$Close the position upon breaking the 20-day Low/High.Volatility$\mathbf{N}$ (ATR Period)$\mathbf{20}$Calculation of market volatility using the Average True Range (ATR).Stop-LossMultiplier$\mathbf{2.0} BER:SETS the initial and Trailing Stop at $\mathbf{2N}$.🛠️ Technical Implementation1. Correct Trailing Stop (Section 4)In contrast to many flawed implementations, the Trailing Stop is implemented here according to the Original Turtle Logic. The stop price (current_stop_price) is not aggressively tied to the current low or high. Instead, at the close of each bar, it is only trailed in the direction of the trade (math.max for long positions) based on the formula:$$\text{New Trailing Stop} = \text{max}(\text{Previous Stop}, \text{Close} \pm (2 \times N))$$This ensures the stop is only adjusted upon sustained positive movement and is not prematurely triggered by short-term, deep price shadows.2. Reliable Multi-Timeframe (MTF) Logic (Section 6)The MTF section utilizes global var int variables (mtf_status_1h, mtf_status_D, etc.) in conjunction with the request.security() function.Purpose: Calculates and persistently stores the current Turtle System 2 status (LONG=1, SHORT=-1, FLAT=0) for the timeframes 1H, 4H, 8H, 1D, and 1W.Advantage: By persistently storing the status using the var variables, the critical error of single-update status is eliminated. The states shown in the table are reliable and accurately reflect the Turtle System's position status on the respective timeframes.3. Visual ComponentsDonchian Channels: The entry (55-period) and exit (20-period) channels are drawn with color highlighting.N-Stop Line: The dynamically calculated Trailing Stop ($\mathbf{2N}$) is displayed as a magenta line.Visual Signals: plotshape markers indicate Entry and Exit points.MTF Table: A compact status summary with color coding (Green/Red/Gray) for the higher timeframes is displayed in the upper right corner.
TSO PRO – Trend & Momentum Unified EngineAdvanced unified engine for detecting structural trend shifts and momentum transitions in price movement. Designed for traders who need deeper resolution, dynamic behavior, and automation-ready output.
💡 Why TSO PRO Is Different
Traditional oscillators separate their functions:
• MACD → trend inflection
• RSI → momentum strength
• Stochastics → oscillation bias
Because they rely on averaged data, these tools often react slowly
or fail to reveal structural turning zones in time.
TSO PRO works differently.
It interprets structural changes inside price movement, providing a unified view of both trend behavior and momentum shifts with higher resolution, faster transition visibility, and dynamic responsiveness.
What’s Inside TSO PRO
TSO PRO expands on the Lite version with additional layers, enhanced structural interpretation, and automation-ready outputs.
🔹 Included in TSO PRO
• TSO Line (Enhanced) – refined directional feedback
• TSO Flow (Advanced) – high-resolution background structure
• TSO Pulse (Enhanced) – dynamic expansion/compression behavior
• TSO Drive – active directional pressure
• TSO Extremes – turning-zone detection
• Automation Layer – webhook-ready alerts
• Full multi-layer unified engine
🔹 Ideal for
• experienced traders
• structural behavior analysis
• automated system builders
• high-resolution oscillation mapping
TSO Lite vs TSO PRO – Feature Comparison
───────────────────────────────────────────────
TSO LITE | TSO PRO
───────────────────────────────────────────────
Core Layers ✔ 3 layers | ✔ Full multi-layer engine
TSO Drive ✘ Not included | ✔ Dynamic response
TSO Extremes ✘ Not included | ✔ Turning-zone detection
Automation ✘ Not supported | ✔ Webhook automation
Best For Beginners | Advanced traders
───────────────────────────────────────────────
🔗 How to Access TSO PRO
TSO PRO is available via subscription:
• Monthly: tradesmith6.gumroad.com
• Yearly (best value): tradesmith6.gumroad.com
All subscribers receive continuous updates, feature improvements, and priority support.
📌 Licensing
TSO PRO is a paid invite-only indicator. Redistribution, resale, or reverse-engineering attempts are prohibited.
📌 Disclaimer
This tool does not guarantee profit. All trading is at your own risk.
가격 움직임 내부의 구조적 변화(Trend + Momentum)를 고해상도로 해석하도록 설계된 통합형 엔진 기반 오실레이터입니다. 고급 트레이더, 자동매매 사용자, 구조 분석 전문가에게 최적화되어 있습니다.
💡 TSO PRO가 특별한 이유
일반적인 오실레이터는 기능이 나뉘어 있습니다:
• MACD → 추세 전환
• RSI → 모멘텀 강도
• Stochastics → 진동 편향
이들은 대부분 평균 기반 계산 방식에 의존하여
전환 구간이 늦게 나타나거나 중요한 변화를 놓칠 수 있습니다.
TSO PRO는 다른 방식으로 작동합니다.
가격의 내부 구조적 변화를 해석하여
추세 변화와 모멘텀 전환을 더 빠르고 정밀하게 보여주는 고해상도 통합 엔진 방식으로 구성되어 있습니다.
TSO PRO 구성 요소
TSO PRO는 Lite 버전보다 더 많은 레이어, 고해상도 구조 감지, 자동매매(Webhook) 대응 기능을 포함합니다.
🔹 TSO PRO 포함 기능
• TSO Line (고급형) – 강화된 방향 반응
• TSO Flow (고해상도) – 심층 구조 흐름
• TSO Pulse (강화형) – 확장/압축 리듬 변화
• TSO Drive – 적극적인 방향 압력
• TSO Extremes – 전환 구간 감지
• Automation Layer – Webhook 자동매매 지원
• 멀티 레이어 기반 통합 엔진
🔹 적합한 사용자
• 중급~고급 트레이더
• 구조 기반 분석가
• 자동매매/전략화 사용자
• 고해상도 관찰이 필요한 트레이더
TSO Lite vs TSO PRO – 기능 비교
───────────────────────────────────────────────
TSO LITE | TSO PRO
───────────────────────────────────────────────
핵심 레이어 ✔ 3 레이어 | ✔ 멀티 레이어 엔진
TSO Drive ✘ 미포함 | ✔ 동적 반응
TSO Extremes ✘ 미포함 | ✔ 전환 구간 감지
자동매매 지원 ✘ 지원 안 함 | ✔ Webhook 자동화
적합한 사용자 초보자 | 고급 트레이더
───────────────────────────────────────────────
🔗 TSO PRO 구독 안내
더 깊은 구조 분석, 고해상도 감지, 자동매매(Webhook)이 필요하다면:
• 월간 구독: tradesmith6.gumroad.com
• 연간 구독(가성비): tradesmith6.gumroad.com
구독자에게는 지속적 업데이트와 기능 강화가 제공됩니다.
📌 라이선스
TSO PRO는 유료 초대형(Invite-only) 지표입니다.
재배포, 재판매, 역설계 시도는 금지되어 있습니다.
📌 면책 조항
본 도구는 수익을 보장하지 않으며, 모든 매매 책임은 사용자에게 있습니다.
Hide Out ProHide Out Pro —
Hide Out Pro is built for intraday option traders who analyze CALL (CE) and PUT (PE) charts separately to identify the stronger side of the market. It filters sideways phases, detects premium-decay zones, and highlights structured breakout and pullback entries using forward-projected volatility levels.
1. Hide Out Trend Filter (Sideways Market Protection)
Options lose value quickly during sideways movement.
The Hide Out engine uses volatility expansion to determine when the market is active or stagnant.
Pink-masked candles → weak momentum / premium-decay zone → avoid entries
Breakout from the mask → real trend activation
Works independently on CALL and PUT charts
This keeps option buyers out of choppy, time-decay conditions.
2. Day Opening Range (DOR)
The script marks the first 3 minutes of the session (designed for Indian market timing) and locks the High, Low, and Range for the rest of the day.
Directional Bias Using CALL & PUT Charts
CALL above DOR Low → bullish continuation potential
PUT above DOR Low → bearish continuation potential
Price below DOR Low → premium-decay zone.
Both inside DOR → sideways / low-quality movement
This helps traders identify which option side is gaining strength.
3. Leading Lines (Projected 6 Minutes Ahead)
Volatility Price Lines (Entry System)
Forward-projected volatility lines guide high-probability entries:
Green line → momentum structure
Amber line → liquidity pullback structure
After a Hide Out breakout, pullbacks into these lines provide controlled, rule-based entries for CE/PE buyers.
Target Line (Exit & Risk Control)
A thin forward-projected blue line marking short-term volatility expansion:
Avoid entering above this line
Use it for profit-booking or trailing stop-loss
This prevents late entries into overstretched premium zones.
4. Base Price Labels (Entry + Stop-Loss)
After trend confirmation, the script waits for a pullback into the Volatility Price Lines.
A Base Price label appears only when conditions align and includes:
Entry price
Stop-loss level (volatility-based)
This provides structured, predefined-risk entries.
5. Hide Out Label (Trend Confirmation)
A Hide Out label appears when price breaks out of the masked zone, signaling the start of true momentum and avoiding premature entries.
Works independently on CALL and PUT charts.
6. LP Divergence Label (Momentum Exhaustion Warning)
The script uses a proprietary calculation to generate an internally calculated low-participation metric.
When price forms a higher high but participation weakens, an LP label warns of:
Premium exhaustion
Trend slowdown
Reversal probability
Useful for avoiding late entries or tightening stops.
7. Best Timeframe
Optimized for the 3-minute timeframe, though it works on all timeframes.
How to Use (Quick Workflow)
Apply Hide Out Pro separately on CALL and PUT charts.
Identify which chart stays above its DOR Low → potential strength side.
Wait for a Hide Out breakout → confirms trend.
Enter on pullbacks to the Volatility Price Lines.
Avoid entries above the Target Line.
Use Target Line for exits or trail SL.
Watch LP labels for exhaustion or profit-booking signals.
Why the Script Is Closed-Source
Hide Out Pro uses a custom, self-protected computational framework combining volatility modelling, forward-projected structures, and multi-layer filters designed specifically for option premiums.
This includes proprietary logic for:
Sideways-market suppression (Hide Out mask)
DOR-based premium-decay detection
Forward-projected volatility lines
Base Price pullback and SL mapping
Internally calculated low-participation divergence
Because the methodology uses original algorithms, proprietary calculations, sequencing rules, and interaction logic not available in any public indicator, the source code is protected to prevent duplication and reverse-engineering.
Financial Earthquakes, LPPLSConcept Overview
Sornette (ETH Zurich) pioneered the Log-Periodic Power Law Singularity (LPPLS) model, drawing a profound analogy between financial crashes and physical ruptures/earthquakes. In this framework, speculative bubbles exhibit super-exponential price growth (power-law acceleration toward a critical time tₚ) decorated by accelerating log-periodic oscillations — signatures of herding behavior and hierarchical feedback loops among investors. These "financial earthquakes" often end in regime changes: crashes (positive bubbles) or sharp rebounds (negative bubbles). This indicator provides a practical adaptation of Sornette's core ideas, without requiring complex nonlinear fitting on rolling windows.
Components
Multi-scale Local Hurst Exponent (m): Approximates the power-law exponent in the LPPLS model.
A rough local proxy for the exponent m is computed on five different lookback periods (default: 5, 14, 30, 70, 140 bars) using the relation:
local H ≈ (log(range) − log(ATR)) / log(period)
The average of these five values serves as a dynamic estimate of the bubble's "super-exponentiality" (persistent trending behavior when H > 0.5).
Log-Periodic Oscillation Term:
C1 × t^H × (1 + C2 × cos(ω × log(t) + φ))
where t is distance from an arbitrary recent reference point. This introduces the characteristic log-periodic "ripples" that accelerate as the hypothetical critical time approaches.
DSI Hurst (0–100 oscillator):
The raw LPPLS-inspired series is dynamically scaled over a 100-bar lookback into a bounded 0–100 range (similar to a stochastic or RSI).
≈ 50 → neutral / random-walk regime
87 → extreme super-exponential + log-periodic pressure (potential positive bubble / end-of-rally critical point)
< 13 → extreme anti-persistent pressure (potential negative bubble / end-of-bear critical point)
Visual Elements
Red line: DSI Hurst oscillator (0–100)
Horizontal lines at 13, 50, 87
Bar coloring: fuchsia when DSI > 87 (bubble warning), yellow when DSI ≈ 0 (extreme tightening)
Circle shapes at the top → potential critical point (DSI extreme + Hurst consistent across scales + ongoing log-periodic ripples) — analogous to Sornette's "financial earthquake" warning
Circle shapes at the bottom → potential critical pullback / regime shift in the opposite direction
Usage
High DSI Hurst (especially > 87) with confirming circle → increasing probability of an imminent regime change (often a crash after a bubble).
Low DSI Hurst (especially < 13) with confirming circle → potential sharp rebound after a negative bubble.
The indicator works on any timeframe and asset class (stocks, indices, crypto, forex) where herding and positive-feedback dynamics can appear.
*Default values (periods) optimized for SPX.
Notes
This is an interpretation of Sornette's LPPLS theory adapted for Pine Script limitations. It does not perform full nonlinear LPPLS calibration (which requires heavy optimization and is used in academic confidence/trust indicators). It captures the spirit: multi-scale persistence + log-periodic component → early warning of critical transitions.
Combine with price action, volume, fundamentals or any other form of analysis, and risk management.
No indicator predicts crashes with certainty — it only highlights periods where the market structure resembles the pre-crisis patterns repeatedly documented in Sornette's research (1987, 2000, 2008, 2015 China, Bitcoin, etc.).
TSO Lite – Trend & Momentum Unified OscillatorTrend & momentum unified oscillator for structural price movement.
💡 Why TSO is Different
Most oscillators separate their functions:
• MACD → trend inflection
• RSI → momentum strength
• Stochastics → oscillation bias
Because they rely on averaged price data, these indicators often react slowly
or fail to reveal structural transitions in time.
TSO works differently.
It interprets structural shifts occurring inside price movement, capturing both
trend changes and momentum strength within a single unified engine.
Since it does not depend on moving averages, transitions appear earlier and clearer.
TSO Lite is the simplified edition of TSO (Triple Structure Oscillation),
designed to visualize structural rhythm and directional flow with clarity.
🔹 Included in TSO Lite:
• TSO Line – immediate directional response
• TSO Flow – structural background flow
• TSO Pulse – expansion/compression behavior
• Lightweight and clean visualization
🔹 Not Included in Lite:
• TSO Drive
• TSO Extremes
• Automation / Webhook alerts
• Multi-layer structural engine (PRO only)
TSO Lite is ideal for:
• beginners
• lightweight structural analysis
• users who want a clean and simple version of TSO
TSO Lite vs TSO PRO – Feature Comparison
───────────────────────────────────────────────
TSO LITE | TSO PRO
───────────────────────────────────────────────
Core Layers ✔ 3 layers | ✔ Full multi-layer engine
TSO Drive ✘ Not included | ✔ Dynamic response
TSO Extremes ✘ Not included | ✔ Turning-zone detection
Automation ✘ Not supported | ✔ Webhook automation
Best For Beginners | Advanced traders
───────────────────────────────────────────────
🔗 Upgrade to TSO PRO
For deeper structural detection, high-resolution mapping, and automation:
• Monthly subscription: tradesmith6.gumroad.com
• Yearly subscription (best value): tradesmith6.gumroad.com
📌 Licensing
TSO Lite is a free publicly available script.
Redistribution, resale, or reverse-engineering attempts are prohibited.
📌 Disclaimer
This tool does not guarantee profit. All trading is at your own risk.
구조적 가격 움직임을 기반으로 추세와 모멘텀을 동시에 관찰할 수 있는 통합형 오실레이터입니다.
💡 왜 TSO가 다른가?
일반적인 오실레이터는 기능이 나누어져 있습니다:
• MACD → 추세 전환 신호
• RSI → 모멘텀 강도
• Stochastics → 진동 편향
이러한 지표들은 대부분 ‘평균 기반 계산’을 사용하기 때문에
신호가 늦게 나오거나 중요한 전환 구간을 놓치는 경우가 많습니다.
TSO는 다른 방식으로 작동합니다.
가격 움직임 내부에서 발생하는 구조적 변화를 해석하여
추세 변화와 모멘텀 강도를 하나의 통합된 엔진 관점에서 읽어냅니다.
평균값에 의존하지 않기 때문에, 전환 구간이 더 빠르고 명확하게 표시됩니다.
TSO Lite는 TSO(Triple Structure Oscillation)의 간소화 버전으로,
가격 움직임의 구조적 리듬과 방향성 흐름을 깔끔하게 시각화하도록 설계되었습니다.
🔹 TSO Lite 포함 기능:
• TSO Line – 즉각적인 방향 반응
• TSO Flow – 구조적 배경 흐름
• TSO Pulse – 확장/압축 리듬 변화
• 가볍고 직관적인 레이아웃
🔹 TSO Lite 미포함 기능:
• TSO Drive
• TSO Extremes
• 자동매매(Webhook)
• 다층 구조 엔진(PRO 전용)
TSO Lite는 다음 사용자에게 적합합니다:
• 초보자
• 가벼운 구조 분석
• 심플한 형태의 TSO를 원하는 사용자
TSO Lite vs TSO PRO – 기능 비교
───────────────────────────────────────────────
TSO LITE | TSO PRO
───────────────────────────────────────────────
핵심 레이어 ✔ 3 레이어 | ✔ 멀티 레이어 엔진
TSO Drive ✘ 미포함 | ✔ 동적 반응
TSO Extremes ✘ 미포함 | ✔ 전환 구간 감지
자동매매 지원 ✘ 지원 안 함 | ✔ Webhook 자동화
적합한 사용자 초보자 | 고급 트레이더
───────────────────────────────────────────────
🔗 TSO PRO 업그레이드 안내
더 깊은 구조 분석, 고해상도 감지, 자동매매(Webhook)가 필요하다면:
• 월간 구독: tradesmith6.gumroad.com
• 연간 구독(가성비): tradesmith6.gumroad.com
📌 라이선스
TSO Lite는 무료로 제공되는 공개 스크립트입니다.
재배포, 재판매, 역설계 시도는 금지되어 있습니다.
📌 면책 조항
본 도구는 수익을 보장하지 않으며, 모든 거래 책임은 사용자 본인에게 있습니다.
LGZ – Liquidity Gravity Zones v1 📌 LGZ – Liquidity Gravity Zones (SVI + Net CVD + Volume)
Original Liquidity-Driven Price Magnet Model by Thomas Aaroon
📘 Concept Overview
LGZ (Liquidity Gravity Zones) is a new, original liquidity-based price-attraction model built using three core components:
SVI (Shock Volume Index) – measures abnormal volume spikes at each strike
Net CVD (NCP = CE_CVD − PE_CVD) – the real directional order-flow imbalance
Total Volume (CE + PE) – true liquidity density at each strike
Using these three elements, the indicator calculates Liquidity Gravity Weight (LGW) for every strike and identifies the strongest zones that attract price during the session.
🧠 Why This Indicator?
Traditional OI-based methods (long build-up, short build-up, OI change etc.) often lag.
LGZ focuses only on:
Real traded volume
Actual buy/sell aggression (CVD)
Shock events
Dealer hedging pressure
Strike-level liquidity clusters
This makes it far more responsive for intraday traders.
⭐ Core Formula
Liquidity Gravity Weight (LGW)
LGW = |SVI| × |Net CVD| × Total Volume
Where:
SVI = Shock Volume Index (Z-score based)
Net CVD (NCP) = CE_CVD − PE_CVD
Total Volume = CE_volume + PE_volume
LGW indicates how strongly a strike is pulling price toward it.
🎯 What the Indicator Shows
✔ Top Liquidity Gravity Zones (LGZ-1, LGZ-2, LGZ-3)
These are the strongest price magnets for the day.
✔ Gravity Lines on Chart
Each LGZ is plotted as a horizontal magnet line extending to the right.
✔ Strike-Level Liquidity Table
Shows:
Strike
SVI (Shock intensity)
LGW (Gravity strength)
This table gives a complete picture of the intraday liquidity landscape.
📈 How to Use (Intraday Trading Strategy)
🔵 1. Price gravitates toward LGZ-1
If price is below LGZ-1 → upward pull
If price is above LGZ-1 → downward pull
🔵 2. LGZ Flips = Trend Change
If LGZ-1 suddenly jumps to a different strike:
→ strong trend acceleration
🔵 3. LGZ Cluster = Reversal / Consolidation Zone
Multiple LGZ levels around the same strike indicate
→ liquidity saturation → reversal or slowdown.
🔵 4. Combine with Price Action
Best clarity on 5-minute timeframe
Use 1-minute only for entry.
🔬 Why LGZ Works
The indicator models the same reality driving option markets:
Where option volume + orderflow (CVD) + shock liquidity concentrate,
market makers hedge, and price moves toward that strike.
This is the foundation of dealer hedging mechanics and liquidity-based price movement.
🔧 Inputs
Symbol prefix (e.g., NIFTY)
Expiry (YYMMDD)
Center strike & range
Number of gravity zones
Color customization
920 Order Flow SATY ATR//@version=6
indicator("Order-Flow / Volume Signals (No L2)", overlay=true)
//======================
// Inputs
//======================
rvolLen = input.int(20, "Relative Volume Lookback", minval=5)
rvolMin = input.float(1.1, "Min Relative Volume (× avg)", step=0.1)
wrbLen = input.int(20, "Wide-Range Lookback", minval=5)
wrbMult = input.float(1, "Wide-Range Multiplier", step=0.1)
upperCloseQ = input.float(0.60, "Close near High (0-1)", minval=0.0, maxval=1.0)
lowerCloseQ = input.float(0.40, "Close near Low (0-1)", minval=0.0, maxval=1.0)
cdLen = input.int(25, "Rolling CumDelta Window", minval=5)
useVWAP = input.bool(true, "Use VWAP Bias Filter")
showSignals = input.bool(true, "Show Long/Short OF Triangles")
//======================
// Core helpers
//======================
rng = high - low
tr = ta.tr(true)
avgTR = ta.sma(tr, wrbLen)
wrb = rng > wrbMult * avgTR
// Relative Volume
volAvg = ta.sma(volume, rvolLen)
rvol = volAvg > 0 ? volume / volAvg : 0.0
// Close location in bar (0..1)
clo = rng > 0 ? (close - low) / rng : 0.5
// VWAP (session) + SMAs
vwap = ta.vwap(close)
sma9 = ta.sma(close, 9)
sma20 = ta.sma(close, 20)
sma200= ta.sma(close, 200)
// CumDelta proxy (uptick/downtick signed volume)
tickSign = close > close ? 1.0 : close < close ? -1.0 : 0.0
delta = volume * tickSign
cumDelta = ta.cum(delta)
rollCD = cumDelta - cumDelta
//======================
// Signal conditions
//======================
volActive = rvol >= rvolMin
effortBuy = wrb and clo >= upperCloseQ
effortSell = wrb and clo <= lowerCloseQ
cdUp = ta.crossover(rollCD, 0)
cdDown = ta.crossunder(rollCD, 0)
biasBuy = not useVWAP or close > vwap
biasSell = not useVWAP or close < vwap
longOF = barstate.isconfirmed and volActive and effortBuy and cdUp and biasBuy
shortOF = barstate.isconfirmed and volActive and effortSell and cdDown and biasSell
//======================
// Plot ONLY on price chart
//======================
// SMAs & VWAP
plot(sma9, title="9 SMA", color=color.orange, linewidth=3)
plot(sma20, title="20 SMA", color=color.white, linewidth=3)
plot(sma200, title="200 SMA", color=color.black, linewidth=3)
plot(vwap, title="VWAP", color=color.new(color.aqua, 0), linewidth=3)
// Triangles with const text (no extra pane)
plotshape(showSignals and longOF, title="LONG OF",
style=shape.triangleup, location=location.belowbar, size=size.tiny,
color=color.new(color.green, 0), text="LONG OF")
plotshape(showSignals and shortOF, title="SHORT OF",
style=shape.triangledown, location=location.abovebar, size=size.tiny,
color=color.new(color.red, 0), text="SHORT OF")
// Alerts
alertcondition(longOF, title="LONG OF confirmed", message="LONG OF confirmed")
alertcondition(shortOF, title="SHORT OF confirmed", message="SHORT OF confirmed")
//────────────────────────────
// End-of-line labels (offset to the right)
//────────────────────────────
var label label9 = na
var label label20 = na
var label label200 = na
var label labelVW = na
if barstate.islast
// delete old labels before drawing new ones
label.delete(label9)
label.delete(label20)
label.delete(label200)
label.delete(labelVW)
// how far to move the labels rightward (increase if needed)
offsetBars = input.int(3)
label9 := label.new(bar_index + offsetBars, sma9, "9 SMA", style=label.style_label_left, textcolor=color.white, color=color.new(color.orange, 0))
label20 := label.new(bar_index + offsetBars, sma20, "20 SMA", style=label.style_label_left, textcolor=color.black, color=color.new(color.white, 0))
label200 := label.new(bar_index + offsetBars, sma200, "200 SMA", style=label.style_label_left, textcolor=color.white, color=color.new(color.black, 0))
labelVW := label.new(bar_index + offsetBars, vwap, "VWAP", style=label.style_label_left, textcolor=color.black, color=color.new(color.aqua, 0))
//────────────────────────────────────────────────────────────────────
//────────────────────────────────────────────
// Overnight High/Low + HOD/LOD (no POC)
//────────────────────────────────────────────
sessionRTH = input.session("0930-1600", "RTH Session (exchange tz)")
levelWidth = input.int(2, "HL line width", minval=1, maxval=5)
labelOffsetH = input.int(10, "HL label offset (bars to right)", minval=0)
isRTH = not na(time(timeframe.period, sessionRTH))
rthOpen = isRTH and not isRTH
// --- Track Overnight High/Low during NON-RTH; freeze at RTH open
// --- Track Overnight High/Low during NON-RTH; freeze at RTH open
var float onHigh = na
var float onLow = na
var int onHighBar = na
var int onLowBar = na
var float onHighFix = na
var float onLowFix = na
var int onHighFixBar = na
var int onLowFixBar = na
if not isRTH
if na(onHigh) or high > onHigh
onHigh := high
onHighBar := bar_index
if na(onLow) or low < onLow
onLow := low
onLowBar := bar_index
if rthOpen
onHighFix := onHigh
onLowFix := onLow
onHighFixBar := onHighBar
onLowFixBar := onLowBar
onHigh := na, onLow := na
onHighBar := na, onLowBar := na
// ──────────────────────────────────────────
// Candle coloring + labels for 9/20/VWAP crosses
// ──────────────────────────────────────────
showCrossLabels = input.bool(true, "Show cross labels")
// Helpers
minAll = math.min(math.min(sma9, sma20), vwap)
maxAll = math.max(math.max(sma9, sma20), vwap)
// All three lines
goldenAll = open <= minAll and close >= maxAll
deathAll = open >= maxAll and close <= minAll
// 9/20 only (exclude cases that also crossed VWAP)
dcUpOnly = open <= math.min(sma9, sma20) and close >= math.max(sma9, sma20) and not goldenAll
dcDownOnly = open >= math.max(sma9, sma20) and close <= math.min(sma9, sma20) and not deathAll
// Candle colors (priority: all three > 9/20 only)
var color cCol = na
cCol := goldenAll ? color.yellow : deathAll ? color.black :dcUpOnly ? color.lime :dcDownOnly ? color.red : na
barcolor(cCol)
// Labels
plotshape(showCrossLabels and barstate.isconfirmed and goldenAll, title="GOLDEN CROSS",
style=shape.labelup, location=location.belowbar, text="GOLDEN CROSS",
color=color.new(color.yellow, 0), textcolor=color.black, size=size.tiny)
plotshape(showCrossLabels and barstate.isconfirmed and deathAll, title="DEATH CROSS",
style=shape.labeldown, location=location.abovebar, text="DEATH CROSS",
color=color.new(color.black, 0), textcolor=color.white, size=size.tiny)
plotshape(showCrossLabels and barstate.isconfirmed and dcUpOnly, title="DC UP",
style=shape.labelup, location=location.belowbar, text="DC UP",
color=color.new(color.lime, 0), textcolor=color.black, size=size.tiny)
plotshape(showCrossLabels and barstate.isconfirmed and dcDownOnly, title="DC DOWN",
style=shape.labeldown, location=location.abovebar, text="DC DOWN",
color=color.new(color.red, 0), textcolor=color.white, size=size.tiny)
// ──────────────────────────────────────────
// Audible + alert conditions
// ──────────────────────────────────────────
alertcondition(goldenAll, title="GOLDEN CROSS", message="GOLDEN CROSS detected")
alertcondition(deathAll, title="DEATH CROSS", message="DEATH CROSS detected")
alertcondition(dcUpOnly, title="DC UP", message="Dual Cross UP detected")
alertcondition(dcDownOnly,title="DC DOWN", message="Dual Cross DOWN detected")
Session Indicator by FlipPointThe indicator is designed to display trading sessions on a TradingView chart. It highlights the time ranges of major sessions such as Frankfurt, London, New York, and Asia, providing the ability to analyze price behavior during different periods of the trading day.
Functional settings
1. Show history
Enables or disables the display of sessions on historical parts of the chart. If disabled, only today's sessions are shown.
2. Show Frankfurt / London / New York / Asia
Each parameter is responsible for displaying the corresponding trading session. When enabled, a highlighted zone appears on the chart, representing the time boundaries of that session.
3. Show titles
Displays text labels with the name of each session.
4. Color settings
Determines the fill color of the highlighted zones for the respective sessions.
5. Label text color
Defines the color of the session title labels.
6. PDH / PDL parameters
Show PDH — displays the previous day’s high (Previous Day High).
Show PDL — displays the previous day’s low (Previous Day Low).
PDH/PDL lines color — sets the color of the lines representing these levels.
Time zone alignment
The indicator is automatically aligned with the time zone set in the TradingView chart settings. The time boundaries of the sessions adjust to the selected time zone without requiring manual adjustments. This ensures accurate session display regardless of the user’s local time.
Session Indicator by FlipPointThe indicator is designed to display trading sessions on a TradingView chart. It highlights the time ranges of major sessions such as Frankfurt, London, New York, and Asia, providing the ability to analyze price behavior during different periods of the trading day.
Functional settings
1. Show history
Enables or disables the display of sessions on historical parts of the chart. If disabled, only today's sessions are shown.
2. Show Frankfurt / London / New York / Asia
Each parameter is responsible for displaying the corresponding trading session. When enabled, a highlighted zone appears on the chart, representing the time boundaries of that session.
3. Show titles
Displays text labels with the name of each session.
4. Color settings
Determines the fill color of the highlighted zones for the respective sessions.
5. Label text color
Defines the color of the session title labels.
PDH / PDL parameters
Show PDH — displays the previous day’s high (Previous Day High).
Show PDL — displays the previous day’s low (Previous Day Low).
PDH/PDL lines color — sets the color of the lines representing these levels.
Time zone alignment
The indicator is automatically aligned with the time zone set in the TradingView chart settings. The time boundaries of the sessions adjust to the selected time zone without requiring manual adjustments. This ensures accurate session display regardless of the user’s local time.
区间顶底与超级趋势系统Overview:
This is a comprehensive trading system designed to capture both trend reversals and trend-following opportunities. This script combines three core modules: Long-term EMA Tunnels (Vegas Style), Dynamic Support/Resistance Zones (based on historical highs/lows), and the classic SuperTrend. It aims to help traders identify "buy low, sell high" opportunities in ranging markets and catch major waves during strong trends.
Core Features Explained
1. EMA Long-term Trend Tunnel
Configuration: The script includes three specific Exponential Moving Averages (EMAs): 144, 169, and 233.
Function: These lines form a long-term support and resistance band. Price action above these lines is generally considered a bullish trend, while price below indicates a bearish trend.
2. Dynamic Range Top/Bottom
Logic: Calculates the current market structure based on the highest and lowest prices over a specific lookback period (default 130 bars), combined with ATR (Average True Range).
Visualization: Automatically draws Resistance Boxes (Red zone) at the top and Support Boxes (Green zone) at the bottom.
Data Panel: Displays the current ATR volatility percentage and a count of Bullish/Bearish K-lines within the period to help gauge the balance of power between buyers and sellers.
Signals: Reversal arrows appear when price tests these extreme zones and shows signs of rejection.
3. SuperTrend Integration
Tool: A classic trend-following indicator based on ATR and median price.
Usage: Acts as a reliable market noise filter. When SuperTrend is green, it is recommended to look for long setups; when red, look for short setups.
Highlighting: The script supports background highlighting, allowing you to identify the current trend direction at a glance.
How to Use This System
Trend Following Strategy: When the EMA lines are aligned upwards and the SuperTrend shows a Buy signal (Green background), look for long entries on pullbacks to the SuperTrend support line or near the EMAs.
Range Reversal Strategy: When price hits the upper or lower limits of the "Dynamic Range" and a SuperTrend flip or arrow reversal signal occurs, consider counter-trend trades.
Stop Loss: It is recommended to place stop losses just outside the SuperTrend line or the Dynamic Range boxes.
Settings
EMA: You can toggle the visibility of the EMA lines on or off.
Dynamic Range: Customizable lookback period (Length) and extension settings to fit your timeframe.
SuperTrend: Fully adjustable ATR Period and Multiplier to adapt to different asset volatilities.
Disclaimer: This script is for educational purposes only and does not constitute financial advice.
概述:
这是一个专为捕捉趋势反转与顺势交易设计的综合交易系统。本脚本结合了三大核心模块:长期均线隧道(Vegas风格)、动态支撑阻力区间(基于历史高低点)以及经典的超级趋势(SuperTrend)。旨在帮助交易者在震荡行情中识别高抛低吸的机会,并在趋势行情中抓住主升浪。
核心功能解析
1. EMA 长期趋势隧道 (EMA Tunnel)
脚本内置了三条特定的指数移动平均线 (EMA):144、169 和 233。
这些均线构成了长期趋势的支撑与阻力带。当价格位于这些均线之上时,通常视为多头趋势;反之则为空头趋势。
2. 动态顶底区间 (Dynamic Range Top/Bottom)
原理:基于过去一定周期(默认130根K线)内的最高价和最低价,结合 ATR(平均真实波幅)计算出当前的市场结构。
视觉化:图表中会自动绘制出顶部的阻力箱体(红色区域)和底部的支撑箱体(绿色区域)。
数据面板:箱体旁会显示当前的 ATR 波动率百分比,以及该周期内的 K 线买入/卖出计数,帮助判断多空力量对比。
信号:当价格触及这些极限区域并出现反转迹象时,会显示箭头提示。
3. 超级趋势 (SuperTrend)
经典的趋势跟踪工具,基于 ATR 和价格中位数计算。
用法:用于过滤市场噪音。当超级趋势为绿色时,建议只寻找做多机会;为红色时,建议只寻找做空机会。
高亮显示:脚本支持背景高亮,让你一目了然当前的趋势方向。
如何使用本指标进行交易
顺势交易:当 EMA 均线向上排列且 SuperTrend 显示买入信号(绿色背景)时,关注回调至 SuperTrend 支撑线或 EMA 附近的做多机会。
区间反转:当价格触及“动态顶底区间”的上沿或下沿,并且出现 SuperTrend 变色或箭头反转信号时,可考虑反向操作。
止损建议:建议将止损设置在 SuperTrend 线或动态箱体的外侧。
设置说明
你可以开启/关闭 EMA 显示。
可以自定义顶底区间的计算周期(Length)和延伸长度。
可以调整 SuperTrend 的 ATR 周期和乘数以适应不同的波动率。
Alzeerr Scalping StrategyAlzeerr Scalping Strategy
A high-precision intraday scalping strategy that combines VWAP, support/resistance levels, volume confirmation, RSI momentum shifts, and reversal candlestick patterns to identify low-risk, high-accuracy trade entries. The strategy only trades in the direction of the trend relative to VWAP, focuses on high-probability pullback entries, and uses tight stop-losses with small, consistent profit targets. Designed to maximize accuracy and minimize drawdown during high-liquidity market sessions.
VZO Enhanced価格の上昇バーと下降バーごとに出来高を分離し、それぞれをEMAで平滑化して算出した Volume Zone Oscillator(VZO)の改良版です。
デフォルトでは20期間のEMAを使用し、トレンド方向に対する出来高の偏りをパーセンテージで表示します。
オーバーボート/オーバーソールドの水準(初期値 +60 / -60)を背景色でハイライトし、短期トレードでの反転ポイントや勢いの弱まりを視覚的に捉えやすくしています。
This script is a modified version of the Volume Zone Oscillator (VZO) tailored for short–term trading.
It separates volume into positive volume (when the close is higher than the previous close) and negative volume (when the close is lower than the previous close), then applies EMA to:
* positive volume
* negative volume
* total volume
The oscillator is calculated as the percentage difference between positive and negative volume relative to total volume.
By default it uses a length of 20 (EMA Length = 20) and highlights overbought / oversold zones (initially +60 / -60) with background colors, making it easy to see:
* trend strength based on volume
* shifts in volume pressure
* potential reversals and divergences between price and volume.
Weekday Close vs Open — Last N (per weekday)# Weekday Close vs Open - Last N Occurrences
This indicator distills every weekday's historical open-to-close behavior into a compact table so you can see how "typical" the current session is before the day even closes. It runs independently of your chart timeframe by pulling daily OHLCV data under the hood, tracking the last **N** completed occurrences for each weekday, and refreshing only when a daily bar closes. On daily charts you can also shade every past bar that matches today's weekday (excluding the in-progress session) to reinforce the pattern visually while the table remains non-repainting.
## What It Shows
- **Win/Loss/Tie counts** - how many of the last `N` occurrences closed above the open (wins), below (losses), or inside the tie threshold you define as "flat".
- **Win % heatmap** - the win column is color-coded (deep green > deep red) so you immediately recognize strong or weak weekdays.
- **Advanced metrics (optional)** - average daily volume plus the average percentage excursion above/below the open (`AvgUp%`, `AvgDn%`) for that weekday.
- **Totals row** - aggregates every weekday into one row to estimate overall hit rate and average stats across the entire data set.
- **Weekday shading (optional)** - on daily charts you can tint every bar that matches today's weekday (all Mondays, all Fridays, etc.) for instant pattern recognition.
## How It Works
1. The script requests daily OHLCV data (non-repainting) regardless of the chart timeframe.
2. When a new daily bar confirms, it packs that day's data into one of seven arrays (one per weekday). Each day contributes five floats (O/H/L/C/V) so trimming and statistics stay in lockstep.
3. A helper function (`f_dayMetrics`) scans daily history to compute average volume, average excursion above/below the open, and win/loss/tie counts for the requested weekday.
4. The table populates on the last bar of the chart session, respecting your advanced/totals toggles and keeping text at `size.normal`.
## Reading the Table
- **Win/Loss/Tie columns**: raw counts taken from your chosen `N`.
- **Win %***: excludes ties from the denominator so it reflects only decisive closes.
- **AvgUp% / AvgDn%**: typical intraday extension (high vs open, open vs low) in percent.
- **Avg Vol**: arithmetic mean of daily volume for that weekday.
- **TOTAL row**: provides a global win rate plus volume/up/down averages weighted by how many samples each weekday contributed.
## Practical Uses
- Spot weekdays that historically trend higher or lower before entering a trade.
- Compare current price action against the typical intraday range (`AvgUp%` vs today's move).
- Filter mean-reversion vs breakout setups based on the most reliable weekday patterns.
- Quickly gauge whether today is behaving "in character" by referencing the highlighted row or the optional whole-chart weekday shading.
> **Tip:** Use smaller `N` values (e.g., 10-20) for adaptive, recent behavior and larger values (50+) to capture longer-term seasonality. Tighten the tie threshold if you want almost every candle to register as win/loss, or widen it to focus only on meaningful moves.
Top N Candle HighlighterTrack highest candle sizes on current timeframes. This short script:
1. Tracks the **top N largest candles** on the current chart
2. Option to use **body size** or **full candle range**
3. Highlights candles using `box.new()` (fully v6 compatible)
4. Optionally shows **rank and size labels**
5. Handles red, green, and doji candles differently with color
Liquidation Cascade Detector [QuantAlgo]🟢 Overview
The Liquidation Cascade Detector employs multi-dimensional microstructure analysis to identify forced liquidation events by synthesizing volume anomalies, price acceleration dynamics, and volatility regime shifts. Unlike conventional momentum indicators that merely track directional bias, this indicator isolates the specific market conditions where leveraged positions experience forced unwinding, creating asymmetric opportunities for mean reversion traders and market makers to take advantage of temporary liquidity imbalances.
These liquidation cascades manifest through various catalysts: overwhelming spot selling coupled with leveraged long liquidation forced unwinding creates downward spirals where organic sell pressure triggers margin calls, which generate additional selling that triggers more margin calls. Conversely, sudden large buy orders or coordinated buying can squeeze overleveraged shorts, forcing buy-to-cover orders that push price higher, triggering additional short stops in a self-reinforcing feedback loop. The indicator captures both scenarios, regardless of whether the initial catalyst is organic flow or forced liquidation.
For sophisticated traders/market makers deploying amplification strategies, this indicator serves as an early warning system for distressed order flow. By detecting the moments when cascading stop-losses and margin calls create self-reinforcing price movements, the system enables traders to: (1) identify forced participants experiencing capital pressure, (2) strategically add liquidity in the direction of panic flow to amplify displacement, (3) accumulate contra-positions during the overshoot phase, and (4) capture mean reversion profits as equilibrium pricing reasserts itself. This approach transforms destructive liquidation events into potential profit opportunities by systematically front-running and then fading coordinated forced selling/buying.
🟢 How It Works
The detection engine operates through a three-tier confirmation framework that validates liquidation events only when multiple independent market stress indicators align simultaneously:
► Tier 1: Volume Anomaly Detection
The system calculates bar-to-bar volume ratios to identify abnormal participation spikes characteristic of forced liquidations. The Volume Spike threshold filters for transactions where current volume significantly exceeds previous bar volume. When leveraged positions hit stop-losses or margin requirements, their simultaneous unwinding creates distinctive volume signatures absent during organic price discovery. This metric isolates moments when market makers face one-sided order flow from distressed participants unable to control execution timing, whether triggered by whale orders absorbing liquidity or cascading margin calls creating relentless directional pressure.
► Tier 2: Price Acceleration Measurement
By comparing current bar's absolute body size against the previous bar's movement, the algorithm quantifies momentum acceleration. The Price Acceleration threshold identifies scenarios where price velocity increases dramatically, a hallmark of cascading liquidations where each stop-loss triggers additional stops in a feedback loop. This calculation distinguishes between gradual trend development (irrelevant for amplification attacks) and explosive moves driven by forced order flow requiring immediate liquidity provision. The metric captures both panic selling scenarios where spot sellers overwhelm bid liquidity triggering long liquidations, and short squeeze dynamics where aggressive buying exhausts offer-side depth forcing short covering.
► Tier 3: Volatility Expansion Analysis
The indicator measures bar range expansion by computing the current high-low range relative to the previous bar. The Volatility Spike threshold captures regime shifts where intrabar price action becomes erratic, evidence that market depth has evaporated and order book imbalance is driving price. Combined with body-to-range analysis indicating strong directional conviction, this metric confirms that volatility expansion reflects genuine liquidation pressure rather than random noise or low-volume chop.
*Supplementary Confirmation Metrics
Beyond the three primary detection tiers, the system analyzes additional candle characteristics that distinguish genuine liquidation events from ordinary volatility:
► Candle Strength: Measures the ratio of candle body size to total bar range. High readings (above 60%) indicate strong directional conviction where price moved decisively in one direction with minimal retracement. During liquidations, distressed traders execute market orders that drive price aggressively without the normal back-and-forth of balanced trading. Strong-bodied candles with minimal wicks confirm forced participants are accepting any available price rather than attempting to minimize slippage, validating that observed volume and price acceleration stem from liquidation pressure rather than routine trading.
► Volume Climax: Identifies when current volume reaches the highest level within recent history. Climax volume events mark terminal liquidation phases where maximum panic or squeeze intensity occurs. These extreme participation spikes typically represent the final wave of forced exits as the last remaining stops are triggered or the final shorts capitulate. For mean reversion traders, volume climax signals provide optimal reversal entry timing, as they mark maximum displacement from equilibrium when all forced sellers/buyers have been exhausted.
*Directional Classification
The system categorizes cascades into two actionable classes:
1. Short Liquidation (Bullish Cascade): Upward price movement combined with cascade patterns equals forced short covering. This occurs when aggressive spot buying (often from whales placing large market orders) or coordinated buy programs exhaust available offer liquidity, spiking price upward and triggering clustered short stop-losses. Short sellers experiencing margin pressure must buy-to-close regardless of price, creating artificial demand spikes that compound the initial buying pressure. The combination of organic buying and forced covering creates explosive upward moves as each liquidated short adds buy-side pressure, triggering additional shorts in a self-reinforcing loop. Market makers can amplify this by lifting offers ahead of forced buy orders, then selling into the exhaustion at elevated levels.
2. Long Liquidation (Bearish Cascade): Downward price movement combined with cascade patterns equals forced long liquidation. This manifests when heavy spot selling (panic sellers, large institutional unwinds, or coordinated distribution) overwhelms bid-side liquidity, breaking through support levels where long stop-losses cluster. Over-leveraged longs facing margin calls must sell-to-close at any price, generating artificial supply waves that compound the initial selling pressure. The dual force of organic selling coupled with forced long liquidation creates downward spirals where each margin call triggers additional margin calls through further price deterioration. Amplification opportunities exist by hitting bids ahead of panic selling, accumulating long positions during the capitulation, and reversing as sellers exhaust.
🟢 How to Use
1. For Mean Reversion Traders
When the indicator highlights a short liquidation cascade (green background), this signals that shorts are experiencing forced buy-to-cover pressure, often initiated by whale bids or aggressive spot buying that triggered the squeeze. Mean reversion traders can interpret this as a temporary upward dislocation from fair value. As the dashboard shows declining momentum metrics and the cascade highlighting stops, this represents a potential fade opportunity. Enter short positions expecting price to revert back toward pre-cascade levels once the forced buying exhausts and the initial large buyer completes their accumulation.
When a long liquidation cascade triggers (red background), longs are undergoing forced sell-to-close liquidation, typically catalyzed by overwhelming spot selling that breached key support levels. This creates artificial downward pressure disconnected from fundamental value, as margin-driven forced selling compounds organic sell flow. Mean reversion traders wait for the cascade to complete (dashboard transitions from active liquidation status to neutral), then enter long positions anticipating snap-back toward equilibrium pricing as panic subsides and forced sellers are exhausted.
You can also monitor the dashboard's Volume Climax indicator. When it displays "YES" during an active cascade, this suggests the liquidation is reaching its terminal phase, whether driven by the final shorts being squeezed out or the last leveraged longs capitulating. Mean reversion entries become highest probability at this point, as maximum displacement from fair value has occurred. Wait for the next 1-3 bars after climax confirmation, then enter contra-trend positions with tight stops.
The Candle Strength metric also helps validate entry timing. When candle strength readings drop significantly after maintaining elevated levels during the cascade, this divergence indicates absorption is occurring. Market makers are stepping in to provide liquidity, supporting your mean reversion thesis. Strong candle bodies during the cascade followed by weaker bodies signal the forced flow is diminishing.
2. For Momentum & Trend Following Traders
When price breaks through a significant resistance level and immediately triggers a short liquidation cascade (green background), this confirms breakout validity through forced participation. Shorts positioned against the breakout are now experiencing margin pressure from the combination of breakout momentum and potential whale buying, creating self-reinforcing buying that propels price higher. Enter long positions during the cascade or immediately after, as the forced covering provides fuel for extended momentum continuation.
Conversely, when price breaks below key support and triggers a long liquidation cascade (red background), the breakdown is validated by forced selling from trapped longs. Heavy spot selling coupled with margin liquidations creates accelerated downside momentum as liquidations cascade through clustered stop-loss levels. Enter short positions as the cascade develops, riding the combined force of organic selling and forced liquidation for extended trend moves.
3. For Sophisticated Traders & Market Makers
► Amplification Attack Execution
Sophisticated operators can exploit cascades through systematic amplification positioning. When a short liquidation is detected (green highlight activating), often initiated by whale bids absorbing offer liquidity, place aggressive buy orders to front-run and amplify the forced short covering. This exacerbates upward pressure, pushing price further from equilibrium and triggering additional clustered stops. Simultaneously begin accumulating short positions at these artificially elevated levels. As dashboard metrics indicate cascade exhaustion (volume spike declining, climax signal appearing, candle strength weakening), flatten amplification longs and hold accumulated shorts into the mean reversion.
For long liquidations (red highlight), typically catalyzed by heavy spot selling overwhelming bid depth, execute the inverse strategy. Place aggressive sell orders to compound the panic selling, amplifying downward displacement and accelerating margin call triggers. Layer long entries at depressed prices during this amplification phase as forced liquidation selling creates artificial supply. When dashboard signals cascade completion (metrics normalizing, volume climax passing), exit amplification shorts and maintain long positions for the reversal trade.
► Market Making During Liquidity Crises
During detected cascades, temporarily adjust quote placement strategy. When dashboard shows all three confirmation metrics activating simultaneously with strong candle bodies, this indicates the highest probability liquidation event, whether from whale order flow or cascading margin calls. Widen spreads dramatically to capture enhanced edge during the liquidity vacuum. Alternatively, step away from quote provision entirely on your natural inventory side (stop offering during short cascades driven by aggressive buying, stop bidding during long cascades driven by overwhelming selling) to avoid adverse selection from forced flow.
Use cascade detection to inform inventory management. During short cascades initiated by large buy orders or short squeezes, reduce existing short inventory exposure while allowing the forced buying to push price higher. Rebuild short inventory only at the inflated levels created by liquidation pressure. During long cascades where spot selling compounds leveraged liquidation, reduce long inventory and use the forced selling to reaccumulate at artificially depressed prices rather than providing stabilizing liquidity too early.
► Sequential Positioning Strategy
Advanced traders can structure trades in phases: (1) Initial amplification orders placed immediately upon cascade detection to front-run forced flow, (2) Contra-position accumulation scaled in as displacement extends and dashboard readings intensify, (3) Amplification trade exit when metrics show deceleration or candle strength weakens, (4) Contra-position hold through mean reversion, targeting pre-cascade price levels. This sequential approach extracts profit from both the dislocation phase and the subsequent equilibrium restoration.
► Risk Monitoring
If cascade highlighting persists across many consecutive bars while dashboard volume readings remain extremely elevated with sustained strong candle bodies, this suggests sustained institutional deleveraging or persistent whale activity rather than simple retail liquidation. Reduce amplification position sizing significantly, as these extended events can exhibit delayed mean reversion. Professional counter-parties may be establishing dominant positions, limiting your edge.
When volatility spike metrics decline while cascade highlighting continues, professional absorption is occurring. Proceed cautiously with amplification strategies, as intelligent liquidity providers are already positioning for the reversal, potentially front-running your intended reversal trade. Similarly, if large liquidation wicks appear during cascades, this indicates partial absorption is happening, suggesting more sophisticated players are taking the opposite side of distressed flow.
52-Week High Drawdown (Events, Freq & Current)52-Week High Drawdown - Events, Freq & Current
OVERVIEW
Track and analyze drawdowns from 52-week highs with comprehensive statistics on drawdown events, frequency, and current market positioning. Perfect for risk management, historical analysis, and understanding volatility patterns.
KEY FEATURES
📊 Real-Time Drawdown Tracking
Visual area chart showing current intraday maximum drawdown from rolling high
Automatically plots depth below zero line for easy interpretation
Color-coded reference lines at -10% and -20% levels
📈 Event-Based Historical Analysis
Automatically categorizes drawdown cycles across four severity zones:
5-10% Drawdowns - Minor corrections
10-15% Drawdowns - Moderate pullbacks
15-20% Drawdowns - Significant corrections
20%+ Drawdowns - Major corrections/bear markets
⏱️ Frequency Metrics
Calculates average time between events for each category, displayed as "Every X months" to understand typical correction patterns.
🎯 Current Cycle Tracking
Real-time display of maximum drawdown depth in the current cycle, helping you gauge present market position.
📅 Smart Timeframe Adaptation
Auto-Adjust Mode: Automatically selects optimal lookback (Daily=252, Weekly=52, Monthly=12)
Manual Mode: Set custom lookback period for specialized analysis
HOW IT WORKS
The indicator identifies drawdown cycles - periods from one high to the next. When price touches a new rolling high, the previous cycle ends and is categorized by its maximum depth.
Cycle Logic:
Tracks deepest point reached since last high
When price touches/exceeds rolling high, cycle completes
Cycle categorized into appropriate drawdown zone
New cycle begins
This provides accurate event counting without double-counting fluctuations within larger drawdowns.
PRACTICAL APPLICATIONS
Risk Management
Understand typical drawdown patterns for position sizing
Set realistic stop-loss levels based on historical norms
Anticipate potential correction depths during bull markets
Market Context
Identify when current drawdowns are extreme vs. typical
Compare across different assets and timeframes
Historical perspective during volatile periods
Strategic Planning
Time entries during typical correction zones
Recognize when drawdowns exceed historical norms
Build resilience strategies based on frequency data
SETTINGS GUIDE
Auto-Adjust Lookback by Timeframe
Checked: Automatically uses appropriate period for chart timeframe
Unchecked: Uses manual lookback value
Manual Lookback Length
Default: 252 (trading days in a year)
Customize for specific analysis periods
Higher values = longer historical perspective
Table Position
Choose from Top Right, Bottom Right, Top Left, or Bottom Left based on your chart layout.
INTERPRETATION TIPS
Frequency data becomes more reliable with longer history (5+ years ideal)
"Never" frequency indicates zero events in available data range
Current Cycle Max shows 0.00% at new highs, otherwise displays deepest point
Compare frequencies across assets to understand relative volatility profiles
BEST USED FOR
Stocks, ETFs, and Indices with sufficient historical data
Long-term investing and swing trading strategies
Portfolio risk assessment and stress testing
Educational purposes - understanding market behavior
Multi-timeframe analysis (daily, weekly, monthly)
TECHNICAL NOTES
Uses ta.highest() for efficient rolling high calculation
Event detection logic prevents double-counting
Frequency calculated from actual data start time to present
All calculations update in real-time with each new bar
💡 Tip: Run this indicator on major indices like SPY or QQQ with maximum available history to build a comprehensive baseline for equity market corrections.
Created to provide institutional-grade drawdown analysis in an accessible format. Free to use and modify.
ATR Volatility AlertsOverview:
This is a dynamic alert tool based on the Average True Range (ATR), designed to help traders detect sudden price movements that exceed normal volatility levels. Whether you are trading breakouts or monitoring for abnormal spikes, this indicator visualizes these events on the chart and triggers system alerts when the price move exceeds your specified ATR multiplier.
Key Features:
Fully Customizable ATR Range:
You can adjust the ATR Length (Default: 14) and the Multiplier (Default: 1.5x).
Tip: Increase the multiplier (e.g., to 2.0 or 3.0) to catch only extreme volatility, or lower it for scalping smaller moves.
Visual Chart Signals:
Visual markers appear instantly when a bar's movement exceeds the ATR threshold.
Green Triangle: Indicates an Upward Spike.
Red Triangle: Indicates a Downward Spike.
Flexible System Alerts:
Designed to integrate seamlessly with TradingView's alert system. You can choose from three specific alert directions based on your strategy:
1.Price Spike Up: Triggers only on sharp upward moves.
2.Price Spike Down: Triggers only on sharp downward moves.
3.Bidirectional Volatility Alert: Triggers on BOTH huge pumps and dumps.
How to Set Alerts:
Click the "Create Alert" button in TradingView.
Select ATR Volatility Alerts in the "Condition" dropdown.
Choose the specific logic you need:
· Select Price Spike Up for bullish monitoring.
· Select Price Spike Down for bearish monitoring.
· Select Bidirectional Volatility Alert to watch for any volatility expansion.
RaymondTrending [Qanexra] - Advanced Volatility GaugePrice direction tells you where the market is going, but it doesn't tell you if it has the gas to get there.
RaymondTrending is a proprietary volatility instrument designed to measure the raw "energy" of the market. Unlike standard indicators that lag significantly, this tool uses a rapid-response composite algorithm to detect immediate shifts in market volatility.
What lies inside? The core engine is built on a multi-layered calculation of market range. It filters out static noise to provide a single, clean data stream representing the true "pulse" of the asset.
How to use it:
Rising Line: Volatility is expanding. The current trend (up or down) is backed by real volume and energy.
Falling Line: Volatility is collapsing. The market is entering a consolidation or "squeeze" phase.
Spikes: Sudden spikes often indicate breakout events or climatic tops/bottoms.
Access: This is a closed-source tool. Please contact Qanexra for access.
RaymondRatio [Qanexra] - Volatility with Doji Noise CancellationThe Problem with Standard Volatility: Most volatility indicators force a calculation on every single candle, regardless of quality. This means that during periods of market indecision (Dojis), your indicators are digesting "noise," leading to lag and false signals when the market finally moves.
The Solution: RaymondRatio Developed by Qanexra, the RaymondRatio is a sophisticated volatility gauge that introduces a proprietary "Doji Pause" mechanism. Instead of smoothing over noise, this indicator intelligently ignores it.
How It Works:
Volatility Engine: The core calculates the Raymond Trending value derived from a composite of short-term compare with the long-term volatility.
The Doji Pause: The indicator constantly monitors the Body-to-Range ratio of every candle. If a candle is detected as a Doji (indecision), the indicator freezes its calculation. It retains the last known "valid" volatility state.
The Ratio: The output is a ratio.
> 1.0: Volatility is expanding relative to the baseline (Active Market).
< 1.0: Volatility is compressing (Squeeze/Consolidation).
Key Features:
Smart Filtering: Background highlights in Gray indicate "Paused" zones where the market is undecided.
Clean Data: Prevents the baseline from being dragged down by low-quality price action.
Customizable Threshold: Users can define what constitutes a "Doji" (e.g., body is less than 30% of the range).
How to Trade: Use this as a filter for your existing strategy.
Green Light: When the Ratio is above 1.0 and rising, the market is in a valid expansion phase.
Red Light: When the Ratio is below 1.0 or "flatlining" during Doji Pauses, stay out of the market to avoid chop.
Two Supertrend Crossover SignalThis indicator is designed to visualize trend shifts using two Supertrend lines and a crossover-based signal system.
It also colors the area between the two Supertrend lines based on the current trend direction, making trend changes easy to identify at a glance.
How It Works
The indicator plots:
Fast Supertrend (shorter ATR length, lower factor)
Slow Supertrend (longer ATR length, higher factor)
A crossover between these two Supertrend lines indicates a possible trend shift.
Buy Signal
A BUY signal occurs when: Fast Supertrend crosses ABOVE Slow Supertrend
This suggests bullish momentum strengthening.
Sell Signal
A SELL signal occurs when: Fast Supertrend crosses BELOW Slow Supertrend
This suggests bearish momentum increasing.
Buy/Sell Signal Labels
The chart displays clear BUY (green) and SELL (red) labels at every crossover.
These signals help traders quickly pinpoint potential entries or exits.
This indicator is ideal for:
✓ Trend trading
✓ Swing trading
✓ Identifying momentum shifts
✓ Visual confirmation of market direction
✓ Combining with price action or EMA filters
You may adjust ATR length and multiplier depending on the timeframe:
For Scalping (1–5 min):
Fast ATR: 5–7
Slow ATR: 10–14
For Intraday (5–15 min):
Fast ATR: 7
Slow ATR: 10–14
For Swing Trading (1h–4h):
Fast ATR: 10
Slow ATR: 20
Important Notes
This indicator does not repaint the Supertrend values.
Signals are based on confirmed crossovers.
Use stop-loss and risk management appropriate for your strategy.
Always combine with market context (support/resistance, volume, etc.)
ROC x4 (Multi-Period Overlay) + Table📈 ROC x4 (Multi-Period Momentum Suite) + Compact Table
A clean, powerful momentum indicator that overlays four Rate-of-Change (ROC) periods inside a single pane — without needing to stack multiple separate indicators.
This script is designed for traders who use multi-timeframe momentum confirmation, trend strength validation, and early detection of rotation, compression, or expansion in price behavior.
🔍 What This Indicator Does
Plots 4 different ROC lengths in one panel
Includes a compact real-time ROC table that fits even in small panes
Tracks momentum shifts, trend acceleration, slowdowns, and regime transitions
Allows manual input for all 4 ROC lengths
Optional smoothing to reduce noise
Zero-line toggle for momentum direction clarity
Perfect for traders who want to monitor short-term, mid-term, and long-term ROC simultaneously.






















