TrendFib Pro [KhedrFX]Automatic Fibonacci Indicator for TradingView: Real-Time Retracement, Extension & XABC Pattern Tool
TrendFib Pro is a powerful automatic Fibonacci indicator for TradingView that detects recent swing highs and lows in real time to plot precise Fibonacci retracement and extension levels. It combines dynamic swing identification with standard Fibonacci ratios and projects an XABC pattern structure — highlighting key B retracement zones (0.382 or 0.5) and a forward dashed C target — to reveal high-probability confluence areas for trend continuations, pullbacks, and reversals.
This TradingView Fibonacci tool eliminates manual drawing, providing crystal-clear levels and visual aids for faster decision-making across any market (Forex, Crypto, Stocks, Gold, Indices) and timeframe (1-minute to monthly).
Core Features & Underlying Concepts
- Dynamic Swing Detection: Automatically identifies the latest major swing high/low using an adjustable lookback period (default 50 bars) for accurate, real-time auto Fib levels without repainting after confirmation.
- Complete Fibonacci Suite: Plots essential retracement levels (0, 0.236, 0.382, 0.5, 0.618, 0.786, 1) and extension targets (1.272, 1.414, 1.618) based on detected swings ideal for Golden Pocket (0.618 area) bounces and trend continuation setups.
- XABC Pattern Projection: Recognizes potential X-A-B-C formations, validates B retracement depth, and projects a future C target (dashed line) to anticipate explosive moves or reversals after pattern development.
- Visual Confluence Zones: Semi-transparent background boxes highlight high-probability areas (e.g., around 0.5, 0.618, or extensions) for instant visual recognition.
- Customizable Display: One-color mode, adjustable line styles (solid/dashed/dotted), thickness, left/right extensions, label positions (left/middle/right), and price/percent labeling options.
- Info Table: Quick summary of recent XABC-related prices on the last bar for at-a-glance analysis.
- Performance Optimized: Limits drawing objects (~500 max) to ensure smooth chart performance.
This dynamic Fibonacci tool stands out by merging automatic detection, full Fib suite, and basic pattern projection into one non-repainting indicator — saving time while spotlighting confluences where Fibonacci levels align with potential XABC structures.
How to Use TrendFib Pro for Pullback Trading, Reversals & Extensions
The indicator auto-adapts to your chart timeframe — simply switch and see updated Fibonacci retracement TradingView levels and projections.
- Scalping / Intraday (1m–15m) : Use shorter lookback (20–30 bars) for quick swings in volatile markets. Target shallow pullback trading Fib entries at 0.382, 0.5, or 0.618 in strong trends. Monitor XABC C-target for short momentum bursts.
- Day Trading (30m–4h) : Default 50-bar lookback excels here. Hunt bounces at Golden Pocket Fibonacci (0.618–0.65) or 0.5 retests. Use extensions (1.272+) for take-profits and XABC projections for intraday targets.
- Swing / Position Trading (Daily–Weekly) : Extend lookback (80–150 bars) for major swings. Focus on shallow pullbacks (0.236/0.382) in trends or deep 0.786 reversals. Extensions become multi-day targets; XABC often signals key turning points.
Multi-Timeframe Confluence Strategy
Start on higher timeframes (Daily/4h) for trend bias and primary Fib zones, then drop to your trading timeframe for entries where levels cluster (e.g., higher-TF 0.618 + lower-TF 0.5). This alignment dramatically boosts setup probability.
⚠️ Trade Responsibly
TrendFib Pro (TFPro KFX) is a professional-grade analytical tool — not a guaranteed profit machine. For best results, combine it with solid risk management and complementary indicators such as RSI, MACD, or Volume Profile. Trading involves significant risk of loss — always use proper position sizing, stop losses, and backtest thoroughly before live trading.
חפש סקריפטים עבור "bear"
Rhokeo-VW-RSI Histogram for Cumulative Delta by ZeiirmanRhokeo-VW-RSI Histogram: Volume-Weighted Momentum (use with Cumulative Delta from Zeiierman) Note that Cumulative Delta is a paid indicator.
Overview: The Rhokeo-VW-RSI Histogram is a momentum oscillator designed to filter out market noise by integrating volume directly into the RSI calculation. Unlike a standard RSI, which only considers price change, this indicator weights those changes by the volume occurring at the time.
It creates a momentum profile in the form of a Histogram. If the price moves on high volume, the indicator reflects that strong market interest through its volume-weighted gain and loss calculations. It is particularly effective as a complementary filter for “Cumulative Delta” from Zeiierman to confirm the strength behind a move before you enter a trade.
How It Works The indicator operates on a normalized scale of -1.0 to +1.0 for easier visual interpretation and compatibility with Cumulative Delta indicator:
• The Volume-Weighted Core: Gains and losses are calculated by multiplying the price change by volume to ensure the "Relative Strength" reflects true capital flow.
• Smoothing for Clarity: The raw Volume Weighted RSI (VW-RSI) is processed through a customizable Moving Average—such as SMA, EMA, SMMA, WMA, or VWMA—to produce the smooth histogram.
• Four-Zone Coloring System: The histogram changes color dynamically based on momentum intensity:
o Strong Bull: Price is trending up with high-volume conviction.
o Weak Bull: Positive momentum, but not yet overextended.
o Weak Bear: Negative momentum starting to build.
o Strong Bear: Heavy selling pressure with high-volume conviction.
Key Features
• Shading: The background features optional red and green shading in the "Extreme" zones to warn traders of potential exhaustion areas.
• Dynamic Zero Line: The center line flips color between Green and Red based on whether the VW-RSI is positive or negative.
• Customization: Traders can adjust the smoothing length, source price, and the specific levels for overbought/oversold zones.
Best Use Case for New Traders: New traders often get "faked out" by price spikes that have no volume behind them. This indicator helps confirm and time better entries:
1. Wait for your Cumulative Delta indicator to give a signal.
2. Check the VW-RSI Histogram and whether it confirms or not.
3. Long Entry: Only enter if the histogram is positive and rising (above 0).
4. Short Entry: Only enter if the histogram is negative and decreasing (below 0).
________________________________________
Disclaimer
Financial Risk:
• Trading involves significant risk, and most traders lose money.
• This indicator is a tool for technical analysis and does not constitute financial, investment, or trading advice.
• Past performance is not indicative of future results; never trade with money you cannot afford to lose.
Usage & Reliability:
• The Rhokeo-VW-RSI Histogram is provided "as-is" for educational and informational purposes only.
• While volume-weighting aims to filter market noise, no indicator can guarantee 100% accuracy or predict future market movements with certainty.
• This script is intended to be a complementary tool that works well with other indicators in this case the Cumulative Delta from Zeiirman; it should be used in conjunction with other forms of analysis, risk management, and your own due diligence.
Commercial Notice:
• If you are using this alongside a third-party paid indicator, please note that I am not responsible for the performance or support of external products.
• Users are responsible for their own trade execution and account management.
Deep AILibrary "Deeptest"
Comprehensive quantitative backtesting library with 112+ metrics: Sharpe/Sortino ratios, drawdown analysis, Monte Carlo simulation, Walk-Forward Analysis, VaR/CVaR, benchmark comparison, and interactive table rendering for TradingView strategies
@version 1.0.1 (01.01.2026)
============================================================================
CHANGELOG
============================================================================
v1.0.1 (01.01.2026)
- Added textSize parameter to runDeeptest() for controlling table text size
- New values: size.auto, size.small, size.tiny, size.normal, size.large
- Applies to all tables: main, stress test, drawdowns, recoveries, trades
v1.0.0 (31.12.2025)
- Initial release
- 112+ backtesting metrics
- Monte Carlo simulation and Walk-Forward Analysis
- Interactive table rendering with tooltips
============================================================================
TABLE OF CONTENTS
============================================================================
SECTION 1: File Header & Metadata
SECTION 2: Constants & Configuration
SECTION 3: Type Definitions
SECTION 4: Core Calculation Functions - Array Utilities
SECTION 5: Core Calculation Functions - Return Extraction
SECTION 6: Core Calculation Functions - Sharpe & Sortino
SECTION 7: Core Calculation Functions - Performance Metrics
SECTION 8: Core Calculation Functions - Drawdown Analysis
SECTION 9: Core Calculation Functions - Recovery Analysis
SECTION 10: Core Calculation Functions - Trade Analysis
SECTION 11: Core Calculation Functions - Statistical Distribution
SECTION 12: Core Calculation Functions - Risk Metrics
SECTION 13: Core Calculation Functions - Benchmark Comparison
SECTION 14: Core Calculation Functions - Time-Based Metrics
SECTION 15: Core Calculation Functions - Rolling Statistics
SECTION 16: Core Calculation Functions - Strategy Integration
SECTION 17: Core Calculation Functions - Walk Forward Analysis
SECTION 18: Core Calculation Functions - Monte Carlo Simulation
SECTION 19: Core Calculation Functions - Out-of-Sample Analysis
SECTION 20: Formatting Utilities - Value Formatting
SECTION 21: Formatting Utilities - Duration Formatting
SECTION 22: Formatting Utilities - Frequency Formatting
SECTION 23: Formatting Utilities - Date Formatting
SECTION 24: Tooltip Builders - Main Table Metrics
SECTION 25: Tooltip Builders - Complementary Metrics
SECTION 26: Tooltip Builders - Stress Test Metrics
SECTION 27: Tooltip Builders - Period Analysis Cards
SECTION 28: Table Rendering - Structure Helpers
SECTION 29: Table Rendering - Main Deeptest Table
SECTION 30: Table Rendering - Cell Renderers - Complementary Row
SECTION 31: Table Rendering - Stress Test Table
SECTION 32: Table Rendering - Period Analysis Cards
SECTION 33: Main Entry Point
============================================================================
API REFERENCE
============================================================================
Main Export:
------------
runDeeptest() - Complete backtest analysis orchestrator
============================================================================
KEY FEATURES
============================================================================
- Comprehensive backtesting metrics (112+ functions)
- Rolling window analysis with statistical distributions
- Advanced risk metrics (Sharpe, Sortino, Calmar, Martin, VaR, CVaR)
- Drawdown and recovery analysis
- Monte Carlo simulation and Walk-Forward Analysis
- Trade analysis (top/worst trades, consecutive streaks)
- Benchmark comparison (Alpha, Beta, R², Buy & Hold)
- Interactive table rendering with tooltips
============================================================================
USAGE EXAMPLE
============================================================================
╔══════════════════════════════════════════════════════════════════════════════╗
║ PROGRESSIVE USAGE EXAMPLES ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ Three examples demonstrating increasing complexity: ║
║ 1. MINIMAL - "Hello World" with basic MA crossover ║
║ 2. BALANCED - Production ready with risk management & filters ║
║ 3. PROFESSIONAL - Full-featured with trailing stops & session filters ║
╚══════════════════════════════════════════════════════════════════════════════╝
╔══════════════════════════════════════════════════════════════════════════════╗
║ EXAMPLE 1: MINIMAL (The "Hello World") ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ The simplest possible integration - just 3 lines to get started: ║
║ 1. Import the library ║
║ 2. Write your strategy logic ║
║ 3. Call runDeeptest() ║
╚══════════════════════════════════════════════════════════════════════════════╝
//@version=6
strategy("MA Crossover ", overlay=true)
// ═══════════════════════════════════════════════════════════════════════════
// ⮟ Import Deeptest (Direct import - no namespace prefix needed)
// ═══════════════════════════════════════════════════════════════════════════
import Fractalyst/Deeptest/1 as *
// ────────────────────────────────────────────────────────────────────────────
// Strategy Logic: Simple Moving Average Crossover
// ────────────────────────────────────────────────────────────────────────────
fastMA = ta.sma(close, 10) // Fast MA: 10 periods
slowMA = ta.sma(close, 30) // Slow MA: 30 periods
// Plot MAs for visualization
plot(fastMA, "Fast MA", color=color.blue)
plot(slowMA, "Slow MA", color=color.orange)
// Entry: Long when fast MA crosses above slow MA
if ta.crossover(fastMA, slowMA)
strategy.entry("Long", strategy.long)
// Exit: Close when fast MA crosses below slow MA
if ta.crossunder(fastMA, slowMA)
strategy.close("Long")
// ═══════════════════════════════════════════════════════════════════════════
// ⮟ Run backtest analysis (all parameters use smart defaults)
// ═══════════════════════════════════════════════════════════════════════════
DT.runDeeptest()
╔══════════════════════════════════════════════════════════════════════════════╗
║ EXAMPLE 2: BALANCED (Production Ready) ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ Adds essential production features: ║
║ • User-configurable inputs ║
║ • ADX trend filter to avoid choppy markets ║
║ • Stop loss / Take profit for risk management ║
║ • Custom backtest parameters ║
╚══════════════════════════════════════════════════════════════════════════════╝
//@version=6
strategy("MA Crossover ", overlay=true)
import Fractalyst/Deeptest/1 as *
// ────────────────────────────────────────────────────────────────────────────
// INPUT PARAMETERS
// ────────────────────────────────────────────────────────────────────────────
fastLen = input.int(10, "Fast MA Period", minval=1)
slowLen = input.int(30, "Slow MA Period", minval=1)
riskPct = input.float(2.0, "Risk %", minval=0.1) / 100
slPct = input.float(5.0, "Stop Loss %", minval=0.1) / 100
tpPct = input.float(10.0, "Take Profit %", minval=0.1) / 100
adxThresh = input.int(20, "ADX Trend Threshold")
// ────────────────────────────────────────────────────────────────────────────
// INDICATORS
// ────────────────────────────────────────────────────────────────────────────
fastMA = ta.sma(close, fastLen)
slowMA = ta.sma(close, slowLen)
adx = ta.adx(14)
= ta.dmi(14, 14)
// ────────────────────────────────────────────────────────────────────────────
// FILTERS
// ────────────────────────────────────────────────────────────────────────────
trendConfirmed = adx > adxThresh and diPlus > diMinus
// ────────────────────────────────────────────────────────────────────────────
// STRATEGY LOGIC
// ────────────────────────────────────────────────────────────────────────────
// Entry: MA crossover + trend confirmation
if ta.crossover(fastMA, slowMA) and trendConfirmed
strategy.entry("Long", strategy.long)
// Exit: MA crossunder
if ta.crossunder(fastMA, slowMA)
strategy.close("Long")
// Risk management: Stop loss and take profit
if strategy.position_size > 0
strategy.exit("RM", "Long",
stop=strategy.position_avg_price * (1 - slPct),
limit=strategy.position_avg_price * (1 + tpPct))
// ═══════════════════════════════════════════════════════════════════════════
// ⮟ Run backtest with custom parameters
// ═══════════════════════════════════════════════════════════════════════════
DT.runDeeptest(
riskPerTrade = 1.0, // ← 1% risk per trade
targetMaxDDPct = 15.0, // ← 15% max drawdown target
showStressTest = true, // ← Enable stress test table
showPeriodCards = true, // ← Enable period cards
wfaWindows = 12, // ← Walk-forward windows
mcSimulations = 1000, // ← Monte Carlo runs
bullColor = color.new(#00b9ff, 0),
bearColor = color.new(#ff0051, 0),
benchmarkSymbol = "SPX", // ← Compare to S&P; 500
periodCardMode = "drawdowns", // ← Show drawdown periods
tradeSortBy = "return" // ← Sort by return %
)
╔══════════════════════════════════════════════════════════════════════════════╗
║ EXAMPLE 3: PROFESSIONAL (Full-Featured) ║
╠══════════════════════════════════════════════════════════════════════════════╣
║ Complete professional implementation: ║
║ • Organized input groups for better UX ║
║ • Multiple filters: ADX trend, ATR volatility, Session timing ║
║ • Trailing stop to lock in profits ║
║ • Position highlighting for visual feedback ║
║ • Full parameter customization with inline documentation ║
╚══════════════════════════════════════════════════════════════════════════════╝
//@version=6
runDeeptest(targetMaxDDPct, bullColor, bearColor, tableBg, headerBg, borderColor, textPrimary, textMuted, textSize, showComplementaryRow, showStressTestTable, showDrawdownRecoveryCards, showTradeCards)
Parameters:
targetMaxDDPct (float)
bullColor (color)
bearColor (color)
tableBg (color)
headerBg (color)
borderColor (color)
textPrimary (color)
textMuted (color)
textSize (string)
showComplementaryRow (bool)
showStressTestTable (bool)
showDrawdownRecoveryCards (bool)
showTradeCards (bool)
ThresholdConfig
ThresholdConfig - Configuration for metric thresholds and corresponding colors
Fields:
sharpeExc (series float)
sharpeGood (series float)
sharpeOk (series float)
sharpeBear (series color)
sharpeNeutral (series color)
sharpeOrange (series color)
sharpeBull (series color)
ddSevere (series float)
ddMod (series float)
ddMild (series float)
ddSevereColor (series color)
ddModColor (series color)
ddOrange (series color)
ddGoodColor (series color)
rorHigh (series float)
rorMod (series float)
rorLow (series float)
rorHighColor (series color)
rorModColor (series color)
rorOrange (series color)
rorLowColor (series color)
r2Poor (series float)
r2Mod (series float)
r2Good (series float)
r2PoorColor (series color)
r2ModColor (series color)
r2Orange (series color)
r2GoodColor (series color)
kurtHigh (series float)
kurtMod (series float)
kurtOk (series float)
kurtHighColor (series color)
kurtModColor (series color)
kurtOrange (series color)
kurtGoodColor (series color)
skewVNeg (series float)
skewModNeg (series float)
skewPos (series float)
skewVPos (series float)
skewVNegColor (series color)
skewModNegColor (series color)
skewNeutral (series color)
skewPosColor (series color)
payoffPoor (series float)
payoffBE (series float)
payoffGood (series float)
payoffPoorColor (series color)
payoffBEColor (series color)
payoffOrange (series color)
payoffGoodColor (series color)
pfPoor (series float)
pfBE (series float)
pfGood (series float)
pfPoorColor (series color)
pfBEColor (series color)
pfOrange (series color)
pfGoodColor (series color)
ulcerHigh (series float)
ulcerLow (series float)
ulcerHighColor (series color)
ulcerModColor (series color)
ulcerOrange (series color)
ulcerLowColor (series color)
wrLow (series float)
wrOk (series float)
wrHigh (series float)
wrLowColor (series color)
wrOkColor (series color)
wrOrange (series color)
wrHighColor (series color)
cagrPoor (series float)
cagrOk (series float)
cagrGood (series float)
cagrPoorColor (series color)
cagrOkColor (series color)
cagrOrange (series color)
cagrGoodColor (series color)
pInsig (series float)
pMod (series float)
pSig (series float)
pInsigColor (series color)
pModColor (series color)
pOrange (series color)
pSigColor (series color)
calmarPoor (series float)
calmarBE (series float)
calmarGood (series float)
calmarPoorColor (series color)
calmarBEColor (series color)
calmarOrange (series color)
calmarGoodColor (series color)
betaHigh (series float)
betaLow (series float)
betaHighColor (series color)
betaLowColor (series color)
betaGoodColor (series color)
Stats
Stats - Comprehensive backtest statistics container
Fields:
totalTrades (series int)
winTrades (series int)
lossTrades (series int)
evenTrades (series int)
winRate (series float)
lossRate (series float)
avgWinPct (series float)
avgLossPct (series float)
avgTradePct (series float)
profitFactor (series float)
payoffRatio (series float)
expectancy (series float)
grossProfit (series float)
grossLoss (series float)
netProfit (series float)
netProfitPct (series float)
compEffect (series float)
sharpe (series float)
sortino (series float)
calmar (series float)
martin (series float)
maxDrawdown (series float)
maxDrawdownPct (series float)
currentDrawdown (series float)
currentDrawdownPct (series float)
avgDrawdownPct (series float)
maxEquity (series float)
minEquity (series float)
cagr (series float)
monthlyReturn (series float)
maxConsecWins (series int)
maxConsecLosses (series int)
avgTradeDuration (series float)
avgWinDuration (series float)
avgLossDuration (series float)
timeInMarketPct (series float)
tradesPerMonth (series float)
tradesPerYear (series float)
skewness (series float)
kurtosis (series float)
var95 (series float)
cvar95 (series float)
ulcerIndex (series float)
riskOfRuin (series float)
pValue (series float)
zScore (series float)
alpha (series float)
beta (series float)
buyHoldReturn (series float)
equityRSquared (series float)
firstTradeTime (series int)
lastTradeTime (series int)
tradingPeriodDays (series float)
RollingWindowSummary
RollingWindowSummary - Summary of metrics for a single rolling analysis window
Fields:
windowIndex (series int)
startTrade (series int)
endTrade (series int)
effectiveCount (series int)
minValue (series float)
maxValue (series float)
metricValue (series float)
RollingStats
RollingStats - Statistical distribution of rolling window metrics
Fields:
windowSize (series int) : Number of trades in rolling window
expectancyMin (series float) : Minimum rolling expectancy
expectancyMax (series float) : Maximum rolling expectancy
sharpeMin (series float) : Minimum rolling Sharpe
sharpeMax (series float) : Maximum rolling Sharpe
sortinoMin (series float) : Minimum rolling Sortino
sortinoMax (series float) : Maximum rolling Sortino
expectancyWindows (array) : Per-window summaries for expectancy
sharpeWindows (array) : Per-window summaries for Sharpe
sortinoWindows (array) : Per-window summaries for Sortino
expectancyMean (series float) : Mean expectancy across rolling windows
expectancyStdDev (series float) : Standard deviation of expectancy
expectancyPct90 (series float) : 90th percentile expectancy
expectancyPct50 (series float) : 50th percentile expectancy (median)
expectancyPct10 (series float) : 10th percentile expectancy
sharpeMean (series float) : Mean Sharpe across rolling windows
sharpeStdDev (series float) : Standard deviation of Sharpe
sharpePct90 (series float) : 90th percentile Sharpe
sharpePct50 (series float) : 50th percentile Sharpe
sharpePct10 (series float) : 10th percentile Sharpe
sortinoMean (series float) : Mean Sortino across rolling windows
sortinoStdDev (series float) : Standard deviation of Sortino
sortinoPct90 (series float) : 90th percentile Sortino
sortinoPct50 (series float) : 50th percentile Sortino
sortinoPct10 (series float) : 10th percentile Sortino
Chande Momentum Oscillator - CMO🎯 Overview
This is a sophisticated Chande Momentum Oscillator indicator that combines traditional momentum analysis with dynamic moving average filtering. Unlike basic CMO implementations, this version features gradient visualization, multiple color themes, and a clear signal dashboard for precise momentum identification.
🧩 Core Components
1. ⚙️ Technical Foundation
📊 Primary Calculation: Uses TradingView's built-in ta.cmo() function with customizable source and period length
📈 Dual Analysis Components:
CMO Line: Pure momentum oscillator ranging from -100 to +100
MA Filter: Customizable moving average that acts as dynamic signal line
Gradient Zones: Visual fill between CMO and MA showing momentum intensity
⚡ Dynamic Comparison: Creates clear bullish/bearish signals based on CMO vs MA position
2. 🎛️ Configuration Parameters
📏 CMO Length: Default 14 periods (standard momentum setting)
🔄 MA Filter Settings:
Length: Customizable (default 365 periods)
Type: 6 options available (EMA, SMA, RMA, WMA, VWMA, HMA)
🎨 Color Themes: 5 visual schemes consistent with your indicator suite:
Classic, Modern, Robust, Accented, Monochrome
📊 Signal Interpretation:
🟢 BULLISH: CMO > MA Filter (momentum above trend)
🔴 BEARISH: CMO < MA Filter (momentum below trend)
3. 🎨 Visual Elements
🚨 Gradient Zones:
Upper zone (CMO > MA): Green gradient showing bullish momentum intensity
Lower zone (CMO < MA): Red gradient showing bearish momentum intensity
📋 Dashboard Display: Top-right status indicator showing "⬆️ Bullish" or "⬇️ Bearish"
📊 Dynamic Coloring: CMO line changes color based on position relative to MA
⚡ Trading Applications
📈 Primary Uses:
🎯 Momentum Direction Identification:
CMO > MA = Bullish momentum regime
CMO < MA = Bearish momentum regime
💪 Momentum Strength Assessment:
CMO > +50 = Strong bullish momentum
CMO < -50 = Strong bearish momentum
Between -50 and +50 = Moderate momentum
🚨 Crossover Signals:
Bull Signal: CMO crosses above MA
Bear Signal: CMO crosses below MA
📊 Zone Analysis:
🟢 Bullish Zones:
Light to dark green gradient as CMO rises
Strongest color at highest CMO values
🔴 Bearish Zones:
Light to dark red gradient as CMO falls
Strongest color at lowest CMO values
🟡 Equilibrium: Yellow MA line acts as dynamic pivot
🎨 Customization Options
👁️ Display Features:
📊 Dual Components: Always shows both CMO line and MA filter
🎨 Gradient Visualization: Automatic fill between lines showing momentum intensity
📋 Status Dashboard: Clear bullish/bearish indication
📈 Customizable MA: Choose from 6 different moving average types
🎨 Visual Themes: (Consistent suite)
🎨 Classic: Green/Red (traditional momentum colors)
🚀 Modern: Cyan/Purple (contemporary)
💪 Robust: Amber/Deep Purple (high contrast)
🌈 Accented: Purple/Magenta (vibrant)
⚫⚪ Monochrome: Light Gray/Dark Gray (minimalist)
🔔 Alert System
🟢 LONG Alert: Triggers when CMO crosses above MA
🔴 SHORT Alert: Triggers when CMO crosses below MA
📧 Format: Includes ticker symbol for tracking
⚡ Key Advantages
✅ Strengths:
🎯 Clear Momentum Signals: Direct comparison between CMO and MA provides unambiguous entries/exits
💪 Trend Filter: MA acts as dynamic support/resistance for momentum
👁️ Visual Clarity: Gradient zones show momentum intensity at a glance
🔄 Flexible Configuration: Multiple MA types for different trading styles
📊 Professional Dashboard: Immediate status recognition
📊 Optimal Settings:
⚡ Short-term Trading: CMO Length 9-14, MA Length 20-50
📊 Medium-term Trading: CMO Length 14-20, MA Length 50-100
📈 Long-term Trading: CMO Length 20-30, MA Length 100-365
🏆 Unique Features:
🎯 Gradient Visualization: Color intensity reflects momentum strength
📊 MA Filter Flexibility: 6 different moving average types
🎨 Consistent Design: Matches your indicator family aesthetics
📋 Status Dashboard: Quick visual confirmation of regime
🔧 Dual Analysis: Combines momentum oscillator with trend filter
🔄 Trading Strategies
1. Basic Momentum Strategy:
Go LONG when CMO crosses above MA
Go SHORT when CMO crosses below MA
Use extreme readings (>+80 or <-80) for overbought/oversold conditions
2. Momentum Strength Strategy:
Strong bullish: CMO > MA AND CMO > +50
Strong bearish: CMO < MA AND CMO < -50
Weak signals: Between -50 and +50
3. Divergence Detection:
Price makes higher high, CMO makes lower high → Bearish divergence
Price makes lower low, CMO makes higher low → Bullish divergence
📈 Performance Tips
Combine with Trend: Use in trending markets (avoid ranging periods)
Confirmation: Wait for candle close after MA crossover
Extreme Readings: +80/-80 often precede reversals
MA Selection: EMA for responsiveness, SMA for smoothness
Multiple Timeframes: Check higher timeframe CMO alignment
This enhanced CMO indicator provides professional-grade momentum analysis with intuitive visualization, allowing traders to quickly identify momentum regimes and strength while filtering out market noise through the customizable moving average filter! 📊🎯
Quarterlytheory Candles [Fractal Edition Pro+] by aamirlangQuarterlytheory Candles - by aamirlang
Overview
Quarterlytheory Candles is a comprehensive multi-timeframe Smart Money Concepts (SMC) indicator designed for precision trading based on quarterly theory, institutional order flow, and advanced market structure analysis. This indicator combines Higher Timeframe (HTF) candle visualization, liquidity sweeps, market structure shifts, Fair Value Gaps (FVGs), and Smart Money Tool (SMT) divergences to provide traders with institutional-level insights.
Core Features
1. HTF Candles with Quarter-Based System
Adaptive Timeframe Selection: Automatically calculates optimal Higher Timeframe based on your chart timeframe
1m chart → 23m HTF (Q1-Q4 quarters)
5m chart → 90m HTF (Q1-Q4 quarters)
15m/60m chart → 360m/6H HTF (Asia/London/NY AM/NY PM sessions)
Daily chart → Weekly/Monthly HTF
Weekly chart → Monthly/Quarterly HTF
Visual HTF Candle Display:
Shows up to 50 HTF candles with customizable offset
Bullish/Bearish body and wick coloring
Real-time candle formation with live updates
Quarter labels (Q1, Q2, Q3, Q4) or session names (Asia, London, NY AM, NY PM)
Countdown timer showing time remaining in current HTF period
HTF Open Line: Displays the opening price of each HTF candle with customizable style
HTF Fair Value Gaps: Identifies imbalances (BISI/SIBI) on HTF candles
2. C2 Setup Detection
The cornerstone of this indicator - identifies high-probability reversal setups:
C2 Buy Signal: Occurs when HTF candle sweeps previous HTF low and closes back above it
C2 Sell Signal: Occurs when HTF candle sweeps previous HTF high and closes back below it
C2 Confirmation System:
CISD Pattern (Change In State of Delivery): Validates sweep with price reclaiming CISD level
Multi-Period Validation: Confirms setups within 2 HTF periods
C3 Box: Shows HTF open to previous HTF EQ (50% level)
C4 Setup: Secondary setup when C3 EQ is favorable relative to HTF open
Standard Deviation Levels: Automatically calculates extension targets (-1, -2, -2.5, -4, -4.5)
Visual Elements:
C2/C4 labels with transparent backgrounds
T-Spot boxes highlighting setup zones (bullish=green, bearish=red)
CISD confirmation lines
Setup invalidation tracking (XC2/XC4 labels when stop hit)
3. Current Range Tool (CRT)
Displays three critical levels from the most recently closed HTF candle:
HTF High (red dotted line)
HTF EQ/Midpoint (gray dotted line)
HTF Low (green dotted line)
These levels serve as key support/resistance and targets for current HTF period.
4. Market Structure Shifts (MSS)
Automatically detects bullish and bearish market structure breaks
Uses fractal-based swing detection (customizable period: 1-15)
Color-coded MSS lines (blue=bullish, red=bearish)
Labels mark precise MSS points
5. Fair Value Gaps (FVG)
Bullish FVGs (BISI - Buy Side Imbalance Sell Side Inefficiency): Blue zones
Bearish FVGs (SIBI - Sell Side Imbalance Buy Side Inefficiency): Red zones
Mitigation Tracking: Changes to gray when price taps the zone
Automatically manages up to 50 FVGs (configurable)
6. Confirmed HTF Swing Levels
Draws horizontal lines at confirmed swing highs/lows
Confirmation Logic: HTF candle sweeps a level AND next candle closes with rejection
Lines extend for customizable overshoot bars
Useful for identifying swept liquidity levels
7. LTF Sweep Detection
Identifies when HTF candles sweep previous HTF candle highs/lows
Draws sweep lines on main chart at swept levels
Helps visualize liquidity grabs in real-time
8. Trading Sessions & Killzones -
Highlights key institutional trading sessions:
Asia Session (18:00-00:00 NY time) - Gray
London Session (00:00-06:00 NY time) - Red
NY AM Session (06:00-12:00 NY time) - Green
NY PM Session (12:00-18:00 NY time) - Blue
Session Features:
Customizable box colors and transparency
Session high/low pivot lines
Pivot labels with optional price display
Session open lines ("True Day/Asia/London/NY Open")
Days of week labels (MON, TUE, WED, etc.)
Daily/Weekly/Monthly open lines and high/low pivots
9. Smart Money Tool (SMT) Divergences
Compares your chart with two other symbols to identify divergences:
Symbol 1 (default: TVC:DXY - US Dollar Index)
Symbol 2 (default: OANDA:GBPUSD)
10. Information Tables
Two customizable watermark tables:
Info Table: Shows ticker, LTF, HTF, countdown timer, and bias
Personal Table: Customizable inspirational message
How to Use This Indicator
Getting Started
Add to Chart: Apply indicator to your preferred timeframe (works best on 1m, 5m, 15m, 60m, Daily)
Review HTF Candles: Check the HTF candles displayed on the right side with quarter/session labels
Monitor CRT Levels: Watch the dotted High/EQ/Low lines from previous closed HTF candle
Wait for C2 Setup: Look for C2 labels appearing after HTF sweep + CISD confirmation
Trading the C2 Setup
For Long Positions (C2 Buy):
Wait for HTF candle to sweep previous HTF low (price goes below previous HTF low)
HTF candle closes back above the swept low (rejection)
CISD confirmation: Price reclaims the CISD level (blue line)
C2 label appears at the swept low
T-Spot (green box) shows optimal entry zone between HTF open and previous HTF EQ
Standard Deviation levels provide targets (-1, -2, -2.5, -4, -4.5 from CISD swing)
Stop Loss: Above C2 label level (swept low)
Invalidation: If stop hit, label changes to XC2 in red
For Short Positions (C2 Sell):
Wait for HTF candle to sweep previous HTF high (price goes above previous HTF high)
HTF candle closes back below the swept high (rejection)
CISD confirmation: Price breaks below the CISD level (blue line)
C2 label appears at the swept high
T-Spot (red box) shows optimal entry zone between HTF open and previous HTF EQ
Standard Deviation levels provide targets (-1, -2, -2.5, -4, -4.5 from CISD swing)
Stop Loss: Below C2 label level (swept high)
Invalidation: If stop hit, label changes to XC2 in red
Advanced Techniques
Using Bias Filter:
Auto: Allows both long and short setups
Bullish: Only shows long setups (filters out shorts)
Bearish: Only shows short setups (filters out longs)
Combining with Sessions:
Trade C2 setups that occur during high-volume sessions (London/NY AM)
Use session highs/lows as additional confluence
Avoid setups during low-volume periods (late NY PM/early Asia)
FVG Confluence:
Look for C2 setups that align with unfilled FVGs
Target FVGs as potential reversal zones
Use mitigated FVGs as trailing stop areas
MSS Confirmation:
Stronger setups occur after MSS in the C2 direction
Wait for bullish MSS before taking C2 long setups
Wait for bearish MSS before taking C2 short setups
SMT Divergence:
Use SMT divergences as additional confirmation
If DXY shows divergence at your C2 level = higher probability setup
Helps filter false setups and identify institutional manipulation
Risk Management
Maximum 2 HTF periods: C2 setups invalidate if stop not hit within 2 HTF candles
C4 Secondary Setup: If C3 EQ is favorable, you may get a C4 continuation setup
Std Dev Targets: Scale out at -1, -2, -2.5 levels; let runner go to -4/-4.5
Monitor CRT Levels: Previous HTF high/low often act as magnets for price
⚙️ Customization Options
HTF Candles Settings
Toggle HTF Candles display on/off
Fractal mode (uses fractal-based HTF calculation)
Number of candles to display (1-50)
Offset positioning
HTF labels with custom size and color
Body, border, and wick colors for bull/bear candles
FVG zones on HTF candles
HTF Open line style, color, width
Watermark tables (position, text customization)
General Settings
T-Spot box toggle and colors
Bias filter (Auto/Bullish/Bearish)
Market Structure markers (HH/HL/LH/LL)
Vertical lines for HTF candle open/close
CRT lines (High/Low/EQ) with color and width customization
MSS detection toggle with bull/bear colors
Fractal period (1-15)
FVG detection with bull/bear colors, mitigated color
Maximum FVGs to track (1-50)
StdDs toggle with custom levels input
Sessions and Pivots Settings
Timeframe limit (prevents display on higher TFs)
Toggle each session individually (Asia/London/NY AM/NY PM/Extra)
Custom session times and colors
Box transparency control
Session labels toggle
Session high/low pivot lines
Pivot label price display
Alert on broken pivots
D/W/M open lines
D/W/M high/low lines
Days of week labels
True session opens (custom session times for precise opens)
Line styles and widths
SMT Settings
Symbol 1 and Symbol 2 selection
Invert symbol options (for inverse correlations)
Historical data toggle
Alerts
C2 Setup Alerts (long and short)
Sweep Alerts (optional)
MSS Alerts (optional)
FVG Alerts (optional)
Broken Pivot Alerts (optional)
Label System
C2: Confirmed setup label
C4: Secondary setup label
XC2: Invalidated C2 (red if hit on HTF 1, orange if HTF 2)
XC4: Invalidated C4 (red)
MSS: Market structure shift
Q1, Q2, Q3, Q4: Quarter labels for sub-session HTF
Asia, London, NY AM, NY PM: Session labels for 6H HTF
MON, TUE, WED, etc.: Day of week labels
HH, HL, LH, LL: Market structure markers
Std Dev Labels: -1, -2, -2.5, -4, -4.5
Best Practices
For Day Traders (1m, 5m charts)
Use fractal mode for cleaner HTF calculation
Focus on London and NY AM sessions for volume
Trade C2 setups aligned with session bias
Use -1 and -2 Std Dev levels as initial targets
Monitor SMT divergences for confirmation
For Swing Traders (15m, 60m, Daily charts)
Use standard HTF mode for accurate session mapping
Focus on C2 setups at major session opens (Daily, Weekly)
Target -4 and -4.5 Std Dev levels
Use Weekly/Monthly pivots for additional confluence
Allow 2 full HTF periods for setup to play out
For All Traders
Journal your C2 setups: Track success rate, best sessions, best Std Dev targets
Use bias filter strategically: If trending strongly, filter counter-trend setups
Combine with price action: C2 is a framework, not a mechanical system
Respect CRT levels: Previous HTF high/EQ/low are magnets
Don't force trades: Quality > quantity with C2 setups
Backtest on your instrument: Every market has nuances
🔔 Alert Configuration
This indicator supports TradingView alerts:
Click "Create Alert" on TradingView
Select "Quarterlytheory Candles" as condition
Choose alert type:
"Long Trade Alert!" - Fires when C2 Buy confirmed
"Short Trade Alert!" - Fires when C2 Sell confirmed
Set "Once Per Bar Close" frequency
Customize alert actions (notification, email, webhook, sound)
Pro Tip: Use webhook alerts to connect to Discord, Telegram, or trading bots for automated notifications.
⚠️ DISCLAIMER
FOR EDUCATIONAL PURPOSES ONLY
This indicator is provided as an educational tool for learning about Smart Money Concepts, quarterly theory, and institutional order flow analysis. It is NOT financial advice.
Important Notices:
Trading involves substantial risk of loss and is not suitable for everyone
Past performance does not guarantee future results
No indicator can predict market movements with certainty
The developer (aamirlang) is not a registered financial advisor
Always use proper risk management and position sizing
Never risk more than you can afford to lose
This indicator does not guarantee profitable trades
Users are solely responsible for their trading decisions
Test thoroughly on paper/demo accounts before risking real capital
Market conditions change; what works today may not work tomorrow
Technical Disclaimer:
This indicator may repaint on unconfirmed bars (use confirmed signals only)
Higher timeframe calculations may vary slightly from standard TradingView HTF functions
Performance may vary across different instruments and market conditions
Ensure adequate chart history is loaded for accurate calculations
By using this indicator, you acknowledge:
You understand the risks of trading
You have tested this indicator thoroughly
You take full responsibility for all trading decisions
You will not hold the developer liable for any losses
🙏 CREDITS & ACKNOWLEDGMENTS
This indicator builds upon the excellent work of several open-source contributors and combines concepts from various trading methodologies. Full credit and gratitude to:
Core Concepts & Methodology
@traderdaye: I have used the Quarterly theory concepts and True opens of Daye.
@TTrades_edu: The foundational C2/C3/C4 setup structure and CISD pattern detection methodology that forms the core of this indicator
ICT (Inner Circle Trader): Smart Money Concepts framework, killzones, liquidity concepts, and FVG theory
Open Source Code Components
1. Smart Money Tool (SMT) Divergence Detection
Original Author: Algoryze
Component: SMT divergence calculation and visualization system
Contribution: Multi-symbol comparison logic, fractal-based swing detection for divergences
License: Open source (TradingView Public Library)
2. Killzones and Pivot System
Original Author: Tradeforopp
Component: Trading session boxes, pivot high/low detection, D/W/M separators and opens
Contribution: Session time management, pivot line extensions, timezone handling
License: Open source (TradingView Public Library)
Modifications & Enhancements by aamirlang
Integrated all components into unified quarterly theory framework
Developed adaptive HTF calculation system with quarter-based labeling
Created C2/C3/C4 setup detection logic with CISD confirmation
Implemented Standard Deviation target system
Built HTF candle visualization engine with custom quarter formatting
Added Current Range Tool (CRT) for previous HTF levels
Developed setup invalidation tracking system
Created custom watermark and information tables
Implemented confirmed swing detection and LTF sweep visualization
Added comprehensive alert system
Optimized performance and visual clarity
Enhanced customization options throughout
Community & Inspiration
TradingView Community: For feedback, testing, and continuous improvement suggestions
SMC Trading Community: For sharing knowledge on institutional order flow
Pine Script™ Documentation: For technical reference and best practices
Special Thanks
To all traders who have shared their experiences with quarterly theory
To the open-source trading community for fostering collaboration
To early testers who provided valuable feedback
📝 Version Information
Current Version: Fractal Edition Pro+
Indicator Name: Quarterlytheory Candles by aamirlang
Pine Script™ Version: 5
Last Updated: 2026
Compatibility: TradingView Free, Pro, Pro+, Premium plans
📧 Contact & Support
For questions, suggestions, or to report issues:
Before reaching out:
Read this description thoroughly
Check indicator settings and tooltips
Test on demo account first
Review TradingView's Pine Script™ documentation
🔄 Future Development
Potential enhancements under consideration:
Multi-timeframe dashboard view
Custom alert message templates
Volume profile integration
Enhanced session statistics table
Liquidity heatmap visualization
Trade journal integration
C2 Setup analysis and statistics
Auto Bias detection and implementation
Auto SSMT and SMT
PSP Detection
Feature requests are welcome via TradingView comments section.
📜 License
This indicator combines original code by aamirlang with modified open-source components from Algoryze (SMT) and Tradeforopp (Killzones/Pivots).
This indicator is shared for educational purposes. Redistribution or resale of this indicator or its components without proper attribution is prohibited.
colors_library# ColorsLibrary - PineScript v6
A comprehensive PineScript v6 library containing **10 color themes** and utility functions for TradingView.
---
## 📦 Installation
```pinescript
import TheTradingSpiderMan/colors_library/1 as CLR
```
---
## 🎨 All Available Color Themes (10)
### Default Theme (Green/Red - Classic Trading)
| Function | Description |
| ------------------ | --------------- |
| `defaultBull()` | Green (#26A69A) |
| `defaultBear()` | Red (#EF5350) |
| `defaultNeutral()` | Grey (#787B86) |
### Monochrome Theme (White/Grey/Black)
| Function | Description |
| --------------- | -------------------- |
| `monoBull()` | White (#FFFFFF) |
| `monoBear()` | Black (#000000) |
| `monoNeutral()` | Grey (#808080) |
| `monoLight()` | Light Grey (#C0C0C0) |
| `monoDark()` | Dark Grey (#404040) |
### Vaporwave Theme (Purple/Pink, Blue/Cyan)
| Function | Description |
| ---------------- | ----------------------- |
| `vaporBull()` | Cyan (#00FFFF) |
| `vaporBear()` | Magenta (#FF00FF) |
| `vaporNeutral()` | Grey (#787B86) |
| `vaporPurple()` | Purple (#9B59B6) |
| `vaporPink()` | Hot Pink (#FF6EC7) |
| `vaporBlue()` | Electric Blue (#0080FF) |
### Neon Theme (Bright Fluorescent Colors)
| Function | Description |
| --------------- | --------------------- |
| `neonBull()` | Neon Green (#39FF14) |
| `neonBear()` | Neon Red (#FF073A) |
| `neonNeutral()` | Grey (#787B86) |
| `neonYellow()` | Neon Yellow (#FFFF00) |
| `neonOrange()` | Neon Orange (#FF6600) |
| `neonBlue()` | Neon Blue (#00BFFF) |
### Ocean Theme (Blues and Teals)
| Function | Description |
| ---------------- | ------------------- |
| `oceanBull()` | Teal (#20B2AA) |
| `oceanBear()` | Deep Blue (#1E3A5F) |
| `oceanNeutral()` | Grey (#787B86) |
| `oceanAqua()` | Aqua (#00CED1) |
| `oceanNavy()` | Navy (#000080) |
| `oceanSeafoam()` | Seafoam (#3EB489) |
### Sunset Theme (Oranges, Yellows, Reds)
| Function | Description |
| ----------------- | ----------------------- |
| `sunsetBull()` | Golden Yellow (#FFD700) |
| `sunsetBear()` | Crimson (#DC143C) |
| `sunsetNeutral()` | Grey (#787B86) |
| `sunsetOrange()` | Orange (#FF8C00) |
| `sunsetCoral()` | Coral (#FF7F50) |
| `sunsetPurple()` | Twilight (#8B008B) |
### Forest Theme (Greens and Browns)
| Function | Description |
| ----------------- | ---------------------- |
| `forestBull()` | Forest Green (#228B22) |
| `forestBear()` | Brown (#8B4513) |
| `forestNeutral()` | Grey (#787B86) |
| `forestLime()` | Lime Green (#32CD32) |
| `forestOlive()` | Olive (#6B8E23) |
| `forestEarth()` | Earth Brown (#704214) |
### Candy Theme (Pastel/Soft Colors)
| Function | Description |
| ----------------- | -------------------- |
| `candyBull()` | Mint Green (#98FB98) |
| `candyBear()` | Soft Pink (#FFB6C1) |
| `candyNeutral()` | Grey (#787B86) |
| `candyLavender()` | Lavender (#E6E6FA) |
| `candyPeach()` | Peach (#FFDAB9) |
| `candySky()` | Sky Blue (#87CEEB) |
### Fire Theme (Reds, Oranges, Yellows)
| Function | Description |
| --------------- | ---------------------- |
| `fireBull()` | Flame Orange (#FF5722) |
| `fireBear()` | Dark Red (#B71C1C) |
| `fireNeutral()` | Grey (#787B86) |
| `fireYellow()` | Flame Yellow (#FFC107) |
| `fireEmber()` | Ember (#FF6F00) |
| `fireAsh()` | Ash Grey (#424242) |
### Ice Theme (Cool Blues and Whites)
| Function | Description |
| -------------- | ---------------------- |
| `iceBull()` | Ice Blue (#B3E5FC) |
| `iceBear()` | Frost Blue (#0277BD) |
| `iceNeutral()` | Grey (#787B86) |
| `iceWhite()` | Snow White (#F5F5F5) |
| `iceCrystal()` | Crystal Blue (#81D4FA) |
| `iceFrost()` | Frost (#4FC3F7) |
---
## 🔧 Selector & Utility Functions
| Function | Description |
| -------------------- | --------------------------------------------------- |
| `bullColor()` | Get bullish color by theme name |
| `bearColor()` | Get bearish color by theme name |
| `trendColor()` | Returns bull/bear color based on boolean condition |
| `gradientColor()` | Creates gradient between bull/bear (0-100 value) |
| `rsiGradient()` | RSI-style coloring (oversold=bull, overbought=bear) |
| `candleColor()` | Returns color based on candle direction |
| `volumeColor()` | Returns color based on close vs previous close |
| `withTransparency()` | Applies transparency to any color |
| `getAllThemes()` | Returns comma-separated list of all theme names |
| `getThemeOptions()` | Returns array of theme names for input options |
---
## 🔧 Usage Examples
### Basic Usage
```pinescript
//@version=6
indicator("Color Example")
import quantablex/colors_library/1 as CLR
// Direct color usage
plot(close, "Close", CLR.defaultBull())
plot(open, "Open", CLR.defaultBear())
// With transparency
plot(high, "High", CLR.vaporPurple(50))
```
### Using Theme Selector
```pinescript
//@version=6
indicator("Theme Selector")
import quantablex/colors_library/1 as CLR
theme = input.string("DEFAULT", "Color Theme",
options= )
bullCol = CLR.bullColor(theme)
bearCol = CLR.bearColor(theme)
plot(close, "Close", close >= open ? bullCol : bearCol)
```
### Trend Coloring
```pinescript
//@version=6
indicator("Trend Colors")
import quantablex/colors_library/1 as CLR
theme = input.string("VAPOR", "Theme")
ma = ta.ema(close, 20)
// Auto trend color based on condition
trendCol = CLR.trendColor(close > ma, theme)
plot(ma, "EMA", trendCol, 2)
```
### Gradient & RSI Coloring
```pinescript
//@version=6
indicator("Gradient Example")
import quantablex/colors_library/1 as CLR
rsi = ta.rsi(close, 14)
// Gradient based on RSI value
gradCol = CLR.gradientColor(rsi, "NEON")
plot(rsi, "RSI", gradCol)
// Or use built-in RSI gradient
rsiCol = CLR.rsiGradient(rsi, "DEFAULT")
bgcolor(rsiCol, transp=90)
```
### Candle & Volume Coloring
```pinescript
//@version=6
indicator("Candle Colors", overlay=true)
import quantablex/colors_library/1 as CLR
theme = input.string("FIRE", "Theme")
// Auto candle coloring
barcolor(CLR.candleColor(theme))
// Volume bars colored by direction
plotshape(volume, style=shape.circle, color=CLR.volumeColor(theme, 30))
```
---
## 🎨 Theme Selection Guide
| Use Case | Recommended Themes |
| --------------------- | --------------------- |
| **Classic Trading** | DEFAULT, MONO |
| **Dark Mode Charts** | NEON, VAPOR, ICE |
| **Light Mode Charts** | CANDY, SUNSET, FOREST |
| **High Visibility** | NEON, FIRE |
| **Low Eye Strain** | OCEAN, CANDY, ICE |
| **Professional Look** | MONO, DEFAULT, OCEAN |
| **Aesthetic/Stylish** | VAPOR, SUNSET, CANDY |
---
## ⚙️ Parameters Reference
### Common Parameters
- `transparency` - Transparency level (0-100, where 0=opaque, 100=invisible)
### Selector Parameters
- `theme` - Theme name string: `DEFAULT`, `MONO`, `VAPOR`, `NEON`, `OCEAN`, `SUNSET`, `FOREST`, `CANDY`, `FIRE`, `ICE`
---
## 📝 Notes
- All functions accept optional `transparency` parameter (default 0)
- Theme selector functions default to `DEFAULT` theme if invalid name provided
- Use `getAllThemes()` to get comma-separated list of all theme names
- Use `getThemeOptions()` to get array for `input.string` options
- All 50+ color functions are exported for direct use
---
**Author:** thetradingspiderman
**Version:** 1.0
**PineScript Version:** 6
**Total Themes:** 10
**Total Color Functions:** 50+
SMC Precision Scalper# SMC Precision Scalper - All-in-One Smart Money Analysis Tool
## Overview
SMC Precision Scalper is a comprehensive technical analysis indicator combining Smart Money Concepts (SMC) methodology with advanced scalping tools. This indicator integrates institutional trading concepts to provide traders with high-probability confluence zones and market structure analysis.
---
## How It Works - Technical Methodology
### Order Block Detection System
**Detection Algorithm:**
The script identifies Order Blocks using a three-criteria validation process:
1. **Pattern Recognition**: Scans for consolidation candles (opposite color to trend) that precede strong impulse moves
2. **Impulse Validation**: The following candle must break the high/low of the consolidation candle
- Strict Mode: Impulse candle must fully engulf the Order Block
- Standard Mode: Impulse candle must only break the OB high/low
3. **Volatility Filtering**: Applies ATR (Average True Range) or CMR (Cumulative Mean Range) filters with adjustable multiplier (default 0.5x) to eliminate noise
**Mitigation Tracking:**
Order Blocks are monitored until price retraces to their 50% level (midpoint). Mitigation can be calculated by either:
- Close price crossing the midpoint
- Wick penetration of the midpoint
Internal Order Blocks use shorter swing length (default 5 periods) for intraday precision, while standard OBs use longer swings (default 10 periods) for structural zones.
---
### Fair Value Gap (FVG) Calculation
**Gap Detection:**
FVGs are identified when:
Bullish FVG: (candle.low - candle.high) > ATR(14) × threshold
Bearish FVG: (candle.low - candle.high) > ATR(14) × threshold
Default threshold: 0.3x ATR multiplier
**Visual Rendering:**
Each FVG is rendered as 13 horizontal layers to show the liquidity void depth. The script tracks consecutive FVGs to adjust layer positioning dynamically.
**Mitigation Logic:**
FVGs remain active until price fully crosses the gap zone (high > gap bottom AND low < gap top). Optionally displays "filled" FVGs with reduced opacity for historical reference.
---
### EMA Confluence & Flips System
**Core Components:**
- EMA Fast: 5-period exponential moving average
- EMA Slow: 12-period exponential moving average
- EMA Confluence: 200-period exponential moving average (customizable)
**Flip Detection:**
Generates signals when EMA 5 crosses EMA 12:
- Flip Up (↑): EMA 5 crosses above EMA 12
- Flip Down (↓): EMA 5 crosses under EMA 12
**Trend Filter:**
Optional confluence filter requires:
- Uptrend confirmation: Close > EMA Confluence for N bars (adjustable)
- Downtrend confirmation: Close < EMA Confluence for N bars
This prevents counter-trend signals and improves accuracy.
---
### EMA Cloud Layers
**Calculation:**
Creates three multi-timeframe cloud zones using paired EMAs:
- Cloud 1: EMA 20 / EMA 42
- Cloud 2: EMA 8 / EMA 23
- Cloud 3: EMA 5 / EMA 50
**Color Logic:**
- Green cloud: Faster EMA > Slower EMA (bullish momentum)
- Red cloud: Faster EMA < Slower EMA (bearish momentum)
Each cloud has progressive transparency (10%, 16%, 22%) to show momentum strength layers.
---
### VWAP Implementation
**Session VWAP:**
Calculates volume-weighted average price that resets at each session boundary using TradingView's native `ta.vwap()` function.
**Daily VWAP:**
Custom implementation that resets every calendar day:
CumulativePV = Σ(Price × Volume)
CumulativeV = Σ(Volume)
Daily VWAP = CumulativePV / CumulativeV
Source price options: HLC3, Close, OHLC4, HL2
---
### Premium/Discount Zones
**Range Calculation:**
Based on selected mode (Trailing Swings, Daily/Weekly/Monthly Range):
- High 100% = Swing high or HTF high
- Low 0% = Swing low or HTF low
- Range = High - Low
**Zone Division:**
*3 Zones Simple Mode:*
- Premium: 66.67% - 100%
- Equilibrium: 33.33% - 66.67%
- Discount: 0% - 33.33%
*5 Zones Fibonacci Mode:*
- Strong Premium: 78.6% - 100%
- Premium: 61.8% - 78.6% (OTE Zone)
- Equilibrium: 38.2% - 61.8%
- Discount: 23.6% - 38.2%
- Strong Discount: 0% - 23.6%
**Purpose:**
Provides institutional context: institutions typically buy in Discount zones and sell in Premium zones.
---
### Fibonacci Retracement
**Auto-Calculation:**
- Scans the last N periods (default 80, range 20-200) to identify swing high and swing low
- Projects key Fibonacci levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
- Optional inversion for downtrends
- Future projection extends levels forward by adjustable bars (default 50)
**OTE Zone Highlighting:**
Creates a visual box for the 61.8%-78.6% zone, which represents the Optimal Trade Entry area commonly used in ICT methodology.
---
### Ichimoku Cloud (Multi-Timeframe)
**Components Calculation:**
Tenkan-sen = (9-period high + 9-period low) / 2
Kijun-sen = (26-period high + 26-period low) / 2
Senkou Span A = (Tenkan + Kijun) / 2
Senkou Span B = (52-period high + 52-period low) / 2
Chikou Span = Close shifted back 26 periods
**MTF Implementation:**
Uses `request.security()` to fetch higher timeframe data when custom timeframe is specified. Falls back to chart timeframe if empty.
**Cloud Filtering:**
- Price above cloud = Bullish bias filter
- Price below cloud = Bearish bias filter
- Price in cloud = Neutral/avoid
---
### Market Structure Detection
**BOS (Break of Structure):**
Occurs when price breaks the last swing high (in uptrend) or swing low (in downtrend), confirming trend continuation.
**MSS (Market Structure Shift):**
Detected when BOS occurs in the opposite direction of current trend, indicating potential reversal.
**CHoCH (Change of Character):**
Early warning signal when price touches but doesn't strongly break the previous swing, suggesting momentum loss.
---
### Previous Day Levels
**Calculation:**
Uses `request.security()` with daily timeframe and ` ` offset with lookahead on:
- PDH: Previous Day High
- PDL: Previous Day Low
- PDM: (PDH + PDL) / 2
**Daily Bias Logic:**
- Bullish: Close > PDM or breakout above PDH
- Bearish: Close < PDM or breakdown below PDL
- Neutral: Close at PDM
---
## Why This Combination?
This indicator integrates multiple institutional concepts to create a **confluence-based filtering system** that answers three critical trading questions:
1. **WHERE to trade?** (Order Blocks, FVG, Premium/Discount zones, Fibonacci OTE)
2. **WHEN to trade?** (EMA Flips, Market Structure breaks, Ichimoku confirmation)
3. **WHICH direction?** (HTF Bias, Daily Bias, Cloud momentum, Structure trend)
### Synergy Between Components:
- **OB + FVG Confluence**: When an Order Block overlaps with a Fair Value Gap, it creates a high-probability institutional zone
- **Premium/Discount Context**: Filters OB signals to match institutional bias (buy Discount, sell Premium)
- **EMA Flips + Structure**: Fast momentum signals (flips) confirmed by slower structure breaks reduce false entries
- **Ichimoku Cloud**: Acts as additional trend filter, preventing counter-cloud trades
- **VWAP + Fibonacci**: Provides dynamic and static mean reversion levels for risk management
**Individual indicators might generate conflicting signals**, but this mashup requires multiple confirmations before highlighting setups, significantly reducing noise and improving trade quality.
---
## How to Use
### Setup Configuration
1. **Enable desired components** in settings (Essentials group)
2. **Adjust swing lengths** based on timeframe:
- M1-M5: Swing 5-7, Internal 3
- M15-H1: Swing 10, Internal 5 (default)
- H4-D1: Swing 15-20, Internal 7-10
3. **Configure filters**:
- Lower timeframes: Use ATR filter 0.3-0.5x
- Higher timeframes: Use CMR filter or 0.7-1.0x ATR
### Trading Workflow
**Step 1: Identify Trend**
- Check EMA Cloud colors (green = bullish, red = bearish)
- Confirm with Ichimoku Cloud position
- Verify Market Structure (BOS direction)
**Step 2: Find Confluence Zones**
- Locate active Order Blocks in trend direction
- Check for FVG overlap with OB
- Ensure zone is in correct Premium/Discount area
**Step 3: Wait for Entry Trigger**
- Monitor EMA 5/12 flips within confluence zone
- Check Fibonacci OTE zone if displayed
- Confirm VWAP position supports direction
**Step 4: Execute & Manage**
- Enter on flip signal within OB/FVG confluence
- Stop loss: Outside Order Block zone
- Target: Opposite Premium/Discount zone or next OB
---
## Dashboard Information
The on-chart table displays real-time market conditions:
- **Trend**: Current structure (Bullish/Bearish/Neutral)
- **HTF Bias**: Higher timeframe direction
- **OB**: Active Order Block status (Bull ↑ / Bear ↓ / None)
- **FVG**: Active Fair Value Gap (Bull ↑ / Bear ↓ / None)
- **OB+FVG**: Confluence confirmation (✓ when both align)
- **P/D Zone**: Current price position in Premium/Discount
- **Fib 61.8-78.6**: OTE zone status (In Zone / Outside)
- **Daily Bias**: ICT daily bias (Bullish/Bearish/Neutral)
- **Market Status**: Overall condition summary
- **RSI(14)**: Momentum (Oversold <30 / Neutral / Overbought >70)
- **Ichimoku**: Cloud position (Above/In/Below)
---
## Alert Conditions
Complete alert system for key events:
- BOS Bullish / Bearish detected
- New Order Block formed (Bullish/Bearish)
- New Internal OB formed
- EMA Flip signals (Up/Down)
- Price entering OTE zone (when HTF aligned)
---
## Best Practices
✅ **Use on multiple timeframes**: Align HTF bias with entry TF signals
✅ **Wait for confluence**: At least 2-3 confirmations before entry
✅ **Respect Premium/Discount**: Don't buy Premium or sell Discount
✅ **Adjust swing lengths**: Match to your trading timeframe
✅ **Backtest first**: Understand signal behavior before live trading
❌ **Don't overtrade**: Not every OB or FVG is a valid setup
❌ **Don't ignore filters**: Disabled filters increase false signals
❌ **Don't trade against cloud**: Ichimoku filter prevents low-probability trades
---
## Technical Specifications
- Pine Script™ Version: 6
- Overlay: Yes
- Max Boxes: 500
- Max Lines: 500
- Max Labels: 300
- Repainting: Signals confirmed on bar close (barstate.isconfirmed)
---
## Recommended Timeframes
- **Scalping**: M1, M5 (reduce swing lengths to 5-7)
- **Day Trading**: M15, M30, H1 (default settings)
- **Swing Trading**: H4, D1 (increase swing lengths to 15-20)
---
## Performance Notes
For optimal chart performance:
- Disable unused features (Structure, EQH/EQL if not needed)
- Reduce lookback periods on lower timeframes
- Limit to 1-2 active alerts per instrument
---
This indicator does not predict the future and should be used as part of a complete trading plan with proper risk management.
© 2025-2026
Plutus Flow - Statistical OBV AnalysisPlutus Flow - Statistical OBV Analysis
Plutus Flow transforms raw On-Balance Volume (OBV) into a filtered, statistically-bounded oscillator with automatic divergence detection. The indicator is designed to help traders analyze cumulative buying and selling pressure through three integrated analytical layers: spike-clipped volume accumulation, standard deviation banding, and pivot-synchronized divergence detection.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗢𝗩𝗘𝗥𝗩𝗜𝗘𝗪
On-Balance Volume (OBV) is a classic momentum indicator that tracks cumulative volume flow. When price closes higher, the bar's volume is added to OBV; when price closes lower, volume is subtracted. The resulting cumulative line can help identify whether volume is flowing into or out of an asset.
Plutus Flow builds on this foundation by adding three analytical layers:
• 𝗦𝗽𝗶𝗸𝗲-𝗖𝗹𝗶𝗽𝗽𝗲𝗱 𝗩𝗼𝗹𝘂𝗺𝗲: Caps extreme volume bars to preserve trend continuity
• 𝗦𝘁𝗮𝘁𝗶𝘀𝘁𝗶𝗰𝗮𝗹 𝗕𝗮𝗻𝗱𝘀: Defines mathematically-derived extreme zones
• 𝗗𝗶𝘃𝗲𝗿𝗴𝗲𝗻𝗰𝗲 𝗗𝗲𝘁𝗲𝗰𝘁𝗶𝗼𝗻: Identifies structural disagreements between price and OBV
Each layer serves a specific analytical purpose, and together they provide a structured framework for interpreting volume-based pressure.
════════════════════════════════════════
The indicator displays filtered OBV (colored line), basis line (orange), statistical bands (green), and the flow ribbon between OBV and basis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗛𝗢𝗪 𝗜𝗧 𝗪𝗢𝗥𝗞𝗦
The indicator is built around one core principle: cumulative buying and selling pressure may reveal accumulation or distribution patterns before price confirms them. Rather than displaying raw OBV, Plutus Flow processes it through three analytical layers.
𝗦𝗽𝗶𝗸𝗲-𝗖𝗹𝗶𝗽𝗽𝗲𝗱 𝗢𝗕𝗩
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: Standard OBV accumulates every tick of volume equally, meaning one earnings candle or news event can permanently distort the cumulative total. This implementation dynamically caps each bar's volume contribution using a rolling average multiplier, preserving the underlying trend signal while filtering anomalous spikes.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: The filtered OBV line represents the cumulative pressure trend without distortion from outlier events. When this line is rising, it may suggest net buying pressure over time. When falling, it may suggest net selling pressure. The filtering helps maintain visual continuity across volatile events like earnings releases or major news announcements.
𝗦𝘁𝗮𝘁𝗶𝘀𝘁𝗶𝗰𝗮𝗹 𝗕𝗮𝗻𝗱𝘀
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: A smoothed moving average serves as the basis line, with standard deviation bands defining statistically extreme zones above and below. The bands adapt to each symbol's recent volatility profile.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: When OBV reaches the upper band, cumulative buying pressure has moved beyond its recent normal range: this may indicate an extended condition. Similarly, when OBV reaches the lower band, selling pressure may be statistically extended. These zones are not automatic reversal signals, but rather areas that may warrant closer attention. Extended conditions can persist during strong trends.
𝗙𝗹𝗼𝘄 𝗥𝗶𝗯𝗯𝗼𝗻
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: The area between OBV and its basis line is filled to create a visual ribbon. Color indicates whether OBV is above or below its average, and color intensity shifts based on momentum direction.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: Green ribbon indicates OBV above basis (buying pressure may be dominant). Red ribbon indicates OBV below basis (selling pressure may be dominant). The ribbon provides quick visual context for the current pressure regime without requiring precise reading of the oscillator value.
𝗗𝗶𝘃𝗲𝗿𝗴𝗲𝗻𝗰𝗲 𝗗𝗲𝘁𝗲𝗰𝘁𝗶𝗼𝗻
𝘞𝘩𝘢𝘵 𝘪𝘵 𝘥𝘰𝘦𝘴: The script automatically identifies pivot highs and lows on both price and OBV. When price structure disagrees with OBV structure: for example, price makes a lower low while OBV makes a higher low: divergence is detected. Labels appear only when pivots are confirmed and synchronized within a tolerance window.
𝘏𝘰𝘸 𝘵𝘰 𝘪𝘯𝘵𝘦𝘳𝘱𝘳𝘦𝘵 𝘪𝘵: Divergences may indicate structural disagreement between price action and underlying volume pressure. A bullish divergence (price lower low, OBV higher low) could suggest that selling pressure is weakening despite lower prices. A bearish divergence (price higher high, OBV lower high) could suggest that buying pressure is weakening despite higher prices. Divergences are not guaranteed reversal signals: they indicate a structural condition that traders may want to investigate further.
═══════════════════════════════════════
Example: A bullish divergence where price made a lower low while OBV made a higher low, suggesting selling pressure may be weakening.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗪𝗛𝗬 𝗧𝗛𝗘𝗦𝗘 𝗖𝗢𝗠𝗣𝗢𝗡𝗘𝗡𝗧𝗦 𝗪𝗢𝗥𝗞 𝗧𝗢𝗚𝗘𝗧𝗛𝗘𝗥
Price movements don't always reflect underlying volume activity. A price rally on declining volume may have different implications than a rally on increasing volume. Plutus Flow approaches this by layering three types of analysis that each address a different aspect of volume interpretation:
1. 𝗙𝗶𝗹𝘁𝗲𝗿𝗲𝗱 𝗣𝗿𝗲𝘀𝘀𝘂𝗿𝗲: Spike clipping ensures the OBV line represents consistent accumulation/distribution patterns rather than noise from outlier events. This creates a cleaner baseline for all subsequent analysis.
2. 𝗦𝘁𝗮𝘁𝗶𝘀𝘁𝗶𝗰𝗮𝗹 𝗖𝗼𝗻𝘁𝗲𝘅𝘁: Deviation bands provide mathematically-defined reference zones instead of arbitrary horizontal lines. This helps contextualize whether current pressure readings are within normal ranges or statistically extended.
3. 𝗦𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗮𝗹 𝗖𝗼𝗻𝗳𝗶𝗿𝗺𝗮𝘁𝗶𝗼𝗻: Divergence detection surfaces disagreements between price and pressure that traders may want to investigate. This adds a structural dimension beyond simple trend-following.
When multiple factors align: for example, OBV exiting an extreme band while showing divergence from price: this represents statistical extension plus structural disagreement occurring simultaneously. Such conditions may warrant additional analysis, though they do not guarantee any particular outcome.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗛𝗢𝗪 𝗧𝗢 𝗨𝗦𝗘
This section provides step-by-step guidance for interpreting the indicator's visual elements and incorporating them into chart analysis.
𝗦𝘁𝗲𝗽 𝟭: 𝗜𝗱𝗲𝗻𝘁𝗶𝗳𝘆 𝘁𝗵𝗲 𝗣𝗿𝗲𝘀𝘀𝘂𝗿𝗲 𝗥𝗲𝗴𝗶𝗺𝗲
Begin by observing the flow ribbon color:
• Green ribbon = OBV is above its basis line, which may indicate buying pressure is currently dominant
• Red ribbon = OBV is below its basis line, which may indicate selling pressure is currently dominant
This provides immediate context for the current pressure environment. A sustained green ribbon during a price uptrend may suggest the trend has volume support. A green ribbon turning red during an uptrend could indicate a potential shift in underlying pressure.
𝗦𝘁𝗲𝗽 𝟮: 𝗠𝗼𝗻𝗶𝘁𝗼𝗿 𝗕𝗮𝘀𝗶𝘀 𝗟𝗶𝗻𝗲 𝗖𝗿𝗼𝘀𝘀𝗲𝘀
Watch for the signal dots that appear when OBV crosses its basis line:
• Green dot = OBV crossed above basis (potential shift toward buying pressure)
• Red dot = OBV crossed below basis (potential shift toward selling pressure)
These crosses mark momentum shifts in the pressure regime. A green dot appearing after an extended red ribbon period could indicate early signs of pressure reversal. However, crosses can also occur during choppy conditions without leading to sustained moves.
𝗦𝘁𝗲𝗽 𝟯: 𝗔𝘀𝘀𝗲𝘀𝘀 𝗦𝘁𝗮𝘁𝗶𝘀𝘁𝗶𝗰𝗮𝗹 𝗘𝘅𝘁𝗿𝗲𝗺𝗲𝘀
Monitor the position of OBV relative to the deviation bands:
• White dot = OBV has entered an extreme zone (upper or lower band)
• Yellow dot = OBV has exited an extreme zone
When OBV reaches the upper band, cumulative buying pressure has moved beyond its recent statistical norm. This does not mean price must reverse: strong trends can maintain extended readings for prolonged periods. However, it does indicate that pressure is stretched relative to recent history.
Similarly, when OBV reaches the lower band, selling pressure is statistically extended. An exit from this zone (yellow dot) could indicate that selling pressure may be stabilizing.
═══════════════════════════════════════
Strong trend example: OBV remains elevated with sustained ribbon color and no divergence: indicating the trend may still have volume support.
𝗦𝘁𝗲𝗽 𝟰: 𝗖𝗵𝗲𝗰𝗸 𝗳𝗼𝗿 𝗗𝗶𝘃𝗲𝗿𝗴𝗲𝗻𝗰𝗲𝘀
Review divergence labels when they appear:
• "Bull Div" label = Price made a lower low while OBV made a higher low (regular bullish divergence)
• "Bear Div" label = Price made a higher high while OBV made a lower high (regular bearish divergence)
• "Bull Hid" label = Price made a higher low while OBV made a lower low (hidden bullish divergence)
• "Bear Hid" label = Price made a lower high while OBV made a higher high (hidden bearish divergence)
Regular divergences may indicate weakening momentum in the current trend direction. Hidden divergences may indicate continuation potential within the existing trend. Neither type guarantees any particular outcome: they represent structural conditions for further analysis.
𝗦𝘁𝗲𝗽 𝟱: 𝗖𝗼𝗺𝗯𝗶𝗻𝗲 𝗠𝘂𝗹𝘁𝗶𝗽𝗹𝗲 𝗙𝗮𝗰𝘁𝗼𝗿𝘀
The indicator provides the most context when multiple elements align:
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘈: 𝘛𝘳𝘦𝘯𝘥 𝘊𝘰𝘯𝘵𝘪𝘯𝘶𝘢𝘵𝘪𝘰𝘯
OBV at the upper band, ribbon solid green, no divergence labels present. Price rising, volume confirming, no structural disagreement. OBV can stay extended during strong trends. The absence of divergence suggests the trend may still have volume support.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘉: 𝘔𝘰𝘮𝘦𝘯𝘵𝘶𝘮 𝘍𝘢𝘥𝘪𝘯𝘨
OBV shows bullish with green ribbon, but the line has flattened near the basis. Price still rising, but volume is no longer confirming. Ribbon width narrowing. This type of disconnect between price action and volume momentum often appears before moves stall.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘊: 𝘌𝘹𝘩𝘢𝘶𝘴𝘵𝘪𝘰𝘯 𝘞𝘢𝘳𝘯𝘪𝘯𝘨
Price making higher highs while OBV makes lower highs. A "Bear Div" label appears with OBV still in the upper extreme zone. Yellow dot signals exit from extreme. Multiple warning signs appearing together (divergence, extreme zone exit, weakening internals) suggest caution.
𝘌𝘹𝘢𝘮𝘱𝘭𝘦 𝘚𝘤𝘦𝘯𝘢𝘳𝘪𝘰 𝘋: 𝘉𝘳𝘦𝘢𝘬𝘰𝘶𝘵 𝘍𝘳𝘰𝘮 𝘊𝘰𝘯𝘴𝘰𝘭𝘪𝘥𝘢𝘵𝘪𝘰𝘯
OBV has been flat for several days, ribbon alternating red and green, no clear direction. Then OBV breaks above its recent range, ribbon turns solid green, green cross dot appears. When multiple elements shift together after a quiet period, consolidation may be resolving into a directional move.
═══════════════════════════════════════
Multiple factors aligning: OBV exiting extreme zone while divergence appears and ribbon shifts color: a confluence condition that may warrant closer attention.
𝗦𝘁𝗲𝗽 𝟲: 𝗖𝗼𝗻𝗳𝗶𝗴𝘂𝗿𝗲 𝗔𝗹𝗲𝗿𝘁𝘀
Ten built-in alert conditions are available to notify you of specific events:
• Basis line crosses (up/down)
• Extreme zone entries (upper/lower)
• Extreme zone exits (upper/lower)
• Divergence detection (all four types)
Alerts can be set through TradingView's alert dialog after adding the indicator to your chart.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗡𝗔𝗩𝗜𝗚𝗔𝗧𝗜𝗡𝗚 𝗗𝗜𝗙𝗙𝗘𝗥𝗘𝗡𝗧 𝗠𝗔𝗥𝗞𝗘𝗧 𝗖𝗢𝗡𝗗𝗜𝗧𝗜𝗢𝗡𝗦
𝗧𝗿𝗲𝗻𝗱𝗶𝗻𝗴 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
During strong trends, OBV may remain in extreme zones for extended periods. This is normal behavior: statistical extremes are not automatic reversal signals. In trending conditions, traders may focus more on:
• Whether divergences are forming (potential trend weakening)
• Ribbon color persistence (trend confirmation)
• Basis line crosses as potential re-entry points during pullbacks
For example, in a sustained uptrend, OBV might stay above the upper band for days or weeks. Rather than treating this as an immediate reversal signal, traders may watch for divergence to form as a potential early warning that the trend could be losing momentum. A bearish divergence appearing while OBV is in the upper extreme could be more significant than either condition alone.
𝗥𝗮𝗻𝗴𝗶𝗻𝗴 𝗠𝗮𝗿𝗸𝗲𝘁𝘀
In sideways conditions, OBV may oscillate between bands more frequently. Traders may focus on:
• Extreme zone exits as potential mean-reversion conditions
• Divergences that form at range boundaries
• Ribbon color flips that may indicate short-term pressure shifts
In ranging environments, the statistical bands may provide clearer reference points. When OBV touches the lower band and then exits (yellow dot) near range support, this could suggest selling pressure is stabilizing. Conversely, when OBV touches the upper band near range resistance and divergence forms, this could indicate buying pressure is weakening at that level.
𝗛𝗶𝗴𝗵 𝗩𝗼𝗹𝗮𝘁𝗶𝗹𝗶𝘁𝘆 𝗘𝘃𝗲𝗻𝘁𝘀
During earnings, news events, or market shocks, the spike-clipping feature helps maintain OBV continuity. However, sustained high-volume regimes may still push readings to extremes. The HTF filter option can help provide broader context during volatile periods.
For volatile events, traders may want to observe how OBV behaves after the initial spike. If OBV quickly returns toward its basis after a news-driven extreme, this could suggest the move lacked follow-through volume. If OBV maintains its new level or continues in the same direction, this could suggest the move has genuine volume support.
𝗠𝘂𝗹𝘁𝗶-𝗧𝗶𝗺𝗲𝗳𝗿𝗮𝗺𝗲 𝗖𝗼𝗻𝘀𝗶𝗱𝗲𝗿𝗮𝘁𝗶𝗼𝗻𝘀
The optional HTF filter allows traders to align lower timeframe analysis with higher timeframe pressure direction. When the HTF filter shows bullish pressure, traders may give more weight to bullish signals on lower timeframes. When HTF and LTF pressure align, this could suggest stronger directional conviction, though no outcome is guaranteed.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗧𝗘𝗖𝗛𝗡𝗜𝗖𝗔𝗟 𝗗𝗘𝗧𝗔𝗜𝗟𝗦
• Volume capping uses RMA-based averaging with a multiplier threshold
• Statistical bands use SMA for basis with standard deviation for band width
• Pivot detection uses left/right bar confirmation before registering swing points
• Divergence requires both price pivot and OBV pivot to occur within a tolerance window
• All signals fire on bar close only (non-repainting)
• HTF data retrieved using request.security() with lookahead disabled
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗨𝗡𝗜𝗤𝗨𝗘 𝗙𝗘𝗔𝗧𝗨𝗥𝗘𝗦
• 𝗔𝗱𝗮𝗽𝘁𝗶𝘃𝗲 𝗩𝗼𝗹𝘂𝗺𝗲 𝗙𝗶𝗹𝘁𝗲𝗿𝗶𝗻𝗴: Volume cap adjusts dynamically to each symbol's activity profile, not a fixed threshold.
• 𝗦𝘆𝗻𝗰𝗵𝗿𝗼𝗻𝗶𝘇𝗲𝗱 𝗗𝗶𝘃𝗲𝗿𝗴𝗲𝗻𝗰𝗲: Requires pivot alignment between price and OBV within tolerance window, helping filter timing mismatches.
• 𝗙𝗼𝘂𝗿 𝗗𝗶𝘃𝗲𝗿𝗴𝗲𝗻𝗰𝗲 𝗧𝘆𝗽𝗲𝘀: Detects Regular Bullish, Regular Bearish, Hidden Bullish, and Hidden Bearish patterns.
• 𝗘𝘅𝘁𝗿𝗲𝗺𝗲 𝗭𝗼𝗻𝗲 𝗘𝘃𝗲𝗻𝘁𝘀: Separate signals for entering extreme zones versus exiting them.
• 𝗛𝗧𝗙 𝗔𝗹𝗶𝗴𝗻𝗺𝗲𝗻𝘁: Optional higher timeframe filter for directional context.
• 𝗡𝗼𝗻-𝗥𝗲𝗽𝗮𝗶𝗻𝘁𝗶𝗻𝗴: All calculations use confirmed bar data only. Historical display matches live behavior.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗦𝗘𝗧𝗧𝗜𝗡𝗚𝗦 𝗢𝗩𝗘𝗥𝗩𝗜𝗘𝗪
• 𝗖𝗮𝗹𝗰𝘂𝗹𝗮𝘁𝗶𝗼𝗻: HTF timeframe for OBV calculation
• 𝗤𝘂𝗮𝗹𝗶𝘁𝘆: FlipGuard cooldown, cross gating, Z-score filtering, sequence requirements
• 𝗔𝘀𝘀𝗶𝘀𝘁𝘀: HTF alignment filter for directional context
• 𝗗𝗶𝘃𝗲𝗿𝗴𝗲𝗻𝗰𝗲: Minimum price swing filter (ATR-based) to control divergence sensitivity
• 𝗩𝗶𝘀𝘂𝗮𝗹𝘀: Toggle divergence labels, extreme zone exit markers, and ribbon display
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗔𝗟𝗘𝗥𝗧𝗦
10 conditions available:
• Cross Up / Cross Down: Basis line crosses
• Breach Upper / Breach Lower: Extreme zone entries
• Exit Upper / Exit Lower: Extreme zone exits
• Bullish Divergence / Bearish Divergence: Regular divergence
• Hidden Bullish / Hidden Bearish: Continuation divergence
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗟𝗜𝗠𝗜𝗧𝗔𝗧𝗜𝗢𝗡𝗦
• 𝗥𝗲𝗾𝘂𝗶𝗿𝗲𝘀 𝘃𝗼𝗹𝘂𝗺𝗲 𝗱𝗮𝘁𝗮: Does not function on forex spot pairs or instruments without real volume data. The indicator requires actual volume to calculate OBV.
• 𝗔𝗻𝗮𝗹𝘆𝘀𝗶𝘀 𝘁𝗼𝗼𝗹, 𝗻𝗼𝘁 𝗮 𝘀𝗶𝗴𝗻𝗮𝗹 𝗴𝗲𝗻𝗲𝗿𝗮𝘁𝗼𝗿: This indicator shows where pressure exists and identifies structural conditions. It does not tell you when to trade. All trading decisions should incorporate additional analysis and risk management.
• 𝗗𝗶𝘃𝗲𝗿𝗴𝗲𝗻𝗰𝗲𝘀 𝗮𝗿𝗲 𝗻𝗼𝘁 𝗴𝘂𝗮𝗿𝗮𝗻𝘁𝗲𝗲𝗱 𝗿𝗲𝘃𝗲𝗿𝘀𝗮𝗹𝘀: Divergences indicate structural disagreement between price and volume. They can persist, fail, or resolve without the expected outcome. They should not be followed blindly.
• 𝗘𝘅𝘁𝗿𝗲𝗺𝗲𝘀 𝗰𝗮𝗻 𝗽𝗲𝗿𝘀𝗶𝘀𝘁: During strong trends, OBV can remain in extreme zones for extended periods. Statistical extension does not guarantee mean reversion.
• 𝗗𝗮𝘁𝗮 𝗾𝘂𝗮𝗹𝗶𝘁𝘆 𝗱𝗲𝗽𝗲𝗻𝗱𝗲𝗻𝗰𝘆: Effectiveness depends on market liquidity and volume data quality. Thinly traded instruments may produce less reliable readings.
• 𝗟𝗮𝗴𝗴𝗶𝗻𝗴 𝗶𝗻𝗱𝗶𝗰𝗮𝘁𝗼𝗿: Like all volume-based indicators, signals are derived from historical data. By the time a divergence is confirmed, some of the move may have already occurred.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗖𝗢𝗡𝗖𝗟𝗨𝗦𝗜𝗢𝗡
Plutus Flow provides a structured framework for analyzing On-Balance Volume through filtered accumulation, statistical banding, and divergence detection. The indicator is designed to help traders interpret volume-based pressure and identify structural conditions that may warrant further analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔶 𝗗𝗜𝗦𝗖𝗟𝗔𝗜𝗠𝗘𝗥
Trading is risky and most traders lose money. This indicator is provided for informational and educational purposes only. It does not constitute financial advice, and past performance does not guarantee future results. All content, tools, and analysis should not be considered as recommendations to buy or sell any asset. Users are solely responsible for their own trading decisions. Always use proper risk management and consider consulting a qualified financial advisor before making trading decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Built with PineScript v6. Non-repainting. All signals confirmed on bar close.
GCM Kinetic Flux SpectrumTitle: GCM Kinetic Flux Spectrum
DESCRIPTION
The GCM Kinetic Flux Spectrum is an institutional-grade hybrid momentum and volume engine. Unlike standard oscillators that rely on closing prices, the GCM KFS synthesizes dual-source RSI volatility with Volume Flow Intensity (VFI) to reveal the hidden kinetic energy of market movements.
By projecting a 27-layer "Spectrum Ribbon" and a multi-dimensional Divergence Engine, the GCM KFS identifies not just where the price is heading, but the quality and "fuel" behind the trend.
CORE ARCHITECTURE
1) The Kinetic Mean (Dual-Source RSI)
Standard RSI often ignores the battle occurring at the wicks. The GCM KFS calculates independent RSI streams for Highs and Lows, then anchors them to a Zero-Centered baseline (-50 to +50). The resulting Kinetic Mean filters out retail noise, providing a volatility-adjusted perspective on momentum.
2) Volume Flux Integration (VFI)
Volume precedes price. The GCM KFS integrates a highly responsive, EMA-smoothed Volume Flow Indicator (VFI). By syncing VFI length with the RSI cycle, the indicator cross-verifies price strength with capital flow.
• Momentum + Positive Flux: Confirms high-conviction trends.
• Momentum + Negative Flux: Reveals "Empty" breakouts or institutional distribution.
3) 27-Layer Spectrum Ribbon
The gradient fill isn't just aesthetic—it represents Volatility Density.
• Expansion: When ribbons fan out, it signals a high-velocity trend.
• Compression (The Squeeze): When ribbons pinch toward the Kinetic Mean, it signals a volatility contraction, typically the precursor to an explosive breakout.
4) Four-Way Divergence Engine
The KFS automatically detects and projects four types of divergence on both the indicator pane and the main price chart:
• Regular Bullish/Bearish: Identifying high-probability trend reversals.
• Hidden Bullish/Bearish: Identifying trend continuation (Smart Money re-entry points).
KEY POWER FEATURES
• Zero-Centered Logic: Levels are shifted for better visual balance. (OB: +20, Extreme OB: +30 | OS: -20, Extreme OS: -30).
• Dynamic Zones: Subtle background fills highlight "Extreme" areas where price is statistically likely to mean-revert.
• Main Chart Projection: Use the force_overlay feature to keep your eyes on price action while the indicator confirms entries.
• Institutional Dotted VFI: The orange dotted line acts as the "Anchor"—if price rises but the VFI Anchor stays below zero, the move lacks professional backing.
HOW TO TRADE WITH GCM-KFS
• The Reversal Sniper: Look for an R-BULL or R-BEAR label appearing inside the Extreme Zone (±30). This indicates momentum exhaustion backed by a volume shift.
• Trend Riding: During an uptrend, look for H-BULL (Hidden Bullish) labels. This signals that institutions are "buying the dip" while momentum resets.
• Volatility Breakouts: When the Spectrum Ribbon enters a tight "squeeze" near the Zero Line, prepare for a major move. Follow the direction of the first ribbon expansion.
RECOMMENDED SETTINGS
• Scalping (1m - 5m): Length 7 - 9
• Day Trading (15m - 1H): Length 10 - 14
• Swing Trading (4H - Daily): Length 20+
AUTHOR’S NOTE
This script is part of the GCM suite of professional tools. It is designed to be a "confluence engine"—it works best when used to confirm price action levels, supply/demand zones, or order blocks. Always trade with a plan and managed risk.
Multi-Timeframe Inside Bar Breakout (4-Symbol Simultaneous)Multi-Timeframe Inside Bar Breakout (4-Symbol Simultaneous)
Overview
Monitors 4 symbols across 4 timeframes simultaneously, displaying labeled alerts when all 4 symbols break out from inside bar compression on any tracked timeframe. See 15-minute, 30-minute, 60-minute, and daily breakouts all on one chart — complete multi-timeframe compression analysis.
When all 4 symbols compress into inside bars and then ALL break the same direction, you get clear directional confirmation across different timeframes. Perfect for Rob Smith's "The Strat" methodology and traders who use multi-timeframe analysis for entry confirmation.
🎯 Why This Matters
Multi-timeframe breakout confluence = stronger signals.
When SPY, QQQ, IWM, and DIA simultaneously:
✅ Compress into inside bars (bar )
✅ ALL break same direction (bar )
✅ Across multiple timeframes
You get layered confirmation — not just one timeframe saying "go," but multiple timeframes agreeing on direction.
Example: 15m breakout + 60m breakout + Daily breakout = alignment across timeframes.
✅ Key Features
✅ 4 Timeframes Tracked — Monitor 15m, 30m, 60m, Daily (fully customizable)
✅ 4 Symbols Per Timeframe — All must break together for signal
✅ Staggered Labels — Each timeframe displays at different distance (no overlap)
✅ Adaptive Positioning — Works on futures, stocks, forex, crypto
✅ Customizable Colors — Bullish/bearish colors with opacity control
✅ Alert-Ready — 8 alert conditions (bull/bear per timeframe)
✅ Works on Any Chart — See higher timeframe signals on lower timeframe charts
📊 How It Works
Inside Bar Check (Bar ):
All 4 symbols had inside bars (high < prior high AND low > prior low)
Breakout Check (Bar ):
Bullish: All 4 close > prior high
Bearish: All 4 close < prior low
Label Display:
📈IBSB 15 = Bullish breakout on 15-minute timeframe
📉IBSB D = Bearish breakout on daily timeframe
Each timeframe operates independently — you might see multiple timeframe labels on the same bar when breakouts align.
⚙️ Settings Guide
Symbols (Default: SPY, QQQ, IWM, DIA)
Customize to any 4 symbols
Popular: ES/NQ/YM/RTY (futures), XLF/XLK/XLE/XLV (sectors)
Timeframes (Default: 15, 30, 60, D)
Set any 4 timeframes to monitor
Examples: 5/15/60/240 (intraday stack), 60/D/W/M (swing stack)
Display Options:
Bullish/Bearish colors + opacity control
Label distance (% of bar range)
Stagger spacing (prevents overlap)
Max labels per timeframe (default: 25)
Debug Mode:
Shows which symbols are inside/breaking per timeframe
Useful for troubleshooting
🔔 Setting Up Alerts
Create alerts for any combination:
"IBSB Bull - TF1" (first timeframe bullish)
"IBSB Bear - TF4" (fourth timeframe bearish)
Set to "Once Per Bar Close" for confirmed signals
💡 Example Trading Approach
Note: Educational example, not trading advice.
Watch for compression across symbols on higher timeframes
IBSB label appears → all 4 broke same direction
Multiple timeframe labels = stronger confluence
Enter with your strategy using proper risk management
Example: Daily IBSB bullish + 60m IBSB bullish = aligned timeframes for potential long entry.
🎯 Why Multi-Timeframe Matters
Single timeframe breakout = one piece of data.
Multi-timeframe breakout = confirmation across time horizons.
When 15m, 60m, and Daily all show simultaneous 4-symbol breakouts → market structure aligning across timeframes.
🔧 Technical Details
✅ PineScript v6 (latest)
✅ Adaptive label positioning (scales with price)
✅ Smart staggering (prevents label overlap)
✅ Label management (max 500 total across timeframes)
✅ NA-safe logic (handles missing data)
✅ Works across all chart timeframes
⚠️ Important Disclaimers
Not financial advice: Educational and informational purposes only
No performance guarantees: Past breakouts don't predict future results
Risk management essential: Always use proper position sizing
Test before trading: Backtest and paper trade first
⚡ Quick Start
Add indicator to chart
Set symbols (default: SPY/QQQ/IWM/DIA)
Set 4 timeframes (default: 15/30/60/D)
Customize colors if desired
Create alerts (optional)
Watch for 📈IBSB or 📉IBSB labels with timeframe designation
📞 Support
Follow for updates and new indicators.
Questions? Leave a comment below — I respond to all feedback.
💬 Final Thoughts
Multi-timeframe compression breakouts with 4-symbol confirmation. Instead of monitoring dozens of charts manually, see all your timeframe breakouts in one place. When multiple timeframes align with simultaneous 4-symbol breakouts, you get clearer directional signals.
Use as one component of your analysis, combine with your risk management, and always trade with discipline.
Happy trading! 📈
Free and open-source for personal use. If you find this valuable:
👍 Like | 📝 Review | 🔔 Follow
SMT Cycles by AlgoKingsSMT Cycles by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT ARE SMT CYCLES?
This indicator identifies Smart Money Technique divergences using cycle-based analysis rather than standard timeframes. Cycles represent natural market rhythms (sessions, 90-minute institutional windows, true daily periods) that better align with institutional trading patterns than arbitrary timeframe bars.
Example: During the London session, NQ makes a new high but ES fails to follow = Bearish SMT divergence within the London cycle
UNDERLYING METHODOLOGY
This indicator combines four analytical layers:
1. AUTOMATIC CORRELATION MAPPING
Built-in correlation intelligence for 40+ pairs (identical to SMT Custom):
- Futures: NQ, ES, YM cross-correlation | GC/SI | 6E/6B
- Forex: EURUSD/GBPUSD/DXY(inverse) | AUDUSD/NZDUSD
- Stocks: MAG7 (META, NVDA, MSFT, etc.) vs NDX
- Crypto: BTCUSD/ETHUSD
Algorithm automatically mirrors contract types and exchange prefixes using regex-based parsing for futures contracts and micro variants.
2. CYCLE-BASED PERIOD DETECTION
Unlike standard timeframe analysis, this indicator uses market structure cycles:
SWING CYCLES (Position Trading):
- Yearly: 12-month institutional rebalancing periods
- Quarterly: 3-month earnings and fund rotation cycles
- Monthly: Calendar month institutional flows
- Weekly: 7-day swing trading cycles
- Daily: Standard 18:00-18:00 EST bars
- TrueDay: 00:00-00:00 EST for 24-hour markets (futures, forex, crypto)
INTRADAY CYCLES (Day Trading):
- Session: Asia (18:00-02:00), London (02:00-08:30), NY AM (08:30-12:00), NY PM (12:00-17:00) EST
- 90m: Three 90-minute windows per trading day (02:00-03:30, 03:30-05:00, etc.)
- 30m: 30-minute institutional order flow windows
- 10m, 3m, 1m: Scalping cycles for precise entry timing
Technical implementation:
- TrueDay calculation: Detects candle closes at exactly 00:00 EST using time modulo arithmetic on 24-hour markets. Differs from standard Daily bars which use futures settlement times (18:00 EST).
- Session detection: Regex pattern matching on hour/minute timestamps to identify cycle boundaries (e.g., h==2 and m==0 triggers Asia session end)
- 90m hierarchy: Groups sub-90m cycles (30m, 10m, 3m, 1m) under their parent 90m window using group timestamp tracking (gx field)
- Intermediate accumulation: For multi-bar cycles (TrueDay, Sessions, 90m), maintains running high/low (nh1, nl1) across constituent bars until cycle completion
3. MULTI-TIMEFRAME CYCLE ANALYSIS
Proprietary cycle synchronization:
- Tracks price structure across up to 11 configurable cycles simultaneously
- Maintains independent high/low tracking for each symbol pair using request.security()
- Compares previous cycle extremes (high , low ) across correlated pairs
- Timestamps divergence formations at chart timeframe precision
- Implements adaptive purge logic (1min to 12M) based on cycle type
4. DIVERGENCE CLASSIFICATION SYSTEM
Bullish SMT: Chart symbol makes lower low within cycle, correlated pair does NOT = Institutional buying pressure
Bearish SMT: Chart symbol makes higher high within cycle, correlated pair does NOT = Institutional selling pressure
Advanced features include level tracking (monitors when extremes are revisited), automatic extension until both levels violated, 90m hierarchy overlap filtering (hides sub-90m SMT within parent 90m window), and inverse correlation support for DXY relationships.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- Cycle boundary detection: Custom logic for TrueDay calculation (00:00 EST candle close detection using modulo arithmetic on 24h markets), Session identification (time-based regex for Asia/London/NY periods), and 90m window calculation (minute offset from 02:00 EST baseline)
- Intermediate cycle accumulation: Complex state management for multi-bar cycles (Sessions, 90m, TrueDay) that build complete cycle values across constituent bars before finalizing
- 90m hierarchy system: Proprietary grouping algorithm (gtype, gca, gx fields) that links sub-90m cycles to parent windows for intelligent overlap filtering
- Automatic symbol mapping: Custom logic for 40+ correlation pairs including futures contract recognition and exchange inheritance
- Adaptive purge system: Cycle-specific memory management (1S to 12M) optimized through backtesting
- Multi-level tracking: Simultaneous monitoring of multiple active divergences across different cycle types with state management for "taken" levels
Standard SMT indicators use fixed timeframes. This script analyzes institutional cycles that don't align with standard bar periods, requiring complex time arithmetic and multi-bar aggregation logic.
TECHNICAL COMPONENTS
Core structures:
- Cycle Object: Tracks high/low/time for each cycle type with intermediate values (nh1, nl1) for multi-bar cycles and complete cycle values (h1, l1, t1) upon cycle completion
- CycleType Enum: Defines 11 cycle types (year, quarter, month, week, day, trueday, session, m90, m30, m10, m3, m1) with associated period strings and purge thresholds
- Point Object: Stores divergence formation data for chart symbol level and correlated symbol level with "taken" status tracking
- SMT Object: Visual representation with line extension, tooltip showing formation time (EST), and optional 90m group timestamp (gx) for hierarchy filtering
Cycle detection logic:
- TrueDay: Tests if hour==0, minute==0 at candle close OR day-of-week changes (with Monday exception for markets closed weekends)
- Session: Matches specific hour:minute combinations (16:30=Void, 02:00=Asia end, 06:30=London end, 11:00=NY AM end, 15:30=NY PM end)
- 90m: Calculates (hour*60 + minute - 120) % 90 == 0 to detect 90-minute boundaries from 02:00 EST baseline
HOW TO USE
Setup (Automatic Mode - Recommended):
1. Apply to chart of supported pair (see correlation list above)
2. Indicator automatically detects optimal comparison symbols
3. Enable/disable specific cycle categories (Swing or Intraday) in settings
4. Enable/disable individual cycles within each category
5. Adjust visual preferences (colors, line styles, labels)
Setup (Manual Mode):
1. Uncheck "Automatic Symbol Mode" in settings
2. Enter "Manual Symbol #1" (e.g., ES1! when chart shows NQ1!)
3. Optional: Enter "Manual Symbol #2" for three-way comparison
4. Check "Invert" if symbol is inversely correlated (e.g., DXY vs EURUSD)
Chart Timeframe Requirements:
- Swing cycles: Chart TF must be <= cycle period (e.g., Daily cycle requires 1H or lower chart)
- Intraday cycles: Chart TF must divide evenly into cycle (e.g., 90m cycle requires 30m, 15m, 10m, 5m, or lower chart)
- TrueDay: Automatically selected for 1H and below chart TF on 24-hour markets (futures, forex, crypto)
Interpretation:
- Blue lines = Bullish SMT (chart made lower low within cycle, correlated pair held higher). Potential reversal up.
- Red lines = Bearish SMT (chart made higher high within cycle, correlated pair stayed lower). Potential reversal down.
- Dots in labels = Multiple SMT signals overlap. Hover to see all cycles showing divergence.
SETTINGS EXPLAINED
Symbols:
- Automatic Symbol Mode: Uses built-in correlation intelligence (recommended)
- Manual Symbol #1/2: Override automatic selection
- Invert: For inverse correlations (DXY vs majors)
- Hide Exact Overlap: Removes duplicate signals with identical start/end times
- Hide 90m Hierarchy Overlap: Hides sub-90m SMT (30m, 10m, 3m, 1m) when contained within parent 90m window
- Hide All Overlap: Hides lower precedence SMT when start/end points overlap higher precedence SMT
Intraday Cycles (Enable/Disable per symbol):
- Session: Asia (18:00-02:00), London (02:00-08:30), NY AM (08:30-12:00), NY PM (12:00-17:00) EST
- 90m: Three 90-minute institutional windows per day
- 30m: 30-minute cycles
- 10m, 3m, 1m: Scalping cycles
- Each cycle has two checkboxes: left for Symbol #1, right for Symbol #2
Swing Cycles (Enable/Disable per symbol):
- Yearly: 12-month cycles
- Quarterly: 3-month cycles
- Monthly: Calendar month cycles
- Weekly: 7-day cycles
- Daily: Standard daily bars (18:00-18:00 EST) OR TrueDay (00:00-00:00 EST on 1H and below chart TF for 24h markets)
- Each cycle has two checkboxes: left for Symbol #1, right for Symbol #2
Display:
- Bull/Bear: Enable/disable directional signals
- Line colors, styles (solid/dashed/dotted), widths
- Label: Show/hide text labels with color and size options
- SMT formation time: Displays timestamp in tooltip (New York time)
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
SMT Custom by AlgoKingsSMT Custom by AlgoKings
RISK DISCLAIMER: This indicator is an analytical tool for educational purposes only, not financial advice. Trading carries substantial risk of loss. This tool does not guarantee profitable trades. Always use proper risk management and never risk more than you can afford to lose.
WHAT IS SMART MONEY TECHNIQUE (SMT)?
SMT identifies divergences between correlated market pairs when one asset makes a new high/low but its correlated counterpart fails to do so. These divergences often signal institutional repositioning and potential reversal points.
Example: NQ makes a new high at 15,200 but ES fails to exceed its previous high = Bearish SMT divergence
UNDERLYING METHODOLOGY
This indicator combines three analytical layers:
1. AUTOMATIC CORRELATION MAPPING
Built-in correlation intelligence for 40+ pairs:
- Futures: NQ, ES, YM cross-correlation | GC/SI | 6E/6B
- Forex: EURUSD/GBPUSD/DXY(inverse) | AUDUSD/NZDUSD
- Stocks: MAG7 (META, NVDA, MSFT, etc.) vs NDX
- Crypto: BTCUSD/ETHUSD
Algorithm automatically mirrors contract types (perpetual/quarterly futures) and exchange prefixes using regex-based parsing. Recognizes quarterly contracts (NQU2025), micro contracts (MNQ, MES), and perpetual syntax (NQ1!).
2. MULTI-TIMEFRAME CYCLE ANALYSIS
Proprietary cycle detection algorithm:
- Tracks price structure across 9 configurable timeframes simultaneously
- Maintains independent high/low tracking for each symbol pair using request.security()
- Identifies cycle completions with time-synchronized bar analysis
- Implements adaptive purge logic (1min to Monthly) to balance historical context vs performance
Technical implementation compares previous period extremes (high , low ) across correlated pairs and timestamps divergence formations at chart timeframe precision.
3. DIVERGENCE CLASSIFICATION SYSTEM
Bullish SMT: Chart symbol makes lower low, correlated pair does NOT = Institutional buying pressure
Bearish SMT: Chart symbol makes higher high, correlated pair does NOT = Institutional selling pressure
Advanced features include level tracking (monitors when extremes are revisited), automatic extension until both levels violated, overlap filtering to remove redundant signals, and inverse correlation support for DXY relationships.
WHY CLOSED-SOURCE?
This script protects proprietary algorithms:
- Automatic symbol mapping: Custom logic for 40+ correlation pairs including futures contract recognition (expiration codes, micro contracts) and exchange inheritance
- Cycle synchronization engine: Complex timestamp matching ensures divergences only flagged when both symbols' cycle periods align perfectly (prevents false signals from data lag)
- Adaptive purge system: Timeframe-specific memory management (1S to 12M) optimized through backtesting
- Multi-level tracking: Simultaneous monitoring of multiple active divergences with state management for "taken" levels
- Overlap intelligence: Algorithm determines when to hide/combine signals from different timeframes while preserving information in tooltips
Standard divergence indicators simply compare two moving averages. This script performs real-time institutional flow analysis across correlated instruments.
HOW TO USE
Setup (Automatic Mode - Recommended):
1. Apply to chart of supported pair (see correlation list above)
2. Indicator automatically detects optimal comparison symbols
3. Enable/disable specific timeframes in settings
4. Adjust visual preferences (colors, line styles, labels)
Setup (Manual Mode):
1. Uncheck "Automatic Symbol Mode" in settings
2. Enter "Manual Symbol #1" (e.g., ES1! when chart shows NQ1!)
3. Optional: Enter "Manual Symbol #2" for three-way comparison
4. Check "Invert" if symbol is inversely correlated (e.g., DXY vs EURUSD)
Interpretation:
- Blue lines = Bullish SMT (chart made lower low, correlated pair held higher). Potential reversal up.
- Red lines = Bearish SMT (chart made higher high, correlated pair stayed lower). Potential reversal down.
- Dots in labels = Multiple SMT signals overlap. Hover to see all timeframes.
SETTINGS EXPLAINED
Symbols:
- Automatic Symbol Mode: Uses built-in correlation intelligence (recommended)
- Manual Symbol #1/2: Override automatic selection
- Invert: For inverse correlations (DXY vs majors)
- Hide Exact Overlap: Removes duplicate signals with identical start/end times
- Hide All Overlap: Hides lower timeframe SMT within higher timeframe ranges
Timeframes:
- 9 configurable timeframe rows
- Toggle each symbol independently (Sym #1, Sym #2 checkboxes)
- Default: Chart TF, 1m, 5m, 15m, 1H, 4H, Daily, Weekly, Monthly
Display:
- Bull/Bear: Enable/disable directional signals
- Line colors, styles (solid/dashed/dotted), widths
- Label: Show/hide text labels with color and size options
- SMT formation time: Displays timestamp in tooltip (New York time)
UPDATES
This script is actively maintained. Updates released through TradingView's native update system. For technical questions, use the comment section below.
Price Probability Engine - Volatility & Structure-Based TargetsThe aim of the indicator is:
To provide adaptive, probability-weighted price target zones that help traders frame where price is most likely to interact next, without predicting when or guaranteeing direction.
Price Probability Engine is a target-projection overlay that blends three independent “next-move” reference methods into a single pair of AVG targets:
AVG Bull = a probabilistic upside objective
AVG Bear = a probabilistic downside objective
It is designed to help you frame the most reasonable near-term price zones using both volatility (ATR) and structure (pivot swings + measured moves) rather than relying on a single indicator.
What you see on the chart
When enabled, the script plots:
AVG Bull line (upper target)
AVG Bear line (lower target)
Optional last-bar labels that print the current target values
The overlay is scale-locked so the plots stay aligned with price when you scroll/zoom the chart.
How it works (conceptual, step-by-step)
1) ATR “reach filter” (probability gating)
All components are first checked against a reach filter:
A target is considered “reachable” only if it is within
Reach Filter × ATR from the current price.
This prevents extremely distant projections from dominating the final average.
2) Three component target engines
The script computes three upside candidates and three downside candidates:
A) ATR Component (volatility projection)
Uses ATR Length and ATR Multiplier
Projects a simple near-term band around price:
atrBull = close + ATR × mult
atrBear = close - ATR × mult
Direction mode:
Candle: compares close to close
Momentum(3): uses close − close
B) AutoFib Component (swing extension)
Detects swing highs/lows using pivot logic (Left/Right bars)
Projects an extension using a selectable Fib level (1.272 / 1.414 / 1.618 / 2.0 / 2.618)
Gives a structure-based target derived from the current swing range
C) Lindsey Component (measured-move target)
Detects a 3-point pivot sequence (P1/P2/P3) and projects a measured move to P4:
Bull: from a low-high-higher-low sequence
Bear: from a high-low-lower-high sequence
Optional P1/P2/P3 markers can be displayed for learning/debugging
3) Dynamic weighting (closer targets matter more)
If Dynamic Weights is enabled, each component’s weight increases as the target gets closer to price (within the reach window).
This means the final AVG tends to favor targets that are both reachable and near-term relevant.
You can control:
Base Weight (Fib / Lindsey / ATR)
Dynamic Power (how aggressively “closer” becomes “heavier”)
4) Outlier trimming (stability)
If Trim Outlier Component is enabled, the script:
computes a simple median reference of the remaining component targets
drops any target that deviates from the median by more than
Outlier Threshold × ATR
This reduces sudden jumps when one method produces an unusually extreme projection.
5) Final output: a weighted average (bull + bear)
The remaining eligible components are combined into:
AVG Bull (weighted average of bull candidates)
AVG Bear (weighted average of bear candidates)
If no components pass the reach filter (or are trimmed), the AVG line can temporarily become unavailable until valid inputs re-appear.
How to use it (practical workflow)
Pick your timeframe, then tune ATR:
Start with ATR Length 14 and ATR Mult 1.0–1.5
Set a reasonable Reach Filter (x ATR):
Smaller = only near targets
Larger = includes more distant projections
Decide how you want it to behave:
Dynamic Weights ON for “closer targets dominate”
Outlier Trim ON for smoother / less erratic averages
Use the AVG lines as planning zones, not certainties:
They are best treated as “where price is most likely to seek next” based on the blend of volatility + structure.
A common use is to monitor how price reacts as it approaches either AVG line (stalling, rejection, acceleration), and then reassess as new pivots/ATR values update.
Settings guide (quick)
ATR Length / Multiplier: controls the volatility envelope
Direction Mode: changes the bias input for ATR projection
Lindsey Left/Right: smaller = more sensitive pivots; larger = fewer, more meaningful pivots
Fib Left/Right + Extension: controls the swing structure target
Reach Filter: controls what qualifies as a realistic near-term target
Dynamic Power: higher = stronger preference for the nearest target
Outlier Threshold: higher = fewer removals; lower = more aggressive trimming
Notes / Transparency
This script does not place trades or guarantee outcomes. It is a visual target framework that adapts as volatility and market structure change. For best clarity, publish charts with this script on a clean layout so the AVG lines and labels are easy to identify.
Volatility Adaptive Precision Trend [JOAT]Volatility Adaptive Precision Trend – REGMA/ZLEMA Trend & Volatility Engine
IMPORTANT NOTES (READ FIRST)
This is an indicator (not a strategy). It does not place trades. It provides a structured trend and volatility framework.
This script is written in Pine Script v6 and is intended to be used on standard candlestick charts .
Source code visibility: This script is published as Protected Source (closed-source) . The purpose is to protect the work from unauthorized re-uploads/copies and to maintain a stable versioning path. This description is intentionally detailed so you can understand what the indicator does and how to use each feature without needing access to the implementation.
Protected Source / Closed-Source Clarification
Protected source does not mean "trust me blindly". It means the internal implementation is not publicly viewable.
The operational behavior is documented here: what is plotted, what each dashboard cell means, what each input controls, and how to interpret the output.
If you see re-uploads or near-identical copies elsewhere, treat them with caution and rely on the official publication.
Overview
Volatility Adaptive Precision Trend (VAPT) is a professional trend engine designed to stay responsive in fast markets while remaining stable in chop. It combines:
Regularized EMA (REGMA) – advanced smoothing with lambda parameter for noise reduction while maintaining responsiveness
Zero-Lag EMA (ZLEMA) – optional mode that eliminates traditional EMA lag for faster trend detection
Adaptive ATR Bands – volatility-based envelopes that expand and contract with the regime
Dynamic Risk Zones – extended envelopes beyond bands highlighting extreme stretch areas
Session Analysis – Asian, London, and New York session awareness with background shading
Professional Gradient Visualization – multi-layer trend lines with strength-based coloring
The purpose is to provide a clean, adaptive trend framework that adjusts to volatility conditions automatically.
What Makes It Original (Originality & Usefulness)
This script is not a simple moving average with bands. It is a coordinated workflow:
REGMA/ZLEMA Hybrid introduces a regularization term into the EMA recursion: REGMA = alpha x price + (1-alpha) x (REGMA + lambda x (price - REGMA ))
Adaptive Volatility Engine combines fast and slow ATR measures to estimate whether volatility is expanding or contracting
Volatility Regime Classifier compares current ATR to its moving average and standard deviation to label conditions as LOW/NORMAL/HIGH
Trend Strength Model measures distance between fast and slow trend lines, normalized by ATR
Session Context provides awareness of major trading sessions for regime interpretation
The combination creates a trend system that adapts to market conditions rather than using static parameters.
1) Chart Visuals – What You See on the Chart
A) Trend Lines (REGMA or ZLEMA)
Three trend lines form the core spine:
Trend Core – thickest line (linewidth 4), full gradient color, primary decision spine
Trend Mid – medium line (linewidth 2), slightly transparent, provides depth
Trend Fast – thin line (linewidth 1), emphasizes short-term shifts around the core
All lines share the same gradient which transitions from bull tones to bear tones as normalized strength crosses through zero.
REGMA Mode:
Lambda parameter (0.0-1.0) controls regularization strength
Lambda = 0.0 = standard EMA behavior
Higher lambda = more smoothing, reduced noise
Default lambda = 0.5 for optimal balance
ZLEMA Mode:
Compensates for EMA lag by subtracting half-length delay before smoothing
Creates faster, more reactive spine
Toggle between modes based on preference
B) ATR Bands and Risk Clouds
Upper/Lower Bands – ATR x multiplier around the trend spine, semi-transparent envelopes
Upper/Lower Risk Zones – extended envelopes (1.5x ATR multiplier) beyond bands, lightly filled
Three regimes created:
Inside bands = "normal" price movement
Between band and risk cloud = elevated excursion
Beyond risk cloud = extreme stretch (often precedes reversion or acceleration)
C) Signal Labels (optional)
When enabled, VAPT marks:
BULL – when trend direction flips positive with sufficient strength (> signal threshold)
BEAR – when direction flips negative with sufficient strength
VOL – when volatility expansion event is detected (regime shifts to HIGH)
Labels are compact, positioned at local highs/lows to avoid overlapping bands.
D) Background Layers
Session background – subtle tint showing active session (Asian=blue, London=orange, NY=green) or OFF-HOURS
Price position tint – faint red when price sits above upper band, faint green when below lower band
2) VAPT System Dashboard – Full Glossary
A compact table in the top-right corner displays:
Row 1 – Trend
BULLISH : Fast trend line > Slow trend line
BEARISH : Fast trend line < Slow trend line
NEUTRAL : Lines approximately equal
Row 2 – Strength
Absolute normalized trend strength in percent (0-100%)
Calculated as distance between fast and slow lines, normalized by ATR, clipped to -1 to +1 range
Higher values = stronger directional conviction
Row 3 – Volatility
LOW : ATR < (ATR MA - 1 StdDev) – compressed ranges, mean-reverting behavior
NORMAL : ATR within +/-1 StdDev of MA – typical oscillation
HIGH : ATR > (ATR MA + 1 StdDev) – trending, impulsive conditions
Row 4 – ATR
Current Average True Range value
Useful for stop-loss placement and position sizing
Row 5 – Position
ABOVE BANDS : Price > upper band (potential overbought, bearish reversal context)
BELOW BANDS : Price < lower band (potential oversold, bullish reversal context)
IN BANDS : Normal price action, trend continuation context
Row 6 – Session
ASIAN : 20:00-00:00 UTC
LONDON : 03:00-12:00 UTC
NEW YORK : 09:30-16:00 UTC
OFF-HOURS : Outside major sessions
3) How the Engines Work (High-Level)
REGMA Calculation:
alpha = 2.0 / (length + 1.0)
REGMA = alpha x price + (1 - alpha) x (REGMA + lambda x (price - REGMA ))
Lambda term pulls the EMA path toward smoothness
ZLEMA Calculation:
lag = floor((length - 1) / 2)
ema_data = price + (price - price )
ZLEMA = EMA(ema_data, length)
Adaptive ATR Calculation:
atr_base = ATR(length)
atr_fast = ATR(length / 2)
atr_slow = ATR(length x 2)
volatilityRatio = atr_fast / atr_slow
adaptedATR = atr_base x volatilityRatio (when adaptive mode enabled)
Trend Strength Calculation:
diff = fast_trend - slow_trend
strength = diff / ATR
normalizedStrength = clamp(strength, -1, +1)
Signal Generation:
Bullish: trend direction changes from non-positive to positive AND strength > signal threshold
Bearish: trend direction changes from non-negative to negative AND strength < -signal threshold
Volatility Expansion: regime shifts from LOW/NORMAL to HIGH
4) Inputs & Settings – Full Reference
Trend System
Trend Period (default: 34): Base period for core trend spine. Larger = stability; smaller = sensitivity.
REGMA Lambda (default: 0.5): Regularization factor. 0.0 = standard EMA, higher = more smoothing.
Enable Zero-Lag Mode : Switches from REGMA to ZLEMA for faster response.
Volatility Bands
ATR Multiplier (default: 2.0): Width of bands around trend spine.
ATR Period (default: 14): Period for ATR calculation.
Adaptive Band Width : Toggles dynamic scaling based on volatility regime.
Session Analysis
Enable Session Zones : Toggle session background shading.
Asian Session (default: 2000-0000): Configurable session time.
London Session (default: 0300-1200): Configurable session time.
New York Session (default: 0930-1600): Configurable session time.
Signal Generation
Show Trend Changes : Toggle BULL/BEAR labels.
Show Volatility Expansion : Toggle VOL labels.
Signal Threshold (default: 0.3): Minimum strength for signal generation.
Visual Settings
Color Theme : Classic, Deep Purple, Sweden, Ocean, or Monokai.
Band Transparency (default: 90): Controls fill opacity for bands.
Show Risk Zones : Toggle extended risk cloud visibility.
5) Recommended Workflow (Practical Use)
For Scalping (1-5 min charts):
Trend Period: 21
ATR Multiplier: 1.5
Signal Threshold: 0.2
For Day Trading (5-30 min charts):
Trend Period: 34 (default)
ATR Multiplier: 2.0 (default)
Signal Threshold: 0.3 (default)
For Swing Trading (1H-4H charts):
Trend Period: 55
ATR Multiplier: 2.5
Signal Threshold: 0.4
For Position Trading (Daily charts):
Trend Period: 89
ATR Multiplier: 3.0
Signal Threshold: 0.5
Step-by-Step Usage:
Step 1 – Check dashboard Trend and Strength for directional bias
Step 2 – Note Volatility regime (avoid fighting strong bands when HIGH)
Step 3 – Use Position readout to identify stretched vs normal conditions
Step 4 – Consider Session context for move quality assessment
Step 5 – Enter on pullbacks toward core trend line from beyond bands in strong trends
Step 6 – Use mean-reversion ideas primarily when volatility is LOW
Step 7 – Manage risk externally using ATR for stop placement
6) Alerts
VAPT ships with alert conditions for:
VAPT Bullish Signal : Bullish trend change detected
VAPT Bearish Signal : Bearish trend change detected
VAPT Volatility Expansion : High volatility regime entered
VAPT Price Above Bands : Price exceeded upper band
VAPT Price Below Bands : Price exceeded lower band
Recommended: Attach alerts to "Once Per Bar Close" to avoid reacting to intra-bar fluctuations.
7) Limitations & Best-Use Guidance
VAPT is an analytical tool, not an automatic trading system. It does not manage orders or risk for you.
Normal caution around indicator lag, volatility shocks, and gaps still applies.
Back-testing any workflow built on this indicator should account for realistic spreads, slippage, and commissions.
Always validate settings on your own symbols and timeframes; there is no single configuration that suits every market.
Session times are in exchange timezone; adjust if needed for your specific instruments.
Disclaimer
This script is for educational and informational purposes only. It does not constitute financial advice. Trading involves risk, and you are responsible for your own decisions, sizing, and risk controls. Always test settings and workflows in a simulated environment before using them in live markets.
-Made with passion by officialjackofalltrades
SMC + Dual UT Bot buy and sell AlertsMise a jour avec un EMA 20/50 et vwap
his script is a composite indicator for TradingView (Pine Script v5) that merges Smart Money Concepts (SMC) with a Dual-instance UT Bot. It has been styled with a high-contrast "Neon Cyberpunk" theme (Cyan/Pink) and is fully compliant with the CC BY-NC-SA 4.0 license.
Here is a breakdown of its two main components:
1. Smart Money Concepts (SMC)
This portion, originally by LuxAlgo, is designed to identify institutional price levels and structural market shifts. It provides a detailed map of market structure rather than simple entry/exit signals.
Market Structure (BOS & CHoCH):
BOS (Break of Structure): Marks trend continuation (e.g., breaking a higher high in an uptrend).
CHoCH (Change of Character): Marks potential trend reversals (e.g., the first time a higher low is broken in an uptrend).
Order Blocks (OB):
Highlights specific candles where institutional buying or selling likely occurred. These act as high-probability support/resistance zones.
Neon Blue/Cyan for Bullish OBs.
Neon Pink for Bearish OBs.
Fair Value Gaps (FVG):
Identifies imbalances (gaps) in price action where the market often returns to "fill" orders.
Neon Mint for Bullish FVGs.
Neon Red for Bearish FVGs.
Premium/Discount Zones: Automatically plots the range equilibrium (50% level) to help you buy in "Discount" (low) and sell in "Premium" (high) areas.
Liquidity (EQH/EQL): Automatically detects "Equal Highs" and "Equal Lows," which are magnets for price as they represent liquidity pools (stop losses).
2. Dual UT Bot Alerts
This portion provides the actual Entry Signals. It runs two separate instances of the "UT Bot" strategy simultaneously with different sensitivity settings to filter noise.
Instance 1 (Buy Only):
Settings: Key Value = 4, ATR Period = 10 (Faster, more sensitive).
Visual: Plots a Neon Cyan "Buy" label.
Function: Looks for bullish reversals earlier to catch the start of a move.
Instance 2 (Sell Only):
Settings: Key Value = 7, ATR Period = 20 (Slower, smoother).
Visual: Plots a Neon Pink "Sell" label.
Function: Uses a wider ATR band to avoid getting shaken out of shorts too early, focusing on major downtrends.
How to Use It
The strength of this script is confluence.
Wait for a Signal: Look for a UT Bot "Buy" or "Sell" tag.
Confirm with SMC: Check if the signal aligns with SMC concepts.
Example Buy: Did the UT Bot give a "Buy" signal while price was bouncing off a Bullish Order Block?
Example Buy: Did price just sweep Liquidity (EQL) before the Buy signal?
Example Sell: Is the "Sell" signal happening inside a Premium Zone or a Bearish Fair Value Gap?
avant-hier
Notes de version
1. "Pro" Badge Buy/Sell Labels
The standard text signals have been replaced with modern, professional Badge Labels that provide more information at a glance.
Visuals: Instead of simple text, the script now uses label.new to create high-visibility badges.
BUY: A Neon Cyan badge with a Rocket icon (🚀).
SELL: A Neon Pink badge with a Chart icon (📉).
Price Details: Each badge displays the exact Entry Price directly on the label.
Tooltips: If you hover your mouse over a Buy or Sell badge, a tooltip will appear showing the exact Take Profit (TP) and Stop Loss (SL) prices calculated for that trade.
2. Dynamic Take Profit (TP)
The script now automatically calculates a profit target for every trade the moment a signal is generated.
Calculation: It measures the distance between your Entry Price and the initial Stop Loss (the ATR Trailing Stop).
Risk:Reward: It multiplies that distance by your chosen Risk:Reward Ratio (default is 1.5) to project a TP target.
Visual Line: A Green Line is drawn on the chart at the TP level. It remains active until price hits it or the stop loss.
3. Active Trailing Stop Loss (SL)
The Stop Loss is no longer static; it is now "alive" and manages the trade for you.
Trailing Logic: If Use Trailing SL? is enabled (default), the SL line will automatically move up (for longs) or move down (for shorts) as the trend continues in your favor. It locks in profit by following the UT Bot's ATR trailing band.
Visual Line: A Red Line is drawn at the SL level. You can see it physically step up or down on the chart as the trend progresses.
4. Real-Time Trade Simulation
The script now simulates the lifecycle of a trade directly on the chart:
Active State: When a trade is live, the TP and SL lines extend to the right of the current candle (bar_index + 1), showing you exactly where your exit points are in real-time.
Closed State: Once the price hits either the Green TP line or the Red SL line, the script detects the "Exit." The lines stop extending and turn dotted, indicating that the trade is closed and waiting for the next signal.
Summary of New Settings
You will find a new group in the settings panel called "UT Bot: Trade Management":
TP Risk:Reward Ratio: Adjust this to change how far the Green TP line is placed (e.g., set to 2.0 for 2x return).
Use Trailing SL?: Uncheck this if you want the Red SL line to stay fixed at the initial entry risk level.
avant-hier
Notes de version
1. Live Strategy Performance Dashboard (Backtester)
Since this is an indicator, TradingView does not automatically calculate PnL (Profit and Loss). I have built a custom Simulation Engine inside the script that tracks every UT Bot signal as if you had taken the trade.
Location: Bottom Right of your chart.
Win Rate: Displays the percentage of trades that hit the Take Profit target versus the Stop Loss.
Trades (W/L): Shows the total number of signals generated, broken down by Wins and Losses.
Net Profit (R): Calculates your theoretical profit in "R-Multiples" (Risk Units).
Example: If you set your Risk:Reward to 2.0, every win adds +2R, and every loss subtracts -1R.
Dynamic Colors: The Win Rate and Profit cells turn Neon Cyan if positive (>50% or >0R) and Neon Pink if negative.
2. Multi-Timeframe Trend Dashboard
A new panel at the Top Right gives you an instant "Market Bias" reading so you don't have to scan the whole chart.
SMC Trend: Reads the Smart Money structure (Break of Structure/Change of Character) to determine if the high-level timeframe is BULLISH or BEARISH.
UT Bot Status: Displays the current active signal state:
BUY (Active): You are currently in a Long trade.
SELL (Active): You are currently in a Short trade.
NEUTRAL: No active signal or the last trade hit TP/SL.
3. Integrated Alert System
I have connected the visual lines to the alert system. You can now set a single alert on this indicator, and it will trigger for:
Entry Signals: "UT Long Entry" / "UT Short Entry"
Exits: "Take Profit Hit" / "Stop Loss Hit"
4. Consolidated Settings
To make the script easier to manage, I organized the settings into clear groups:
Dashboards: Toggle the visibility of the new panels or move the Performance Panel to a different corner.
UT Bot: Trade Management: Quickly adjust your Risk:Reward Ratio (e.g., change from 1.5 to 2.0) to see how it affects your Win Rate in real-time on the dashboard.
avant-hier
Notes de version
1. Multi-Timeframe (MTF) Trend Scanner
I have replaced the basic "Market Bias" panel with a comprehensive MTF Trend Dashboard located at the Top Right of your chart.
What it tracks: It simultaneously monitors the trend direction on 5 distinct timeframes:
15 Minute
1 Hour
4 Hour
Daily
Weekly
How it works: It runs a background calculation (using UT Bot settings Key=5, ATR=15) on these higher timeframes without you needing to switch charts.
Visuals:
BULLISH: Highlighted in Neon Cyan.
BEARISH: Highlighted in Neon Pink.
2. Strategic Confluence (How to use it)
This new dashboard transforms the script from a simple "signal generator" into a complete trading system by allowing you to filter trades based on the bigger picture.
The "All-Green" Rule: If you are scalping on a 5-minute chart and you get a BUY signal, check the dashboard. If the 1H, 4H, and Daily are all Neon Cyan (Bullish), that trade has a significantly higher probability of success.
Avoid Counter-Trend Trades: If your main chart says BUY, but the dashboard shows the 4H and Daily are Neon Pink (Bearish), you are trading against the major trend. You might want to skip that trade or reduce your risk size.
3. Summary of Dashboards
You now have two professional-grade panels on your screen:
Bottom Right (Performance): Shows the past results of the strategy on your current timeframe (Win Rate, Profit Factor).
Top Right (Trend): Shows the current state of the market across all timeframes.
SHDW AlphaDesk|ProShort summary
Institutional multi-timeframe trend map that shows a clean Bull / Bear regime for 5m → 1M at a glance, using price structure, trend filters and momentum.
---
Concept
SHDW AlphaDesk|Pro is a desk-style trend regime dashboard.
The goal is simple: when you open a chart, you instantly know if the asset is trading in a bullish or bearish environment on each major timeframe.
The script does not try to be a signal generator or an automated strategy.
Instead, it focuses on three pillars:
* Price behaviour: swing structure and directional context.
* Trend filters: dynamic moving averages and a trend-strength filter.
* Momentum: classic RSI and optional RSI price levels on the chart.
All of this is condensed into a compact table that shows, for every timeframe from 5m to 1M:
* `Trend` → Bull or Bear regime
* `RSI` → 14-period RSI value
The output is always binary (Bull or Bear) to keep the message clear and help avoid hesitation or “neutral” noise.
---
Profiles
The engine is pre-calibrated with three institutional profiles:
* Scalping/Intraday (Crypto): more reactive, tuned for intraday flow, faster regime changes.
* Swing/Conservative (Crypto): smoother behaviour, designed for position and swing trading.
* Institutional (Stocks): slower and more conservative, anchored to higher-timeframe trend for equity and index flows.
All key parameters behind the scenes are handled automatically by the selected profile, so you can switch behaviour without tweaking numbers manually.
---
What the script shows
On every bar:
* A multi-timeframe dashboard on the right side with TF / Trend / RSI.
* Optional EMA/SMA overlays on the price chart for visual alignment with the regime.
* Optional RSI Levels mapped into price, giving approximate areas where RSI would reach common overbought/oversold zones.
There is no trade entry, exit or risk sizing logic.
The script is a trend-reading and context tool , not a full trading system.
---
How to use (institutional view)
A practical way to use SHDW AlphaDesk|Pro is:
1. Start from the top-down.
* Check 1M → 1W → 1D to establish the dominant regime (Bull or Bear).
* Only then look at intraday timeframes (12h, 4h, 1h, 15m, 5m).
2. Trade in the direction of the regime.
* Prefer long setups when the higher-timeframe column is Bull.
* Prefer short setups when the higher-timeframe column is Bear.
3. Use pivots and RSI.
* The snapshot explains how a pivot on a lower timeframe can confirm or anticipate structure on the next higher timeframe (for example, a bullish pivot on 5m confirming a higher low on 15m, etc.).
* Oversold (RSI ≤ 30) on a lower TF often warns that a higher low may be forming one step above.
* Overbought (RSI ≥ 70) on a lower TF often warns that a lower high may be forming one step above.
4. Watch for trend breaks.
* When a significant low is lost (or a strong bearish pivot appears) on a timeframe, zoom out to the next one and re-evaluate the regime there.
* On very high timeframes, a clean break of a major structural low is treated as a bear-market context.
5. Combine with your own execution.
* Use the dashboard to align direction and timing, then apply your own entry models, risk management and trade management rules.
---
Important notes
* This tool is intended for educational and informational purposes only and should be combined with independent analysis and risk management.
Premium CCT Multi-Timeframe Candle Continuation Theory IndicatorPremium CCT is a multi-timeframe technical analysis indicator implementing a proprietary three-condition sequential confirmation system for identifying structural continuation setups. Unlike standard multi-timeframe approaches that simply display HTF indicators on LTF charts or use basic moving average crossovers, this indicator employs a systematic state-machine architecture with specific entry, validation, and invalidation rules designed to filter low-probability setups.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 TECHNICAL METHODOLOGY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔹 PHASE 1: HTF STRUCTURAL BREAK DETECTION
The indicator implements a specific candle-close comparison algorithm on the higher timeframe (HTF) that differs from standard breakout detection methods:
DETECTION LOGIC:
• Bullish Setup: HTF_Close > HTF_High
(Current closed HTF candle's close price exceeds the previous HTF candle's high)
• Bearish Setup: HTF_Close < HTF_Low
(Current closed HTF candle's close price falls below the previous HTF candle's low)
This is NOT a simple "price broke above high" detection. The requirement for the CLOSE to be above the previous HIGH (rather than just the high being above the previous high) ensures the structural break is confirmed at candle close, filtering wick-only breakouts that often fail.
POINT OF INTEREST (POI) ESTABLISHMENT:
When a setup is detected, the POI is set at:
• Bullish: POI = HTF_High (the previous candle's high that was broken)
• Bearish: POI = HTF_Low (the previous candle's low that was broken)
This POI represents a key structural level where the market previously struggled to move beyond. The hypothesis is that this level will act as support (bullish) or resistance (bearish) during retracement.
INVALIDATION ALGORITHM:
The setup remains valid until:
• Bullish: HTF_Close < Setup_Candle_Low (current HTF candle closes below the low of the candle that created the setup)
• Bearish: HTF_Close > Setup_Candle_High (current HTF candle closes above the high of the candle that created the setup)
This invalidation logic differs from simple "stop loss at low" approaches because it requires a full candle close beyond the extreme, not just a wick, preventing premature invalidation from intrabar volatility.
🔹 PHASE 2: LTF THREE-CONDITION SEQUENTIAL SYSTEM
Once a valid POI is established, the indicator enters a state-machine that tracks three specific conditions on the lower timeframe (LTF). Each condition must be satisfied sequentially, and certain conditions can be invalidated if specific price action occurs.
CONDITION 1 - RETRACEMENT THROUGH POI:
ENTRY CRITERIA:
• Bullish: LTF_Close < POI (candle closes below the POI level)
• Bearish: LTF_Close > POI (candle closes above the POI level)
TRACKING MECHANISM:
Upon Condition 1 satisfaction, the indicator begins tracking two separate extreme values:
1. Momentum Extreme (for Condition 3):
• Bullish: Track the candle with the LOWEST CLOSE during retracement
- If new lower close found: Update Momentum_Extreme_Close and store this candle's HIGH
• Bearish: Track the candle with the HIGHEST CLOSE during retracement
- If new higher close found: Update Momentum_Extreme_Close and store this candle's LOW
2. Stop Loss Extreme (for risk management):
• Bullish: Track the absolute LOWEST LOW reached during retracement
- Update continuously if LTF_Low < Current_SL_Extreme
• Bearish: Track the absolute HIGHEST HIGH reached during retracement
- Update continuously if LTF_High > Current_SL_Extreme
WHY THIS MATTERS:
This dual-tracking system is a key differentiator from standard indicators. Most indicators either:
(a) Only track absolute extremes, which don't help identify momentum shifts
(b) Use fixed ATR-based stops, which don't adapt to actual retracement depth
(c) Use a single reference point for both momentum and risk
By tracking BOTH the candle with the most extreme close (momentum) AND the absolute extreme price (risk), the indicator can identify precise momentum shift points while maintaining appropriate stop placement.
MATHEMATICAL REPRESENTATION:
If Condition_1 == False: If (Bullish AND LTF_Close < POI) OR (Bearish AND LTF_Close > POI): Condition_1 = True Momentum_Close_Extreme = LTF_Close Momentum_HighLow_Reference = (Bullish ? LTF_High : LTF_Low) SL_Extreme = (Bullish ? LTF_Low : LTF_High)
If Condition_1 == True: If Bullish: If LTF_Close < Momentum_Close_Extreme: Momentum_Close_Extreme = LTF_Close Momentum_HighLow_Reference = LTF_High If LTF_Low < SL_Extreme: SL_Extreme = LTF_Low If Bearish: If LTF_Close > Momentum_Close_Extreme: Momentum_Close_Extreme = LTF_Close Momentum_HighLow_Reference = LTF_Low If LTF_High > SL_Extreme: SL_Extreme = LTF_High
CONDITION 2 - POI RECLAIM WITH DYNAMIC INVALIDATION:
ENTRY CRITERIA:
• Bullish: LTF_Close > POI (candle closes back above the POI level)
• Bearish: LTF_Close < POI (candle closes back below the POI level)
CRITICAL DIFFERENCE FROM STANDARD APPROACHES:
This condition implements real-time validation logic. If Condition 2 is satisfied but price subsequently closes back through the POI before all conditions are met, Condition 2 is INVALIDATED and must be re-satisfied.
VALIDATION STATE MACHINE:
If Condition_1 == True AND Condition_2 == False: If (Bullish AND LTF_Close > POI) OR (Bearish AND LTF_Close < POI): Condition_2 = True
If Condition_2 == True: If (Bullish AND LTF_Close < POI) OR (Bearish AND LTF_Close > POI): Condition_2 = False // Invalidated - must reclaim again
WHY THIS IS UNIQUE:
Most indicators treat support/resistance reclaims as binary events - once price crosses back, the condition stays "true." This creates false signals when price oscillates around the level. The dynamic invalidation ensures that the POI must be HELD, not just briefly touched, filtering out weak reclaims.
CONDITION 3 - MOMENTUM SHIFT CONFIRMATION:
ENTRY CRITERIA:
• Bullish: LTF_Close > Momentum_HighLow_Reference
(Current candle closes above the HIGH of the candle with the lowest close during retracement)
• Bearish: LTF_Close < Momentum_HighLow_Reference
(Current candle closes below the LOW of the candle with the highest close during retracement)
TECHNICAL RATIONALE:
This condition confirms that momentum has definitively shifted in the intended direction. By requiring price to break the high/low of the MOST EXTREME CLOSE candle (not just any candle, not just the extreme low/high), the indicator ensures:
1. Price has moved beyond the point of maximum bearish/bullish pressure during retracement
2. The momentum shift is decisive, not just a small bounce
3. The setup shows real follow-through, not just sideways consolidation
COMPARISON TO ALTERNATIVES:
• Simple "close above previous high": Too many false signals during consolidation
• ATR-based breakout: Doesn't account for actual market structure
• Fixed pip movement: Not adaptive to volatility
• Break of retracement low: Triggers too late and misses optimal entry
• Our approach: Break of the high/low of the CANDLE that showed the most extreme close, providing early but confirmed entry
SIGNAL GENERATION:
Entry signal triggers ONLY when:
Condition_1 == True AND Condition_2 == True AND Condition_3 == True AND Entry_Signal_Not_Yet_Shown
All three conditions must be simultaneously true. Once a signal is generated, the tracking system resets only when a new HTF setup is detected or the current setup is invalidated.
🔹 PHASE 3: HTF TREND FILTER IMPLEMENTATION
An optional moving average filter adds a fourth layer of confirmation by ensuring directional alignment with the broader trend.
TREND DETERMINATION LOGIC:
HTF_MA = MA(HTF_Close, Period, Method) Trend_Bullish = (HTF_Close > HTF_MA) Trend_Bearish = (HTF_Close < HTF_MA)
SIGNAL FILTERING:
If Trend_Filter_Enabled: If Entry_Signal == True: If (Setup_Bullish AND NOT Trend_Bullish) OR (Setup_Bearish AND NOT Trend_Bearish): Entry_Signal = False // Block counter-trend signals
WHY THIS IS NECESSARY:
While the three-condition system identifies structural continuation setups, the trend filter prevents taking continuation trades in the opposite direction of the dominant trend. This is particularly important because continuation patterns can form in both trending and counter-trending moves, but success rates differ significantly.
CUSTOMIZATION LOGIC:
• Period: Adjustable 1-500 (default 20)
• Method: SMA (arithmetic mean), EMA (exponential smoothing), SMMA (smoothed MA), LWMA (linear weighted)
• Applied Price: Close/Open/High/Low/Median/Typical/Weighted
The default 20-period SMA provides a balance between responsiveness and noise filtering on the HTF, effectively identifying intermediate trends without being overly sensitive to short-term fluctuations.
🔹 DYNAMIC REFERENCE LEVEL CALCULATION
TAKE PROFIT REFERENCE:
Unlike static targets (ATR multiples, fixed pips, percentage), the indicator dynamically tracks:
• Bullish: Highest HIGH reached after setup formation but BEFORE entry confirmation
• Bearish: Lowest LOW reached after setup formation but BEFORE entry confirmation
TRACKING ALGORITHM:
On_New_HTF_Setup: TP_Reference = (Bullish ? Setup_Candle_High : Setup_Candle_Low)
While Conditions_Not_All_Met: If Bullish AND LTF_High > TP_Reference: TP_Reference = LTF_High If Bearish AND LTF_Low < TP_Reference: TP_Reference = LTF_Low
On_Entry_Signal: Final_TP_Reference = TP_Reference // Lock in the value
WHY THIS APPROACH:
This creates realistic profit targets based on actual market movement, not theoretical calculations. The TP represents a price level the market has ALREADY REACHED and therefore has demonstrated it CAN reach again. This is fundamentally different from:
• ATR-based targets: Theoretical, may not align with structure
• Fixed R:R targets: Arbitrary, ignores market behavior
• Previous swing high/low: Static, doesn't account for current volatility
STOP LOSS REFERENCE:
The SL reference is the absolute extreme reached during the retracement phase (tracked in Condition 1). This ensures:
• Stop is beyond actual retracement depth (not arbitrary)
• Stop accounts for the volatility of this specific setup
• Stop placement adapts to market conditions automatically
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 JUSTIFICATION FOR CLOSED-SOURCE & PAID ACCESS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
While this indicator uses fundamental building blocks available in technical analysis (price comparisons, moving averages, high/low tracking), the value and originality lie in the SPECIFIC IMPLEMENTATION:
1️⃣ PROPRIETARY STATE MACHINE ARCHITECTURE
The exact sequence of conditions, their interaction logic, and the specific invalidation rules constitute a proprietary trading methodology. The state machine ensures conditions are tracked, validated, and invalidated according to precise rules that took extensive development and testing to optimize.
The specific choice of:
• CLOSE vs HIGH for HTF breakout detection
• Tracking the candle with extreme CLOSE vs absolute extreme for momentum
• Dynamic Condition 2 invalidation logic
• The specific relationship between all three conditions
...represents a unique systematic approach not found in standard indicators.
2️⃣ DUAL-TRACKING MECHANISM
The simultaneous tracking of two different extremes during retracement (momentum extreme and SL extreme) with their specific update conditions is a non-obvious implementation that required systematic development. Standard indicators typically track only one reference point.
3️⃣ PRECISE TIMING AND INTERACTION LOGIC
The exact timing of when each condition is checked, how they interact, when they reset, and the specific price action that triggers state changes represents implementation details that distinguish this from generic approaches. For example:
• Checking conditions on bar close (not intrabar)
• Specific invalidation rules for Condition 2
• Continue tracking extremes even after Condition 1 is met
• Lock TP reference only at entry, not at setup
4️⃣ INTEGRATED MULTI-COMPONENT SYSTEM
While each component (HTF analysis, LTF conditions, trend filter) uses standard concepts, the specific way they integrate - including which HTF signals are acted upon, how LTF conditions sequence, when the trend filter applies, how reference levels are calculated - represents a cohesive methodology developed through systematic testing.
5️⃣ OPTIMIZATION AND PARAMETER SELECTION
The specific default parameters (timeframe relationships, condition thresholds, MA periods) were determined through extensive testing and represent proprietary optimization decisions.
COMPARISON TO FREE ALTERNATIVES:
Free indicators typically offer:
• Simple multi-timeframe displays (showing HTF indicators on LTF chart)
• Basic breakout detection (price crosses level)
• Single-condition entry systems
• Static stops and targets
• No systematic state tracking
This indicator differs by providing:
• Systematic three-condition sequential confirmation
• Dynamic state validation with invalidation logic
• Adaptive reference levels based on actual price behavior
• Integrated trend filtering
• Dual-tracking system for momentum and risk
• Complete automation of the methodology
The closed-source protection preserves the specific implementation logic, exact condition relationships, timing mechanisms, and proprietary parameter selections that distinguish this systematic approach from free building blocks.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✨ FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📐 MULTI-TIMEFRAME COORDINATION
• Three preset combinations: Daily/15M, 4H/5M, 1H/1M
• Automatic HTF/LTF synchronization with request.security() implementation
• Chart timeframe validation preventing incompatible setups
• Real-time HTF bar tracking to detect new setups immediately
🎨 VISUAL INDICATORS
• Dynamic POI horizontal lines with directional color coding
• Automatic SL/TP reference levels displayed after Condition 1
• Real-time condition status in info panel (checkmark system)
• Customizable colors, line styles (solid/dashed/dotted), and widths (1-5px)
• Label annotations showing exact price levels
📊 INFORMATION PANEL
• Current HTF/LTF configuration display
• HTF trend direction with MA value
• Active setup type (Bullish/Bearish/None)
• Three-condition status with real-time updates
• Trend alignment indicator (when filter enabled)
• Position: 4 corners (top-left, top-right, bottom-left, bottom-right)
• Size: Small/Normal/Large
• Theme: Light (light background charts) / Dark (dark background charts)
🎯 ENTRY SIGNALS
• Display modes: Arrows only, Background color only, or Both
• Arrow placement: Above low (bullish) / Below high (bearish)
• Background: 90% transparent fill on signal bar
• Customizable colors for long (default green) and short (default red)
• Signals trigger only when ALL conditions + trend filter pass
🔔 ALERT SYSTEM
• HTF Setup Formation: Notifies when new POI established
• Entry Signal: Full trade details (direction, entry, TP, SL)
• POI Invalidation: Warns when setup is invalidated
• Custom message format compatible with webhook automation
• alert() function calls for flexible notification routing
• Frequency: Once per bar (prevents spam)
⚙️ CUSTOMIZATION
• Trend Filter: Enable/disable, period (1-500), method (SMA/EMA/SMMA/LWMA), applied price
• Visual Settings: All element colors, line styles, widths
• Alert Toggles: Individual on/off for each alert type
• Info Panel: Position, size, theme independently configurable
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 USAGE INSTRUCTIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ CHART TIMEFRAME REQUIREMENT
Your chart timeframe MUST be equal to or lower than the selected LTF:
• Daily/15M preset: Chart must be 15-minute or lower (15M, 5M, 1M)
• 4H/5M preset: Chart must be 5-minute or lower (5M, 1M)
• 1H/1M preset: Chart must be 1-minute
The indicator displays a warning label if your chart is incompatible. This requirement exists because the indicator needs to process individual LTF bars in real-time to track conditions accurately.
2️⃣ INTERPRETING SIGNALS
Entry signals appear when the complete sequence is satisfied:
• POI line shows the key structural level (blue for bullish, orange for bearish)
• SL reference line appears after Condition 1 (red line at retracement extreme)
• TP reference line tracks highest/lowest point before entry (green line)
• Info panel shows real-time condition status (✓ when met, ✗ when not)
• Entry arrow/background appears when all conditions + trend filter pass
The setup remains active until either:
(a) Entry signal is generated
(b) HTF setup is invalidated
(c) New HTF setup is detected
3️⃣ TREND FILTER OPTIMIZATION
Enable in clearly trending markets:
• Strong uptrends: Enable filter, allows only bullish setups
• Strong downtrends: Enable filter, allows only bearish setups
• Ranging markets: Consider disabling to allow both directions
• Choppy conditions: Enable filter with longer MA period (50-100)
MA Period Selection:
• 20: Default, balances responsiveness and stability
• 50: Intermediate trends, less false signals
• 100/200: Major trends only, very selective
MA Method Selection:
• SMA: Smooth, equal weight to all periods
• EMA: More weight to recent prices, faster response
• SMMA: Double-smoothed, very stable
• LWMA: Linear weighting, moderate responsiveness
4️⃣ ALERT CONFIGURATION
To receive entry signal notifications:
1. Right-click the indicator name on your chart
2. Select "Add Alert on Premium CCT..."
3. In alert dialog, choose "Any alert() function call"
4. Configure notification preferences (app/email/webhook)
5. Set "Once Per Bar Close" to avoid repeated alerts
Alert message format includes:
• Direction (BUY/SELL)
• Symbol
• Entry price (current close when signal triggered)
• TP level (dynamic reference)
• SL level (retracement extreme)
5️⃣ RISK MANAGEMENT CONSIDERATIONS
The indicator provides REFERENCE levels, not trade management:
• SL Reference: Shows the retracement extreme - consider adding buffer
• TP Reference: Shows price level already reached - may not be hit again
• Position Sizing: Calculate based on your account size and risk tolerance
• Actual SL: Should account for spread, slippage, and broker conditions
• Actual TP: May want to take partial profits before reference level
These reference levels represent structural points identified by the indicator's logic, but actual trade management should incorporate:
• Your personal risk parameters
• Current market volatility
• Spread and commission costs
• Your trading plan rules
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 BEST PRACTICES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BACKTESTING:
Before live trading, review historical signals on your instruments to understand:
• Signal frequency on different timeframe combinations
• Typical stop-loss distances
• How setups behave in different market conditions
• Average time from setup to entry signal
MARKET SELECTION:
This methodology works best in markets with:
• Clear directional trends on HTF (for trend filter effectiveness)
• Sufficient liquidity (reduces slippage on entries)
• Normal volatility (extreme conditions may cause unusual behavior)
• Avoid during major news events initially until familiar with behavior
TIMEFRAME CONSIDERATIONS:
• Lower timeframe combinations (1H/1M): More signals, faster moves, require more monitoring
• Higher timeframe combinations (Daily/15M): Fewer signals, larger moves, less intensive
• Match timeframe selection to your trading availability and style
INTEGRATION WITH YOUR ANALYSIS:
While this indicator provides a systematic approach, consider:
• Overall market context (trending, ranging, consolidating)
• Key support/resistance levels from higher timeframes
• Economic calendar events that may cause volatility
• Your own chart patterns and technical analysis
• Confluence with other methodologies you use
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMERS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is a technical analysis tool that implements a specific systematic methodology. It does NOT constitute financial advice, investment recommendations, or trading signals that should be followed blindly.
RISK ACKNOWLEDGMENT:
• Trading involves substantial risk of loss
• You can lose your entire investment
• Past indicator signals do not predict future results
• No methodology works in all market conditions
• Market conditions change and render historical performance irrelevant
• Backtested results do not account for real-world factors (slippage, spread, execution, psychological factors)
USER RESPONSIBILITY:
• You are solely responsible for all trading decisions
• You should never trade with money you cannot afford to lose
• You should thoroughly understand this methodology before using it
• You should test on demo accounts before live trading
• You should maintain appropriate position sizing and risk management
• You should seek advice from qualified professionals regarding your situation
METHODOLOGY LIMITATIONS:
• This system tracks specific price relationships and conditions
• It cannot predict market behavior with certainty
• It may generate false signals during certain conditions
• It requires proper interpretation within market context
• Signal frequency varies significantly across markets and timeframes
• Performance varies across different market regimes (trending vs ranging)
• The three-condition system filters many setups, which reduces signal frequency
NO PERFORMANCE CLAIMS:
• No claims are made about win rates or profitability
• Historical signals shown are not representative of future performance
• Results vary dramatically based on execution, market selection, and risk management
• What works on one instrument may not work on another
• Different timeframe combinations produce different results
TECHNICAL LIMITATIONS:
• Requires specific chart timeframe compatibility
• Depends on clean price data from broker
• May behave differently with different data providers
• LTF conditions depend on precise bar-by-bar tracking
• Internet connectivity issues may cause missed signals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 VERSION HISTORY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Version 1.0 - Initial Release
• HTF structural break detection with close-vs-high/low logic
• Three-condition LTF sequential tracking system with state machine
• Dual extreme tracking (momentum reference and SL reference)
• Dynamic Condition 2 validation with real-time invalidation
• Adaptive TP/SL reference levels based on actual price movement
• Visual POI lines with automatic updates
• Comprehensive information panel with real-time status
• Customizable entry signal display (arrows/background/both)
• Complete alert system with structured messages
• HTF trend filter with MA (customizable period, method, applied price)
• Multiple timeframe presets (Daily/15M, 4H/5M, 1H/1M)
• Light and Dark theme support for different chart backgrounds
• Extensive visual customization options
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The information and publications provided by this indicator are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations.
This indicator implements a specific technical analysis methodology. Users must understand the underlying logic, test thoroughly, and integrate it appropriately within their own trading approach and risk management framework.
EMA Slope - RSI Indicator# EMA Slope - RSI Indicator
## Script Description (for Publishing Page)
**EMA Slope - RSI Indicator** combines normalized EMA slope momentum analysis with RSI divergence detection and momentum comparison to create a visual signal indicator with five distinct signal types. The indicator's originality lies in its unique "No Trade Zone" (NTZ) concept applied to slope momentum, combined with centered RSI format for direct comparison, and multiple complementary signal methods that work together to identify both trend-following and reversal opportunities across different market conditions.
**Core Concept - EMA Slope Normalization:** Calculates rate of change of long MA (default 160 EMA) by comparing current value to N bars ago (default 3 bars). Raw slope difference normalized to -100 to +100 scale using 500-bar rolling range: normalizedSlope = 100 * (longMA - longMA ) / (highest(maDF, 500) - lowest(maDF, 500)). Creates consistent momentum oscillator comparable across price levels and timeframes.
**No Trade Zone (NTZ) Logic:** NTZ (±8 default) creates neutral zone where slope momentum is too weak for reliable signals. Indicator only triggers NTZ Cross signals when slope crosses out of threshold zone, ensuring signals occur only when momentum is sufficiently strong.
**Centered RSI Format (RSI-50):** Traditional RSI (0-100 range) difficult to compare with slope. This indicator uses centered RSI = (RSI - 50), creating -50 to +50 range zero-centered on same scale as normalized slope. Enables direct visual and mathematical comparison between RSI and slope momentum, enabling Slope-RSI exhaustion detection and RSI-Slope Oscillator signals.
**Component Integration:** Five signal types target different market conditions. NTZ Cross and Acceleration target trend-following when momentum strong. RSI Divergence and Slope-RSI Divergence target reversals when price/momentum diverge. RSI-Slope Oscillator targets momentum alignment when RSI and slope converge. Multi-method approach provides signals across trending, reversing, and ranging markets.
### 📊 Technical Calculations
**Slope Normalization:** maDF = longMA - longMA , normalized: maDf = 100 * maDF / (highest(maDF, 500) - lowest(maDF, 500)), ranges -100 to +100.
**Acceleration Detection:** maAcce = abs(maDf - maDf ) * smoothBars * 2, normalized: maAcc = 50 * maAcce / highest(maAcce, 200). Values above threshold (35 display, 40 signals) indicate sudden momentum shifts. Visualized as colored circles: cyan (bullish), red (bearish).
**RSI Calculation:** rsi = sma(rsi(source, length), smoothing), centered: cRsi = rsi - 50 (ranges -50 to +50). Smoothed using SMA (default 3 bars) to reduce noise.
**RSI Divergence:** Uses pivot high/low detection on smoothed RSI. Pivot lookback = 16 - sensitivityInput (inverse: sensitivity 6 = 10-bar lookback, sensitivity 10 = 6-bar lookback). Compares price pivots (actual high/low including wicks) against RSI pivots. Bullish: priceLowerLow AND rsiHigherLow. Bearish: priceHigherHigh AND rsiLowerHigh. Stores multiple previous pivots (default 8 max) for comparison.
**Slope-RSI Exhaustion:** Compares normalized slope against centered RSI on same scale. Bearish: slope accelerating up (delta > 0, slope > NTZ) BUT RSI declining (cRsi < cRsi AND cRsi < cRsi ). Bullish: slope accelerating down (delta < 0, slope < -NTZ) BUT RSI rising. Gap threshold (default 10.0 points) filters noise. Visualized with dashed lines and gap labels.
**RSI-Slope Oscillator:** State machine tracks cross events (rsiSlopeCrossUp = cRsi > maDf AND cRsi <= maDf ), waits for confirmation: both RSI and slope heading same direction. Long: RSI crosses above slope AND both heading UP. Short: RSI crosses below slope AND both heading DOWN. Useful for range-bound markets.
**Stretch Filter:** maPercentDiff = (longMA - shortMA) / shortMA * 100. Blocks long signals if longMA > shortMA by threshold (overextended up). Blocks short signals if shortMA > longMA by threshold (overextended down). Default 0.45% prevents signals when MAs too far apart.
**Delta Calculation:** Measures change in normalized slope between bars. Timeframe mode: compares current confirmed slope with previous confirmed (more reliable, slight delay). Standard mode: compares current with previous bar (faster, may use unconfirmed). Minimum threshold (default 3.4) filters weak momentum changes.
**Trailing Stop (Blackflag FTS Swingarm):** Uses Wilder's MA of true range. Modified mode: trueRange = max(HiLo, HRef, LRef) with enhanced gap handling. Unmodified: standard true range. Trailing stop calculated based on ATR factor and price trend direction. Separate settings for divergence signals (wider stops, grace periods).
### 🚀 Signal Types and Conditions
**1. NTZ Cross Signals:** Long: Slope crosses above +NTZ (default +8) AND positive delta ≥ threshold (default 3.4) AND stretch filter allows AND optional trend confirmation (short MA > long MA). Short: Slope crosses below -NTZ AND negative delta ≥ threshold AND filters allow. Exit: Slope re-enters NTZ OR reverses direction for confirmation bars OR trailing stop.
**2. Acceleration Signals:** Long: Acceleration ≥ threshold (default 40) AND slope above NTZ AND positive delta sufficient AND filters allow. Short: Acceleration ≥ threshold AND slope below -NTZ AND negative delta sufficient AND filters allow. Visual: Colored circles (cyan bullish, red bearish). Works independently to catch sudden momentum bursts.
**3. RSI Divergence Signals:** Bullish: Price lower low while smoothed RSI higher low, detected via pivot comparison (default up to 8 pivots). Bearish: Price higher high while RSI lower high. Optional Slope-RSI confirmation. Visual: Purple lines (bearish), lime lines (bullish). Exit: Divergence-specific trailing stop (wider ATR, grace period).
**4. Slope-RSI Divergence Signals:** Bullish: Slope accelerating down (negative delta, slope < -NTZ) BUT RSI rising over lookback AND gap exceeds threshold (default 10.0 points). Bearish: Slope accelerating up (positive delta, slope > NTZ) BUT RSI declining AND gap exceeds threshold. Visual: Orange triangles (bullish exhaustion), yellow triangles (bearish exhaustion) with dashed lines. Exit: Divergence-specific trailing stop.
**5. RSI-Slope Oscillator Signals:** Long: RSI crosses above slope AND both heading upward. Short: RSI crosses below slope AND both heading downward. State machine tracks cross then confirms direction. Exit: Opposite oscillator condition (allows reversal) OR trailing stop after grace period.
### 📖 How to Use
**Adding to Chart:** TradingView → Indicators → Search "EMA Slope - RSI Indicator" → Add (displays in separate pane below price).
**Visual Elements:** Colored area = normalized EMA slope (Green = bullish above NTZ, Red = bearish below -NTZ, Gray = NTZ zone). Blue line = Centered RSI (-50 to +50). Colored circles = Acceleration (Cyan = bullish, Red = bearish). Green triangles (↑) = Long signals (bottom). Red triangles (↓) = Short signals (top). Orange X = Exit signals. Dashed lines = NTZ boundaries. Purple/Lime lines = RSI divergences. Orange/Yellow triangles = Slope-RSI exhaustion. Table (top-right) = Current Slope, RSI, Gap values.
**Parameter Configuration:** MA Settings: Short 40 (stretch filter), Long 160 (slope), Types: SMA/EMA/DEMA/TEMA/WMA/VWMA/SMWMA/SWMA/HMA. Ratios: 20/80 (fast), 40/160 (standard), 50/200 (slow). Core: NTZ Threshold 8 (5-6 more signals, 10-12 stronger), Min Delta 3.4 (5-10 stronger, 1-3 sensitive), Max Stretch 0.45% (0.3% conservative, 1.0% permissive, 0 disable), Use Timeframe Delta true (confirmed bar vs previous bar). RSI: Length 14, Smoothing 3, Source close. Divergence: Sensitivity 6 (higher = more sensitive, 6 = 10-bar lookback, 10 = 6-bar lookback), Max Peaks 8 (2-15 range), Show Divergences true. Slope-RSI: Lookback 4 (2-10, higher = conservative), Min Gap 10.0 pts (0-100, higher = strong only, 0 disable), Show Exhaustion true. Signal Enables: NTZ Cross true, Acceleration true, RSI Divergence false, Slope-RSI Divergence true, RSI-Slope Oscillator true, Require Slope-RSI Confirmation false. Exit: Confirmation Bars 4 (0-10, 0 immediate, 2-4 filters false), Show Trailing Stop true, Trail Type Modified/Unmodified, ATR Period 10, ATR Factor 4.0 (2-3 tight, 4 standard, 5-6 wide), Divergence Grace 3 bars, Divergence ATR 4.0 (recommend 5-8), Oscillator Grace 3 bars, Oscillator ATR 4.0.
**Alerts:** Right-click indicator pane → Add Alert → Choose condition (Long/Short Entry/Exit) → Configure notifications.
**Interpreting Signals:** Trending Markets: Focus NTZ Cross and Acceleration, higher NTZ (10-12) for stronger signals, use trend confirmation. Reversal Opportunities: Enable RSI Divergence and Slope-RSI Divergence, look for exhaustion markers and divergence lines, use wider stops. Range-Bound: Enable RSI-Slope Oscillator, signals when RSI and slope align, allows position reversal. Multi-Timeframe: Higher TF for trend, lower TF for timing, stronger when aligned. Market Adjustments: Crypto 20/80 MA, NTZ 6-7, Delta 4-5 | Forex 40/160 MA, NTZ 8, Delta 3.4 | Stocks 50/200 MA, NTZ 10-12, Delta 2-3.
### 📈 Use Cases
Day Trading (5m-15m, fast MAs 20/80), Swing Trading (1h-4h, standard 40/160), Position Trading (4h-Daily, slow 50/200), Trend Following (NTZ Cross/Acceleration in trends), Reversal Trading (RSI Divergence/Slope-RSI at reversals), Range Trading (RSI-Slope Oscillator in choppy markets), Momentum Analysis (Centered RSI and normalized slope comparison), Trend Exhaustion Detection (Slope-RSI exhaustion markers).
### ⚠️ Important Disclaimer
**THIS IS NOT FINANCIAL ADVICE**
This indicator is for educational and informational purposes only. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. No guarantee of accuracy - signals may be false. Not professional financial advice - consult a qualified advisor. Use only as part of comprehensive analysis. Always use proper risk management. Combine with other analysis techniques before making trading decisions. Indicator signals don't guarantee profitable trades. You are solely responsible for trading decisions and risk management. By using this indicator, you acknowledge understanding the risks and that you use it at your own risk. Never invest more than you can afford to lose. Works on all markets: Crypto, Forex, Stocks, Commodities, Futures
## Short Description (for Script Header - 200-300 chars)
Visual signal indicator combining normalized EMA slope momentum (No Trade Zone concept) with centered RSI format for direct comparison. Five signal types: NTZ momentum crosses, acceleration bursts, price-RSI divergences, slope-RSI exhaustion reversals, and RSI-slope oscillator alignment. Includes stretch filter, exit confirmation bars, and trailing stop exits with separate settings per signal type.
## Tags (for Publishing)
EMA, Moving Average, Slope, Momentum, No Trade Zone, NTZ, Indicator, Technical Analysis, RSI, Relative Strength Index, Centered RSI, RSI-50, Divergence, Slope-RSI, Exhaustion, RSI-Slope Oscillator, Normalized Comparison, Stretch Filter, Trend Confirmation, Exit Confirmation, Trailing Stop, Alerts, Signals, Visual Signals, Entry Signals, Exit Signals, Crypto, Forex, Stocks, Futures, Swing Trading, Day Trading, Reversal Trading, Range Trading, Momentum Analysis
## Category
**Indicators** → **Momentum**
Adaptive MACD DivergencesOverview
The Adaptive MACD Divergences Indicator is an advanced technical analysis tool that combines traditional MACD analysis with revolutionary R-squared (R²) correlation-based adaptation and sophisticated divergence detection. Unlike standard MACD indicators, this system automatically adjusts its sensitivity based on market conditions, providing cleaner signals in ranging markets and faster responses during strong trends.
Key Features
1. R² Adaptive Technology
Automatically measures market trend strength using R-squared correlation
Self-adjusts between responsive (trending) and smooth (choppy) modes
Reduces false signals without manual parameter changes
2. Enhanced Visual System
Gradient color-coded lines showing momentum strength at a glance
Beautiful shadow histogram with depth effects
Real-time R² value display showing adaptation strength
3. Advanced Divergence Detection
Four types of divergences (Regular/Hidden, Bullish/Bearish)
Multi-pivot scanning for catching all valid divergences
Sophisticated filtering to reduce false signals
4. Professional Grade Features
Customizable alert conditions for automated trading
Extensive parameter control with detailed tooltips
Works on all timeframes and instruments
How the Adaptive R² System Works
Understanding R-Squared (R²)
R² measures how well price follows a linear trend, ranging from 0 to 1:
R² = 0.8-1.0: Strong linear trend → MACD becomes MORE responsive
R² = 0.3-0.7: Moderate trend → Balanced MACD behavior
R² = 0.0-0.3: No trend/choppy → MACD becomes SMOOTHER
Adaptation Benefits
In Trending Markets: Catches moves early, stays with trends longer
In Ranging Markets: Filters out noise, reduces whipsaws
During Transitions: Automatically adjusts as market changes
The indicator displays the current R² value with color coding:
🟢 Green: Strong trend detected (R² > 0.7)
🟡 Yellow: Moderate trend (R² 0.3-0.7)
🔴 Red: Choppy/ranging market (R² < 0.3)
Input Parameters Explained
MACD Calculation Method
📊 Use Adaptive R² Mode
ON (Default): Enables intelligent market adaptation
OFF: Uses traditional fixed MACD calculation
When to use each:
Adaptive: Most market conditions, especially mixed trending/ranging
Standard: When you need consistent behavior regardless of market state
Adaptive Settings
R² Correlation Period (Default: 20)
Controls how many bars are analyzed to determine trend strength
5-15 bars: Quick adaptation, good for scalping
20-30 bars: Balanced for day trading
40+ bars: Smooth adaptation for position trading
Show R² Value Table
Displays real-time adaptation strength
Helps understand when indicator is most/least responsive
MACD Parameters
Fast EMA Period (Default: 12)
The quick-responding component
Lower (8-10): More sensitive, more signals
Higher (14-16): Smoother, fewer false signals
Slow EMA Period (Default: 26)
The trend-following component
Lower (20-24): More responsive to changes
Higher (28-35): Better trend filtration
Signal Line Smoothing (Default: 9)
Creates the trigger line for crossovers
Lower (5-7): Faster signals, more whipsaws
Higher (10-15): Delayed but more reliable signals
Price Source
Close: Standard, most accurate
HL2: (High+Low)/2, reduces noise
HLC3: Typical price, good balance
OHLC4: Most smoothing
Visual Settings
Shadow Intensity (Default: 0.4)
Controls histogram gradient strength
0.1-0.3: Subtle, clean appearance
0.4-0.6: Balanced visibility
0.7-1.0: Bold, high contrast
Gradient Lookback (Default: 100)
Determines color intensity scaling
20-50: Colors change frequently
100: Balanced color distribution
150-200: Stable colors
Divergence Detection
Divergence Types
🟢 Regular Bullish: Reversal signal at bottoms
🔴 Regular Bearish: Reversal signal at tops
🟢 Hidden Bullish: Trend continuation in uptrends
🔴 Hidden Bearish: Trend continuation in downtrends
Zero Line Filter (Default: ON)
When enabled, divergences must respect the zero line
Filters out weaker, less reliable divergences
Pivot Lookback Left/Right (Default: 5/5)
Determines pivot point significance
Lower (2-4): More pivots detected, more signals
Higher (6-10): Only major pivots, stronger signals
Minimum Pivot Distance (Default: 2)
Prevents duplicate signals from nearby pivots
1-2: Maximum sensitivity
3-5: Clean, distinct signals
6+: Only widely spaced divergences
Lookback Range (Min: 5, Max: 60)
How far back to search for divergence patterns
Narrow (5-20): Recent divergences only
Wide (40-60): Can find older developing patterns
Pivots to Scan (Default: 5)
How many previous pivots to check
Higher values catch more divergences but use more resources
Strict Zero Check (Default: OFF)
OFF: Quick validation using highest/lowest
ON: Bar-by-bar validation for highest quality signals
Trading Strategies
Strategy 1: Trend Following with R² Confirmation
Setup:
Use Adaptive Mode
Watch R² value for trend strength
Focus on MACD/Signal crossovers
Entry Rules:
Long: MACD crosses above Signal when R² > 0.5
Short: MACD crosses below Signal when R² > 0.5
Avoid: All signals when R² < 0.3 (choppy market)
Exit Rules:
When R² drops below 0.3 (trend weakening)
Opposite crossover signal
Fixed stop-loss at swing high/low
Best For: Trending markets, position trading
Strategy 2: Divergence Reversal Trading
Setup:
Enable Regular Divergences only
Use Zero Line Filter
Set Strict Zero Check for quality
Entry Rules:
Bullish: Enter long when Regular Bullish divergence appears
Confirm with price above recent swing low
MACD starting to curve upward
Bearish: Enter short when Regular Bearish divergence appears
Confirm with price below recent swing high
MACD starting to curve downward
Risk Management:
Stop-loss beyond the divergence pivot point
Target 2:1 risk/reward minimum
Reduce position if divergence pivot is violated
Best For: Range trading, catching reversals
Strategy 3: Momentum Continuation
Setup:
Enable Hidden Divergences
Use histogram color intensity
Monitor gradient line colors
Entry Rules:
Hidden Bullish: Add to longs in uptrends
Hidden Bearish: Add to shorts in downtrends
Confirm with histogram expanding in trade direction
Position Sizing:
Scale in when hidden divergences appear
Increase position when R² rises above 0.7
Reduce when histogram shows weakening (color fading)
Best For: Trending markets, pyramiding positions
Strategy 4: Multi-Timeframe Confluence
Setup:
Apply indicator on 3 timeframes (e.g., 1H, 4H, Daily)
Look for alignment across timeframes
Entry Rules:
Strong Signal: Divergence on higher timeframe + Crossover on lower
Confirmation: R² > 0.5 on at least 2 timeframes
Direction: All timeframes showing same histogram color bias
Management:
Use highest timeframe for overall direction
Middle timeframe for entry timing
Lowest timeframe for precise execution
Best For: Swing trading, high probability setups
Strategy 5: Adaptive Scalping
Setup:
Set R² Correlation Period to 10
Fast EMA to 8, Slow to 21, Signal to 5
Focus on histogram momentum changes
Entry Rules:
Enter when histogram changes from decreasing to increasing
Confirm with line color gradient brightening
R² must be above 0.4
Quick Exit Rules:
Exit when histogram peaks (color at maximum intensity)
Or when gradient color starts fading
Maximum hold time: 10-15 bars
Best For: Active traders, liquid markets
Risk Management Guidelines
Position Sizing
High R² (>0.7): Can use standard position size
Medium R² (0.3-0.7): Reduce to 75% size
Low R² (<0.3): Reduce to 50% or avoid
Stop-Loss Placement
Regular Divergences: Beyond the pivot point
Hidden Divergences: Previous swing high/low
Crossover Trades: Below/above recent support/resistance
Trade Filtering
Avoid signals when R² is unstable (rapidly changing)
Skip divergences that barely meet minimum requirements
Don't trade against strong histogram momentum
Market Condition Guidelines
Best Market Conditions
Trending Markets: R² > 0.5, clear directional movement
Reversal Points: Multiple divergences converging
Breakout Setups: R² rising from low to high values
Avoid Trading When
R² remains below 0.3 for extended periods
Histogram repeatedly crosses zero without follow-through
Divergences appear in both directions simultaneously
Alert Setup
The indicator provides four alert conditions:
Regular Bullish Divergence: Major bottom reversal signal
Regular Bearish Divergence: Major top reversal signal
Hidden Bullish Divergence: Uptrend continuation signal
Hidden Bearish Divergence: Downtrend continuation signal
Alert Best Practices
Combine with price alerts at key levels
Use different alert sounds for different divergence types
Set alerts on higher timeframes to reduce noise
Optimization Tips
For Different Market Types
Trending Markets:
Increase R² Correlation Period (25-30)
Standard MACD settings work well
Focus on Hidden Divergences
Ranging Markets:
Decrease R² Correlation Period (15-20)
Increase Signal smoothing (12-15)
Focus on Regular Divergences with strict filtering
Volatile Markets:
Enable Strict Zero Check
Increase Minimum Pivot Distance (3-4)
Use higher Pivot Lookback values (6-7)
For Different Trading Styles
Day Trading:
R² Period: 15-20
Fast EMA: 8-10
Enable all divergence types
Swing Trading:
R² Period: 25-30
Standard MACD settings
Focus on Regular Divergences
Position Trading:
R² Period: 40-50
Slow EMA: 30-35
Only major divergences (increase pivot lookback)
Common Questions
Q: When should I use Adaptive vs Standard mode?
A: Use Adaptive for most situations. Only use Standard when you need consistent behavior for systematic trading or backtesting.
Q: Why are some divergences not detected?
A: Check your Zero Line Filter and Strict Zero Check settings. These filters improve quality but reduce quantity.
Q: What R² value is considered "good" for trading?
A: Above 0.5 indicates sufficient trend. Above 0.7 is strong. Below 0.3 suggests waiting for better conditions.
Q: Can this indicator be the sole basis for trading decisions?
A: No indicator should be used in isolation. Combine with price action, support/resistance, and overall market context.
Conclusion
The Adaptive MACD Divergences Indicator represents a significant evolution in MACD technology. By combining correlation-based adaptation with sophisticated divergence detection and professional visualization, it provides traders with a powerful tool that automatically adjusts to changing market conditions. The key to success is understanding when the indicator is most effective (R² feedback) and combining it with sound risk management principles.
Heikin Ashi + Volume Intel + EMA# HA Volume Intelligence + EMA - Advanced Heikin Ashi Trading System
## 📊 Overview
**Heikin Ashi + Volume Intel + EMA** is a sophisticated trading indicator that enhances traditional Heikin Ashi (HA) candles with intelligent volume analysis, quality scoring, and dynamic trend detection. Unlike standard Heikin Ashi implementations that only smooth price action, this system reveals **where** and **how** volume traded within each candle, providing critical context that traditional HA charts completely lose.
At its core, the indicator tries to address Heikin Ashi's fundamental weakness—the loss of volume location data—by analyzing volume distribution across candle bodies and wicks, scoring candle quality based on multiple factors, and color-coding candles to instantly communicate setup strength. Combined with an adaptive EMA system featuring structure break detection and slope-based coloring, this creates a complete trading framework that maintains HA's trend clarity while restoring the volume intelligence needed for high-probability decision-making.
## ✨ Key Features
* **Volume Location Analysis** - Identifies where volume concentrated: body (strong conviction), upper wicks (selling pressure/rejection), or lower wicks (buying pressure/support)
* **Multi-Factor Quality Scoring** - Evaluates each HA candle on a 0-100 scale using volume intensity, body percentage, and close location to distinguish high-conviction moves from weak signals
* **Adaptive Candle Coloring** - Visual quality grading with four intensity levels (Excellent/Strong/Good/Weak) for both bullish and bearish candles, making exceptional setups immediately visible
* **Volume-Weighted Border Colors** - White borders indicate body-heavy volume (strong), orange shows upper rejections, aqua marks lower rejections, revealing supply/demand dynamics at a glance
* **Intelligent Label System** - Shows quality scores only on exceptional candles (85+ quality with 1.5x+ volume), preventing chart clutter while highlighting genuine opportunities
* **Slope-Adaptive EMA** - Dynamic color-changing EMA (green/red/gray) based on configurable slope threshold, showing trend momentum beyond simple price position
* **Structure Break Detection** - Automatically identifies and marks significant EMA breaks with extending horizontal lines and directional labels, tracking support/resistance levels until broken
* **Rejection Markers** - Optional visual indicators (💪 body-heavy, 🔻 upper rejection, 🔺 lower rejection) with volume-filtered display to highlight key pressure zones
* **Real-Time Quality Dashboard** - Comprehensive table showing current quality score, volume location, body percentage, volume ratio, close location, direction, EMA value, and slope status
## 🔧 How It Works
### 🎯 Volume Distribution Analysis
The indicator estimates how volume distributed within each candle by calculating the proportional range of body versus wicks:
* **Body Volume** - Percentage of candle range occupied by the body (open to close), indicating committed directional movement
* **Upper Wick Volume** - Percentage in upper shadows (rejection at highs), suggesting selling pressure or profit-taking
* **Lower Wick Volume** - Percentage in lower shadows (rejection at lows), suggesting buying pressure or support
While exact intrabar volume data isn't available on standard timeframes, this proportional estimation provides highly actionable intelligence about where price found acceptance versus rejection, allowing traders to distinguish between strong breakouts (body-heavy) and failed attempts (wick-heavy).
### 📈 Quality Scoring System
Each HA candle receives a quality score from 0-100 based on three weighted components:
**1. Volume Score (max 40 points):**
- Compares current volume to 20-period average
- Higher relative volume = stronger signal
- Capped to prevent extreme outliers from skewing total score
**2. Body Score (max 30 points):**
- Measures body size as percentage of total range
- Larger bodies relative to range = more conviction
- Small-bodied candles receive lower scores even with high volume
**3. Close Location Score (max 30 points):**
- For bullish candles: Rewards closes near the high (70-100% of range)
- For bearish candles: Rewards closes near the low (0-30% of range)
- Weak closes (middle of range) reduce score significantly
**Quality Classifications:**
* **80-100: EXCELLENT** - Institutional-grade conviction, multiple confirming factors
* **70-79: STRONG** - High-quality setup with good confirmation
* **55-69: GOOD** - Decent signal, acceptable for confirmation
* **40-54: MODERATE** - Weak signal, avoid standalone trades
* **0-39: WEAK** - Poor quality, likely noise or indecision
### 🎨 Enhanced Candle Visualization
**Candle Body Colors:**
The indicator uses four distinct color intensities for both bullish and bearish candles, making quality instantly recognizable:
* **Excellent (80+):** Bright, fully opaque colors (lime green / bright red)
* **Strong (70-79):** Solid colors with slight transparency
* **Good (55-69):** Medium transparency, clearly visible but less intense
* **Weak (<55):** Heavy transparency, faded appearance signaling low conviction
**Border Color Intelligence:**
* **White borders** - Body-heavy volume (>70% in body), strong directional commitment
* **Orange borders** - Upper rejection (>35% in upper wick), selling pressure/resistance
* **Aqua borders** - Lower rejection (>35% in lower wick), buying pressure/support
* **Gray borders** - Balanced distribution, no clear volume concentration
This dual-color system (body + border) provides instant visual feedback about both signal quality and volume behavior without cluttering the chart.
### 📊 Slope-Adaptive EMA System
Unlike standard EMAs that simply follow price, this implementation adds intelligence through slope analysis:
**Slope Calculation:**
- Measures change between current and previous EMA value
- Configurable threshold determines sensitivity to slope changes
- Lower threshold (0.001-0.01) = more responsive, higher (0.01-0.1) = more stable
**Dynamic Coloring:**
* **Green** - Upward slope exceeding threshold (bullish momentum)
* **Red** - Downward slope exceeding threshold (bearish momentum)
* **Gray** - Flat slope within threshold range (consolidation/indecision)
This reveals momentum shifts before price makes significant moves, as the EMA slope often changes direction before dramatic price action occurs.
### 🎯 Structure Break Detection
The system automatically identifies when price breaks through the EMA, marking these as potential trend changes or continuation signals:
**Break Types:**
* **Bullish Break** - Price crosses above EMA (potential uptrend initiation)
* **Bearish Break** - Price crosses below EMA (potential downtrend initiation)
**Significant Break Filtering:**
When "Only Significant Breaks" is enabled, the indicator requires follow-through confirmation—the next candle must continue in the break direction. This filters out false breaks and whipsaws that immediately reverse.
**Visual Implementation:**
* Horizontal lines extend from break point
* Lines extend until price breaks back through them (when "Extend Until Broken" enabled)
* Labeled with directional arrows (▲ BULL BREAK / ▼ BEAR BREAK)
* Color-coded (green/red) with configurable line styles and widths
* Limited to configurable maximum to prevent chart clutter
These break levels often act as dynamic support/resistance, making them valuable reference points for entries, exits, and stop placement.
### 💡 Volume Location Markers
Optional visual markers highlight exceptional volume behavior:
* **💪 (Strong Body)** - Appears when quality ≥85, volume ≥1.5x average, and >70% volume in body. Signals institutional-grade conviction moves.
* **🔻 (Upper Rejection)** - Shows when >35% volume in upper wick with adequate total volume. Indicates supply/selling pressure at highs.
* **🔺 (Lower Rejection)** - Displays when >35% volume in lower wick with adequate total volume. Reveals demand/buying pressure at lows.
**Smart Filtering:**
- Session-limited (max 10 per day by default) to prevent visual clutter
- Volume threshold filter ensures only significant rejections marked
- Can be disabled entirely for clean chart appearance
- Each marker includes detailed tooltip with quality metrics
### 📊 Real-Time Dashboard
The comprehensive info table provides at-a-glance intelligence:
* **Quality Classification** - Current score and category (EXCELLENT/STRONG/GOOD/MODERATE/WEAK)
* **Numeric Score** - Exact 0-100 quality value with color coding
* **Volume Location** - Distribution type with emoji indicator
* **Body Percentage** - How much of range is body (higher = stronger)
* **Volume Ratio** - Current volume vs 20-period average (>1.5x highlighted)
* **Close Location** - Where close occurred in range (extremes highlighted)
* **Direction** - Current HA trend (🐂 BULL / 🐻 BEAR)
* **EMA Value** - Current level with trend color
* **EMA Slope** - Direction and strength (↑ BULL / ↓ BEAR / → FLAT)
Position is fully customizable (four corners) to avoid conflicts with other indicators or chart elements.
## 💡 How to Use
### 🎯 Identifying High-Quality Setups
**Primary Strategy: Quality-Filtered HA Trading**
Focus exclusively on HA candles with:
1. **Quality Score ≥ 75** (STRONG or EXCELLENT range)
2. **Volume Ratio ≥ 1.3x** (above-average participation)
3. **Body-Heavy Distribution** (white border preferred)
4. **Close near extremes** (>70% for bulls, <30% for bears)
5. **EMA alignment** (bulls above rising EMA, bears below falling EMA)
**Entry Timing:**
- **Aggressive:** Enter on close of qualifying high-quality HA candle
- **Conservative:** Wait for second consecutive high-quality candle in same direction
- **Confirmation:** Combine with structure break signals for highest probability
**Exit Strategy:**
- **Initial Stop:** First opposite-color HA candle with quality ≥60
- **Profit Target:** 2-3x the qualifying candle's range
- **Trailing Stop:** Lock profits after two more same-direction high-quality candles
### 📈 Using EMA Structure Breaks
**Breakout Trading:**
Structure breaks provide clear entry signals when combined with volume quality:
**LONG Entry:**
- Bullish structure break forms (▲ BULL BREAK label)
- HA candle showing quality ≥75
- Volume ratio ≥1.3x
- Body-heavy distribution (white border)
- Enter at break or on pullback to broken level
**SHORT Entry:**
- Bearish structure break forms (▼ BEAR BREAK label)
- HA candle showing quality ≥75
- Volume ratio ≥1.3x
- Body-heavy distribution (white border)
- Enter at break or on rally to broken level
**Break Level Usage:**
- Previous bullish break lines act as support (buy zones)
- Previous bearish break lines act as resistance (sell zones)
- When break level breaks again opposite direction, trend likely reversing
### 🎯 Volume Rejection Trading
**Reversal Strategy Using Rejection Markers:**
**At Resistance (Upper Rejections):**
- 🔻 marker appears showing upper wick rejection
- HA candle color turns bearish (red)
- Quality score ≥70
- Volume ratio ≥1.3x
→ Consider SHORT entry, targeting lower structure break level
**At Support (Lower Rejections):**
- 🔺 marker appears showing lower wick rejection
- HA candle color turns bullish (green)
- Quality score ≥70
- Volume ratio ≥1.3x
→ Consider LONG entry, targeting upper structure break level
**Confirmation:**
Wait for following HA candle to confirm direction before entering. Single rejection candles can fail; consecutive rejections are more reliable.
### 📊 Using the Dashboard for Trade Management
**Pre-Trade Checklist:**
Before entering any trade, verify the dashboard shows:
- Quality score in STRONG (70+) or EXCELLENT (80+) range
- Volume ratio above 1.0x (preferably 1.3x+)
- Body percentage above 50% (preferably 70+)
- Direction aligned with intended trade (🐂 for longs, 🐻 for shorts)
- EMA slope confirming trend (↑ BULL for longs, ↓ BEAR for shorts)
**In-Trade Monitoring:**
While holding position, watch for:
- Quality score dropping below 60 (weakness warning)
- Volume location shifting to opposite rejection (reversal warning)
- EMA slope flattening to → FLAT (momentum loss)
- Direction indicator changing (🐂↔🐻 = exit signal)
### 🎨 Chart Cleanliness Tips
To maintain clean, readable charts:
1. **Disable visual noise:**
- Turn OFF "Show Volume Location Markers" initially
- Turn OFF "Show Background Quality Glow" (can be distracting)
- Keep "Only Show Rejection on High Volume" ON
2. **Limit break lines:**
- Set "Max Break Lines" to 5-10 (not 20+)
- Enable "Extend Until Broken" to auto-clean old levels
- Use "Only Significant Breaks" to filter whipsaws
3. **Labels only on best setups:**
- Keep "Exceptional Threshold" at 85+
- Set "Volume Multiplier" to 1.5x minimum
- This shows only truly institutional-quality moves
4. **Dashboard positioning:**
- Place in corner that doesn't conflict with other indicators
- Use "Bottom Right" if you have VWAP tables in top corners
- Can disable entirely once familiar with quality recognition
### 🔔 Alert Configuration
Set up alerts for automated trade monitoring:
**Essential Alerts:**
- **Exceptional Bullish/Bearish Quality** - Catches rare, high-conviction setups
- **Bullish/Bearish Structure Break** - Entry signal alerts
- **EMA Turned Bullish/Bearish** - Momentum shift warnings
**Optional Alerts:**
- **Strong Upper/Lower Rejection** - Reversal warnings at key levels
- Set up conditional alerts combining multiple factors for custom strategies
**Alert Best Practices:**
- Start with only 2-3 alert types to avoid overwhelm
- Test alert frequency on historical data before enabling live
- Combine alerts with manual confirmation for highest win rate
- Disable "Every tick" alerts—use "Once per bar close" only
## ⚙️ Configuration Overview
### HA Display Settings
* **Show HA Candles** - Toggle Heikin Ashi candle display
* **Show Quality Labels** - Display scores on exceptional candles only (85+)
* **Show Volume Location Markers** - Optional emoji indicators (can clutter, OFF by default)
* **Show Background Quality Glow** - Subtle background coloring on high-quality candles
* **Show Dashboard Table** - Real-time metrics table
* **Dashboard Position** - Four corner placement options
### Quality Settings
* **High Quality Threshold** - Minimum score for "strong" classification (50-90, default 70)
* **Exceptional Quality Threshold** - Score required for labels to appear (75-95, default 85)
* **Volume Multiplier for Exceptional** - Relative volume requirement for labels (1.0-3.0x, default 1.5x)
### Marker Settings
* **Only Show Rejection on High Volume** - Filter rejection markers by volume threshold
* **Rejection Volume Threshold** - Minimum volume ratio for rejection markers (1.0-2.0x)
* **Max Markers Per Session** - Daily limit to prevent clutter (5-50, default 10)
### HA Colors
* **Excellent/Strong/Good/Weak Colors** - Customizable for both bullish and bearish candles
* Pre-configured with optimal color progression from bright to faded
### EMA Settings
* **Show EMA** - Toggle EMA display
* **Length** - EMA period (default 9 for responsive trend following)
* **Source** - Price input (default close)
* **Offset** - Forward/backward display shift
* **Slope Threshold** - Sensitivity for color changes (0.001-1.0, default 0.01)
* **Bull/Bear/Neutral Colors** - Three-state color scheme
### Structure Break Settings
* **Show Structure Break Lines** - Toggle horizontal break level lines
* **Show Break Labels** - Display directional break markers (▲/▼)
* **Max Break Lines** - Limit total lines shown (1-50, default 10)
* **Extend Until Broken** - Auto-extend lines until price crosses back
* **Only Significant Breaks** - Require follow-through confirmation to filter whipsaws
* **Line Style** - Visual appearance (Solid/Dashed/Dotted)
* **Line Width** - Thickness (1-4 pixels)
* **Bull/Bear Break Colors** - Customizable line and label colors
* **Label Size** - Text size (Tiny/Small/Normal)
### Smoothing Settings
* **Type** - Additional smoothing MA types (None/SMA/SMA+BB/EMA/SMMA/WMA/VWMA)
* **Length** - Smoothing period
* **BB StdDev** - Bollinger Band standard deviation multiplier (when BB mode selected)
---
ENTRY RULES:
LONG:
✓ HA candle green (bullish)
✓ Quality score ≥ 80 (EXCELLENT)
✓ Volume ratio ≥ 1.5x average
✓ Body volume ≥ 70% (white border)
✓ Close location ≥ 75%
✓ EMA slope = ↑ BULL (green)
✓ Price above EMA
→ ENTER at candle close or next candle open
SHORT:
✓ HA candle red (bearish)
✓ Quality score ≥ 80
✓ Volume ratio ≥ 1.5x
✓ Body volume ≥ 70%
✓ Close location ≤ 25%
✓ EMA slope = ↓ BEAR (red)
✓ Price below EMA
→ ENTER at candle close or next candle open
EXITS:
- Stop: First opposite HA candle with quality ≥ 60
- Target: 2.5x entry candle range
- Trail: Move stop to breakeven after 1.5x range profit
```
### **Strategy 2: Structure Break + Quality Confirmation**
```
## ⚠️ Important Considerations
### **Heikin Ashi Lag Awareness**
Heikin Ashi candles smooth price action by averaging values, which creates inherent lag:
* **Entry Lag:** HA trend changes appear 1-2 candles after real price reversal
* **Exit Lag:** Reversals confirm late, potentially giving back profits
* **Mitigation:** Use quality scoring and EMA breaks as leading indicators
* **Solution:** Combine HA signals with regular candlestick charts for precise entries
### **Volume Estimation Limitations**
The indicator estimates volume distribution proportionally since exact tick-by-tick volume isn't available on standard timeframes:
* Assumptions are directionally correct but not tick-precise
* Works best on liquid instruments with tight spreads
* More reliable on higher timeframes (5-min+) than very short (30-sec)
* Consider upgrading to tick charts for true volume distribution data
### **False Signals in Choppy Markets**
Like all trend-following systems, this indicator underperforms in sideways, range-bound conditions:
* Excessive structure break whipsaws
* Many "high-quality" candles that fail to follow through
* EMA slope flips rapidly (gray periods)
* **Solution:** Reduce position size or avoid trading when dashboard shows frequent direction changes and → FLAT slope
### **Quality Score Is Not Win Rate**
A quality score of 80 does NOT mean 80% win probability:
* Score measures setup conviction, not outcome certainty
* Markets can reject even highest-quality signals
* Use quality as a filter, not a guarantee
* Combine with proper risk management and position sizing
---
## ⚠️ Disclaimer
This indicator is provided for **educational and informational purposes only**. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments.
All trading involves risk. Past performance of any strategy, indicator, or system does not guarantee future results. You are fully responsible for your own trading decisions, which should be based on your personal financial situation, risk tolerance, investment objectives, and independent analysis.
The quality scores, volume location indicators, structure break signals, and EMA slope classifications are analytical tools designed to assist in decision-making—they are not trade recommendations. Always conduct your own due diligence and consider consulting with a qualified financial advisor before making investment decisions.
Heikin Ashi candles inherently lag price action due to their smoothing calculations. This lag can result in delayed entries and exits. The volume distribution analysis is estimated proportionally and may not reflect exact tick-by-tick volume behavior. Trade responsibly and never risk more than you can afford to lose.
CVD Zones & Divergence [Pro]# CVD Zones & Divergence
**Complete CVD order flow toolkit** - Divergences, POC, Profile, and Supply/Demand zones all in one professional indicator.
## 🎯 What It Does
Combines **four powerful order flow tools** into a single, cohesive indicator:
1. **CVD Divergences** - Early warnings + confirmed signals
2. **Point of Control (POC)** - Fair value equilibrium line
3. **CVD Profile** - Visual distribution histogram
4. **Supply/Demand Zones** - Real absorption-based S/R levels
All based on **Cumulative Volume Delta (CVD)** - actual buying/selling pressure, not approximations.
## ✨ Key Features
### 🔄 CVD Divergences (Dual Mode)
**Confirmed Divergences** (High Accuracy)
- Solid lines (customizable colors)
- 🔻 Bear / 🔺 Bull labels
- Win rate: ~70-80%
- Best for swing traders
**Early Warning Mode** ⚡ (Fast Signals)
- Dashed lines (default purple)
- ⚠️ Early Bear / ⚠️ Early Bull labels
- Fires 6+ bars earlier
- Win rate: ~55-65%
- Best for scalpers/day traders
### 🎯 Point of Control (POC)
- **Independent lookback** (300 bars default)
- Yellow line showing fair value
- Where most CVD activity occurred
- Acts as dynamic support/resistance
- Resets and recalculates continuously
### 📊 CVD Profile Histogram
- **Visual CVD distribution** over lookback period
- **Split buy/sell** (blue/orange bars)
- **Value Area** (70% CVD zone highlighted)
- Position: Right/Left/Current (your choice)
- Shows where actual order flow happened
### 📦 Supply/Demand Zones
- **Absorption-based** detection (not guesses!)
- Green = Demand (buyers absorbed 2:1+)
- Red = Supply (sellers absorbed 2:1+)
- Shows **real** institutional levels
- Auto-sorted by strength
- Displays top 8 zones
## 📊 What You See on Chart
```
Your Chart:
├─ 🔴 Red lines (bearish divergences)
├─ 🟢 Green lines (bullish divergences)
├─ 🟣 Purple dashed (early warnings)
├─ 🟡 Yellow POC line (fair value)
├─ 📊 Blue/Orange profile (right side)
├─ 🟢 Green boxes (demand zones)
└─ 🔴 Red boxes (supply zones)
```
## ⚙️ Recommended Settings
### 15m Day Trading (Most Popular)
```
📊 Profile:
- Lookback: 150 bars
- Profile Rows: 24
- Position: Right
🎯 POC:
- POC Lookback: 300 bars
- Show POC: ON
📦 Zones:
- Min Absorption Ratio: 2.0
- HVN Threshold: 1.5
- Max Zones: 8
🔄 Divergences:
- Pivot L/R: 9
- Early Warning: ON
- Early Right Bars: 3
- Min Bars Between: 40
- Min CVD Diff: 5%
```
### 5m Scalping
```
Profile Lookback: 100
POC Lookback: 200
Pivot L/R: 7
Early Warning Right: 2
Min Bars Between: 60
```
### 1H Swing Trading
```
Profile Lookback: 200
POC Lookback: 400-500
Pivot L/R: 12-14
Early Warning Right: 4-5
Min Bars Between: 30
Min CVD Diff: 8%
```
## 💡 How to Trade
### Setup 1: Divergence at Zone ⭐ (BEST - 75%+ win rate)
**Entry:**
- Price hits demand/supply zone
- Divergence appears (early or confirmed)
- Double confluence = high probability
**Example (Long):**
```
1. Price drops into green demand zone
2. ⚠️ Early bullish divergence fires
3. Enter long with tight stop below zone
4. Target: POC or next supply zone
```
**Risk/Reward:** 1:3 to 1:5
---
### Setup 2: POC Bounce/Rejection
**Entry:**
- Price approaches POC line
- Wait for reaction (bounce or rejection)
- Enter in direction of reaction
**Long Setup:**
```
1. Price pulls back to POC from above
2. POC acts as support
3. Bullish divergence appears (confirmation)
4. Enter long, stop below POC
```
**Short Setup:**
```
1. Price rallies to POC from below
2. POC acts as resistance
3. Bearish divergence appears
4. Enter short, stop above POC
```
**Risk/Reward:** 1:2 to 1:4
---
### Setup 3: Zone + Profile Confluence
**Entry:**
- Supply/demand zone aligns with thick profile bar
- Shows high CVD activity at that level
- Triple confluence = very high probability
**Example:**
```
1. Supply zone at 26,100
2. Profile shows heavy selling at 26,100
3. Price rallies to 26,100
4. Bearish divergence appears
5. Enter short
```
**Risk/Reward:** 1:4 to 1:6
---
### Setup 4: Early Warning Scalp ⚡
**Entry (Aggressive):**
- ⚠️ Early warning fires
- Price at zone or POC
- Enter immediately
- Tight stop (1-2 ATR)
**Management:**
```
- Take 50% profit at 1:1
- Move stop to breakeven
- 🔻 Confirmed signal → Trail stop
- Exit rest at target
```
**Risk/Reward:** 1:1.5 to 1:2
**Trades/day:** 3-8
---
### Setup 5: Multi-Timeframe (Advanced)
**Confirmation Required:**
```
Higher TF (1H):
- Confirmed divergence
- At major POC or zone
Lower TF (15m):
- Early warning triggers
- Entry with better timing
```
**Benefits:**
- HTF gives direction
- LTF gives entry
- Best of both worlds
**Risk/Reward:** 1:3 to 1:5
---
## 📊 Component Details
### CVD Profile
**What the colors mean:**
- **Blue bars** = Buying CVD (demand)
- **Orange bars** = Selling CVD (supply)
- **Lighter shade** = Value Area (70% CVD)
- **Thicker bar** = More volume at that price
**How to use:**
- Thick bars = Support/Resistance
- Profile shape shows market structure
- Balanced profile = range
- Skewed profile = trend
---
### Supply/Demand Zones
**How they're detected:**
1. High Volume Node (1.5x average)
2. CVD buy/sell ratio calculated
3. Ratio ≥ 2.0 → Zone created
4. Sorted by strength (top 8 shown)
**Zone labels show:**
- Type: "Demand" or "Supply"
- Ratio: "2.8:1" = strength
**Not like other indicators:**
- ❌ Other tools use price action alone
- ✅ This uses actual CVD absorption
- Shows WHERE limit orders defended levels
---
### Point of Control (POC)
**What it shows:**
- Price with highest CVD activity
- Market's "fair value"
- Dynamic S/R level
**How to use:**
- Price above POC = bullish bias
- Price below POC = bearish bias
- POC retest = trading opportunity
- POC cross = trend change signal
**Independent lookback:**
- Profile: 150 bars (short-term)
- POC: 300 bars (longer-term context)
- Gives stable, relevant POC
---
## 🔧 Settings Explained
### 📊 Profile Settings
**Lookback Bars** (150 default)
- How many bars for profile calculation
- Lower = more recent, reactive
- Higher = more historical, stable
**Profile Rows** (24 default)
- Granularity of distribution
- Lower = coarser (faster)
- Higher = finer detail (slower)
**Profile Position**
- Right: After current price
- Left: Before lookback period
- Current: At lookback start
**Value Area** (70% default)
- Highlights main CVD concentration
- 70% is standard
- Higher % = wider zone
---
### 🎯 POC Settings
**POC Lookback** (300 default)
- Independent from profile
- Longer = more stable POC
- Shorter = more reactive POC
**Show POC Line/Label**
- Toggle visibility
- Customize color/width
---
### 📦 Zone Settings
**Min Absorption Ratio** (2.0 default)
- Buy/Sell threshold for zones
- 2.0 = 2:1 ratio minimum
- Higher = fewer, stronger zones
**HVN Threshold** (1.5 default)
- Volume must be 1.5x average
- Higher = stricter filtering
- Lower = more zones
**Max Zones** (8 default)
- Limits display clutter
- Shows strongest N zones only
---
### 🔄 Divergence Settings
**Pivot Left/Right** (9/9 default)
- Bars to confirm pivot
- Higher = slower, more confirmed
- Lower = faster, less confirmed
**Early Warning**
- ON = Show early signals
- Early Right Bars (3 default)
- 3 = 6 bars faster than confirmed
**Filters:**
- Min Bars Between (40): Prevents spam
- Min CVD Diff % (5): Filters weak signals
**Visual:**
- Line styles: Solid/Dashed/Dotted
- Colors: Customize all 4 types
- Labels: Toggle ON/OFF
---
## 🎨 Color Customization
**Divergences:**
- Bullish Confirmed: Green (default)
- Bearish Confirmed: Red (default)
- Early Bullish: Purple (default)
- Early Bearish: Purple (default)
**Zones & Profile:**
- Bull/Demand: Green
- Bear/Supply: Red
- Buy CVD Profile: Blue
- Sell CVD Profile: Orange
- Value Area Up/Down: Lighter blue/orange
**POC:**
- POC Color: Yellow (default)
All customizable to your preference!
---
## 🔔 Alerts Available
**6 Alert Types:**
1. 🔻 Bearish Divergence (confirmed)
2. 🔺 Bullish Divergence (confirmed)
3. ⚠️ Early Bearish Warning
4. ⚠️ Early Bullish Warning
5. (Manual: POC cross)
6. (Manual: Zone touch)
**Setup:**
1. Click Alert (⏰)
2. Choose "CVD Zones & Divergence"
3. Select alert type
4. Configure notification
5. Create!
---
## 💎 Pro Tips
### From Experienced Traders:
**"Use zones with divergences for best setups"**
- Zone alone: 60% win rate
- Divergence alone: 65% win rate
- Both together: 75%+ win rate
**"POC is your friend"**
- Price tends to revert to POC
- Great target for counter-trend trades
- POC cross = potential trend change
**"Profile tells the story"**
- Thick bars = institutional levels
- Balanced profile = range-bound
- Skewed high = distribution (top)
- Skewed low = accumulation (bottom)
**"Early warnings for entries, confirmed for confidence"**
- Early = better entry price
- Confirmed = validation
- Use both in scale-in strategy
**"Filter by timeframe"**
- 1m-5m: Very fast, many signals
- 15m: Sweet spot for most traders
- 1H-4H: High quality, fewer signals
---
## 🔧 Tuning Guide
### Too Cluttered?
**Simplify:**
```
✅ Show Divergences: ON
✅ Show POC: ON
❌ Show Zones: OFF (or reduce to 4-5)
❌ Show Value Area: OFF
❌ Divergence Labels: OFF
→ Clean chart with just lines + POC
```
### Missing Opportunities?
**More Signals:**
```
↓ Pivot Right: 6-7
↓ Early Warning Right: 2
↓ Min Bars Between: 25-30
↓ Min CVD Diff: 2-3%
↓ Min Absorption Ratio: 1.8
```
### Too Many False Signals?
**Stricter Filters:**
```
↑ Pivot Right: 12-15
↑ Min Bars Between: 60
↑ Min CVD Diff: 8-10%
↑ Min Absorption Ratio: 2.5
↓ Max Zones: 4-5
```
### POC Not Making Sense?
**Adjust POC Lookback:**
```
If too high: Increase to 400-500
If too low: Increase to 400-500
If jumping around: Increase to 500+
→ Longer lookback = more stable POC
```
---
## ❓ FAQ
**Q: Difference from CVD Divergence (standalone)?**
A: This is the **complete package**:
- Divergence tool = divergences only
- This = divergences + POC + profile + zones
- Use divergence tool for clean charts
- Use this for full analysis
**Q: Too slow/laggy?**
A: Reduce computational load:
```
Profile Rows: 18 (from 24)
Lookback: 100 (from 150)
Max Zones: 5 (from 8)
```
**Q: No volume data error?**
A: Symbol has no volume
- Works: Futures, stocks, crypto
- Maybe: Forex (broker-dependent)
- Doesn't work: Some forex pairs
**Q: Can I use just some features?**
A: Absolutely! Toggle what you want:
```
Zones only: Turn off divergences + POC
POC only: Turn off zones + divergences
Divergences only: Turn off zones + POC + profile
Mix and match as needed!
```
**Q: Best timeframe?**
A:
- **1m-5m**: Scalping (busy, many signals)
- **15m**: Day trading ⭐ (recommended)
- **1H-4H**: Swing trading (quality signals)
- **Daily**: Position trading (very selective)
**Q: Works on crypto/forex/stocks?**
A:
- ✅ Futures: Excellent
- ✅ Stocks: Excellent
- ✅ Crypto: Very good (major pairs)
- ⚠️ Forex: Depends on broker volume
---
## 📈 Performance Expectations
### Realistic Win Rates
| Strategy | Win Rate | Avg R/R | Trades/Week |
|----------|----------|---------|-------------|
| Early warnings only | 55-65% | 1:1.5 | 15-30 |
| Confirmed only | 70-80% | 1:2 | 8-15 |
| Divergence + Zone | 75-85% | 1:3 | 5-12 |
| Full confluence (all 4) | 80-90% | 1:4+ | 3-8 |
**Keys to success:**
- Don't trade every signal
- Wait for confluence
- Proper risk management
- Trade what you see, not what you think
---
## 🚀 Quick Start
**New User (5 minutes):**
1. ✅ Add to 15m chart
2. ✅ Default settings work well
3. ✅ Watch for 1 week (don't trade yet!)
4. ✅ Note which setups work best
5. ✅ Backtest on 50+ signals
6. ✅ Start with small size
7. ✅ Scale up slowly
**First Trade Checklist:**
- Divergence + Zone/POC = confluence
- Clear S/R level nearby
- Risk/reward minimum 1:2
- Position size = 1% risk max
- Stop loss placed
- Target identified
- Journal entry ready
---
## 📊 What Makes This Special?
**Most indicators:**
- Use RSI/MACD divergences (lagging)
- Guess at S/R zones (subjective)
- Don't show actual order flow
**This indicator:**
- Uses real CVD (actual volume delta)
- Absorption-based zones (real orders)
- Profile shows distribution (real activity)
- POC shows equilibrium (real fair value)
- All from one data source (coherent)
**Result:**
- Everything aligns
- No conflicting signals
- True order flow analysis
- Professional-grade toolkit
---
## 🎯 Trading Philosophy
**Remember:**
- Indicator shows you WHERE to look
- YOU decide whether to trade
- Quality over quantity always
- Risk management is #1
- Patience beats aggression
**Best trades have:**
- ✅ Multiple confluences
- ✅ Clear risk/reward
- ✅ Obvious invalidation point
- ✅ Aligned with trend/context
**Worst trades have:**
- ❌ Single signal only
- ❌ Poor location (middle of nowhere)
- ❌ Unclear stop placement
- ❌ Counter to all context
---
## ⚠️ Risk Disclaimer
**Important:**
- Past performance ≠ future results
- All trading involves risk
- Only risk what you can afford to lose
- This is a tool, not financial advice
- Use proper position sizing
- Keep a trading journal
- Consider professional advice
**Your responsibility:**
- Which setups to trade
- Position size
- Entry/exit timing
- Risk management
- Emotional control
**Success = Tool + Strategy + Discipline + Risk Management**
---
## 📝 Version History
**v1.0** - Current Release
- CVD divergences (confirmed + early warning)
- Point of Control (independent lookback)
- CVD profile histogram
- Supply/demand absorption zones
- Value area visualization
- 6 alert types
- Full customization
---
## 💬 Community
**Questions?** Drop a comment below
**Success story?** Share with the community
**Feature request?** Let me know
**Bug report?** Provide details in comments
---
**Happy Trading! 🚀📊**
*Professional order flow analysis in one indicator.*
**Like this?** ⭐ Follow for more quality tools!
Candle Strength Analyzer by The Ultimate Bull Run# Candle Strength Analyzer
## 📊 Complete Beginner's Guide
---
### 🎯 What This Indicator Does
The **Candle Strength Analyzer** measures how "strong" or "weak" each candlestick is and displays a **score from 0 to 100** above or below every candle.
- **Green numbers** = Bullish (price went UP)
- **Red numbers** = Bearish (price went DOWN)
- **Gray numbers** = Doji (price barely moved)
**Higher score = Stronger candle = More reliable signal**
---
### 🕯️ Understanding Candlesticks (The Basics)
If you're new to trading, here's what a candlestick shows:
```
│ ← Upper Wick (prices that were rejected)
│
┌───┐
│ │ ← Body (the "real" price movement)
│ │ • Green/White body = Price went UP (Bullish)
│ │ • Red/Black body = Price went DOWN (Bearish)
└───┘
│
│ ← Lower Wick (prices that were rejected)
```
**Key Terms:**
- **Open**: The price when the candle started
- **Close**: The price when the candle ended
- **High**: The highest price during the candle
- **Low**: The lowest price during the candle
- **Body**: The rectangle between Open and Close
- **Wick/Shadow**: The thin lines above and below the body
---
## 📐 The 4 Components of Candle Strength
This indicator combines **4 measurements** to calculate the final strength score. Let's understand each one:
---
### 1️⃣ Body Ratio (30% of score)
**What it is:**
The percentage of the candle that is "body" versus "wicks."
**Formula:**
```
Body Ratio = Size of Body ÷ Total Candle Size × 100
```
**What it tells you:**
- **High Body Ratio (70-100%)**: Bulls or bears were in FULL control. The price moved in one direction and STAYED there. This is strong.
- **Low Body Ratio (0-30%)**: There was a fight. Price moved up AND down but ended up roughly where it started. This is weak/indecisive.
**Visual Example:**
```
Strong Candle (90% body): Weak Candle (20% body):
│ │
┌───┐ │
│ │ ┌─┴─┐
│ │ ← Mostly body │ │ ← Tiny body
│ │ └─┬─┘
└───┘ │
│ │
```
**How to interpret:**
| Body Ratio | Meaning |
|------------|---------|
| 90-100% | **Marubozu** - Extremely strong, full commitment |
| 70-90% | **Strong** - Clear winner (bulls or bears) |
| 40-70% | **Normal** - Typical market activity |
| 10-40% | **Weak** - Significant indecision |
| 0-10% | **Doji** - Complete indecision, no winner |
---
### 2️⃣ Close Position Score (25% of score)
**What it is:**
WHERE the candle closed within its range (high to low).
**What it tells you:**
- For a **bullish (green) candle**: Closing near the HIGH means buyers were still eager at the end = STRONG
- For a **bearish (red) candle**: Closing near the LOW means sellers were still eager at the end = STRONG
**Visual Example:**
```
Strong Bullish: Weak Bullish:
(closes near high) (closes near middle)
┌───┐ ← Close here │
│ │ ┌─┴─┐ ← Close here
│ │ │ │
│ │ │ │
└───┘ └───┘
│ │
```
**Why it matters:**
If price went UP but then sellers pushed it back down before the candle closed, that's a sign of weakness. The bulls couldn't hold their ground.
**How to interpret:**
| Close Position | For Bullish Candle | For Bearish Candle |
|----------------|-------------------|-------------------|
| 80-100% | Strong (near high) | Weak (near high) |
| 50-80% | Moderate | Moderate |
| 20-50% | Weak | Moderate |
| 0-20% | Very Weak (near low) | Strong (near low) |
---
### 3️⃣ Relative Volume - RVOL (25% of score)
**What is Volume?**
Volume is the NUMBER of shares/contracts traded during that candle. Think of it as "how many people participated."
**What is RVOL?**
RVOL compares TODAY'S volume to the AVERAGE volume.
**Formula:**
```
RVOL = Current Volume ÷ Average Volume (last 20 candles)
```
**What it tells you:**
- **RVOL = 1.0**: Normal activity (same as average)
- **RVOL = 2.0**: DOUBLE the normal activity (2x more traders involved)
- **RVOL = 0.5**: HALF the normal activity (fewer traders involved)
**Why it matters:**
A big price move with LOW volume is suspicious - it might not last.
A big price move with HIGH volume is confirmed - many traders agree.
**Think of it like voting:**
- High volume = Many people voted for this direction
- Low volume = Only a few people voted, decision might change
**How to interpret:**
| RVOL | Meaning | Signal Quality |
|------|---------|----------------|
| 2.0+ | Very High - Institutional activity likely | ⭐⭐⭐ Excellent |
| 1.5-2.0 | High - Significant interest | ⭐⭐ Good |
| 1.0-1.5 | Above Average | ⭐ Acceptable |
| 0.7-1.0 | Below Average | ⚠️ Caution |
| < 0.7 | Low - Lack of interest | ❌ Unreliable |
---
### 4️⃣ Size vs ATR (20% of score)
**What is ATR?**
ATR stands for "Average True Range." It measures how much the price TYPICALLY moves.
**What this component measures:**
How big is THIS candle compared to how big candles USUALLY are?
**Formula:**
```
ATR Ratio = This Candle's Size ÷ Average Candle Size (ATR)
```
**What it tells you:**
- **ATR Ratio = 2.0**: This candle is TWICE as big as normal = Significant move
- **ATR Ratio = 1.0**: This candle is normal sized
- **ATR Ratio = 0.5**: This candle is HALF the normal size = Minor move
**Why it matters:**
A 50-point move in a stock that normally moves 100 points is small.
A 50-point move in a stock that normally moves 20 points is HUGE.
Context matters!
**How to interpret:**
| ATR Ratio | Meaning |
|-----------|---------|
| 2.0+ | **Expansion** - Unusually large move, potential breakout |
| 1.5-2.0 | **Large** - Significant momentum |
| 1.0-1.5 | **Above Average** - Notable move |
| 0.5-1.0 | **Normal** - Typical movement |
| < 0.5 | **Small** - Insignificant, might be noise |
---
## 🧮 How the Final Score is Calculated
The indicator combines all 4 components with these weights:
```
Final Score = (Body Ratio × 30%) +
(Close Position × 25%) +
(RVOL Score × 25%) +
(Size Score × 20%)
```
**Result: A score from 0 to 100**
---
## 📊 Understanding the Strength Score
| Score | Classification | What It Means | Should You Trade It? |
|-------|---------------|---------------|---------------------|
| **70-100** | 🟢 STRONG | High conviction move, reliable signal | ✅ Yes - Good setup |
| **40-70** | 🟡 MODERATE | Average move, needs confirmation | ⚠️ Maybe - Add other indicators |
| **0-40** | 🔴 WEAK | Low conviction, unreliable | ❌ No - Wait for better setup |
---
## 🏷️ Special Pattern Markers
The indicator also detects special candlestick patterns:
### ⚡ Power Candle
**Requirements:**
- Body Ratio > 70% (strong body)
- RVOL > 1.5 (high volume)
- Close Position > 80% (closes near the extreme)
**What it means:** The BEST possible signal. Everything aligns perfectly.
### Ⓜ️ Marubozu
**Requirements:**
- Body Ratio > 90% (almost no wicks)
**What it means:** Complete dominance by bulls or bears. Very strong continuation signal.
### ◆ High Volume Doji
**Requirements:**
- Doji candle (tiny body)
- High volume
**What it means:** Many traders are fighting, but no one won. Often signals a REVERSAL is coming.
---
## ⚙️ Settings Explained
### Volume Settings
| Setting | Default | What It Does |
|---------|---------|--------------|
| Volume Lookback Period | 20 | How many candles to average for "normal" volume |
| RVOL Threshold | 1.5 | What counts as "high" volume (1.5 = 50% above average) |
### ATR Settings
| Setting | Default | What It Does |
|---------|---------|--------------|
| ATR Period | 14 | How many candles to calculate average movement |
| ATR Multiplier | 1.5 | What counts as a "large" candle |
### Strength Thresholds
| Setting | Default | What It Does |
|---------|---------|--------------|
| Strong Candle Threshold | 70 | Score needed to be "strong" |
| Weak Candle Threshold | 30 | Score below this is "weak" |
### Label Filter (Important!)
TradingView limits indicators to **500 labels maximum**. Use filters to see more history:
| Filter Mode | Shows | Best For |
|-------------|-------|----------|
| All Candles | Every single candle | Short-term charts (5min, 15min) |
| Strong Only (70+) | Only strong candles | Longer history, key signals only |
| Moderate+ (40+) | Moderate and strong | Balance of detail and history |
| Custom Minimum | Your choice | Full control |
**Tip:** On daily charts, use "Strong Only" to see months of history instead of just a few weeks.
### Label Settings
| Setting | What It Does |
|---------|--------------|
| Label Size | tiny / small / normal / large |
| Show Decimal Places | Show "72.5" instead of "73" |
| Label Style | With background bubble OR just text |
---
## 📖 How to Read the Info Table
The table in the corner shows details for the CURRENT (most recent) candle:
| Row | Meaning |
|-----|---------|
| **Candle Strength** | The final score (0-100) |
| **Direction** | BULLISH / BEARISH / DOJI |
| **Body Ratio** | Percentage of candle that is body |
| **Close Position** | Where it closed (0-100) |
| **Upper Wick** | Size of upper wick as % |
| **Lower Wick** | Size of lower wick as % |
| **RVOL** | Current volume vs average (1.5x = 50% above average) |
| **Size/ATR** | Candle size vs average size |
| **Classification** | STRONG / MODERATE / WEAK |
| **Vol Confirmed** | Is volume above threshold? |
| **Pattern** | Special pattern detected |
---
## 🎓 How to Use This Indicator
### Step 1: Add to Chart
1. Open Pine Editor in TradingView
2. Paste the code
3. Click "Add to Chart"
### Step 2: Adjust Filter (if needed)
- If you see "max labels reached," change filter to "Strong Only (70+)"
- This lets you see more candles in history
### Step 3: Look for Strong Signals
Focus on candles with:
- ✅ Score **70+** (bright green or red)
- ✅ **RVOL > 1.5** (confirmed by volume)
- ✅ Special markers (⚡, M, ◆)
### Step 4: Avoid Weak Signals
Be careful with candles that have:
- ❌ Score **below 40** (muted colors)
- ❌ **RVOL < 1.0** (no volume confirmation)
- ❌ Large wicks (rejection happened)
---
## 💡 Trading Tips for Beginners
### ✅ DO:
1. **Wait for strong candles (70+)** before entering trades
2. **Confirm with volume** - Look for RVOL > 1.5
3. **Use at support/resistance levels** - Strong candles at key levels are more meaningful
4. **Combine with other indicators** - RSI, MACD, or moving averages
5. **Practice on demo first** - Learn to recognize strong vs weak candles
### ❌ DON'T:
1. **Trade every candle** - Not all candles are worth trading
2. **Ignore volume** - A strong candle with low volume is suspicious
3. **Fight the trend** - Strong bearish candles in an uptrend might just be pullbacks
4. **Over-leverage** - Even strong signals can fail
---
## 📝 Quick Reference Cheat Sheet
```
STRONG CANDLE CHECKLIST:
□ Score 70+
□ RVOL > 1.5
□ Body Ratio > 60%
□ Close Position > 75% (bullish) or < 25% (bearish)
□ At key support/resistance level
WEAK CANDLE WARNING SIGNS:
□ Score < 40
□ RVOL < 0.7
□ Large wicks (> 30%)
□ Doji pattern
□ Small candle (ATR Ratio < 0.5)
```
---
## ⚠️ Important Disclaimers
1. **No indicator is 100% accurate** - Always use stop losses
2. **Past performance ≠ future results** - Markets change
3. **This is a tool, not a strategy** - Combine with other analysis
4. **Practice first** - Use paper trading before real money
---
## 🔔 Alerts Available
Set alerts for:
- Strong Bullish Candle (with volume confirmation)
- Strong Bearish Candle (with volume confirmation)
- Power Candle detected
- Marubozu detected
- High Volume Doji detected
---
## ❓ FAQ
**Q: Why are some candles missing labels?**
A: TradingView limits indicators to 500 labels. Use filters to see more history.
**Q: The label colors are hard to see. Can I change them?**
A: Yes! Go to Settings → Colors and customize all colors.
**Q: Should I only trade strong candles?**
A: Strong candles are MORE reliable, but not guaranteed. Always use proper risk management.
**Q: What timeframe works best?**
A: Works on all timeframes. Higher timeframes (4H, Daily) tend to have more reliable signals.
**Q: Can I use this for crypto/forex/stocks?**
A: Yes! This indicator works on any market with candlestick data and volume.
---
## 📚 Glossary
| Term | Definition |
|------|------------|
| **Bullish** | Price is going UP / Buyers are winning |
| **Bearish** | Price is going DOWN / Sellers are winning |
| **Doji** | Candle where open and close are nearly equal (indecision) |
| **Marubozu** | Candle with no wicks (full body) |
| **RVOL** | Relative Volume - current volume vs average |
| **ATR** | Average True Range - typical price movement |
| **Wick/Shadow** | The thin lines above/below the candle body |
| **Support** | Price level where buyers tend to step in |
| **Resistance** | Price level where sellers tend to step in |
| **Breakout** | When price moves beyond support/resistance |
---
**Happy Trading! 📈**
*Remember: The best traders are patient traders. Wait for strong setups.*
Order Flow Analysis [Master Alert]This script is a custom modification of the original "Order Flow Analysis" indicator by kingthies.
I have taken the original code and engineered a "Master Alert" system into it. Here is the breakdown of what this specific script does:
1. The Core Purpose: "One Ring to Rule Them All"
In the original script, if you wanted to catch every move, you would have to set up separate alerts for Divergences, Absorptions, Crosses, etc. This modified script combines all 8 possible signals into a single "Master Trigger."
2. What triggers the Alert?
The alert will fire if ANY of the following 4 events happen on a candle:
Divergence (The Arrows):
Green Arrow: Price makes lower low, Pressure makes higher low (Bullish).
Red Arrow: Price makes higher high, Pressure makes lower high (Bearish).
Absorption (The Transparent Bars):
Bull Absorption: Huge volume + Price won't drop (Hidden Buying).
Bear Absorption: Huge volume + Price won't rise (Hidden Selling).
Zero Line Crosses (The Sentiment Flip):
Bull Cross: Pressure score flips from Negative to Positive.
Bear Cross: Pressure score flips from Positive to Negative.
Strong Zones (Turbo Mode):
Strong Bull: Pressure score breaks above +50.
Strong Bear: Pressure score breaks below -50.
3. How to Use It
Add the script to your chart.
Create an Alert.
Select "Order Flow Master" as the Condition.
Select "MASTER ALERT (All Signals)".
Now, you will get a notification for every single significant event this indicator detects, without needing multiple alert slots.






















