Momentum Reversal / Dip Buyer [Score Based]Strategy Overview
Momentum Reversal / Dip Buyer is a quantitative reversal engine designed to fade stretched moves and buy dips / sell rallies when multiple momentum and context factors line up. It’s built for liquid instruments especially for ticker CME_MINI:ES1! and works best on intraday timeframes like the 5-minute or 1-minute chart.
Core Logic
This strategy builds a composite Momentum Score by combining:
Price Location: Relative to 100 SMA, 1000 EMA, and VWAP (trend / regime filter).
RSI: Overbought/oversold and mid-zone strength.
VWMO (Volume-Weighted Momentum): Direction and strength of volume-weighted price drift.
ADX: Trend strength filter (high vs low trend environment).
Full Stoch (%K): Short-term exhaustion and mean-reversion context.
CCI: Overbought/oversold turns (key trigger).
MFI: Volume-confirmed buying/selling pressure.
ATR Regime: High vs low volatility environment.
Cumulative Delta: Whether net aggressor flow is rising or falling.
From this, a single Momentum Score is computed each bar:
Longs: Taken when the score is depressed (scoreLow) and CCI crosses up from oversold.
Shorts: Taken when the score is elevated (scoreHigh) and CCI crosses down from overbought.
Risk Management & Trade Logic
Max Daily Trades: Hard cap on entries per day.
Hard Stop: Fixed % stop based on entry price.
Profit Target: Target ATR Multiplier × main ATR from entry.
Breakeven Logic: Optional; moves stop to breakeven (plus optional offset) after price moves a configurable multiple of the main ATR in your favor.
Trailing Stop (Separate ATR): Optional; uses its own ATR length and ATR-based trigger and distance. This lets you run slower ATR for targets while using a tighter, more reactive ATR for the trail.
Session Control
Trading Window: Optional session filter (e.g., 09:30–16:00). Entries are only allowed inside the defined window.
Force Flat at Session End: Option to automatically close all open positions when the session ends.
Visuals
The script plots entry arrows and a compact dashboard displaying: current Momentum Score, daily trade usage, and CCI status.
Disclaimer:
This script is for educational and research purposes only and is not financial advice. Past performance does not guarantee future results. Always forward-test and adjust parameters to your own risk tolerance and market.
Shoutout and all credit goes to AuclairsCapital for building the base foundation of this strategy on ThinkScript
Sentiment
Liquidity Heatmap [Eˣ]💧 Liquidity Heatmap - Free Indicator
Overview
The Liquidity Heatmap reveals where stop losses are clustered in the market - the hidden liquidity zones that smart money targets. This indicator automatically identifies Buy-Side Liquidity (BSL) above price and Sell-Side Liquidity (SSL) below price, showing you exactly where institutional traders are likely to hunt for stops before major moves.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 What This Indicator Does
Identifies Liquidity Zones:
• Buy-Side Liquidity (BSL) - Stop losses from SHORT positions clustered above price
• Sell-Side Liquidity (SSL) - Stop losses from LONG positions clustered below price
• Automatically clusters nearby levels into high-probability zones
• Shows liquidity strength (1-5+) - higher numbers = more stops = bigger target
• Removes swept liquidity in real-time as price takes out stops
Visual Display:
• 🔴 Red Zones Above Price = Buy-Side Liquidity (shorts' stops)
• 🟢 Green Zones Below Price = Sell-Side Liquidity (longs' stops)
• Thicker/Darker Zones = Higher liquidity concentration
• BSL/SSL Labels = Show exact strength count
• Triangle Markers = Liquidity sweep alerts (when price takes stops)
Smart Features:
• Auto-removes old liquidity (customizable lookback period)
• Clusters nearby levels to reduce noise
• Tracks liquidity strength and age
• Updates in real-time as new swing points form
• Alerts when major liquidity zones are swept
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 How To Use This Indicator
Understanding Liquidity Concepts
What is Liquidity?
Liquidity refers to clusters of stop loss orders sitting in the market. These stops represent:
• Long traders' stop losses (below support) = Sell-Side Liquidity
• Short traders' stop losses (above resistance) = Buy-Side Liquidity
Why Does This Matter?
• Institutions NEED liquidity to fill large orders
• Price often "sweeps" liquidity zones before reversing
• Major liquidity = major target for smart money
• Understanding liquidity = understanding market maker behavior
The Liquidity Cycle:
1. Retail traders place stops at obvious levels (swing highs/lows)
2. Smart money identifies these clusters
3. Price is pushed to sweep the stops (liquidity grab)
4. Institutions fill their orders with this liquidity
5. Price reverses in the opposite direction
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 Trading Strategies
Strategy 1: Liquidity Sweep Reversals
Best For: Swing trading, catching reversals
Timeframes: 15min, 1H, 4H, Daily
Entry Setup:
1. Identify strong Sell-Side Liquidity (SSL) zone below price
2. Wait for price to sweep down into the SSL zone
3. Look for rejection/reversal candle pattern (pin bar, engulfing)
4. Enter LONG after sweep and reversal confirmation
5. Stop loss: Below the swept liquidity zone
6. Target: Opposite liquidity zone or key resistance
Why It Works: Smart money sweeps stops to fill buy orders, then pushes price higher
Example:
• SSL zone at $45,000 with strength 3
• Price drops to $44,950, sweeps the SSL
• Strong bullish reversal candle forms
• Enter long at $45,100
• Target: BSL zone at $47,000
Strategy 2: Liquidity-to-Liquidity Runs
Best For: Day trading, scalping
Timeframes: 5min, 15min, 1H
Entry Setup:
1. Price sweeps Sell-Side Liquidity below and reverses up
2. Identify Buy-Side Liquidity zone above
3. Enter LONG targeting the BSL zone above
4. Exit near/at the BSL zone (don't wait for sweep)
5. Stop loss: Below recent swing low
Why It Works: Price moves from liquidity pool to liquidity pool
Variation - Reverse for Shorts:
• BSL sweep above → Look for SSL zone below
• Enter short targeting lower liquidity
Strategy 3: Liquidity Avoidance (Stop Placement)
Best For: Improving win rate on existing strategies
Timeframes: All
Rules:
1. NEVER place stops exactly at obvious liquidity zones
2. Place stops beyond the liquidity zone with buffer
3. Or place stops before the liquidity zone (tighter, riskier)
4. Monitor liquidity strength - avoid zones with strength 3+
Why It Works: Market makers hunt obvious stop clusters
Example:
• Trading long, swing low at $100 (SSL zone, strength 4)
• Bad: Stop at $99.50 (will get swept)
• Better: Stop at $98.50 (beyond the liquidity)
• Alternative: Stop at $100.50 (tighter, before sweep zone)
Strategy 4: Confluence Trading
Best For: High probability setups
Timeframes: 1H, 4H, Daily
Entry Setup:
1. Find liquidity zone that aligns with:
• Major support/resistance level
• Fibonacci retracement (0.618, 0.786)
• Trendline
• Round psychological number ($50,000, $2,000, etc)
2. Wait for sweep of this high-confluence zone
3. Enter on reversal with multiple confirmations
4. Larger position size justified by confluence
Why It Works: Multiple factors = institutional interest = higher probability
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ Settings Explained
Core Settings
Swing Detection Length (Default: 10)
• Number of bars left/right to identify swing highs and lows
• Lower values (5-8): More sensitive, more liquidity zones, more noise
• Higher values (12-20): Less sensitive, only major swings, cleaner chart
• Recommended: 8-10 for intraday, 10-15 for swing trading
Liquidity Lookback Bars (Default: 100)
• How many historical bars to track liquidity zones
• Lower values (50-75): Shows only recent liquidity
• Higher values (100-200): Shows longer-term liquidity clusters
• Zones older than this are automatically removed
• Recommended: 100-150 for most timeframes
Zone Proximity % (Default: 0.5)
• Percentage threshold to group nearby levels into single zone
• Lower values (0.2-0.4): Keeps levels separate, more zones
• Higher values (0.6-1.0): Aggressive clustering, fewer zones
• Recommended: 0.4-0.6 for crypto, 0.3-0.5 for forex, 0.5-0.8 for stocks
Visualization Settings
Show Buy-Side Liquidity
• Toggle ON/OFF red zones above price
• Turn OFF if only interested in downside liquidity
Show Sell-Side Liquidity
• Toggle ON/OFF green zones below price
• Turn OFF if only interested in upside liquidity
Show Liquidity Labels
• Toggle BSL/SSL labels with strength numbers
• Turn OFF for cleaner chart appearance
• Keep ON to see exact liquidity strength
Display Style
• Boxes: Filled rectangular zones (best for visualizing strength)
• Lines: Horizontal dashed lines (minimal, clean look)
• Both: Boxes + Lines (maximum visibility)
Color Intensity
• Low: 85% transparency (subtle, less distracting)
• Medium: 75% transparency (balanced visibility)
• High: 65% transparency (bold, maximum visibility)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 Info Panel Guide
Located in the top-right corner, the info panel provides real-time liquidity statistics:
Buy-Side Zones
• Count of active BSL zones above current price
• Higher number = More upside targets for price
Sell-Side Zones
• Count of active SSL zones below current price
• Higher number = More downside targets for price
Total Zones
• Combined count of all active liquidity
• Useful for gauging overall market structure
Nearest BSL
• Distance in % to closest Buy-Side Liquidity above
• Example: +2.5% means BSL is 2.5% above current price
• Quick reference for next upside target
Nearest SSL
• Distance in % to closest Sell-Side Liquidity below
• Example: -1.8% means SSL is 1.8% below current price
• Quick reference for next downside target
Liquidity Bias
• ⬆️ Bullish : More BSL than SSL (upside targets dominate)
• ⬇️ Bearish : More SSL than BSL (downside targets dominate)
• ↔️ Balanced: Equal liquidity on both sides (range-bound)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎓 Understanding Liquidity Strength
What Do The Numbers Mean?
Strength 1 : Single swing point
• Light liquidity, minor target
• Can be ignored in trending markets
• Useful in ranging/choppy conditions
Strength 2-3 : Moderate liquidity cluster
• Multiple nearby swing points merged
• Decent target for intraday moves
• Watch for potential sweeps
Strength 4-5 : Strong liquidity cluster
• Major cluster of stops
• High-probability target for institutions
• Expect reactions when swept
Strength 6+ : Extreme liquidity pool
• Massive stop cluster (rare)
• Critical zone - high probability of sweep
• Often marks major support/resistance
• Ideal for confluence setups
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📱 Alert Setup
This indicator includes 2 powerful alert types:
1. Buy-Side Liquidity Sweep
• Triggers when price sweeps BSL zone above
• Shows potential bullish reversal opportunity
• Often precedes upward continuation after sweep
2. Sell-Side Liquidity Sweep
• Triggers when price sweeps SSL zone below
• Shows potential bearish reversal opportunity
• Often precedes downward continuation after sweep
To Set Up Alerts:
1. Click the "Alert" button (clock icon) in TradingView
2. Condition: Select "Liquidity Heatmap"
3. Choose alert type: BSL Sweep or SSL Sweep
4. Configure notification method (push, email, webhook)
5. Click "Create"
Pro Tip: Set alerts for both BSL and SSL sweeps to catch opportunities in both directions
━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💎 Pro Tips & Best Practices
✅ DO:
• Wait for confirmation - Don't enter immediately on sweep, wait for reversal pattern
• Combine with trend - SSL sweeps in uptrends = higher probability longs
• Check multiple timeframes - 1H liquidity + 4H liquidity = strongest zones
• Monitor strength - Focus on zones with strength 3+
• Use proper risk management - Liquidity sweeps can go further than expected
• Watch for re-sweeps - Sometimes liquidity zones get swept multiple times
• Consider volume - High volume sweeps = stronger reversal potential
⚠️ DON'T:
• Don't fade strong trends - In strong trends, sweeps often continue rather than reverse
• Don't overtrade - Not every sweep is a tradeable setup
• Don't ignore context - Check broader market conditions and news
• Don't use alone - Combine with price action, support/resistance, and other analysis
• Don't place stops at liquidity - Your stops will be hunted
• Don't expect perfection
CRAZY RAY RAY - Dashboard 1-5-15-1D + SMC + Clock + Candles PRO OANDA:XAUUSD This script is essentially your institutional "nuclear power plant" for scalping and swing trading: it combines the 1-5-15-1D dashboard, SMC, PRO candles, money flow times, institutional filters, Bull/Bear 12C, Liquidity HUD, Fibo Move, and Target Trend with SL + 3 TPs into a single indicator. 1. Dashboard 1–5–15–1D (Central HUD)
Calculates across 4 timeframes: 1m, 5m, 15m, and 1D:
Trend with EMAs 15/30/200.
RSI (strength >50 buy, <50 sell).
MACD (crossover in favor or against).
For each timeframe it shows:
TREND → BULLISH / BEARISH / NEUTRAL.
ACTION → BUY / SELL / WAIT.
If all 4 timeframes align:
MODE = BULLISH BUY
MODE = BEARISH SELL
Filters and displays on the HUD if buys or sells are blocked by SMC context (BLOCKED BUY / BLOCKED SELL).
Also draws 2 simple moving averages on the chart:
SMA 20 white (you can use it as a micro-trend).
SMA 200 red (macro trend and institutional reference).
2. Real-Time Clock + Trading Hours
Calculates the real time for:
New York / Miami
London
Tokyo
using current time and real time zone.
Also calculates GMT time to know which session is dominant.
Marks your trading hours:
LONDON 3:00–5:30 (London time) → goodLondon
NY OPEN 8:30–10:00 (NY time) → goodNYOpen
ASIA 20:00–23:00 (Tokyo) → goodAsiaScalp
Displays a message on the HUD:
LONDON 3:00–5:30 (1–2 TRADES)
NY OPEN 8:30–10:00 (1 TRADE)
ASIA 20–23 (SCALP)
NO TRADE ROLL / DEAD / LATE
ONLY A+ SETUPS (when not in strong trading hours).
3. Institutional Power (volume + ATR + session)
Filter that evaluates whether the moment is institutional or retail:
Checks:
If you are in a strong trading session (London / NY). If the volume is above the average × multiplier.
If the ATR is above the average × multiplier.
If it passes the filters → INST ON, otherwise → RETAIL ZONE.
Used internally to block buys/sells and for the HUD.
4. Micro-signal “NO RETRACEMENT” on 1m (BUY SR / SELL SR)
On the 1-minute timeframe, it detects a very aggressive entry:
Clean trend (15/30/200 EMAs aligned).
Price crosses the 200 EMA.
MACD turns in favor.
Marks on the candle:
BUY SR (buys without retracement below the EMA200).
SELL SR (sales without retracement above the EMA200).
This state is also reflected in the HUD as the “SR” row.
5. SMC Block: HH/HL/LH/LL + BMS + ChoCH + Fibo + Zones
This is the SMC brain of the script:
Detects swings with pivots:
Paints HH, HL, LH, LL (if you activate showHHLL).
Marks BOS (break of structure).
Marks BMS and ChoCH (with strong or weak filter using ATR, volume, MACD, gaps).
Draws:
Internal Fibo of the last range (38–50–61).
Fibo entry zone 38–78% as a green discount/premium box.
Institutional mitigation zones (simple OB type green/red boxes).
Current range with dotted yellow lines.
Calculates logic for:
antiStupidBuy: blocks purchases when the context is very bearish (LL–LL–LH, bearish ChoCH, premium, EQH, etc.).
antiStupidSell: symmetrical for sales.
From this comes:
allowBuyInst
allowSellInst
buyBlockerOn / sellBlockerOn
buyTrapDetected (BUY SR signal but context blocks it → BUY TRAP).
All this feeds the HUD and institutional alerts.
6. PRO Candles (candlestick + smart color)
Candlestick pattern system:
Detects:
Hammer, Inverted Hammer. Doji.
Strong bullish/bearish candle.
Bullish/bearish engulfing.
Uses a trend EMA to determine if the pattern is with or against the trend.
Colors the candles according to the pattern (if you enable useColorCandles).
Defines texts:
patternText (pattern name).
biasText (reversal, momentum, indecision).
Updates the HUD with the current pattern (“CANDLE: Engulf Bull”, etc.).
7. Institutional PRO Combo + Reversals
Connects everything:
fullBuySetup:
allowBuyInst TRUE (SMC + Fibo + mitigation OK).
Institutional candles in favor (engulfing, hammer, etc.).
MultiTF aligned (1m, 5m in favor, 15/1D not strongly against).
Strong session (London or NY).
No blockages.
fullSellSetup: the same for sales.
Marks on the chart:
BUY PRO, SELL PRO.
BUY REV LL → reversal from a LL, at Fibo discount, with an institutional candle and above EMA200.
SELL REV HH → reversal from HH, at Fibo premium, with an institutional candle and below EMA200.
And generates alerts for all of this.
8. Dynamic Main HUD
On barstate.islast, updates the HUD:
Changes “BUY / SELL” to:
BUY BLOCK / SELL BLOCK when the context blocks that direction.
Writes:
Current candle pattern.
Time message.
Global status:
BUY TRAP ❌, BUY REV LL ✅, SELL REV HH ✅, BUY PRO ✅, SELL PRO ✅,
BUY BLOCK, SELL BLOCK, BUY/SELL OK.
9. Bull/Bear 12C HUD (Small right HUD)
12-confirmation bull/bear engine:
Calculates:
Sweep, 5th leg, mitigation, HL/LH, strong BOS.
Volume pattern (high-low-high).
ATR rising.
MACD crossover.
Liquidity.
Fear & Greed (SMA50).
Gap/imbalance. Bull/Bear 180 weak.
Count how many are ON:
bullScore /12
bearScore /12
Define a regime:
INSTITUTIONAL → many confirmations + rvol + ATR.
NORMAL
RETAIL
Show on right HUD:
List 1 to 12 with green/red dots BULL / BEAR.
Summary: “Regime: INSTITUTIONAL / NORMAL / RETAIL”.
10. Liquidity HUD XAU SCALP
Calculates RVOL, normalized ATR, spread vs ATR, current range vs average range.
Generates score and classifies:
LOW / MED / HIGH / INS.
Only moves up one level if you are in London/NY session (depending on sessions)
Pre-Market Confirmed Momentum – FULL WATCHLIST 2025**Pre-Market Confirmed Momentum – High-Conviction Gap Scanner (2025)**
Scans 94 high-liquidity NASDAQ/NYSE stocks (NVDA, TSLA, COIN, AMD, SOFI, ASTS, CIFR, etc.) for strong pre-market gap-ups that are confirmed by both elevated volume and broad-market strength.
**Entry triggers only when ALL are true at 09:29 ET:**
- ≥ +1.5% gap from previous regular close
- Pre-market volume ≥ 2.5× the 20-day average
- QQQ pre-market ≥ +0.5% (market filter)
Back-tested June 2024 – Dec 2025:
68 signals → **+1.96% average intraday return** → **75% win rate** after 1.5% hard stop.
Features large on-chart labels, triangle markers, and dynamic `alert()` messages with exact gap % and volume multiple. Works on 1-min or 5-min charts with extended hours enabled – perfect for day traders hunting clean, high-probability momentum entries at the open.
Ready for watchlist scanning and real-time alerts. Enjoy the edge! 🚀
Gap Down (3% or more)Identify Gap Down (3% or more) from the previous day's close to the next day's high.
FX Fresh Momentum FX Fresh Momentum calculates the true strength and session momentum of the 8 major currencies using a 7-pair average and session resets (Tokyo, London, New York).
Each session opens with a zero-base, allowing you to see only the fresh momentum.
Includes pair-averaged strength, ×100 momentum scaling, vertical session dividers, and institutional color coding.
Ideal for FX day traders who want cleaner session-based momentum signals
NeuroSwarm ETH — Crowd vs Experts Forecast TrackerEnglish:
NeuroSwarm — Crowd vs Experts Forecast Tracker (ETH)
This indicator visualizes monthly forecast data collected from two independent groups:
Crowd – a large sample of retail participants
Experts – a curated group of analysts and experienced market participants
For each month, the indicator plots the following values as horizontal levels on the price chart:
Median forecast (Crowd)
Average forecast (Crowd)
Median forecast (Experts)
Average forecast (Experts)
Shaded zones highlighting the difference between median and mean
All values are fixed for each month and stay unchanged historically.
This allows traders to analyze sentiment dynamics and compare how expectations from both groups align or diverge from actual price action.
Purpose:
This tool is intended for sentiment visualization and analytical insight — it does not generate trading signals.
Its main goal is to compare collective expectations of retail traders vs experts across time.
Data source:
All forecasts come from monthly surveys conducted within the NeuroSwarm project between the 1st and 5th day of each month.
Interface notice:
The script's UI may contain non-English labels for convenience, but a full English documentation is provided here in compliance with TradingView rules.
Русская версия:
NeuroSwarm — Мудрость Толпы vs Эксперты (ETH)
Индикатор отображает ежемесячные прогнозы двух групп:
Толпа: медиана и средняя прогнозов
Эксперты: медиана и средняя прогнозов
Значения фиксируются для каждого месяца и показываются горизонтальными уровнями.
Заливка отображает диапазон между медианой и средней, что упрощает визуальное сравнение настроений.
Это аналитический инструмент для визуализации настроений — не торговая стратегия.
Все данные берутся из ежемесячных опросов проекта NeuroSwarm.
NeuroSwarm BTC — Crowd vs Experts Forecast TrackerEnglish:
NeuroSwarm — Crowd vs Experts Forecast Tracker (BTC)
This indicator visualizes monthly forecasts collected from two independent groups:
Crowd – a large sample of retail traders
Experts – a smaller, curated group of analysts and experienced market participants
For each month, the following values are displayed as horizontal levels on the chart:
Median forecast of the Crowd
Average forecast of the Crowd
Median forecast of Experts
Average forecast of Experts
Shaded zones showing the range between median and mean
The values remain fixed throughout each month. This allows traders to compare sentiment dynamics between groups and see how expectations evolve relative to actual market movement.
Purpose:
This indicator is designed for sentiment analysis — NOT for generating trading signals.
It helps identify divergences between retail expectations and expert forecasts, which can be informative during trend transitions.
Data source:
All values come from monthly surveys conducted within the NeuroSwarm project (1–5 of every month).
Crowd and Expert groups are collected separately to avoid bias and to preserve independent aggregation.
Interface language note:
The indicator’s interface may contain non-English labels for ease of use, but full English documentation is provided here in compliance with TradingView House Rules.
Русская версия (optional, allowed only AFTER English):
NeuroSwarm — Мудрость Толпы vs Эксперты (BTC)
Индикатор показывает ежемесячные прогнозы двух групп:
Толпа: медиана и средняя прогнозов
Эксперты: медиана и средняя прогнозов
Значения фиксируются на весь месяц и отображаются на графике горизонтальными уровнями.
Заливка показывает диапазон между медианой и средней.
Цель индикатора — визуализировать настроение толпы и экспертов и сравнить его с реальным движением цены.
Это аналитический инструмент, а не торговая стратегия.
Данные берутся из ежемесячных опросов (1–5 числа), проводимых в рамках проекта NeuroSwarm.
MTF Dashboard Pro v2.3 © 2025 - Sachin ThakareMTF Dashboard Pro v2.3 — A premium multi-timeframe market dashboard created for professional traders.
Features include:
• MTF EMA Trend (9/21)
• MTF 200 MA System with Threshold Logic
• Session-based VWAP (Daily Reset)
• SuperTrend (Corrected Direction Engine)
• RSI / MACD / ADX / Alligator
• Stochastic (Correct Pine Signature)
• Daily PDH / PDL Bias
• 11-Signal Institutional Bias Score
• Trend Strength Classification (Strong Bull → Strong Bear)
• Multi-TF Alerts for Strong Bull / Strong Bear
• Optimized Table Engine & Enhanced Performance
Designed for Scalping, intraday, swing, and high-precision market bias evaluation across 3m → 1M timeframes.
Built & optimized by Sachin Thakare (2025 Edition).
RiskCraft - Advanced Risk Management SystemRiskCraft – Risk Intelligence Dashboard
Trade like you actually respect risk
"I know the setup looks good… but how much am I actually risking right now?"
RiskCraft is an open-source Pine Script v6 indicator that keeps risk transparent directly on the chart. It is not a signal generator; it is a risk desk that calculates size, frames volatility, and reminds you when your behaviour drifts away from the plan.
Core utilities
Calculates professional-style position sizing in real time.
Reads volatility and market regime before position size is confirmed.
Adjusts risk based on the trader’s emotional state and confidence inputs.
Maps session risk across Asian, London, and New York hours.
Draws exactly one stop line and one target line in the preferred direction.
Provides rotating education tips plus contextual warnings when risk escalates.
It is intentionally conservative and keeps you in the game long enough for any separate entry logic to matter.
---
Chart layout checklist
Use a clean chart on a liquid symbol (e.g., AMEX:SPY or major FX pairs).
Main RiskCraft dashboard placed on the right edge.
Session Risk box on the left with UTC time visible.
Floating risk badge above price.
Stop/target guide lines enabled.
Education panel visible in the bottom-right corner.
---
1. On-chart components
Right-side dashboard : account risk %, position size/value, stop, target, risk/reward, regime, trend strength, emotional state, behavioural score, correlation, and preferred trade direction.
Session Risk box : highlights active session (Asian, London, NY), current UTC time, and risk label (High/Med/Low) per session.
Floating risk badge : keeps actual account risk percent visible with colour-coded wording from Ultra Cautious to Very Aggressive.
Stop/target lines : exactly one dashed stop and one dashed target aligned with the preferred bias.
Education panel : rotates core principles and AI-style warnings tied to volatility, risk %, and behaviour flags.
---
2. Volatility engine – ATR with context 📈
atr = ta.atr(atrLength)
atrPercent = (atr / close) * 100
atrSMA = ta.sma(atr, atrLength)
volatilityRatio = atr / atrSMA
isHighVol = volatilityRatio > volThreshold
ATR vs ATR SMA shows how wild price is relative to recent history.
Volatility ratio above the threshold flips isHighVol , which immediately trims risk.
An ATR percentile rank over the last 100 bars indicates calm versus chaotic regimes.
Daily ATR sampling via request.security() gives higher time-frame context for intraday sessions.
When volatility spikes the script dials position size down automatically instead of cheering for maximum exposure.
---
3. Market regime radar – Danger or Drift 🌊
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
trendScore = (close > ema20 ? 1 : -1) +
(ema20 > ema50 ? 1 : -1) +
(ema50 > ema200 ? 1 : -1)
= ta.dmi(14, 14)
Regimes covered:
Danger : high volatility with weak trend.
Volatile : volatility elevated but structure still directional.
Choppy : low ADX and noisy action.
Trending : directional flows without extreme volatility.
Mixed : anything between.
Each regime maps to a 1–10 risk score and a multiplier that feeds the final position size. Danger and Choppy clamp size; Trending restores normal risk.
---
4. Behaviour engine – trader inputs matter 🧠
You provide:
Emotional state : Confident, Neutral, FOMO, Revenge, Fearful.
Confidence : slider from 1 to 10.
Toggle for behavioural adjustment on/off.
Behind the scenes:
Each state triggers an emotional multiplier .
Confidence produces a confidence multiplier .
Combined they form behavioralFactor and a 0–100 Behavioural Score .
High-risk emotions or low conviction clamp the final risk. Calm inputs allow normal size. The dashboard prints both fields to keep accountability on-screen.
---
5. Correlation guardrail – avoid stacking identical risk 📊
Optional correlation mode compares the active symbol to a reference (default AMEX:SPY ):
corrClose = request.security(correlationSymbol, timeframe.period, close)
priceReturn = ta.change(close) / close
corrReturn = ta.change(corrClose) / corrClose
correlation = calcCorrelation()
Absolute correlation above the threshold applies a correlation multiplier (< 1) to reduce size.
Dashboard row shows the live correlation and reference ticker.
When disabled, the row simply echoes the current symbol, keeping the table readable.
---
6. Position sizing engine – heart of the script 💰
baseRiskAmount = accountSize * (baseRiskPercent / 100)
adjustedRisk = baseRiskAmount * behavioralFactor *
regimeAdjustment * volAdjustment *
correlationAdjustment
finalRiskAmount = math.min(adjustedRisk,
accountSize * (maxRiskCap / 100))
stopDistance = atr * atrStopMultiplier
takeProfit = atr * atrTargetMultiplier
positionSize = stopDistance > 0 ? finalRiskAmount / stopDistance : 0
positionValue = positionSize * close
Outputs shown on the dashboard:
Position size in units and value in currency.
Actual risk % back on account after adjustments.
Risk/Reward derived from ATR-based stop and target.
---
7. Intelligent trade direction – bias without signals 🎯
Direction score ingredients:
EMA stack alignment.
Price versus EMA20.
RSI momentum relative to 50.
MACD line vs signal.
Directional Movement (DI+/DI–).
The resulting Trade Direction row prints LONG, SHORT, or NEUTRAL. No orders are generated—this is guidance so you only risk capital when the structure supports it.
---
8. Stop/target guide lines – two lines only ✂️
if showStopLines
if preferLong
// long stop below, target above
else if preferShort
// short stop above, target below
Lines refresh each bar to keep clutter low.
When the direction score is neutral, no lines appear.
Use them as visual anchors, not auto-orders.
---
9. Session Risk map – global volatility clock 🌍
Tracks Asian, London, and New York windows via UTC.
Computes average ATR per session versus global ATR SMA.
Labels each session High/Med/Low and colours the cells accordingly.
Top row shows the active session plus current UTC time so you always know the regime you are trading.
One glance tells you whether you are trading quiet drift or the part of the day that hunts stops.
---
10. Floating risk badge – honesty above price 🪪
Text ranges from Ultra Cautious through Very Aggressive.
Colour matches the risk palette inputs (High/Med/Low).
Updates on the last bar only, keeping historical clutter off the chart.
Account risk becomes impossible to ignore while you stare at price.
---
11. Education engine & warnings 📚
Rotates evergreen principles (risk 1–2%, journal trades, respect plan).
Triggers contextual warnings when volatility and risk % conflict.
Flags when emotional state = FOMO or Revenge.
Highlights sub-standard risk/reward setups.
When multiple danger flags stack, an AI-style warning overrides the tip text so you can course-correct before capital is exposed.
---
12. Alerts – hard guard rails 🚨
Excessive Risk Alert : actual risk % crosses custom threshold.
High Volatility Alert : ATR behaviour signals danger regime.
Emotional State Warning : FOMO or Revenge selected.
Poor Risk/Reward Alert : risk/reward drops below your standard.
All alerts reinforce discipline; none suggest entries or exits.
---
13. Multi-market behaviour 🕒
Intraday (1m–1h): session box and badge react quickly; ideal for scalpers needing constant risk context.
Higher time frames (1D–1W): dashboard shifts slowly, supporting swing planning.
Asset classes confirmed in validation: crypto majors, large-cap equities, indices, major FX pairs, and liquid commodities.
Risk logic is price-based, so it adapts across markets without bespoke tuning.
15. Key inputs & recommended defaults
Account Size : 10,000 (modify to match actual account; min 100).
Base Risk % : 1.0 with a Maximum Risk Cap of 2.5%.
ATR Period : 14, Stop Multiplier 2.0, Target Multiplier 3.0.
High Vol Threshold : 1.5 for ATR ratio.
Behavioural Adjustment : enabled by default; disable for fixed risk.
Correlation Check : optional; default symbol AMEX:SPY , threshold 0.7.
Display toggles : main dashboard, risk badge, session map, education panel, and stop lines can be individually disabled to reduce clutter.
16. Usage notes & limits
Indicator mode only; no automated entries or exits.
Trade history panel intentionally disabled (requires strategy context).
Correlation analysis depends on additional data requests and may lag slightly on illiquid symbols.
Session timing uses UTC; adjust expectations if you trade localized instruments.
HTF ATR sampling uses daily data, so bar replay on lower charts may show brief data gaps while HTF loads.
What does everyone think RISK really means?
Trinity Supertrend EliteTrinity Supertrend Elite - the one line to rule them all!
This is the smoothest, most respected, and most adaptive super trend line on TradingView today in our humble opinion.
When price is above the line → only longs make sense.
When price is below the line → only shorts make sense.
When the line is solid color → the daily trend agrees (extra confidence).
When the line is faded → you are fighting the higher-timeframe (be careful).
That’s it. One line tells you the entire market bias.
Why this beats every standard SuperTrend and every EMA (34, 50, 200, etc.)
Standard SuperTrend flips too early and too often — you get chopped to death in sideways markets.
Classic EMAs (34, 50, 200) lag so much that by the time they turn, half the move is gone.
The Trinity Baseline fixes both problems at once:
It uses a long, smart ATR + double smoothing (WMA → EMA) so the line is silky smooth and almost never whipsaws.
It adapts itself in real time — tightens in explosive trends, widens in chop, and even listens to the daily chart before committing.
It adds two-candle confirmation so fake flips are virtually eliminated.
It can optionally weigh real volume, making it follow institutional money instead of random noise.
Result: the line price respects like a magnet, often for weeks at a time.
How to use it (simple rules)
Never fight the line
Cyan = long only
Magenta = short only
Flat/sideways line = sit on your hands
Best entries
Pullbacks or bounces directly off the line
Breakouts that happen while the line is solid color (daily agreement)
Best timeframes
<10mins use the scalping the Holy Trinity Line preset
15m–1H for scalping/swing (use “15m–1H God Mode Enabled” preset)
4H–Daily for swing/position (use “4H–Daily Swing King”)
Weekly for long-term holds (use “Weekly Master of the Universe”)
Custom Settings: do you dare change the presets. If you do then we wish you well...
Combine with anything you already like
RSI, MACD, order blocks, liquidity grabs, your own Trinity Impulse oscillator — everything works better when you only take trades in the direction of this line.
Bottom line
If you want the single highest-probability filter that exists in the public TradingView world — one line that removes 80-90 % of losing trades before you even press the button — this is it.
Add it once, pick your preset, and watch how clean your curve becomes.
FX Global Strength — Interpretation & Trading FrameworkFX Global Currency Strength — Interpretation & Trading Framework
Enhance your market reading with real-time global strength lines for all major currencies.
Use this tool to confirm breakout validity, detect early divergences, and understand money flow dynamics across FX pairs.
Tip: I strongly recommend backtesting each technique on your preferred market conditions.
COMPONENTS
• Global Strength Lines
Show the relative performance of each major currency calculated across all their pairs.
You can apply the indicator on any timeframe — M1 to Monthly — and the strength is recalculated based on the selected period.
• Strength Difference (Base vs Quote)
Automatically computes which currency is stronger on the chart pair you are trading.
• Interactive Legend
Clear color-coded layout to instantly recognize each currency’s strength line.
HOW TO READ & INTERPRET
1. Global Currency Strength Lines
Higher line = stronger currency, gaining value across the market.
Lower line = weaker currency, losing value across pairs.
Quickly identify which currencies are being bought or sold globally.
Avoid low-quality setups: when both currencies of a pair are equally strong or equally weak, price tends to range or give false signals.
2. Risk-On / Risk-Off Context
Strength clustering reveals market sentiment:
Risk-On: high-beta currencies (AUD, NZD, GBP) strengthening together while safe havens (JPY, CHF) weaken.
Risk-Off: JPY/CHF strengthening while AUD/NZD/GBP weaken.
This helps confirm trend reliability and reduces the chance of trading against global flows.
3. Breakout Confirmation Using Strength
Before trading a breakout on your chart:
Check if the base currency is rising and the quote currency is dropping.
A breakout is more valid when price action + global strength move in the same direction.
If the chart breaks out but strength lines do not confirm the move, consider it a high probability of a false breakout.
4. Divergence Detection
Global strength lines provide early warnings:
If price makes new highs but base currency strength does not, momentum is fading.
If price makes new lows but quote currency weakens slower, a reversal may form.
This acts like an advanced RSI-style divergence, but measured across the entire FX market, not just one pair.
5. Money Flow Insight
Because the indicator aggregates data across all major pairs:
You can clearly see where capital is flowing across the FX market.
This helps you choose the best pairs to trade, not just the direction.
Example:
If USD is the strongest and JPY is the weakest → USDJPY typically offers strong, clean directional movement.
SUMMARY — Why This Indicator Helps
✓ Confirms your breakout trades
✓ Avoids weak or noisy chart conditions
✓ Catches early divergence before price reverses
✓ Shows market sentiment (risk-on / risk-off)
✓ Helps select the cleanest, most directional currency pairs
✓ Works on any timeframe, adapting to your trading style (scalping, swing, or position trading)
Sector Monitor✅ Custom Index Strength
Key Features:
Custom Indices: It mathematically combines stocks (like HDFC + ICICI + Kotak) to create a synthetic "Private Bank Index" that you can't find anywhere else. (Note all the stocks are Equal weighted)
Performance Tracking: Shows how much a sector has moved over 1 Day, 1 Week, 1 Month, etc.
RRG (Relative Rotation): A smart algorithm that tells you if a sector is leading the market or falling behind.
Understanding the "RRG" (Relative Rotation Graph)
This is the most powerful column in the table. It compares the sector against a benchmark (usually Nifty 500 EW) to tell you the "Health" of the trend.
It classifies every sector into one of four phases , similar to a clock cycle:
💚 Leading (Strong Trend): The sector is outperforming Nifty and momentum is strong. This is where the bulls are.
💛 Weakening (Taking a Breath): The sector is still strong, but it is starting to slow down. It might be time to book profits or wait.
❤️ Lagging (Weak Trend): The sector is underperforming. It is weak and losing money compared to the market. Avoid these.
💙 Improving (Waking Up): The sector was weak, but momentum is coming back. This is often where new trends start.
✅ RRG explained
Relative Strength (RS): how the sector is doing versus the benchmark today. RS = sector price divided by benchmark price.
Strength (X-axis): compare today’s RS with RS from (default 20) days ago . If today’s RS is higher than 20 days ago → Positive strength; lower → Negative.
Momentum (Y-axis): compare today’s RS with RS from (default 5) days ago . If today’s RS is higher than 5 days ago → Improving; lower → Worsening.
Numeric walk-through
Assume benchmark = 100 today, 95 (5D ago), 90 (20D ago).
Assume sector = 110 today, 100 (5D ago), 95 (20D ago).
RS today = 110 ÷ 100 = 1.10.
RS 5D ago = 100 ÷ 95 = 1.0526.
RS 20D ago = 95 ÷ 90 = 1.0556.
Strength (today vs 20D ago): RS moved from 1.0556 to 1.10 → about +4.2% → Positive.
Momentum (today vs 5D ago): RS moved from 1.0526 to 1.10 → about +4.5% → Improving.
Label: Positive + Improving = Leading.
Quick examples for each quadrant
(numbers are RS values; you can imagine each came from “sector ÷ benchmark”)
Leading (Positive & Improving)
RS(20D) 1.00 → RS(today) 1.10 ⇒ Strength +10% (Positive)
RS(5D) 1.05 → RS(today) 1.10 ⇒ Momentum +4.8% (Improving)
Weakening (Positive & Worsening)
RS(20D) 1.00 → RS(today) 1.08 ⇒ Strength +8% (Positive)
RS(5D) 1.12 → RS(today) 1.08 ⇒ Momentum −3.6% (Worsening)
Improving (Negative & Improving)
RS(20D) 1.05 → RS(today) 0.98 ⇒ Strength −6.7% (Negative)
RS(5D) 0.95 → RS(today) 0.98 ⇒ Momentum +3.2% (Improving)
Lagging (Negative & Worsening)
RS(20D) 1.00 → RS(today) 0.90 ⇒ Strength −10% (Negative)
RS(5D) 0.95 → RS(today) 0.90 ⇒ Momentum −5.3% (Worsening)
✅ 3. How to Use the Settings (Inputs)
When you open the settings menu, here is what each section controls:
Theme / Colors
Dark Mode: Check this if you use a dark background on Trading View.
Light Mode Theme: Choose between "Blue & Purple" or standard "Green & Red" for Up/Down colors.
RRG Settings
RRG Benchmark: What are we comparing our sectors to? usually, this is NIFTY 500 EW.
If Nifty is up 1% and your sector is up 2%, your sector is "Leading."
RS Period (Score): How far back do we look to check strength? (Default: 20). Lower numbers make it react faster; higher numbers make it smoother.
Momentum Lookback: How fast is the trend changing? (Default: 5).
Table Settings
Show Col 1 / 2 / 3: You can choose to see up to 3 timeframes plus the RRG column.
Timeframes (1D, 1W, 1M...): Set these to match your trading style.
Day Trader: Set Col 1 to 1D (1 Day) and Col 2 to 1W (1 Week).
Investor: Set Col 1 to 1M (1 Month) and Col 2 to 6M (6 Months).
Sort By: This is crucial. You can sort the table by "RRG" (to put the strongest sectors at the top) or by "Column 1" (to see today's biggest gainers).
Rows Shown: Limit the table to the "Top 10" or "Top 20" if the table is too big for your screen.
Symbol Selection
This is where the magic happens. The script comes pre-loaded with groups like "NBFC," "Housing Finance," etc.
Checkbox: Turn a specific sector ON or OFF in the table.
Input Box: You can actually edit the stocks!
Example: The input might look like NSE:TCS+NSE:INFY.
If you want to add Tech Mahindra, you simply add +NSE:TECHM to the text. The indicator will instantly recalculate the sector based on your new list.
✅ 4. Adjusting Inputs for Your Time Horizon
The logic is simple:
Lower Numbers: Make the indicator faster and more sensitive. It reacts quickly to price jumps but creates more "noise" (false signals).
Higher Numbers: Make the indicator slower and smoother. It filters out small corrections but reacts late to new trends.
Short-Term (Intraday / Fast Swing)
Recommended Inputs: Strength 10 | Momentum 3
Why: You need speed. By lowering the Strength to 10 days and Momentum to 3 days, the RRG will react instantly to sudden bursts of buying.
Best For: Catching "Micro-Rotations" (e.g., a sector suddenly waking up for a 2-3 day rally).
Trade-off: You will see sectors jump between "Leading" and "Weakening" very frequently.
Medium-Term (Standard Swing Trading)
Recommended Inputs: Strength 20 | Momentum 5 (Default)
Why: This is the "Goldilocks" zone. It ignores the daily noise but is fast enough to catch a trend that lasts for a few weeks.
Best For: Identifying the main theme of the current month.
Trade-off: Balanced. It might be slightly too slow for scalpers and slightly too fast for multi-year investors.
Long-Term (Position Investing)
Recommended Inputs: Strength 60 | Momentum 15
Why: A strength lookback of 60 (approx. 1 quarter) ensures you are only looking at major structural trends. A momentum of 15 ensures that a 2-day drop doesn't scare you out of a "Leading" sector.
Best For: Building a portfolio to hold for 6–12 months. If a sector is "Leading" here, it is in a massive bull run.
Trade-off: Very slow. By the time a sector turns "Leading," the trend has already been established for a while.
✅ 5. The "Secret" Tooltip Feature
Don't forget to hover your mouse cursor over the RRG Status text in the table (e.g., over the word "Leading").
A detailed box will appear showing:
Math: Exact Strength and Momentum scores.
Strategy: A text advice (e.g., "Trend is strong. Look for breakouts").
Constituents: The exact list of stocks used to calculate that sector's performance. This saves you from having to guess which stocks belong to that group.
Trinity Market Regime Detector ProDecided to release this one to the community to enjoy. Changes from the original script.
Trinity Market Regime Detector – Evolution Summary
#### Critical Bug Fixes
- Fixed false long signals when –DI was dominant (DMI direction is now fully respected)
- Fixed real breakouts and squeeze breakouts firing against the higher-timeframe trend
- Fixed table text not scaling when choosing “Tiny” size (now truly tiny → large)
- Fixed alert messages that contained series strings (now 100% const-string compliant)
#### Major Logic & Accuracy Improvements
- Added proper **Higher-Timeframe MA filter** (default 200 EMA on Daily) – fully configurable (SMA/EMA/WMA + any timeframe)
- All breakout signals now require alignment with the HTF trend (when enabled) → dramatically reduces whipsaws
- Added **CCI (20)** with bold green/red highlighting at ±100
- Improved volume logic (high/low volume now more adaptive)
- Improved ATR low-volatility detection
- Squeeze breakouts now only fire with correct DMI + HTF direction
- Fakeouts clearly marked with orange X
- Bias hierarchy completely rewritten and made crystal-clear
#### Visual & Usability Upgrades
- Perfect dynamic table scaling (no more gaps when hiding ALMA/RSI/CCI)
- Option for **zero table** – super-clean label-only mode (v2.9)
- Background tinting for Dead Market (red), Squeeze (yellow), Strong Trend (green)
- ALMA 34 and HTF MA plotted on chart with color-coding
- Clear on-chart arrows: green/red triangles for real breakouts, aqua diamonds for squeeze breakouts
- All labels use proper large/colored text for instant readability
#### Alert System Overhaul
- 100% working alerts (no more compilation errors)
- Separate alerts for:
- Real volume-confirmed breakouts
- High-probability squeeze breakouts
- Regime changes
- Fakeouts
- Clean, professional alert messages
In short:
The original was already excellent.
We turned it into a **bulletproof, professional-grade, zero-noise market regime tool** that serious traders can actually rely on every single day.
RRG Style RS & Momentum (vs Benchmark) by AKM
## What this indicator does
This indicator is an **RRG‑style Relative Strength & Momentum tool**.
It compares the current symbol to a chosen benchmark (e.g. NIFTY / NIFTY 500) and plots:
- **RS‑Ratio**: Out/under‑performance of the symbol vs the benchmark, normalized around 100.
- **RS‑Momentum**: Momentum of that relative strength, also normalized around 100.
- **RS‑Signal**: A smoothed signal line of RS‑Ratio (EMA of RS‑Ratio).
Using these two axes (RS‑Ratio and RS‑Momentum), each bar is classified into one of four **RRG‑style quadrants**:
- **LEADING** – RS‑Ratio > 100 and RS‑Momentum > 100
- **WEAKENING** – RS‑Ratio > 100 and RS‑Momentum < 100
- **LAGGING** – RS‑Ratio < 100 and RS‑Momentum < 100
- **IMPROVING** – RS‑Ratio < 100 and RS‑Momentum > 100
The chart background is color‑coded by quadrant, and a label on the center (100) line shows the current zone name (LEADING / WEAKENING / LAGGING / IMPROVING) in real time.
> **Concept credit:**
> The conceptual framework of “Relative Strength vs Momentum” in four quadrants (Leading, Weakening, Lagging, Improving) is inspired by **Relative Rotation Graphs® (RRG®)**, created by **Julius de Kempenaer** and commercialized through RRG Research and platforms like Bloomberg, StockCharts, Optuma, etc.
> This script is only an RRG‑inspired *1‑symbol vs benchmark* implementation inside Pine, not an official RRG product.
***
## Inputs
- **Benchmark symbol**:
Default `NSE:NIFTY`. You can set `NSE:NIFTY500`, `NSE:BANKNIFTY`, sector indices, etc.
- **RS base length (`rsLen`)**:
EMA length for smoothing the raw price ratio (symbol / benchmark). Lower = more sensitive, higher = smoother.
- **Smoothing length (`smoothLen`)**:
Secondary smoothing for RS‑Ratio. Default 14.
- **Signal length (`signalLen`)**:
EMA length for the RS‑Signal line (EMA of RS‑Ratio).
- **Momentum length (`momLen`)**:
Lookback for optional ROC‑based momentum.
- **Use ROC‑based momentum**:
If `false` (default): RS‑Momentum is computed as RS‑Ratio / EMA(RS‑Ratio) × 100 (ratio‑style).
If `true`: RS‑Momentum uses ROC(RS‑Ratio, momLen) + 100 (ROC‑style).
- **Show quadrant background**:
Toggles colored background by quadrant.
- **Show zone name on background**:
Shows a label on the 100‑line with the current quadrant name.
***
## How to read it
There is a horizontal center line at **100**:
- **RS‑Ratio > 100** → symbol is outperforming the benchmark.
- **RS‑Ratio < 100** → symbol is underperforming the benchmark.
- **RS‑Momentum > 100** → relative strength is improving (momentum picking up).
- **RS‑Momentum < 100** → relative strength is fading.
The four zones behave similar to classic RRG quadrants:
- **LEADING (lime/green background)**
- RS‑Ratio > 100 and RS‑Momentum > 100.
- Symbol is **stronger than the benchmark and momentum is strong**.
- This is where leadership typically resides.
- **WEAKENING (orange background)**
- RS‑Ratio > 100 and RS‑Momentum < 100.
- Still outperforming, but momentum is rolling over.
- Late‑stage leadership / time to be more selective and manage exits.
- **LAGGING (red background)**
- RS‑Ratio < 100 and RS‑Momentum < 100.
- Underperforming with weak momentum.
- Worst zone for aggressive longs.
- **IMPROVING (green background)**
- RS‑Ratio < 100 and RS‑Momentum > 100.
- Still weaker than benchmark, but momentum is improving.
- Early turnaround zone where future leaders often start.
The **white RS‑Signal line** is just a smoother of RS‑Ratio, helpful to visually see RS trend and crossovers.
***
## Practical trading use (RRG‑style workflow)
This indicator is designed as a **selection and context filter**, not a stand‑alone entry/exit system.
### 1. Sector and stock selection
1. Apply it to **sector indices** vs a broad benchmark (e.g., Nifty IT vs NIFTY 500, Nifty Auto vs NIFTY 500).
2. Focus on sectors where:
- The zone label is **IMPROVING → LEADING** over recent bars.
- RS‑Ratio is rising and staying above 100 in LEADING.
3. Then, on individual stocks inside those strong sectors, use the same benchmark and indicator:
- Prefer stocks that are also in **LEADING** (or just moved from **IMPROVING** into **LEADING**).
This recreates the essence of using RRG to find sectors/stocks with strong relative strength and momentum.
### 2. Combining with your price setup
Once a stock/sector passes the RS filter:
- Use your own price‑action / indicator rules for entries (EMA trends, VWAP pullbacks, breakouts, etc.).
- Example for longs:
- Only take long setups when:
- Sector index AND stock are in **LEADING** or newly from **IMPROVING → LEADING**, and
- Price is in an uptrend on your main chart (e.g., above 20/50 EMA, higher highs and higher lows).
### 3. Managing exits and rotation
- When a held symbol shifts from **LEADING → WEAKENING → LAGGING** and RS‑Momentum stays < 100, consider:
- Tightening stops.
- Partially booking profits.
- Rotating into other names still in LEADING / IMPROVING.
This mirrors how many investors use “sector rotation” and RRG to stay in stronger groups and reduce exposure in weakening ones.
***
## Disclaimers
- This script is for **educational and analytical purposes only** and is **not financial advice or a recommendation** to buy/sell any security.
- **Relative Rotation Graphs® / RRG®** and the four‑quadrant concept belong to **Julius de Kempenaer and RRG Research**; this Pine implementation is an independent, simplified adaptation for one symbol vs a benchmark and is **not an official RRG product or library**.
Nexural Flow Pro
NEXURAL FLOW PRO
Pure Order Flow Visualization for TradingView
WHAT THIS INDICATOR ACTUALLY IS
Nexural Flow Pro is a buy and sell volume separation tool that visualizes the ongoing battle between buyers and sellers on every bar. It uses TradingViews most accurate native function for approximating order flow by pulling tick direction data from lower timeframes and aggregating it into clean visual columns.
This indicator shows you who is in control right now. Not who was in control yesterday. Not what some lagging moving average thinks. It answers the most fundamental question in trading which is are buyers or sellers more aggressive at this moment.
The core premise is simple. When buyers are hitting the ask aggressively the price tends to go up. When sellers are hitting the bid aggressively the price tends to go down. This indicator attempts to measure that aggression using the best data TradingView provides.
WHAT THIS INDICATOR IS NOT
I need to be completely transparent with you because I believe education matters more than anything else
This is not true order flow. Real order flow requires access to the raw tape which shows every single trade as it happens along with whether it hit the bid or ask. It requires Level 2 depth of market data showing resting limit orders. It requires footprint charts that break down volume at each price level within a candle.
TradingView does not provide any of this data.
What TradingView does provide is tick direction data from lower timeframes which can be aggregated to approximate buy versus sell volume. This approximation is useful but it is not the same as reading the actual tape.
If you are a professional scalper or a futures day trader who needs precision order flow you should be using Sierra Chart or a similar platform with real market depth access. I use Sierra Chart myself for serious order flow work. This indicator exists for traders who either cannot access those platforms or who want supplementary confluence on TradingView.
HOW THE DATA WORKS
The indicator uses a Pine Script function called requestUpAndDownVolume which pulls volume data from a lower timeframe and categorizes it based on tick direction. When price ticks up on that lower timeframe the volume is counted as buying. When price ticks down the volume is counted as selling.
You have four timeframe modes to choose from.
Auto mode selects a sensible lower timeframe based on your current chart. On intraday charts it pulls from the one minute. On daily charts it pulls from the five minute.
Aggressive mode uses the smallest possible timeframe for maximum granularity. On intraday charts this means one second data when available.
Conservative mode uses slightly larger lower timeframes which can reduce noise but also reduces precision.
Custom mode lets you specify exactly which timeframe to pull data from.
When real tick data is not available such as on some symbols or during certain conditions the indicator falls back to a synthetic calculation based on where price closed within the candle range. This fallback is clearly labeled in the info panel so you always know what type of data you are seeing.
THE VISUAL SYSTEM
You have two display modes.
Stacked mode shows buy volume sitting on top of sell volume in a single column. This makes it easy to see total volume at a glance while still understanding the composition. The dividing line between green and red tells you instantly who dominated that bar.
Side by Side mode shows buy volume as an upward histogram and sell volume as a downward histogram. This creates a cleaner separation and makes it easier to compare the raw sizes of each.
Column colors shift based on context. High volume bars get more saturated colors. Low volume bars fade toward gray because they carry less significance. Strong imbalances get even more vivid coloring to draw your attention.
The imbalance glow feature adds a white border around columns where the buy to sell ratio exceeds three to one or vice versa. These moments represent potential exhaustion or continuation signals depending on context.
THE INFO PANEL
The panel in the corner gives you a real time dashboard of the current bar.
Bias tells you whether buyers or sellers are dominant and whether that dominance is mild or strong.
Delta shows the net difference between buy and sell volume. Positive delta means more buying. Negative delta means more selling.
Imbalance displays the ratio between the dominant and passive side. A three to one ratio means the dominant side has three times the volume of the other.
Buy and Sell rows show the actual volume numbers along with their percentage of total volume.
Volume Status tells you whether current volume is high normal or low compared to the fifty bar average. This matters because a strong imbalance on low volume means much less than the same imbalance on high volume.
Session Delta tracks the cumulative delta for the entire trading day. This helps you understand the overall flow bias since the session opened.
The data type indicator in the header shows REAL when you have actual tick data and SYNTH when the indicator is using the fallback calculation.
HOW TO ACTUALLY USE THIS
Here is my honest guidance on extracting value from this tool.
Use it for confluence not as a primary signal. If you see a support level on your chart and Flow Pro shows aggressive buying with a strong imbalance that is meaningful confluence. If you are about to short a resistance level and Flow Pro shows zero selling interest you might reconsider.
Pay attention to volume context. A ninety percent buy bar means nothing if total volume is a fraction of average. Always check the volume status before getting excited about an imbalance.
Watch for divergences between price and delta. If price is making new highs but delta is getting weaker that suggests buying pressure is fading. The opposite is also true. Price making new lows with weakening negative delta can signal seller exhaustion.
Use session delta for intraday bias. If session delta is deeply positive all day and you are looking to short you are fighting the flow. That does not mean you cannot short but you should demand a better setup.
The imbalance glow is a flag not a signal. When you see that white border it means something notable is happening. Whether that something leads to continuation or reversal depends on the context around it. Learn to read what happens after these moments.
Do not use this on low liquidity symbols. The tick direction approximation works best on liquid markets like ES SPY QQQ NQ and major forex pairs. On illiquid small caps the data becomes much less reliable.
STRENGTHS OF THIS APPROACH
This uses the absolute best data source TradingView offers for order flow approximation. There is no secret function or hidden data that would make this more accurate on this platform.
The visualization is clean and immediately readable. You do not need to interpret complex footprints or read raw tape. The information is distilled into an intuitive format.
Session tracking gives you cumulative context that single bar analysis cannot provide.
The honest data labeling tells you exactly what you are looking at. No pretending synthetic data is real.
It works on any symbol and any timeframe with appropriate data source adjustment.
LIMITATIONS YOU NEED TO UNDERSTAND
The tick direction method is an approximation. A large institutional order might execute across multiple price levels and get miscategorized. The indicator cannot know the true intent behind the volume.
There is no price level breakdown. Real footprint charts show you exactly how much volume traded at each price within a bar. This indicator aggregates everything into a single bar level summary.
You cannot see resting orders. The depth of market showing limit orders waiting to be filled is invisible on TradingView. You only see what already traded not what is waiting to trade.
Absorption detection is heuristic based. The indicator can flag high volume bars with small price movement but it cannot confirm whether that volume was actually absorbed by passive limit orders or simply mixed aggressive flow.
The one second data has gaps. Not all symbols support one second resolution and even when they do the data can be incomplete during fast markets.
WHO THIS IS FOR
Swing traders who want to add volume flow context to their technical analysis without switching platforms.
TradingView users who cannot access or afford professional order flow software but want something better than basic volume bars.
Traders learning about order flow concepts who want a visual introduction before moving to more complex tools.
Anyone who uses TradingView as their primary platform and wants the best possible volume analysis within that ecosystem.
WHO THIS IS NOT FOR
Professional scalpers who need millisecond precision and true tape reading. You need Sierra Chart Bookmap or a similar platform.
Traders who expect this to generate automatic buy and sell signals. This is an analysis tool not a signal generator.
Anyone trading illiquid instruments where volume data is sparse or unreliable.
FINAL THOUGHTS
I built this indicator because I wanted the best possible order flow visualization within TradingViews constraints. That meant being honest about what those constraints are rather than pretending they do not exist.
Order flow analysis is genuinely valuable. Understanding whether buyers or sellers are in control gives you an edge that pure price action analysis does not provide. But the quality of that understanding depends entirely on the quality of the underlying data.
On TradingView this indicator represents the ceiling of what is possible. It is not perfect but it is honest and it is useful when applied correctly with realistic expectations.
If this helps you make better trading decisions even occasionally it has done its job.
Trade well.
Nexural Trading
Confluence Retournement Haussier - Ultimate V1This indicator was originally designed to visualize the right moment to enter a position. I buy stocks when they are falling, at the bottom before they rebound.
The 30‑minute chart with its 100 EMA was used as the baseline, but it can be applied to multiple timeframes. I even used it on a 1‑second chart for a ticker, and when there is volume it works wonderfully.
It’s up to you to check whether it fits the ticker you’re analyzing by testing it on historical data.
Drawback: it takes up screen space. Feel free to improve it.
See a ticker in freefall and wonder whether it’s a good time to buy or if it will keep falling? Switch your chart to 30 minutes and watch for triangles and green circles to start appearing.
You could call it momentum. Your background begins to show color when there is confluence. If it stays black, don’t buy.
Already in the trade and the screen turns black? Sell, and wait for the colors to return before buying back in
Confluence Retournement Haussier - Ultimate V1This indicator was originally designed to visualize the right moment to enter a position. I buy stocks when they are falling, at the bottom before they rebound.
The 30‑minute chart with its 100 EMA was used as the baseline, but it can be applied to multiple timeframes. I even used it on a 1‑second chart for a ticker, and when there is volume it works wonderfully.
It’s up to you to check whether it fits the ticker you’re analyzing by testing it on historical data.
Drawback: it takes up screen space. Feel free to improve it.
See a ticker in freefall and wonder whether it’s a good time to buy or if it will keep falling? Switch your chart to 30 minutes and watch for triangles and green circles to start appearing.
You could call it momentum. Your background begins to show color when there is confluence. If it stays black, don’t buy.
Already in the trade and the screen turns black? Sell, and wait for the colors to return before buying back in
RoseTree M2 IndexM2 Money Supply Indicator with 10-Week Offset
This indicator tracks the expansion and contraction of M2 money supply with a 10-week offset, revealing strong correlation with Bitcoin price action. While other traders rely on standard 108/80 day offsets, our modified approach helps front-run market participants as this relationship has become widely recognized alpha.
Use this in combination with our systematic indicators to:
Project potential medium-term market trends
Position before major liquidity-driven moves
Identify divergences that signal potential trend changes
The indicator provides valuable insight into how expanding/contracting liquidity environments affect crypto markets, giving you a meaningful edge in anticipating broader market direction.
UM VIX30-rolling/VIX Ratio oscillatorSUMMARY
A forward-looking volatility tool that often signals VIX spikes and market reversals before they happen. MA direction flips spotlight the moment volatility pressure shifts.
DESCRIPTION
This indicator compares spot VIX to a synthetic 30-day constant-maturity volatility estimate (“VIX30”) built from VX1 and VX2 futures. The VIX30/VIX Ratio reveals short-term volatility pressure and regime shifts that traditional VX1/VX2 roll-yield alone often misses.
VIX30 is constructed using true calendar-day interpolation between VX1 and VX2, with VX1% and VX2% showing the real-time weights behind the 30-day volatility anchor. The table displays the volatility regime, the VX1/VX2 weights, spot-term roll yield (VIX30/VIX), and futures-term roll yield (VX2/VX1), giving a complete, front-of-the-curve perspective on volatility dynamics.
Use this to spot early vol expansions, collapsing contango, and regime transitions that influence VXX, UVXY, SVIX, VX options, and VIX futures.
⸻
HOW IT WORKS
The script calculates the exact calendar days to expiration for the front two VIX futures. It then applies linear interpolation to blend VX1 and VX2 into a 30-day constant-maturity synthetic volatility measure (“VIX30”). Comparing VIX30 to spot VIX produces the VIX30/VIX Ratio, which highlights short-term volatility pressure and regime direction. A full term-structure table summarizes regime, VX1%/VX2% weights, and both spot-term and futures-term roll yields.
⸻
DEFAULT SETTINGS
VX1! and VX2! are used by default for front-month and second-month futures. These may be manually overridden if TradingView rolls contracts early. The default timeframe is 30 minutes, and the VIX30/VIX Ratio uses a 21-period EMA for regime smoothing. The historical threshold is set to 1.08, reflecting the long-run average relationship between VIX30 and VIX. All settings are user-configurable.
⸻
SUGGESTED USES
• Identify early volatility expansions before they appear in VX1/VX2 roll yield.
• Confirm contango/backwardation shifts with front-of-curve context.
• Time long/short volatility trades in VXX, UVXY, SVIX, and VX options.
• Monitor regime transitions (Low → Cautionary → High) to anticipate trend inflections.
• Combine with price action, NW trends, or MA color-flip systems for higher-confidence entries.
• MA red → green flips may signal opportunities to short volatility or increase equity exposure.
• MA green → red flips may signal opportunities to go long volatility, reduce equity exposure, or even take short-equity positions.
⸻
ALERTS
Alerts trigger when the ratio crosses above or below the historical threshold or when the moving-average slope flips direction. A green flip signals rising volatility pressure; a red flip signals fading or collapsing volatility. These can be used to automate long/short volatility bias shifts or trade-entry notifications.
⸻
FURTHER HINTS
• Increasing orange/red in the table suggests an emerging higher-volatility environment.
• SVIX (inverse volatility ETF) can trend strongly when volatility decays; on a 6h chart, MA green flips often align with attractive short-volatility opportunities.
• For long-volatility trades, consider shrinking to a 30-minute chart and watching for MA green → red flips as early entry cues.
• Experiment with different timeframes and smoothing lengths to match your trading style.
• Higher VIX30/VIX and VX2/VX1 roll yields generally imply faster decay in VXX, UVXY, and UVIX — or stronger upside momentum in SVIX.
BTC STH Proxy vs Realized Price (RP) Ratio | STH : LTH📊 REALIZED PRICE MARKET SIGNAL
Indicator that builds a Short-Term Holder (STH) price proxy using a configurable moving average of Bitcoin’s market price and compares it to Bitcoin’s Realized Price (RP) derived from on-chain data.
Realized Price (RP) is calculated from CoinMetrics Realized Market Cap divided by Glassnode circulating supply.
STH Proxy is a user-defined moving average (EMA/SMA/WMA) of BTC price, designed to mimic the behavior of the true STH Realized Price.
Users can adjust the MA type, length, and RP smoothing to closely replicate the STH curve seen on Glassnode, Bitbo, and Bitcoin Magazine Pro.
Optionally, the indicator can display the STH/RP ratio, which highlights transitions between market phases.
This tool provides a simple but effective way to visualize short-term vs long-term holder cost-basis dynamics using only publicly accessible on-chain aggregates and price data.
----------
💡TLDR: An alt take on the Short-Term Holder Realized Price / Long-Term Holder Realized Price cross model | (STH/LTH cross)
- A mix of MAs are used to mimic STH.
- RP here used as a proxy for the long-term holder (LTH) cost basis.
- Bull/Bear signals are generated when the STH proxy crosses above or below RP.
⭐ Free to use • Leave feedback • Happy trading!
Self-Organized Criticality - Avalanche DistributionHere's all you need to know: This indicator applies Self-Organized Criticality (SOC) theory to financial markets, measuring the power-law exponent (alpha) of price drawdown distributions. It identifies whether markets are in stable Gaussian regimes or critical states where large cascading moves become more probable.
Self-Organized Criticality
SOC theory, introduced by Per Bak, Tang, and Wiesenfeld (1987), describes how complex systems naturally evolve toward critical (fragile) states. An example is a sand pile: adding grains creates avalanches whose sizes follow a power-law distribution rather than a normal distribution.
Financial markets exhibit similar behavior. Price movements aren't purely random walks—they display:
Fat-tailed distributions (more extreme events than Gaussian models predict)
Scale invariance (no characteristic avalanche size)
Intermittent dynamics (periods of calm punctuated by large cascades)
Power-Law Distributions
When a system is in a critical state, the probability of an avalanche of size s follows:
P(s) ∝ s^(-α)
Where:
α (alpha) is the power-law exponent
Higher α → distribution resembles Gaussian (large events rare)
Lower α → heavy tails dominate (large events common)
This indicator estimates α from the empirical distribution of price drawdowns.
Mathematical Method
1. Avalanche Detection
The indicator identifies local price peaks (highest point in a lookback window), then measures the percentage drawdown to the next trough. A dynamic ATR-based threshold filters out noise—small drops in calm markets count, but the bar rises in volatile periods.
2. Logarithmic Binning
Avalanche sizes are sorted into logarithmically-spaced bins (e.g., 1-2%, 2-4%, 4-8%) rather than linear bins. This captures power-law behavior across multiple scales - a 2% drop and 20% crash both matter. The indicator creates 12 adaptive bins spanning from your smallest to largest observed avalanche.
3. Bin-to-Bin Ratio Estimation
For each pair of adjacent bins, we calculate:
α ≈ log(N₁/N₂) / log(s₂/s₁)
Where N₁ and N₂ are avalanche counts, s₁ and s₂ are bin sizes.
Example: If 2% drops happen 4× more often than 4% drops, then α ≈ log(4)/log(2) ≈ 2.0.
We get 8-11 independent estimates and average them. This is more robust than fitting one line through all points—outliers can't dominate.
4. Rolling Window Analysis
Alpha recalculates using only recent avalanches (default: last 500 bars). Old data drops out as new avalanches occur, so the indicator tracks regime shifts in real-time.
Regime Classification
🟢 Gaussian α ≥ 2.8 Normal distribution behavior; large moves are rare outliers
🟡 Transitional 1.8 ≤ α < 2.8 Moderate fat tails; system approaching criticality
🟠 Critical 1.0 ≤ α < 1.8 Heavy tails; large avalanches increasingly common
🔴 Super-Critical α < 1.0 Extreme tail risk; system prone to cascading failures
What Alpha Tells You
Declining alpha → Market moving toward criticality; tail risk increasing
Rising alpha → Market stabilizing; returns to normal distribution
Persistent low alpha → Sustained fragility; heightened crash probability
Supporting Metrics
Heavy Tail %: Concentration of total drawdown in largest 10% of events
Populated Bins: Data coverage quality (11-12 out of 12 is ideal)
Avalanche Count: Sample size for statistical reliability
Limitations
This is a distributional measure, not a timing indicator. Low alpha indicates increased systemic risk but doesn't predict when a cascade will occur. Only that the probability distribution has shifted toward larger events.
How This Differs from the Per Bak Fragility Index
The SOC Avalanche Distribution calculates the power-law exponent (alpha) directly from price drawdown distributions - a pure mathematical analysis requiring only price data. The Per Bak Fragility Index aggregates external stress indicators (VIX, SKEW, credit spreads, put/call ratios) into a weighted composite score.
Technical Notes
Default settings optimized for daily and weekly timeframes on major indices
Requires minimum 200 bars of history for stable estimates
ATR-based dynamic sizing prevents scale-dependent bias
Alerts available for regime transitions and super-critical entry
References
Bak, P., Tang, C., & Wiesenfeld, K. (1987). Self-organized criticality: An explanation of the 1/f noise. Physical Review Letters.
Sornette, D. (2003). Why Stock Markets Crash: Critical Events in Complex Financial Systems. Princeton University Press.






















