EMA with RSI Color (Custom Lengths)本指标将指数移动平均线(EMA)与相对强弱指标(RSI)相结合,用于辅助判断市场的趋势方向与超买 / 超卖状态。
用户可自定义 EMA 的长度(如 20 / 60 / 120),并灵活选择 EMA 的计算周期:
(1) 使用当前图表周期,或
(2) 使用指定的高 / 低周期(如 1m、5m、1h、4h、1D、1W)
RSI 默认采用 14 周期,并支持自定义超买与超卖阈值:
(1) 当 RSI 低于超卖阈值(如 30)时,对应时间段内的 EMA 将自动变为绿色,提示可能存在超卖反弹机会;
(2) 当 RSI 高于超买阈值(如 70)时,对应时间段内的 EMA 将自动变为红色,提示可能存在超买回调风险;
(3) 当 RSI 处于中性区间时,EMA 显示为用户设定的默认颜色。
此外,RSI 的计算周期也可选择:
(1) 与 EMA 使用相同的周期(用于多周期趋势确认),或
(2) 使用当前图表周期(用于短周期动量判断)。
This indicator combines Exponential Moving Averages (EMA) with the Relative Strength Index (RSI) to assist in identifying trend direction and overbought/oversold conditions.
Users can define custom EMA lengths (e.g., 20 / 60 / 120) and flexibly choose the EMA calculation timeframe:
(1) Use the current chart timeframe, or
(2) Use a specified higher or lower timeframe (e.g., 1m, 5m, 1h, 4h, 1D, 1W).
The RSI uses a default 14-period setting, with customizable overbought and oversold levels:
(1) When RSI falls below the oversold threshold (e.g., 30), the EMA segments corresponding to that period are automatically colored green, indicating potential oversold rebound opportunities;
(2) When RSI rises above the overbought threshold (e.g., 70), the EMA segments turn red, signaling potential overbought pullback risk;
(3) When RSI remains within the neutral zone, EMA lines retain their user-defined default colors.
The RSI calculation timeframe can also be selected:
(1) The same timeframe as EMA (for multi-timeframe trend confirmation), or
(2) The current chart timeframe (for short-term momentum analysis).
M-oscillator
Trend Pulse Oscillator█ OVERVIEW
Trend Pulse Oscillator is a momentum oscillator that combines short-term trend strength analysis (price deviation from a dynamic trend line) with optional reference to a higher timeframe trend context. It visualizes market pulse through smoothed oscillator waves, fixed overbought/oversold levels, and zero-line cross signals indicating momentum shifts.
The indicator assists in identifying potential entry points after strong moves, early signs of exhaustion or direction change, and supports decision-making by providing longer-period trend awareness
█ CONCEPT
Built upon the SwiftTrend logic. The core idea is to measure how far price deviates from the adaptive trend line (margin line). Greater deviation in the direction of the trend indicates stronger momentum. When price returns toward the trend line — especially from overbought or oversold zones — it often signals a correction or potential reversal.
- The oscillator displays the deviation of price from the trend line and applies user-selected smoothing (EMA, SMA, RMA, WMA).
- The longer-period trend controls candle coloring (SwiftTrend candles) and can be used discretionarily as a directional bias/filter for signals.
- The color of the oscillator itself depends solely on whether the smoothed value is above or below zero (green above, red below).
Fixed OB/OS levels and the zero line help visually evaluate the strength of the deviation. Areas significantly above the OB level or below the OS level indicate extreme price stretch away from the trend line and increased probability of mean reversion.
█ FEATURES
Calculations
- Average candle body size — calculated separately for oscillator and longer-period trend
- Dynamic trend line (adaptive margin line) + fixed OB / OS threshold levels
- Multiple oscillator smoothing options
- Momentum expressed as oscillating waves
- Detection of OB/OS crossovers and zero-line breaks
Visualization
- Oscillator waves colored according to sign (green above zero, red below zero)
- Fixed OS level (oversold) — gray, dashed line
- OB level (overbought) — color reflects the current longer-period trend direction (green when price is above the longer-period trend line, red when below)
- OB and OS levels frequently displayed with light gradient fill for readability (OB gradient inherits HTF trend color; OS gradient remains neutral/gray)
- Optional SwiftTrend candle coloring — candles colored according to longer-term trend direction and strength (gradient intensity)
- Transparent, layered fill under oscillator waves (stronger near the wave, fading toward zero)
Signals
- Long / Short — triggered on crossover/crossunder of OB/OS levels (with anti-duplication logic per wave)
- Zero Line Long / Zero Line Short — zero-line break confirmed by candle color direction
- Longer-period trend change — visual and alert when longer-term trend flips
- Important: There is no automatic filtering of OB/OS or zero-line signals by the longer-period trend — traders should apply longer-period trend bias manually
Alerts
- Long Signal
- Short Signal
- Zero Line Long
- Zero Line Short
- Longer-Period Trend Change
█ HOW TO USE
Add the indicator via Pine Editor (paste the code) or search for “Trend Pulse Oscillator” in the TradingView public library.
Main settings
- Osc Average Body Periods – averaging period for oscillator body size
- Osc Band Multiplier / Tolerance Multiplier – controls width and sensitivity of oscillator bands
- Smoothing Type / Length – smoothing method and period for the oscillator wave
- Trend Average Body Periods / Band / Tolerance – parameters for the longer-period trend line
- Overbought Level / Oversold Level – fixed threshold values
- Enable Candle Coloring – turns on SwiftTrend-style candle coloring based on the longer-period trend
- Gradient & fill options – control visibility and transparency of gradients and wave fills
Trend & candle coloring logic
- Price above trend line → bullish (green tones)
- Price below trend line → bearish (red tones)
█ APPLICATION
Momentum trading
- Direction and slope of oscillator waves indicate current impulse strength
- Return toward zero or zero-line cross can serve as an early warning of correction or reversal
Trend following
- The longer-period trend acts as a discretionary directional filter
- Highest-probability approach: take signals primarily in the direction of the longer-period trend
Overbought / Oversold
- Fixed OB/OS levels mark zones of extreme deviation from the trend line
- Large extensions away from the trend line increase the likelihood of pullback or reversal
█ NOTES
- This is a supporting tool — never use it as a standalone trading system
- Best results are achieved when combined with key support/resistance levels, market structure analysis, and longer-period trend context
- OB/OS crosses and zero-line breaks are orientation points only — always validate them against the broader trend picture
SMA Squeeze Oscillator█ OVERVIEW
SMA Squeeze Oscillator is a momentum oscillator based on the relationship between multiple SMA moving averages. It combines volatility compression analysis (Squeeze), wave-style momentum structure, trend filtering, breakout signals, and divergence detection.
The indicator is designed to identify periods of market compression (low volatility), which are often followed by dynamic price moves. Additionally, it visualizes momentum and trend structure in a clean and readable way, without using a classic histogram.
█ CONCEPT
The core of the indicator is built on three SMA moving averages with different lengths. The distance between them (spread) is compared to ATR, which allows the detection of volatility compression (Squeeze).
- When the SMA spread is smaller than ATR × multiplier, the market is considered to be in Squeeze
- When the spread expands beyond this threshold, the market exits the Squeeze – often signaling the beginning of an impulse
Momentum is calculated from the relationship between the faster SMA and the slower SMAs, then smoothed. Instead of a traditional histogram, the indicator displays continuous momentum waves above and below the zero line, making changes in momentum structure easier to read.
An optional SMA trend filter can be used to limit signals to the direction of the current trend.
█ FEATURES
Calculations
- three SMA moving averages
- ATR as a volatility measure
- Squeeze detection based on SMA spread
- wave-based momentum oscillator with smoothing
- optional SMA trend filter
Visualization
- momentum waves above / below the zero line
- bullish / bearish trend fills
- separate fill and color for Squeeze phases
- thick zero line reflecting current trend
- wave-style candle coloring based on momentum
- first wave markers after exiting Squeeze
- bullish and bearish divergence visualization
Signals
- momentum zero-line cross (Bull / Bear Cross)
- first momentum wave after Squeeze
- classic bullish and bearish divergences
Alerts
- Bull Cross
- Bear Cross
- First Bullish after Squeeze
- First Bearish after Squeeze
- Bullish Divergence
- Bearish Divergence
█ HOW TO USE
Adding the indicator
Paste the code into Pine Editor or search for “SMA Squeeze Oscillator” on TradingView.
Main settings
- SMA 1 / 2 / 3 – lengths of SMAs used for Squeeze and momentum
- ATR Length / Multiplier – Squeeze detection sensitivity
- ATR Multiplier = 0 → the indicator does not display Squeeze zones
- Momentum Smoothing – smoothing of momentum waves
- Enable SMA Filter – trend filter
- the current trend is reflected by the zero-line color
- price below SMA → bearish trend
- price above SMA → bullish trend
- when enabled, it filters Bull / Bear Cross and First Bullish / Bearish after Squeeze signals, allowing only those aligned with the trend
- Enable candle coloring – wave-style candle coloring
- Enable Divergence – divergence detection
█ APPLICATION
Squeeze & Breakout
Squeeze phases indicate low volatility and energy accumulation. A breakout from Squeeze often leads to a strong directional move.
The SMA filter is not required – instead, users may apply:
- a more advanced trend filter
- structural confirmation (level break, correction completion)
- additional price-action tools
Momentum trading
The direction and slope of momentum waves help assess impulse strength and loss of momentum.
A momentum reversal can act as an early signal of a correction or potential trend change, often before it becomes visible on price.
Divergences
The indicator detects classic bullish and bearish divergences.
Important notes:
- divergences appear with a delay equal to the pivot length required for detection, by default, this delay is two candles
- divergences forming on small momentum waves or inside a Squeeze are often misleading and should be treated with caution
█ NOTES
- the indicator works best when used in market context
- Squeeze reflects volatility, not direction
- it is not a standalone trading system
Reversal Detection v3.2 - FX Optimized | Non-Repainting
Acknowledgment:
Special thanks to TradingView user FakhriSaad for identifying FX compatibility issues that led to the v3.2 optimization.
DESCRIPTION:
Reversal Detection Pro v3.2 - FX Optimized | Non-Repainting
Professional reversal detection indicator with 100% non-repainting signals and ATR-based adaptive sensitivity for all instruments and timeframes.
Key Features:
Non-repainting reversal signals with visual labels
ATR-adaptive sensitivity (0.8x to 3.5x multiplier)
FX-optimized thresholds (0.02%-0.08%) for currency pairs
Triple EMA trend confirmation (9/14/21 periods)
Supply/Demand zone visualization
5 sensitivity presets: Very High to Very Low
Comprehensive alert system
Works on forex, futures, stocks, crypto
What's New in v3.2:
Reduced percentage thresholds by ~40% for FX pairs
Changed default absolute reversal from 1.0 to 0.0001 for forex compatibility
Optimized for 2-10 pip reversals on EUR/USD, GBP/USD, USD/JPY
Maintained excellent performance on futures (MNQ, ES, NQ) and other instruments
Universal Compatibility:
Automatically adapts to any instrument's volatility using ATR normalization. Works on 1-minute scalping through daily swing trading timeframes.
HOW TO USE
Quick Start Guide:
Add to Chart - Apply indicator to any instrument/timeframe
Choose Sensitivity - Select preset based on your trading style
Set Signal Mode - Use "Confirmed Only" for non-repainting signals
Enable Alerts - Set up notifications for reversal signals
Customize Display - Adjust labels, zones, and info table to preference
Sensitivity Selection by Timeframe:
Forex Pairs (EUR/USD, GBP/USD, USD/JPY, etc.):
1-2 minute: Very High or High (2-5 pip reversals)
5-15 minute: Medium (5-10 pip reversals)
30-60 minute: Low (10-20 pip reversals)
4H-Daily: Very Low (20+ pip reversals)
Futures Contracts (MNQ, ES, NQ, etc.):
1-5 minute: High or Medium
15-30 minute: Medium
1-4 hour: Low
Daily: Very Low
Stocks & Crypto:
Start with Medium sensitivity
Adjust based on volatility and signal frequency
Higher volatility = Lower sensitivity recommended
Understanding the Signals:
Reversal Labels:
Green "REVERSAL" = Bullish reversal at potential support
Red "REVERSAL" = Bearish reversal at potential resistance
Price shown on label = Exact reversal pivot price
Horizontal line extends from signal for quick reference
Supply/Demand Zones (Optional):
Green box = DEMAND zone (formed at pivot lows)
Red box = SUPPLY zone (formed at pivot highs)
Thin horizontal rectangles mark key price levels
Zones extend forward showing potential future support/resistance
Info Table (Top Right):
Current settings display
Real-time ATR value
Calculated reversal threshold
Current trend status (Bullish/Bearish/Neutral)
Preview Mode (Optional):
Transparent labels show forming reversals in real-time
Preview signals may disappear if reversal doesn't confirm
Educational tool for understanding signal development
Not recommended for actual trading decisions
Key Settings Explained:
SIGNAL CONTROLS:
Signal Mode:
"Confirmed Only" = No repainting (recommended for trading)
"Confirmed + Preview" = Shows both types (educational)
"Preview Only" = Real-time signals only (study mode)
Extra Confirmation Bars: Add 0-5 bar delay for conservative signals
MAIN CONTROLS:
Sensitivity Preset: Choose from 5 presets or Custom
Very High: Maximum signals, 2-3 pip moves (FX scalping)
High: Frequent signals, 3-5 pip moves
Medium: Balanced, 5-10 pip moves (recommended default)
Low: Quality signals, 10-20 pip moves
Very Low: Major reversals only, 20+ pip moves
ADVANCED SETTINGS (Custom Mode Only):
Calculation Method:
"average" = Smoother detection (recommended)
"high_low" = More responsive to wicks
Percentage Reversal: Minimum % price move (0.02-0.08% for FX)
Absolute Reversal: Safety floor (0.0001 for FX, 1.0 for futures)
ATR Multiplier: Primary control (lower = more sensitive)
ATR Length: Lookback period (14 bars standard)
ZONES:
Supply/Demand Display: Pivot, Arrow, or None
Show Supply/Demand Zones: Enable rectangular price zones
Number of Zones: Display 0-20 recent zones
Zone Box Extension: Forward projection length (20-50 bars)
Zone Thickness: Visual thickness (0.01% recommended)
LABELS:
Stop Line Extension: Length of horizontal price lines (5-10 bars)
Maximum Lines: How many lines to keep on chart (10 default)
Label Size: Small, Normal, or Large text
INFO TABLE:
Show Info Table: Toggle settings display on/off
Table Position: 6 screen position options
Table Size: Adjust text size for readability
Trading Strategy Examples:
Scalping Strategy (1-5 min charts):
Set sensitivity to High or Very High
Wait for reversal signal
Enter on signal bar close
Place stop loss 2-3 pips beyond reversal price
Take profit at 5-10 pip targets or next reversal signal
Trend Trading (15-60 min charts):
Set sensitivity to Medium
Check Info Table for trend direction
Only take reversal signals aligned with trend
Enter when REVERSAL matches trend (Bullish trend + Green signal)
Use supply/demand zones for profit targets
Swing Trading (4H-Daily charts):
Set sensitivity to Low or Very Low
Enable supply/demand zones
Wait for reversal at zone boundaries
Combine with higher timeframe trend analysis
Use zones as multiple take-profit levels
Confirmation Tool:
Use with your existing strategy
Set to Confirmed Only mode
Take your setup signals only when reversal confirms
Use reversal price as stop loss reference
Alert Configuration:
Available Alert Types:
REVERSAL Bullish - Green reversal signal
REVERSAL Bearish - Red reversal signal
Any REVERSAL - Either direction
EMA Buy Signal - Trend turns bullish
EMA Sell Signal - Trend turns bearish
Trend Changed to BULLISH - Confirmed trend change
Trend Changed to BEARISH - Confirmed trend change
STRONG Bullish Signal - Reversal + trend aligned
STRONG Bearish Signal - Reversal + trend aligned
Setting Up Alerts:
Right-click chart → Add Alert
Select "Reversal Pro v3.2" as Condition
Choose desired alert type
Set "Once Per Bar Close" for non-repainting
Configure notification method (popup, email, webhook)
Best Practices:
✓ Start with Medium sensitivity and adjust based on results
✓ Use Confirmed Only mode for actual trading
✓ Combine reversal signals with trend direction for higher probability
✓ Set alerts for "Once Per Bar Close" to avoid repainting
✓ Practice on demo account before live trading
✓ Use supply/demand zones for confluence
✓ Adjust sensitivity based on market volatility conditions
✓ Lower sensitivity during high-impact news events
✗ Don't trade every signal - be selective
✗ Don't ignore trend context (check Info Table)
✗ Don't use Preview signals for live trading
✗ Don't overtrade - quality over quantity
✗ Don't risk more than 1-2% per trade
✗ Don't ignore proper risk management
✗ Don't trade during major news releases without experience
Troubleshooting:
No Signals Appearing:
Check Absolute Reversal setting (should be 0.0001 for FX pairs)
Try increasing sensitivity (Very High or High)
Verify instrument has sufficient price movement
Check that Signal Mode isn't set to "Preview Only"
Too Many Signals:
Lower sensitivity (try Low or Very Low)
Increase Extra Confirmation Bars
Switch to higher timeframe
Increase ATR Multiplier in Custom mode
Zones Not Showing:
Enable "Show Supply/Demand Zones" checkbox
Increase "Number of Zones" setting
Adjust "Zone Thickness" to 0.01 for better visibility
Labels/Lines Moving on Chart Pan:
This is normal TradingView behavior with bar_index positioning
Zoom/scroll adjustments may shift visual elements slightly
Signals themselves remain accurate at confirmed bar
Performance Notes:
Indicator recalculates on every bar close
Historical signals do not repaint or recalculate
Preview mode updates in real-time (educational only)
Info Table updates each bar with current settings
Maximum 50 boxes, 200 lines, 100 labels per chart
Minimal CPU usage - efficient for real-time monitoring
Educational Concepts:
This indicator teaches:
Support/Resistance: Price levels where reversals occur
Supply/Demand: Zones where institutions may be active
Trend Analysis: Using multiple EMAs for direction
Volatility Adaptation: How ATR normalizes across instruments
Risk Management: Using reversal prices for stop placement
Signal Confirmation: Difference between preview and confirmed signals
VERSION HISTORY
v3.2 (January 2026):
FX-optimized percentage thresholds (0.02%-0.08%)
Changed default absolute reversal to 0.0001 for forex
Enhanced compatibility with low-volatility currency pairs
Thanks to FakhriSaad for identifying FX compatibility issues
v3.1 (January 2025):
Universal optimization for all instruments and timeframes
ATR-based adaptive sensitivity as primary mechanism
Fixed percentage thresholds as safety floor
Enhanced scalping through swing trading capability
Educational Tool:
Designed to help traders learn reversal patterns, support/resistance concepts, and price action structure. Demonstrates algorithmic detection of market pivots.
Disclaimer: This indicator is for educational purposes only. It does not provide investment advice. All trading involves risk. Past performance does not guarantee future results. Use proper risk management and never invest more than you can afford to lose.
Support: For questions, feedback, or feature requests, please comment below or message @NPR21 on TradingView.
GCM Kinetic Flux SpectrumTitle: GCM Kinetic Flux Spectrum
DESCRIPTION
The GCM Kinetic Flux Spectrum is an institutional-grade hybrid momentum and volume engine. Unlike standard oscillators that rely on closing prices, the GCM KFS synthesizes dual-source RSI volatility with Volume Flow Intensity (VFI) to reveal the hidden kinetic energy of market movements.
By projecting a 27-layer "Spectrum Ribbon" and a multi-dimensional Divergence Engine, the GCM KFS identifies not just where the price is heading, but the quality and "fuel" behind the trend.
CORE ARCHITECTURE
1) The Kinetic Mean (Dual-Source RSI)
Standard RSI often ignores the battle occurring at the wicks. The GCM KFS calculates independent RSI streams for Highs and Lows, then anchors them to a Zero-Centered baseline (-50 to +50). The resulting Kinetic Mean filters out retail noise, providing a volatility-adjusted perspective on momentum.
2) Volume Flux Integration (VFI)
Volume precedes price. The GCM KFS integrates a highly responsive, EMA-smoothed Volume Flow Indicator (VFI). By syncing VFI length with the RSI cycle, the indicator cross-verifies price strength with capital flow.
• Momentum + Positive Flux: Confirms high-conviction trends.
• Momentum + Negative Flux: Reveals "Empty" breakouts or institutional distribution.
3) 27-Layer Spectrum Ribbon
The gradient fill isn't just aesthetic—it represents Volatility Density.
• Expansion: When ribbons fan out, it signals a high-velocity trend.
• Compression (The Squeeze): When ribbons pinch toward the Kinetic Mean, it signals a volatility contraction, typically the precursor to an explosive breakout.
4) Four-Way Divergence Engine
The KFS automatically detects and projects four types of divergence on both the indicator pane and the main price chart:
• Regular Bullish/Bearish: Identifying high-probability trend reversals.
• Hidden Bullish/Bearish: Identifying trend continuation (Smart Money re-entry points).
KEY POWER FEATURES
• Zero-Centered Logic: Levels are shifted for better visual balance. (OB: +20, Extreme OB: +30 | OS: -20, Extreme OS: -30).
• Dynamic Zones: Subtle background fills highlight "Extreme" areas where price is statistically likely to mean-revert.
• Main Chart Projection: Use the force_overlay feature to keep your eyes on price action while the indicator confirms entries.
• Institutional Dotted VFI: The orange dotted line acts as the "Anchor"—if price rises but the VFI Anchor stays below zero, the move lacks professional backing.
HOW TO TRADE WITH GCM-KFS
• The Reversal Sniper: Look for an R-BULL or R-BEAR label appearing inside the Extreme Zone (±30). This indicates momentum exhaustion backed by a volume shift.
• Trend Riding: During an uptrend, look for H-BULL (Hidden Bullish) labels. This signals that institutions are "buying the dip" while momentum resets.
• Volatility Breakouts: When the Spectrum Ribbon enters a tight "squeeze" near the Zero Line, prepare for a major move. Follow the direction of the first ribbon expansion.
RECOMMENDED SETTINGS
• Scalping (1m - 5m): Length 7 - 9
• Day Trading (15m - 1H): Length 10 - 14
• Swing Trading (4H - Daily): Length 20+
AUTHOR’S NOTE
This script is part of the GCM suite of professional tools. It is designed to be a "confluence engine"—it works best when used to confirm price action levels, supply/demand zones, or order blocks. Always trade with a plan and managed risk.
Trinity Tactical: BTC Liquidity Snatch//@version=6
indicator("Trinity Tactical: BTC Liquidity Snatch", overlay=true)
// --- INPUTS ---
liq_level = input.float(87156.0, "Liquidity Low to Sweep", step=10)
fvg_threshold = input.float(0.5, "FVG Min Size (%)", step=0.1)
// --- LIQUIDITY SWEEP LOGIC ---
is_swept = low < liq_level and close > liq_level
plotshape(is_swept, title="Liquidity Sweep", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, text="SWEEP")
// --- FVG DETECTION (FOR ENTRY) ---
// Bullish FVG: Low of bar > High of bar
is_bullish_fvg = low > high and (low - high ) > (close * fvg_threshold / 100)
// Visualizing the Entry FVG Zone
var box fvg_box = na
if is_bullish_fvg and barstate.isconfirmed
fvg_box := box.new(bar_index , low , bar_index, high , bgcolor=color.new(color.green, 80), border_color=color.green)
// --- LEVELS ---
hline(87156, "8H Liquidity Low", color=color.red, linestyle=hline.style_dashed)
hline(92500, "TP1: Supply", color=color.orange, linestyle=hline.style_dotted)
hline(97000, "TP2: Range High", color=color.green, linestyle=hline.style_dotted)
// --- ALERTS ---
alertcondition(is_swept, title="BTC Sweep Alert", message="Liquidity Swept! Look for FVG Entry.")
alertcondition(is_bullish_fvg, title="BTC FVG Entry", message="Bullish Displacement Detected. Check 15m Structure.")
Real Deviation Strength (RDS) [ALPHA]Real Deviation Strength (RDS) – The mirror-image twin to Median Anchor Oscillator.
Same battle-tested foundation: rolling median + Median Absolute Deviation (MAD) scaling = a super-robust deviation measure that laughs at outliers (way tougher than classic mean/std-dev oscillators).
The fun part: we flipped the visuals so deviation becomes “strength.”
- Histogram inverted + fresh palette: magenta (#aa3bf5) bars shooting up for positive deviation strength (big stretch = caution or conviction?), cyan (#00f7ff) dropping down for negative (pullback energy = bounce setup?).
- Adjustable Strength Sweet Spots at ±2.5 (tweak to taste).
- Optional yellow fill zones for that high-octane “something’s cooking” vibe.
- Scales beautifully on wild charts—crypto, stocks, whatever throws spikes.
Where Median Anchor says “Whoa, too far—revert!”, RDS goes “Damn, that stretch has legs—respect the power.” Perfect for momentum hunters, contrarian plays, or just geeking out on the opposite lens.
Still very much ALPHA—early days, room to grow. Feel free to leave feedback in the comments:
- Colors popping right?
- Alerts on sweet-spot exits next?
- Add divergence next?
- What’s it crushing (or failing) on your favorite ticker?
Using this side-by-side with MAO? The magenta/cyan combo keeps them visually distinct—no chart confusion.
Hero version here: Median Anchor Oscillator →
Open-source. Let’s build this thing together. Cheers to the flipside 🍻
ADX Trend Strength with DashboardA comprehensive ADX (Average Directional Index) indicator featuring an intuitive real-time dashboard that helps traders quickly assess trend strength and direction at a glance.
Key Features:
Visual Analytics:
Standard ADX line with customizable +DI/-DI directional indicators
Color-coded background zones that automatically highlight trend strength (Weak/Ranging, Emerging, Strong, Very Strong, Extreme)
Optional fill between directional indicators for clear visual trend identification
Fully customizable colors and display options
Smart Dashboard:
Real-time ADX value with color-coded strength classification
Instant trend direction indicator (Bullish/Bearish/Neutral)
Trade signal suggestions based on ADX strength and DI crossovers
DI spread analysis showing conviction strength (Strong/Moderate/Weak)
Quick reference checks for key threshold levels
Fully adjustable position, size, and transparency
Customizable Thresholds:
Default levels at 20 (Emerging), 25 (Strong), 40 (Very Strong), and 50 (Extreme)
All threshold levels are adjustable to match your trading strategy
Visual reference lines on chart
Built-in Alerts:
ADX crossing major threshold levels (25, 40, 50)
Bullish/Bearish DI crossovers when ADX confirms strong trend
Set-and-forget notifications for trend changes
Perfect for:
Scalpers and day traders needing quick trend assessment
Swing traders filtering choppy markets from trending conditions
Multi-timeframe analysis with clear visual feedback
Settings: Fully customizable ADX length (default 14), DI length (default 14), and smoothing period (default 14) to adapt to any timeframe or market.
Does this capture everything you wanted, or would you like me to adjust the tone/emphasis on certain features?Claude is AI and can make mistakes. Please double-check responses.
Price_Deviation Oleg📘 Description
This script is an extended and customized version of the original work by the respected author fullmax.
I adapted the logic for my own trading needs and added several improvements, including lot‑precision rounding to prevent exchange errors when using webhook automation, as well as additional visualization elements for clarity.
🔧 Key Enhancements
Lot precision control (prevents invalid quantity errors on exchanges when using webhooks)
Base order labels for easier visual tracking
Mini‑table with live position metrics
Configurable date‑range window for backtesting
Dynamic safety‑order price calculation
Trailing take‑profit option
Improved visualization of thresholds, MA, and TP levels
🎯 How the Strategy Works
The script calculates a moving average and compares the current price deviation against user‑defined thresholds.
When the deviation condition is met, the strategy opens a base position and then manages it using safety orders that scale in both volume and distance.
After entering a position, the script manages exits using:
a fixed take‑profit target
or an optional trailing take‑profit
plus a breakeven reference line
and an auto‑close mechanism when the averaging cycle resets
All order quantities are rounded according to the selected lot precision to ensure compatibility with exchange requirements when sending webhook‑based orders.
⚙️ Features Overview
Deviation‑based entry logic
Safety orders with volume and step scaling
Configurable date window for testing
Trailing TP with adjustable distance
Breakeven visualization
Mini‑table showing quantity, USD value, open trades, PnL, and equity
Clean and intuitive chart visualization
📝 Disclaimer
This script is provided for educational purposes only.
It does not constitute financial advice and does not guarantee profits.
Always test strategies on historical data before using them in live trading.
Tomato Indicator V5EMAs
SMAs
VWAP
All-in-one.
12, 27, 50, 135, 200, 405 EMAs.
200, 400, SMA.
VWAP for Volume Weighted Average Price.
ZION Momentum Flow [wjdtks255]🚀 ZION Momentum Flow
This is a trend-strength oscillator designed to visualize market momentum through a refined RSI logic. It helps traders identify the exact moment when market energy is accelerating or cooling down.
Key Features:
Visual Momentum: Uses a color-coded histogram to represent trend intensity (Green for Bullish, Red for Bearish).
Two-Tone Strength: Darker colors indicate standard movement, while bright neon colors signal high-energy breakouts beyond the threshold.
Built-in Alerts: Supports alerts for momentum spikes, allowing you to catch trend starts without staring at the screen.
ZION Trend Strike [wjdtks255]🚀 ZION Trend Strike
This is an advanced trend-following signal indicator designed to work in perfect harmony with the ZION Momentum Flow. It filters market noise and provides precise entry/exit points based on momentum synergy.
Key Features:
Trend Strike Signals: Provides clear BUY/SELL labels when price action aligns with momentum energy.
Dynamic Trend Guide: A color-switching EMA line that helps you visualize the current trend direction at a glance.
Synergy Optimization: Best used as a set with ZION Momentum Flow to avoid false breakouts.
Multilingual Input: Easy-to-use settings menu with both English and Korean labels.
SOPR Candles - Custom Mid-LineSOPR Candle with Customizable Mid-Line
On-chain SOPR (Spent Output Ratio) indicator as an oscillator. Customizable centerline and MAs makes signals easy to identify.
Features
SOPR displayed as a column-style oscillator
Customizable SOPR center (middle line)
Optional SMA or EMA smoothing
Clear green/red coloring
How to Use
Values above/below center Indicate profit/loss realization
Risk Disclaimer
This indicator is provided for educational and informational purposes only and does not constitute financial, investment, or trading advice. Cryptocurrency markets are highly volatile, and trading involves significant risk. Past performance is not indicative of future results. You are solely responsible for your trading decisions and risk management. Always conduct your own research and consider your financial situation before trading.
Weighted CCI Oscillator [SeerQuant]Weighted CCI Oscillator (WCCI)
The Weighted CCI Oscillator (WCCI) is an enhanced CCI-style deviation oscillator that builds on the classic Commodity Channel Index framework by introducing adaptive weighting and configurable smoothing. By dynamically scaling deviation based on a selected market “weight” (Volume, Momentum, Volatility, or Reversion Factor), WCCI helps trend strength and regime shifts stand out more clearly, while still retaining the familiar CCI-style structure and ±200 extreme zones.
⚙️ How It Works
WCCI starts by calculating a baseline (your chosen moving average type) of the selected CCI source (Typical Price / HLC3, or a custom input source). It then measures how far price deviates from that baseline, and applies an adaptive weight to that deviation based on your selected weighting method.
The weighting is normalized for stability so it remains usable across different assets and changing regimes, then clamped to prevent abnormal spikes from distorting the oscillator. The weighted deviation is normalized by a weighted mean absolute deviation term (using the standard CCI constant k), producing a CCI-like oscillator that responds differently depending on the “state” of the market.
Trend logic is defined using a neutral zone around the 0 midline: bullish when WCCI holds above (0 + Neutral Zone), bearish when it holds below (0 - Neutral Zone), and neutral while it remains inside that band. A smoothed WCCI line is also provided for cleaner confirmation.
✨ Customizable Settings
WCCI is designed to be tuned without overcomplication. You can choose the CCI source mode (Typical Price / HLC3 or Input Source), set the calculation length, and apply smoothing using your preferred moving average type (SMA, EMA, RMA, HMA, DEMA, TEMA, etc.).
The weighting method is the key differentiator:
Volume weighting emphasizes participation and activity.
Momentum weighting emphasizes impulse and directional pressure.
Volatility weighting emphasizes expansion/contraction phases.
Reversion Factor weighting responds inversely to variance, biasing toward mean-reversion conditions.
On the style side, you can select a preset colour scheme (Default/Modern/Cool/Monochrome) or enable custom bull/bear/neutral colours. Candle coloring is optional, and you can choose whether candles follow the raw WCCI or the smoothed WCCI.
🚀 Features and Benefits
WCCI provides a CCI-style oscillator that adapts to market conditions instead of treating every regime the same. The weighting engine helps meaningful moves stand out when conditions justify it, while the neutral-zone framework reduces noise and improves readability compared to relying purely on midline flips. With flexible smoothing, clean state transitions, optional candle coloring, and clear ±200 extreme markers, WCCI works well as a trend filter, confirmation layer, or regime signal alongside other systems.
📜 Disclaimer
This indicator is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Always consult a licensed financial advisor before making trading decisions. Use at your own risk.
Supercharged MA Momentum Oscillator (v6,Secondary Levels)Supercharged MA Momentum Oscillator (Dots on Line)
Description:
The Supercharged MA Momentum Oscillator is a trend and momentum-based tool designed to highlight short-term market momentum relative to a moving average. It provides a visual way to identify potential entry and exit points using a combination of smoothed momentum, ATR-based thresholds, and upper/lower momentum levels.
Key Features:
Smooth momentum line derived from a moving average slope.
Opposite momentum line for contrarian signals.
ATR-based thresholds to detect meaningful momentum shifts.
Upper and lower momentum levels for stronger confirmation of overbought/oversold conditions.
Buy/sell dots plotted on the momentum line to highlight potential trade opportunities.
Customizable inputs for moving average length, smoothing, ATR period, and thresholds.
How to Use:
Momentum Interpretation:
Blue Line (Momentum): Represents the primary momentum.
Orange Line (Opposite Momentum): Represents the inverse momentum for contrarian observation.
Thresholds & Levels:
Green/Red Lines (ATR Thresholds): Define minor trigger zones for potential momentum changes.
Yellow Dashed Lines (Upper/Lower Levels): Define major momentum levels; stronger signals occur when momentum crosses these.
Trade Signals:
Buy Signal (Green Dot): Momentum crosses above both the ATR long threshold and the upper momentum level.
Sell Signal (Red Dot): Momentum crosses below both the ATR short threshold and the lower momentum level.
Dots appear directly on the momentum line to easily visualize trade triggers.
Customization:
Adjust the MA Length and Smoothing to fit the timeframe and asset volatility.
Modify ATR Length and Threshold Factor to fine-tune sensitivity.
Change Upper/Lower Momentum Levels to capture stronger or weaker signals.
Tips:
Best used in combination with trend analysis or other technical indicators for confirmation.
Ideal for spotting momentum reversals or identifying potential breakout entries.
Works on multiple timeframes — shorter timeframes will show more frequent signals, longer timeframes filter noise.
Note:
This indicator is for educational and informational purposes. Always use proper risk management and confirm signals with other analysis before executing trades.
RSI [Hash Capital Research]RSI is a visually enhanced momentum indicator built on the classic Relative Strength Index.
This version expands RSI into a more flexible analytical tool through smoothing options, adaptive zone-based coloring, optional signal line overlays, and divergence detection.
It is designed as a context-building indicator, not a standalone entry system.
What This Indicator Does
This script calculates a smoothed RSI using user-defined parameters and then provides multiple optional enhancements:
1. Adaptive RSI Visualization
The core RSI is plotted with:
Zone-based color changes (neutral, oversold, overbought)
Optional glow effects to emphasize extreme conditions
User-defined color intensity and midline visibility
The goal is to provide clearer visual segmentation of trend strength and momentum behavior.
2. Custom Smoothing & Signal Line Options
The indicator allows:
Multi-layer smoothing for RSI stability
An optional signal line using the trader’s preferred moving-average method (SMA, EMA, SMMA/RMA, WMA, VWMA)
This helps operators examine whether momentum is accelerating or stabilizing relative to its mean.
3. Overbought/Oversold Tools
User-defined thresholds determine:
Highlighted zones
Optional markers for extreme reversals (based on RSI + momentum + velocity criteria)
Midline (50) cross highlights for trend-bias transitions
These features help contextualize where the RSI sits relative to broader momentum regimes.
4. Divergence Detection (Optional)
When enabled, the script scans for regular bullish and bearish divergences using pivot-based structure.
It compares:
Price making lower lows vs RSI making higher lows (bullish)
Price making higher highs vs RSI making lower highs (bearish)
Detected divergences are plotted on the RSI panel with visual labels.
This detection uses pivot lookbacks and range limits defined by the user.
5. Alerts
The indicator provides optional alerts for:
Extreme reversals
Overbought/oversold momentum shifts
Midline (50) crossovers
Bullish / bearish divergences
Alerts are intended for monitoring, not for automated execution.
How to Use It
This RSI modification is intended to support broader analysis workflows, including:
Identifying regime shifts using midline crosses
Monitoring momentum structure across trend phases
Highlighting oversold or overbought clustering
Adding a visual signal line to interpret momentum smoothing
Spotting divergence between price and RSI
As with all indicators, this tool should be used as one component of a complete analysis framework.
What Makes This Version Distinct
This script maintains the core behavior of RSI but introduces:
A multi-layer smoothing system
Adaptive colors calibrated to oversold/neutral/overbought zones
Optional glow visualizations
A modular signal-line engine with multiple MA types
Configurable divergence detection with visual labels
Multiple marker placement modes for extreme conditions
These features expand RSI’s readability while keeping its underlying logic transparent and consistent with common operator workflows.
Important Notes
This is an indicator, not a strategy. It does not execute trades or calculate performance metrics.
The visual enhancements are designed to improve clarity, not to generate automated “buy” or “sell” systems.
Divergence detection is optional because divergence is inherently contextual and may not apply equally across all markets or timeframes.
Smart Fear & Greed Index [MarkitTick]💡 This comprehensive technical tool is designed to quantify market sentiment on an asset-specific basis, translating complex price action into a singular, normalized gauge of "Fear" and "Greed." While traditional Fear & Greed indices rely on macro-economic data (like put/call ratios or junk bond demand) generally applied to the broad S&P 500, this script calculates a localized index for the specific chart you are viewing. It synthesizes Momentum, Volatility, Volume, and Price Positioning into a bounded 0-100 oscillator, aiming to identify psychological extremes where market reversals are statistically more likely to occur.
✨ Originality and Utility
● Asset-Specific Sentiment Analysis
Most sentiment tools are external to the chart (e.g., news sentiment or broad market indices). The Smart Fear & Greed Index is unique because it internalizes this logic, creating a bespoke psychological profile for any ticker—whether it is Crypto, Forex, or Stocks. It allows traders to see if *this specific asset* is overheated (Greed) or oversold (Fear) relative to its own recent history.
● The "Buy the Fear, Sell the Greed" Logic
The script employs a contrarian color-coding philosophy aligned with the famous investment adage: "Be fearful when others are greedy, and greedy when others are fearful."
When the indicator shows Fear (Low values), it colors the zone Green, signaling a potential buying opportunity (discount).
When the indicator shows Greed (High values), it colors the zone Red, signaling potential downside risk (premium).
● Integrated Divergence Detection
Unlike standard oscillators that leave interpretation entirely to the user, this tool includes an automated divergence engine. It detects discrepancies between the sentiment index and price action, plotting lines and labels to highlight potential exhaustion points before they become obvious on the price chart.
🔬 Methodology and Concepts
The calculation is driven by a custom User-Defined Type (UDT) called QuantEngine , which aggregates four distinct technical "pillars" to form the final Composite Index.
• Pillar 1: Momentum (RSI)
The engine utilizes the Relative Strength Index to measure the velocity and magnitude of directional price movements. High momentum contributes to the "Greed" score, while collapsing momentum contributes to "Fear."
• Pillar 2: Volatility (Inverted Normalized ATR)
This component interprets volatility through a psychological lens.
Low Volatility is interpreted as complacency or "Greed" (steady uptrends often have low vol).
High Volatility is interpreted as "Fear" (panic selling and erratic ranges often spike volatility).
The script normalizes the Average True Range (ATR) and inverts it so that stability adds to the score, and instability subtracts from it.
• Pillar 3: Volume Strength
Volume is analyzed relative to its moving average. However, raw volume isn't enough; the engine applies directional logic.
High relative volume on an Up-Close adds to the Greed score.
High relative volume on a Down-Close subtracts, adding to the Fear score.
• Pillar 4: Price Position (Stochastic)
This calculates where the current close sits relative to the recent High-Low range. Closing near the highs indicates confidence (Greed), while closing near the lows indicates pessimism (Fear).
• The Composite & Smoothing
These four metrics are averaged to create a raw composite, which is then smoothed via an Exponential Moving Average (EMA) to filter out noise and produce the final, readable "Smart Fear & Greed" line.
🎨 Visual Guide
● The Oscillator Line
This is the primary fluctuating line that moves between 0 and 100.
Values > 50 suggest positive sentiment.
Values < 50 suggest negative sentiment.
● Color-Coded Zones
The plot changes color dynamically to reflect the psychological state:
Red (70-100): Extreme Greed. The market may be irrationally exuberant.
Orange (60-70): Greed. Strong bullish conviction.
Yellow (40-60): Neutral. Indecisive or transitionary market.
Light Green (30-40): Fear. Sentiment is turning bearish.
Bright Green (0-30): Extreme Fear. Panic selling, often a precursor to a value bounce.
● Background Highlights
A semi-transparent Red Background appears when the index breaches 75, warning of a potential "Top."
A semi-transparent Green Background appears when the index drops below 25, highlighting a potential "Bottom."
● Divergence Elements
Red Lines/Labels ("Bear"): Bearish Divergence. Price makes a Higher High, but the Index makes a Lower High. This suggests momentum is waning despite rising prices.
Green Lines/Labels ("Bull"): Bullish Divergence. Price makes a Lower Low, but the Index makes a Higher Low. This suggests selling pressure is drying up.
📖 How to Use
• Identifying Reversals
Wait for the oscillator to enter "Extreme" zones. Do not trade immediately upon entry; wait for the line to exit the extreme zone to confirm the reversal. For example, if the line hits 80 (Red) and then crosses back down below 70, it signals that Greed is fading.
• Trend Continuation
In a strong trend, the indicator may hover in the Greed (Orange) or Fear (Light Green) zones for extended periods. In these cases, use the Neutral (Yellow) zone crosses as re-entry signals in the direction of the trend.
• Divergence Confirmation
Use the automated divergence lines as high-conviction triggers. If the background turns Green (Extreme Fear) AND a Bullish Divergence label appears, it provides a stronger technical case for a long position than the zone alone.
⚙️ Inputs and Settings
● Calculation Settings
Global Lookback Period (Default: 21): The core lookback window for RSI, ATR, Volume, and Stochastic calculations. Increasing this makes the index slower and less reactive; decreasing it makes it faster.
Smoothing Length (Default: 5): Determines how smooth the final line is. Higher numbers reduce "whipsaws" but add lag.
Color Main Chart Candles : Colors the chart bars based on Fear/Greed sentiment.
● Divergence Settings
Divergence Lookback (Default: 5): Determines the pivot strength required to register a high or low for divergence checks.
Show Divergence Lines/Labels: Toggles to hide visual clutter if you only want to see the oscillator.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Normalization Theory
The core scientific principle here is Min-Max Normalization. The script takes heterogeneous data types—Price (Dollars/Cents), Volume (Shares/Contracts), and Volatility (Points)—and standardizes them into a unit-less distribution between 0 and 100. This allows for the summation of disparate market forces into a single vector.
● Mean Reversion and Oscillator Bounds
The indicator relies on the statistical concept of Mean Reversion. Markets, like elastic bands, can only stretch so far from their average valuation (represented by the 50 line) before snapping back. The "Extreme" zones (Upper and Lower deciles) represent areas of statistical improbability where the likelihood of a continuation decreases and the likelihood of a reversion increases.
● Divergence and Momentum Theory
The divergence logic is grounded in the principle that momentum precedes price. Mathematically, price is the integral of velocity. When the derivative (momentum/sentiment) approaches zero or reverses while the function (price) continues, it signals a non-sustainable anomaly in the data series, often resolved by a price correction.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
Unreached Highs/Lows Oscillator [LuxAlgo]The Unreached Highs/Lows Oscillator highlights the amount of unreached high/low prices as a percentage over time, helping visualize trend strength and momentum from bullish and bearish market participants.
🔶 USAGE
This indicator measures the strength of directional price movements, helping traders visualize the strength of both the bullish and bearish market participants.
When prices are moving up with strength, the price structure will not come back to retest previous lows. Therefore, unreached lows keep adding up.
When prices are moving down with strength, they will not retest previous highs; therefore, unreached highs keep adding up.
As we can see on the chart, high readings of unreached highs (red) and low readings of unreached lows (green) are considered bearish, and a downtrend in price confirms this bias. Conversely, high readings of unreached lows and low readings of unreached highs are considered bullish. On the chart, this is reflected as an uptrend.
Additionally, the oscillator can reveal significant breakouts on the chart, with unreached highs or lows decreasing rapidly indicating that a large number of highs/lows have been reached.
Due to the oscillator being normalized, overbought and oversold levels are included.
In this gold chart, we have different examples of how to use the tool in conjunction with price behavior to understand the market. Let's dissect it step by step:
1. Uptrend: Bullish readings are above 80, and bearish readings are below 20. The market is trending up.
2. Range: Mixed readings around 50 for both bullish and bearish; the market is ranging.
3. Uptrend: The same as before. Bullish above 80 and bearish below 20.
4. Pullback: A bullish dip below 80 to 50 and a bearish reading below 20 indicates a pullback.
5. Range: Mixed readings. In this case, it is bullish above and below 80 and bearish above and below 20. The market is ranging.
6. Uptrend: Bullish above 80 and bearish below 20; the market keeps moving up.
7. Pullback: Bullish dips below 80 and bearish rises to 50 indicate a pullback.
8. Uptrend: As before, bullish is above 80 and bearish is below 20; the market is trending up.
This Bitcoin chart shows how to use extreme readings of 0 and 100 to detect potential reversals. When both readings are at extreme opposites, we set the threshold level at 100 and 0 instead of the default levels of 80 and 20 to better identify these areas.
As we can see, extreme readings at points 1 and 5 identify major reversals that lead to a change in trend. Extreme readings at points 2, 3, 4, and 6 identify minor reversals that do not lead to a change in trend.
From the settings panel, traders can adjust the length parameter. A smaller value measures smaller price movements, while a larger value measures larger price movements. A length value of 20 is used by default.
The chart shows how different values affect bullish and bearish measures.
🔶 SETTINGS
Length: Select the maximum number of highs and lows to be used.
🔹 Style
Bullish: Select a color for unreached lows.
Bearish: Select a color for unreached highs.
Top Threshold: Select the top threshold level and color. Enable the Auto feature to choose the default color.
Bottom Threshold: Select the bottom threshold level and color. Enable the Auto feature to choose the default color.
Secuencia estricta (pendiente) HMA->RSI BB"The code combines a 100-period HMA as the first condition, and an RSI smoothed by a Bollinger Band set to default parameters of 24 and 1 standard deviation. The first condition is that the price is above or below the HMA. The second condition is that the RSI moves above or below the Bollinger Bands. Depending on how the conditions align, the system takes either a short or a long position."
Gamma of Gamma - AnticipationGamma of Gamma — Anticipation Engine
What if you could detect market inflections before they become obvious? Not react to momentum — anticipate the momentum itself.
"Gamma here refers to mathematical acceleration (2nd derivative), NOT options Gamma"
Gamma of Gamma (GoG) operates one abstraction layer above conventional indicators. While RSI tells you what momentum did , GoG tells you what momentum is about to do . This is the difference between chasing price and positioning ahead of it.
Core Innovation: Traditional indicators measure first-order effects (price change) or second-order effects (momentum/acceleration). This system measures the third derivative — the rate of change of acceleration itself. When Gamma-of-Gamma reaches extremes, it signals that pressure dynamics are about to flip — often 2-5 bars before price visibly reacts.
Target Users: Discretionary traders, scalpers, and swing traders who want early positioning signals with statistical rigor. Effective on stocks, crypto, forex, and futures with meaningful volume data.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHY THIRD-DERIVATIVE ANALYSIS?
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The Hierarchy of Market Information
Most traders operate at the wrong level of abstraction:
• Price → What happened (lagging)
• Momentum → How fast it happened (still lagging)
• Gamma (2nd Derivative) → How momentum is changing (coincident)
• Gamma of Gamma (3rd Derivative) → How FAST that change is changing ( leading )
The third derivative captures inflection acceleration — the mathematical signature of regime transition. When GoG reaches extreme values, the market is telegraphing that current pressure dynamics are unsustainable.
Why This Beats RSI
RSI measures momentum magnitude. GoG measures momentum trajectory .
Consider this scenario: RSI reads 70 (overbought). Is the move exhausted or just getting started? RSI cannot tell you. GoG can — because it measures whether buying pressure is accelerating into the high RSI reading (continuation likely) or decelerating despite high RSI (reversal imminent).
RSI answers: "How strong was the move?"
GoG answers: "Is the move strengthening or weakening right now ?"
The first is historical. The second is predictive.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MATHEMATICAL FOUNDATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Layer 1: Cumulative Volume Delta (CVD)
The foundation is order flow approximation:
• Up bar (close > prior close): Volume classified as buying pressure
• Down bar (close < prior close): Volume classified as selling pressure
• CVD = Running sum of signed volume
Interpretation: Rising CVD indicates net aggressive buying. Falling CVD indicates net aggressive selling. CVD divergence from price often precedes reversals.
Layer 2: Gamma (Second Derivative)
Gamma measures acceleration of order flow:
Formula: Gamma = CVD - 2×CVD + CVD
This is the discrete second derivative — the rate of change of the rate of change. When Gamma spikes positive, buying pressure is accelerating . When Gamma spikes negative, selling pressure is accelerating.
Layer 3: Gamma of Gamma (Third Derivative)
GoG measures jerk — the acceleration of acceleration:
Formula: GoG = Gamma - 2×Gamma + Gamma
Critical insight: Extreme GoG readings indicate that current pressure dynamics are reaching an inflection point. The system is "overextended" in its current trajectory and will likely revert or reverse.
Layer 4: Z-Score Normalization
Raw GoG values are normalized against their 50-period distribution:
Formula: GoG_Z = (GoG - Mean_50) / StdDev_50
Benefit: Z-scores are regime-adaptive. A "2.0" reading always means "2 standard deviations from normal" regardless of whether you're trading a penny stock or ES futures. This makes thresholds consistent across instruments and timeframes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SIGNAL GENERATION LOGIC
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Long Signal (Bullish Anticipation)
Triggers when:
• GoG Z-score < -Threshold (default -2.0)
• Volume > Average Volume × Minimum Multiple (default 1.2×)
Interpretation: Selling pressure acceleration has reached an extreme negative reading. The selling is "exhausting itself" — acceleration is peaking and will soon decelerate. Buyers are likely to step in.
Short Signal (Bearish Anticipation)
Triggers when:
• GoG Z-score > +Threshold (default +2.0)
• Volume > Average Volume × Minimum Multiple (default 1.2×)
Interpretation: Buying pressure acceleration has reached an extreme positive reading. The buying is "exhausting itself" — often occurs at blow-off tops, failed breakouts, or momentum climaxes.
Why Volume Confirmation?
Gamma acceleration in thin liquidity is meaningless noise. The volume filter ensures signals occur only when meaningful participation backs the pressure dynamics. This dramatically reduces false signals during low-activity periods.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CONFIDENCE ENGINE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Not all signals are equal. The Confidence Engine quantifies signal strength:
Confidence Calculation:
Confidence = 50 + ((|Z-Score| - Threshold) / Threshold) × 100
Capped at 100%
Visual Representation:
• Small orb = Low confidence (50-65%)
• Normal orb = Medium confidence (65-80%)
• Large orb = High confidence (80-100%)
Orb transparency also adjusts — high-confidence signals appear brighter and more prominent. This creates intuitive visual hierarchy where stronger signals demand more attention.
Practical Use:
• High confidence (>80%): Consider larger position size, tighter stops
• Medium confidence (50-80%): Standard position size
• Low confidence (<50%): Reduced size or wait for confirmation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INTEGRATED BACKTESTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Every signal system needs accountability. The onboard backtester provides real-time performance tracking:
Core Metrics:
• Total Trades
• Win Rate
• Profit Factor
• Expectancy (average P&L per trade)
• Net P&L
• Max Drawdown
• Average Win / Average Loss
Methodology:
• Positions held for configurable bar count (default 10 bars)
• Forces objective evaluation independent of discretionary exits
• Updates in real-time as new trades complete
Optimizer Mode:
Enable for parameter tuning research:
• Stability Score (0-100 points): Composite evaluation of parameter robustness
• Trade Density : Signals per 1000 bars — monitors over/under-trading
• Parameter Display : Current settings for documentation
• Robustness Rating : ROBUST / STABLE / FRAGILE / OVERFIT
Stability Scoring Breakdown:
• Win Rate ≥55%: +25 points | ≥50%: +15 points | ≥45%: +5 points
• Expectancy >0.5%: +25 points | >0.1%: +15 points | >0%: +5 points
• Total Trades ≥30: +25 points | ≥20: +15 points | ≥10: +5 points
• Profit Factor ≥1.5: +25 points | ≥1.2: +15 points | ≥1.0: +5 points
Target: 60+ points indicates stable parameters. Below 40 suggests overfitting risk.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CHART EXECUTION SIGNALS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Unique feature: Entry and exit markers display directly on the price chart via force_overlay, even though the indicator runs in a separate pane.
Visual Markers:
• ▲ Green Triangle (below bar): Long entry at exact price level
• ▼ Red Triangle (above bar): Short entry at exact price level
• ✕ Gold X-Cross : Position exit after hold period
Benefit: Immediate visual correlation between GoG signals and price action. Review historical trades without switching between panes.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DUAL DASHBOARD SYSTEM
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Main Dashboard — Real-Time State
Displays:
• Current GoG regime (EXTREME HIGH / EXTREME LOW / NEUTRAL)
• GoG Z-Score (numerical)
• Raw GoG value
• Gamma value
• CVD (Cumulative Volume Delta)
• Volume status (Active/Low with ratio)
• Signal state (Scanning / Long Signal / Short Signal / In Position)
• Confidence meter with visual bar
• Entry price when in position
Backtest Dashboard — Performance Metrics
Displays all backtester metrics in compact format. Switches to Optimizer view when Optimizer Mode enabled.
Both dashboards feature:
• Configurable position (6 locations including Middle Left/Right)
• Adjustable text size (Tiny/Small/Normal/Large)
• Transparency control for visual integration
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PARAMETER GUIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Calculation Settings
• GoG Extreme Threshold (default 2.0): Z-score level for signal generation. Higher = fewer but stronger signals. Range: 0.5-5.0
• Gamma Smoothing (default 3): SMA period for Gamma. Lower = more responsive, more noise. Higher = smoother, more lag. Range: 1-20
• GoG Smoothing (default 5): SMA period for GoG. Filters micro-spikes while preserving structural inflections. Range: 1-20
• Min Volume Multiple (default 1.2): Volume must exceed this multiple of 20-period average. Ensures signals have participation backing. Range: 0.5-3.0
Backtester Settings
• Backtest Hold Bars (default 10): Forced holding period for backtester evaluation. Adjust based on timeframe and trading style.
• Parameter Optimizer Mode : Enables extended metrics for tuning research.
Tuning by Timeframe
Scalping (1-5 min):
Threshold: 1.5-2.0 | Gamma Smooth: 2-3 | GoG Smooth: 3-4 | Hold: 5-8 bars
Day Trading (15-60 min):
Threshold: 2.0-2.5 | Gamma Smooth: 3-5 | GoG Smooth: 5-7 | Hold: 8-12 bars
Swing Trading (4H-Daily):
Threshold: 2.5-3.0 | Gamma Smooth: 5-7 | GoG Smooth: 7-10 | Hold: 10-15 bars
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
HOW TO USE: PRACTICAL WORKFLOW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Step 1: Identify Regime
Watch the GoG Z-score line. Most of the time it oscillates within the neutral zone (between thresholds). This is "scanning" mode — no actionable signal.
Step 2: Wait for Extreme
When Z-score crosses threshold AND volume confirms, a signal fires. The orb appears in the indicator pane; the triangle appears on price chart.
Step 3: Assess Confidence
Check orb size and dashboard confidence reading:
• Large bright orb + 80%+ confidence = High conviction setup
• Small faint orb + <60% confidence = Requires additional confirmation
Step 4: Execute with Context
GoG signals anticipate — they don't confirm. Use price structure (support/resistance), higher timeframe trend, or other confirmation before entry.
Step 5: Manage Position
Exit markers show backtester exits. For live trading, consider:
• Time-based exit (signal's hold period)
• Opposite signal exit
• Fixed R:R targets
Step 6: Review Performance
Check Backtest Dashboard regularly. If Win Rate drops below 45% or Expectancy goes negative, reassess parameters or market conditions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
WHAT THIS INDICATOR IS — AND ISN'T
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This Indicator IS:
✅ State-transition detector (balance → imbalance)
✅ Early warning system for momentum shifts
✅ Anticipation tool for pre-positioning
✅ Statistical framework with built-in accountability
This Indicator IS NOT:
❌ Mechanical buy/sell system (requires discretion)
❌ Trend-following indicator
❌ Reversal-only indicator
❌ Replacement for risk management
Best Use Cases:
• Detecting early reversals before obvious confirmation
• Anticipating breakouts during volatility compression
• Timing pullback entries in established trends
• Identifying exhaustion at momentum climaxes
Challenging Conditions:
• Extremely low volume environments
• News-driven gaps (no order flow to measure)
• Instruments with unreliable volume data
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ORIGINALITY STATEMENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Innovation 1: Third-Derivative Order Flow Analysis
While first and second derivatives are common, applying third-derivative (jerk) analysis to cumulative volume delta is novel. This captures inflection points that lower-order analysis misses entirely.
Innovation 2: Z-Score Adaptive Thresholds
Rather than fixed thresholds that require per-instrument tuning, z-score normalization creates self-adapting signal levels that work consistently across any liquid instrument.
Innovation 3: Confidence-Weighted Visual System
Dynamic orb sizing and transparency based on signal strength provides intuitive visual hierarchy. Stronger signals literally appear larger and brighter.
Innovation 4: Integrated Accountability
Built-in backtester with optimizer mode enables parameter validation directly on chart. No external tools or spreadsheets required.
Innovation 5: Dual-Pane Execution Visualization
Force-overlay chart signals bridge the gap between indicator pane and price action, enabling immediate visual trade review.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
LIMITATIONS & DISCLAIMERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Technical Limitations
• Volume classification uses bar direction (close vs prior close), not tick-level aggressor data. Precision loss estimated 10-15% vs institutional-grade data.
• CVD approximation assumes volume follows price direction. Works well in trending conditions; less precise in choppy markets.
• Backtester uses fixed hold period, not optimal exit logic. Real performance may vary with proper trade management.
Market Limitations
• Requires meaningful volume data. Avoid instruments with reported volume issues.
• Signals may cluster during high-volatility events. Not every signal should be traded.
• Anticipation signals appear early by design. Patience required — price may continue against signal briefly before reversing.
Risk Disclosure
• Trading involves risk of loss. Past performance does not guarantee future results.
• This indicator provides analysis tools, not financial advice.
• Always use proper position sizing and risk management.
• Backtest results are hypothetical and do not include slippage, commissions, or fees.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
RECOMMENDED SETTINGS BY MARKET
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Crypto (BTC, ETH, SOL)
Threshold: 1.8-2.2 | Gamma: 3 | GoG: 5 | Volume: 1.3x | TF: 15min-4H
Notes: Higher volatility produces more signals. Consider higher threshold to filter.
Forex Majors (EURUSD, GBPUSD)
Threshold: 2.0-2.5 | Gamma: 4 | GoG: 6 | Volume: 1.2x | TF: 5min-1H
Notes: Lower volatility requires patience. Volume proxy via tick volume works adequately.
Stocks (Large Cap)
Threshold: 2.0-2.5 | Gamma: 3-4 | GoG: 5-6 | Volume: 1.2x | TF: 15min-Daily
Notes: Real volume data provides cleanest signals. Watch for opening/closing auction distortions.
Futures (ES, NQ, CL)
Threshold: 2.0-2.3 | Gamma: 3 | GoG: 5 | Volume: 1.2x | TF: 5min-1H
Notes: Excellent volume data. Session boundaries may produce false signals — consider RTH only.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CONCLUSION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Gamma of Gamma represents a fundamental shift in signal philosophy: from reacting to momentum to anticipating momentum.
By operating at the third derivative of order flow, this system detects the mathematical signatures of regime transition — the moments when current pressure dynamics become unsustainable and reversal becomes probable.
This is not another oscillator telling you what already happened. This is an anticipation engine positioning you for what's about to happen.
Stop chasing. Start anticipating.
RSI tells you where momentum was. GoG tells you where it's going.
Taking you to school. - Dskyz , Trade with probability. Trade with anticipation. Trade with GoG
Overshoot Stop Detector (EMA20 + ATR)How to read the signals (to match what you're doing):
An "OS" (Offside) above the previous bar indicates an overshoot.
A "STOP" (Stop) below the current bar indicates a potential "stop-loss" after an overshoot.
Then you can set a Beer-style trigger, for example:
Enter when the price breaks through the high of the STOP bar.
Or enter when the price closes green above the high of the STOP bar.
Then set your TP (Take Profit) at 10 to 15% as you've hypothesized.
Elite Risk-On/Risk-Off Oscillator (6 pairs) The Elite Risk-On / Risk-Off Oscillator is a market-regime indicator designed to determine whether conditions favor aggressive risk-taking or defensive capital preservation rather than to predict price direction.
It combines six carefully selected relative-strength pairs that measure risk appetite across the most important parts of the market:
IEI/HYG (credit stress, weighted most heavily because credit often leads equities)
SPHB/SPLV (equity risk appetite via high-beta versus low-volatility stocks)
IWM/SPY (liquidity and growth sensitivity through small-caps versus large-caps)
MTUM/QUAL (trend durability versus balance-sheet quality)
XLY/XLP (consumer cyclicality, wants versus needs)
EEM/SPY (global risk and dollar-sensitive capital flows)
Each pair is evaluated using relative performance against a moving-average and slope filter to classify it as risk-on (+1), neutral (0), or risk-off (-1), with defensive ratios inverted so that positive readings always indicate risk-on conditions; the weighted signals are then aggregated, normalized to a -100 to +100 scale, and smoothed into a single oscillator. Readings above approximately +40 indicate a supportive risk-on environment where trends are more likely to persist, readings between -40 and +40 reflect transitional or choppy conditions with lower conviction, and readings below -40 signal a risk-off regime where capital preservation and defense should be prioritized.
The indicator is intended as a context and position-sizing tool, helping traders align strategy aggressiveness with underlying market conditions rather than relying on forecasts or narratives.
Forecast OscillatorGeneral Overview
The Forecast Oscillator Plus (FOSC+) is not just another oscillator. It is an advanced quantitative analysis tool developed to bridge the gap left by traditional momentum indicators (like RSI or Stochastic) which often suffer from "lag" or remain pinned in extreme zones during strong trends.
This "Plus" version has been specifically engineered and optimized for high-velocity scalping and day-trading on assets like NAS100 (Nasdaq) and XAUUSD (Gold) using ultra-short timeframes (1-min, 5-min).
🛡️ Why is FOSC+ Different?
1. Linear Regression Intelligence
At the heart of this script is a powerful Linear Regression (LinReg) engine. Instead of comparing price to a simple average, FOSC+ calculates the percentage deviation between the current price and its predicted theoretical trajectory. This allows the indicator to identify not just if the price is "high" or "low," but if it is abnormally distanced from its current trend, signaling an imminent Mean Reversion.
2. Adaptive Dynamic Bands (Volatility-Adjusted)
A major weakness of classic oscillators is the use of fixed levels (e.g., 80/20). FOSC+ utilizes Standard Deviation to generate overbought and oversold zones that "breathe" with the market.
During high volatility, the bands expand to filter out noise and premature entries.
During low volatility, they tighten to capture precise turning points.
3. Institutional Volume Filter (Anti-Fakeout)
To succeed in the Nasdaq market, you must follow the "Smart Money." This script integrates a Volume Spike Filter. A signal (Buy/Sell) is only triggered if the current candle's volume is significantly higher than its moving average (adjustable multiplier). This ensures you only enter trades backed by real institutional strength.
4. Algo-Ready for PineConnector
The code has been structured for seamless automation. With built-in EMA smoothing to reduce 1-minute "market chatter," the signals are clean and sharp, minimizing execution errors when sending orders to MetaTrader 5 via PineConnector.
📈 Technical Trading Guide
Buy Signals (Green Triangle): Occur when the oscillator crosses above the dynamic oversold band OR crosses back above the zero line, provided that volume confirms the impulse.
Sell Signals (Red Triangle): Occur when the oscillator crosses below the dynamic overbought band OR breaks below the zero line from above, with volume confirmation.
Momentum Histogram: The colored columns indicate acceleration strength. Excellent for Trailing Stops: as long as the histogram is growing, the momentum is in your favor!.
⚙️ Recommended Parameters
Length (14): The "Sweet Spot" for balancing reactivity and reliability.
Smooth Len (4): Essential for 1-min charts to eliminate micro-fluctuations without adding lag.
Volume Mult (1.15): Filters out the bottom 15% of volume to keep only significant candles.
⚠️ Stress-Tested for Real Conditions
This script has been rigorously backtested with Slippage settings ranging from 10 to 25 points. Even under difficult market conditions with high spreads, the indicator maintains a positive expectancy, making it a premier tool for traders using Standard or Raw accounts.






















