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
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! 🚀
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)
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.
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?
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
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.
Angular Resistance & Breakout/BreakdownAngular Resistance & Breakout/Breakdown (Dynamic Trendlines)
This indicator provides a dynamic approach to identifying major support and resistance levels by fitting Linear Regression lines to recent pivot points (swing highs and swing lows). Unlike static horizontal lines, these "Angular" trendlines adapt to the market's slope, providing continuously adjusting targets for resistance and support, along with signals for confirmed breakouts and breakdowns.
💡 Key Features
Dynamic Trendlines: Utilizes Linear Regression to automatically draw sloped trendlines based on a configurable number of the most recent swing pivots.
Confirmed Signals: Generates clear Breakout (▲) and Breakdown (▼) signals with optional buffer and sensitivity filters to reduce noise.
Customizable Inputs: Fine-tune the pivot detection period, the number of points used for regression, line extension, and signal sensitivity.
On-Chart Info Panel: A table displays real-time data, including the number of detected pivot points and the current calculated price level of the dynamic lines.
⚙️ How It Works (The Logic)
Pivot Detection: The script uses the standard ta.pivothigh() and ta.pivotlow() functions to reliably identify swing points, based on the Pivot Left and Pivot Right settings. These points are stored in dynamic arrays (highs for resistance, lows for support).
Angular Line Generation: A custom function, f_regression_from_array, performs a Linear Regression analysis using the bar index (X-axis) and the pivot price (Y-axis) for the Points to use. This calculation determines the optimal slope and intercept to draw a best-fit dynamic line through the identified pivot points.
Breakout/Breakdown Confirmation:
Breakout: Triggered when the current close price crosses above the dynamic resistance line plus the user-defined Breakout buffer.
Breakdown: Triggered when the current close price crosses below the dynamic support line minus the user-defined Breakout buffer.
Sensitivity Filter: An optional filter requires the price movement on the signal bar to exceed a minimum percentage (Label sensitivity) away from the line to confirm the momentum of the move.
UM VIX30/VIX Regime & Volatility Roll Yield
SUMMARY
A front-of-the-curve volatility indicator that compares spot VIX to a synthetic 30-day VIX (VIX30) built from VX1/VX2 futures, revealing early volatility pressure, regime shifts, and roll-yield transitions. Ideal for timing long/short volatility trades in VXX, UVXY, SVIX, and VIX futures.
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 volatility 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.
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, Nadaraya-Watson 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 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 alert conditions 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 6-hour 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.
• The author likes the 6-hour chart for short vol, and the 30-minute chart for long vol. Long vol trades are fast and furious so you want to be quick.
Smart Christmas Tree Overlay with Live Market StatusGet into the holiday spirit while you trade! 🎅📈
This script adds a festive, animated Christmas tree overlay to your chart that reacts to live market conditions in real-time. It is designed with a "Slim Fit" ratio to minimize screen real estate while maximizing the holiday vibe.
Key Features:
🎄 Trend-Reactive Lighting:
Bullish (Up): The tree lights sparkle in Green tones, and a special Blue Diamond (🔷) shines to indicate upward momentum.
Bearish (Down): The tree lights turn Red, and a Red Diamond (♦️) blinks to warn of downward movement.
✨ Real-Time Animation: The lights and star blink dynamically based on price updates, making the chart feel alive.
📊 Mini Market HUD: Displays the current Ticker, Last Price, Price Change, and Change % neatly below the tree.
📐 Fully Customizable: You can easily change the tree's Position (Corners/Middle) and Size (Small to Large) via the settings menu.
🖼️ "Always On" Overlay: Uses the TradingView table function to stay fixed on your screen, regardless of zoom or scroll.
How to use: Simply add it to your chart, select your preferred corner in the settings, and enjoy the show!
Happy Holidays and Profitable Trading! 🎁
==================================================================================
트레이딩을 하면서 연말 분위기를 느껴보세요! 🎅📈
이 스크립트는 실시간 시장 상황에 반응하는 애니메이션 크리스마스 트리 오버레이를 차트에 추가합니다. 화면 공간을 최소한으로 차지하도록 "슬림 핏" 비율로 디자인되었습니다.
주요 기능:
🎄 추세 반응형 조명:
상승장 (Bullish): 트리 조명이 녹색 톤으로 반짝이며, 상승 모멘텀을 나타내는 특별한 **파란색 다이아몬드(🔷)**가 빛납니다.
하락장 (Bearish): 트리 조명이 빨간색으로 변하고, **빨간색 다이아몬드(♦️)**가 깜빡이며 하락을 경고합니다.
✨ 실시간 애니메이션: 가격 업데이트에 따라 조명과 별이 역동적으로 깜빡여 차트에 생동감을 줍니다.
📊 미니 시세판 (HUD): 트리 바로 아래에 현재 종목명, 현재가, 가격 변동폭, 변동률(%)을 깔끔하게 표시합니다.
📐 완벽한 커스터마이징: 설정 메뉴를 통해 트리의 위치(모서리/중간)와 크기(작게~크게)를 쉽게 변경할 수 있습니다.
🖼️ "Always On" 오버레이: TradingView의 table 기능을 사용하여 줌이나 스크롤에 관계없이 화면에 고정됩니다.
사용 방법: 차트에 추가하고 설정에서 원하는 위치를 선택하기만 하면 됩니다!
행복한 연말 보내시고 성투하세요! 🎁
양키트레이더 from PropKorea.com
BTC Fear & Greed Incremental StrategyIMPORTANT: READ SETUP GUIDE BELOW OR IT WON'T WORK
# BTC Fear & Greed Incremental Strategy — TradeMaster AI (Pure BTC Stack)
## Strategy Overview
This advanced Bitcoin accumulation strategy is designed for long-term hodlers who want to systematically take profits during greed cycles and accumulate during fear periods, while preserving their core BTC position. Unlike traditional strategies that start with cash, this approach begins with a specified BTC allocation, making it perfect for existing Bitcoin holders who want to optimize their stack management.
## Key Features
### 🎯 **Pure BTC Stack Mode**
- Start with any amount of BTC (configurable)
- Strategy manages your existing stack, not new purchases
- Perfect for hodlers who want to optimize without timing markets
### 📊 **Fear & Greed Integration**
- Uses market sentiment data to drive buy/sell decisions
- Configurable thresholds for greed (selling) and fear (buying) triggers
- Automatic validation to ensure proper 0-100 scale data source
### 🐂 **Bull Year Optimization**
- Smart quarterly selling during bull market years (2017, 2021, 2025)
- Q1: 1% sells, Q2: 2% sells, Q3/Q4: 5% sells (configurable)
- **NO SELLING** during non-bull years - pure accumulation mode
- Preserves BTC during early bull phases, maximizes profits at peaks
### 🐻 **Bear Market Intelligence**
- Multi-regime detection: Bull, Early Bear, Deep Bear, Early Bull
- Different buying strategies based on market conditions
- Enhanced buying during deep bear markets with configurable multipliers
- Visual regime backgrounds for easy market condition identification
### 🛡️ **Risk Management**
- Minimum BTC allocation floor (prevents selling entire stack)
- Configurable position sizing for all trades
- Multiple safety checks and validation
### 📈 **Advanced Visualization**
- Clean 0-100 scale with 2 decimal precision
- Three main indicators: BTC Allocation %, Fear & Greed Index, BTC Holdings
- Real-time portfolio tracking with cash position display
- Enhanced info table showing all key metrics
## How to Use
### **Step 1: Setup**
1. Add the strategy to your BTC/USD chart (daily timeframe recommended)
2. **CRITICAL**: In settings, change the "Fear & Greed Source" from "close" to a proper 0-100 Fear & Greed indicator
---------------
I recommend Crypto Fear & Greed Index by TIA_Technology indicator
When selecting source with this indicator, look for "Crypto Fear and Greed Index:Index"
---------------
3. Set your "Starting BTC Quantity" to match your actual holdings
4. Configure your preferred "Start Date" (when you want the strategy to begin)
### **Step 2: Configure Bull Year Logic**
- Enable "Bull Year Logic" (default: enabled)
- Adjust quarterly sell percentages:
- Q1 (Jan-Mar): 1% (conservative early bull)
- Q2 (Apr-Jun): 2% (moderate mid bull)
- Q3/Q4 (Jul-Dec): 5% (aggressive peak targeting)
- Add future bull years to the list as needed
### **Step 3: Fine-tune Thresholds**
- **Greed Threshold**: 80 (sell when F&G > 80)
- **Fear Threshold**: 20 (buy when F&G < 20 in bull markets)
- **Deep Bear Fear Threshold**: 25 (enhanced buying in bear markets)
- Adjust based on your risk tolerance
### **Step 4: Risk Management**
- Set "Minimum BTC Allocation %" (default 20%) - prevents selling entire stack
- Configure sell/buy percentages based on your position size
- Enable bear market filters for enhanced timing
### **Step 5: Monitor Performance**
- **Orange Line**: Your BTC allocation percentage (target: fluctuate between 20-100%)
- **Blue Line**: Actual BTC holdings (should preserve core position)
- **Pink Line**: Fear & Greed Index (drives all decisions)
- **Table**: Real-time portfolio metrics including cash position
## Reading the Indicators
### **BTC Allocation Percentage (Orange Line)**
- **100%**: All portfolio in BTC, no cash available for buying
- **80%**: 80% BTC, 20% cash ready for fear buying
- **20%**: Minimum allocation, maximum cash position
### **Trading Signals**
- **Green Buy Signals**: Appear during fear periods with available cash
- **Red Sell Signals**: Appear during greed periods in bull years only
- **No Signals**: Either allocation limits reached or non-bull year
## Strategy Logic
### **Bull Years (2017, 2021, 2025)**
- Q1: Conservative 1% sells (preserve stack for later)
- Q2: Moderate 2% sells (gradual profit taking)
- Q3/Q4: Aggressive 5% sells (peak targeting)
- Fear buying active (accumulate on dips)
### **Non-Bull Years**
- **Zero selling** - pure accumulation mode
- Enhanced fear buying during bear markets
- Focus on rebuilding stack for next bull cycle
## Important Notes
- **This is not financial advice** - backtest thoroughly before use
- Designed for **long-term holders** (4+ year cycles)
- **Requires proper Fear & Greed data source** - validate in settings
- Best used on **daily timeframe** for major trend following
- **Cash calculations**: Use allocation % and BTC holdings to calculate available cash: `Cash = (Total Portfolio × (1 - Allocation%/100))`
## Risk Disclaimer
This strategy involves active trading and position management. Past performance does not guarantee future results. Always do your own research and never invest more than you can afford to lose. The strategy is designed for educational purposes and long-term Bitcoin accumulation thesis.
---
*Developed by Sol_Crypto for the Bitcoin community. Happy stacking! 🚀*
XAUUSD Macro Anomaly Pulses (Chart XAU) - sudoXAUUSD Macro Anomaly Pulses
A simple pulse indicator that highlights when XAUUSD moves in a way that macro conditions cannot fully explain
Overview
This indicator marks candles on XAUUSD that behave differently than what the broader market suggests should happen.
Instead of looking at XAUUSD alone, this tool compares gold’s actual movement to an expected movement based on:
Other gold cross pairs (XAUJPY, XAUAUD, XAUCHF)
The U.S. Dollar Index (DXY), inverted
The US30 index (Dow Jones)
When XAUUSD moves much stronger or weaker than this macro-based expectation, the indicator plots a small pulse (a circle) directly on the candle.
Purpose
This indicator helps you quickly see when a candle on XAUUSD is acting “out of character” compared to normal macro flow. In other words:
“Did XAUUSD move in a way that makes sense with the rest of the market, or did something weird happen?”
These unusual moves often signal:
Liquidity grabs
Stop hunts
News-driven spikes
False breakouts
Front-running of macro shifts
How It Works
It reads the XAUUSD candles directly from the chart.
This ensures pulses stick to your candles correctly.
It pulls data from basket legs (XAUJPY, XAUAUD, XAUCHF) and macro symbols (DXY, US30) using security calls.
It converts each symbol into a simple % return per candle.
It builds an “expected” gold move using weighted inputs:
Average return of gold crosses
Inverse return of DXY
Return of US30
It calculates the “residual,” which means:
actual XAU return - expected macro return
It turns that into a Z-score to measure how extreme the deviation is.
If the Z-score is too high or too low, the script marks the candle:
Aqua pulse below bar = unusually strong move
Fuchsia pulse above bar = unusually weak move
How to Interpret the Pulses
Aqua Pulse (below candle) – Bullish anomaly
XAUUSD moved stronger than the macro environment suggests.
Meaning:
-Possible liquidity grab upward
-Possible early trend move
-Possible false breakout
-Price may be overreacting
Fuchsia Pulse (above candle) – Bearish anomaly
XAUUSD moved weaker than expected.
Meaning:
-Possible liquidity sweep downward
-Possible aggressive sell-side event
-Possible exhaustion
-Price may be taking liquidity before reversing
Typical Use Cases
-Spot moments when gold acts independently of macro
-Identify candles that might signal a reversal or a trap
-Confirm whether a breakout is real or suspicious
-Filter trades by macro alignment
-Help understand when XAUUSD is reacting to news or liquidity instead of fundamentals
Inputs Explained
- Z-score Lookback – How many candles are considered normal behavior
- Z-threshold – How extreme a move must be before it is marked
- Basket / DXY / US30 weights – How much influence each macro component has
Smart Money Concept with CPR Hariss 369The Central Pivot Range (CPR) is a price-based intraday support–resistance indicator used to identify market trend, strength, and breakout levels. It is calculated using the previous day’s High, Low, and Close. CPR consists of three levels:
PP (Pivot Point) = (High + Low + Close) / 3
BC (Bottom Central) = (High + Low) / 2
TC (Top Central) = 2 × PP – BC
Together, BC–PP–TC form the CPR zone.
How traders use CPR
Narrow CPR → Indicates high probability of trending or volatile moves.
Wide CPR → Suggests range-bound or sideways market.
Price above CPR → Bullish bias.
Price below CPR → Bearish bias.
Breakouts of TC/BC are often used for intraday trades with momentum confirmation (like volume or moving averages).
Why CPR is popular
CPR helps traders quickly judge the market tone, identify key levels, and plan trades around breakout, reversal, or trending conditions. It is widely used in index and stock intraday trading.
To strengthen the trade, RSI, RVOL and DMI/ADX have been added to this strategy with optional filter. One can change these values based on one's trading style and risk appetite.
On bullish trend BC is often used as stop loss and on bearish trend TC is often used as stop loss.
Per Bak Self-Organized CriticalityTL;DR: This indicator measures market fragility. It measures the system's vulnerability to cascade failures and phase transitions. I've added four independent stress vectors: tail risk, volatility regime, credit stress, and positioning extremes. This allows us to quantify how susceptible markets are to disproportionate moves from small shocks, similar to how a steep sandpile is primed for avalanches.
Avalanches, forest fires, earthquakes, pandemic outbreaks, and market crashes. What do they all have in common? They are not random.
These events follow power laws - stable systems that naturally evolve toward critical states where small triggers can unleash catastrophic cascades.
For example, if you are building a sandpile, there will be a point with a little bit additional sand will cause a landslide.
Markets build fragility grain by grain, like a sandpile approaching avalanche.
The Per Bak Self-Organized Criticality (SOC) indicator detects when the markets are a few grains away from collapse.
This indicator is highly inspired by the work of Per Bak related to the science of self-organized criticality .
As Bak said:
"The earthquake does not 'know how large it will become'. Thus, any precursor state of a large event is essentially identical to a precursor state of a small event."
For markets, this means:
We cannot predict individual crash size from initial conditions
We can predict statistical distribution of crashes
We can identify periods of increased systemic risk (proximity to critical state)
BTW, this is a forwarding looking indicator and doesn't reprint. :)
The Story of Per Bak
In 1987, Danish physicist Per Bak and his colleagues discovered an important pattern in nature: self-organized criticality.
Their sandpile experiment revealed something: drop grains of sand one by one onto a pile, and the system naturally evolves toward a critical state. Most grains cause nothing. Some trigger small slides. But occasionally a single grain triggers a massive avalanche.
The key insight is that we cannot predict which grain will trigger the avalanche, but you can measure when the pile has reached a critical state.
Why Markets Are the Ultimate SOC System?
Financial markets exhibit all the hallmarks of self-organized criticality:
Interconnected agents (traders, institutions, algorithms) with feedback loops
Non-linear interactions where small events can cascade through the system
Power-law distributions of returns (fat tails, not normal distributions)
Natural evolution toward fragility as leverage builds, correlations tighten, and positioning crowds
Phase transitions where calm markets suddenly shift to crisis regimes
Mathematical Foundation
Power Law Distributions
Traditional finance assumes returns follow a normal distribution. "Markets return 10% on average." But I disagree. Markets follow power laws:
P(x) ∝ x^(-α)
Where P(x) is the probability of an event of size x, and α is the power law exponent (typically 3-4 for financial markets).
What this means: Small moves happen constantly. Medium moves are less frequent. Catastrophic moves are rare but follow predictable probability distributions. The "fat tails" are features of critical systems.
Critical Slowing Down
As systems approach phase transitions, they exhibit critical slowing down—reduced ability to absorb shocks. Mathematically, this appears as:
τ ∝ |T - T_c|^(-ν)
Where τ is the relaxation time, T is the current state, T_c is the critical threshold, and ν is the critical exponent.
Translation: Near criticality, markets take longer to recover from perturbations. Fragility compounds.
Component Aggregation & Non-Linear Emergence
The Per Bak SOC our index aggregates four normalized components (each scaled 0-100) with tunable weights:
SOC = w₁·C_tail + w₂·C_vol + w₃·C_credit + w₄·C_position
Default weights (you can change this):
w₁ = 0.34 (Tail Risk via SKEW)
w₂ = 0.26 (Volatility Regime via VIX term structure)
w₃ = 0.18 (Credit Stress via HYG/LQD + TED spread)
w₄ = 0.22 (Positioning Extremes via Put/Call ratio)
Each component uses percentile ranking over a 252-day lookback combined with absolute thresholds to capture both relative regime shifts and extreme absolute levels.
The Four Pillars Explained
1. Tail Risk (SKEW Index)
Measures options market pricing of fat-tail events. High SKEW indicates elevated outlier probability.
C_tail = 0.7·percentrank(SKEW, 252) + 0.3·((SKEW - 115)/0.5)
2. Volatility Regime (VIX Term Structure)
Combines VIX level with term structure slope. Backwardation signals acute stress.
C_vol = 0.4·VIX_level + 0.35·VIX_slope + 0.25·VIX_ratio
3. Credit Stress (HYG/LQD + TED Spread)
Tracks high-yield deterioration versus investment-grade and interbank lending stress.
C_credit = 0.65·percentrank(LQD/HYG, 252) + 0.35·(TED/0.75)·100
4. Positioning Extremes (Put/Call Ratio)
Detects extreme hedging demand through percentile ranking and z-score analysis.
C_position = 0.6·percentrank(P/C, 252) + 0.4·zscore_normalized
What the Indicator Really Measures?
Not Volatility but Fragility
Markets Going Down ≠ Fragility Building (actually when markets go down, risk and fragility are released)
The 0-100 Scale & Regime Thresholds
The indicator outputs a 0-100 fragility score with four regimes:
🟢 Safe (0-39): System resilient, can absorb normal shocks
🟡 Building (40-54): Early fragility signs, watch for deterioration
🟠 Elevated (55-69): System vulnerable
🔴 Critical (70-100): Highly susceptible to cascade failures
Further Reading for Nerds
Bak, P., Tang, C., & Wiesenfeld, K. (1987). "Self-organized criticality: An explanation of 1/f noise." Physical Review Letters.
Bak, P. & Chen, K. (1991). "Self-organized criticality." Scientific American.
Bak, P. (1996). How Nature Works: The Science of Self-Organized Criticality. Copernicus.
Feedback is appreciated :)
Gold-to-GDX Flow Ratio (Metal vs Miners)# 📊 Indicator: Gold/GDX Flow Ratio (Metal vs Miners)
🔎 What it does
This indicator tracks the **relative flow of capital between gold and gold miners (GDX ETF)**. By plotting the ratio of gold price to GDX, it shows whether investors are favoring the **metal itself** or the **equities that mine it**.
- **Ratio rising:** Flow favors gold (metal > miners).
- **Ratio falling:** Flow favors miners (miners > metal).
- **Crossovers:** Fast/slow EMA crossovers highlight regime shifts.
- **Z‑score bands:** ±2 standard deviations flag stretched conditions, often precursors to mean reversion.
⚙️ Features
- **Customizable inputs:** Choose spot gold (`XAUUSD`) or futures (`GC1!`), and GDX ETF.
- **Moving averages:** Fast and slow EMAs to define flow regimes.
- **Z‑score overlay:** Detects extremes in the ratio.
- **Alerts:** Triggered on regime flips or exhaustion signals.
- **Prompt flow option:** Displays the current ratio as a clear on‑screen figure for quick read.
🎭 Why it matters
- **Gold vs miners divergence:** Miners often amplify moves in gold, but sometimes decouple. This ratio helps spot those divergences early.
- **Flow diagnostics:** Instead of vague “profit taking” narratives, you see where capital is actually rotating.
- **Tactical entries:** Use resistance/stop‑cluster maps in gold together with this ratio to time miner trades more effectively.
🧭 How to use
1. Add the indicator to your chart.
2. Watch the **ratio trend**: rising = metal strength, falling = miner strength.
3. Use **EMA crossovers** as regime signals.
4. Treat **Z‑score extremes** as caution zones for stretched flows.
5. Combine with your VWAP and resistance overlays for execution discipline.






















