지표 및 전략
NFO Rolling Straddle with Entry ExitNFO Rolling Entry Exit based on combined premiums, use on Options chart as Underlying chart doesn't allow long history
ADX DMI Trend Strength GaugeThis indicator pairs with my ADX DMI Squeeze indicator
Trend Strength Gauge
Purpose:
The Trend Strength Gauge measures the overall strength and direction of the market trend by combining multiple elements of your ADX DMI Squeeze:
ADX Squeeze (adx - adxMA)
Measures the momentum of trend expansion.
Positive values indicate trend acceleration; negative values indicate weakening.
DI Difference (DI+ - DI−)
Shows whether buyers or sellers dominate.
Positive = bullish dominance, negative = bearish dominance.
ADX Level Relative to Threshold (e.g., 15)
Higher ADX indicates stronger trend.
Contributes proportionally to bullish/bearish trend score.
How to use with ADX DMI Squeeze
Confirm trend direction
Use the Trend Strength Gauge to verify signals from the ADX Squeeze histogram:
Histogram green & gauge positive → strong bullish trend
Histogram red & gauge negative → strong bearish trend
Filter trades
Only take trades in the direction of the gauge:
Long entries → gauge > 50
Short entries → gauge < -50
Timing expansion moves
The ADX Squeeze histogram signals expansion (trend starting).
The Trend Strength Gauge confirms if the expansion aligns with a strong existing trend.
This helps avoid false breakouts in weak/sideways markets.
Alerts & Automation
The gauge can be used as a standalone filter for alerts or automated entries.
Example: only trigger alerts if histogram is bullish and gauge > 50.
Key idea using with my ADX DMI Squeeze
Histogram → shows trend expansion / contraction (timing)
Gauge → shows trend strength / direction (filter)
Together → you only take trades that align with both trend strength and expansion, making the indicator much more reliable as a stand-alone trading tool.
Lou Renko v3.6 Enter 4 Flip 3 Clean Alerts Exit TagsNew Indicator, Working on refining details, I have it as a Strategy but TV wont let me publish because of the chart type. So the work around is an indicator.
ICT Professional OB HunterICT Professional OB Hunter
A professional-grade Order Block mapping tool designed for traders following Smart Money Concepts to track institutional order flow and significant market structures.
This tool identifies validated Order Blocks with Break of Structure confirmation, filtering out market noise and focusing only on high-probability levels where institutional participation is evident.
How It Works
The script operates without repainting, using historical swing highs and lows as reference points rather than future data. Three core criteria must be satisfied before an Order Block is drawn:
Strong Candle Formation: The candle must have a significant body (no dojis), exceeding the ATR threshold—indicating genuine institutional participation rather than indecision.
Displacement: Following the Order Block candle, price must move with momentum exceeding 1.5x the ATR. This captures true "market shifting" moves while ignoring slow, low-volume price action.
Break of Structure: Price must definitively break the previous swing high or low to confirm momentum before the Order Block is validated and drawn.
What You See on the Chart
Thick Blue Lines: Bullish Order Blocks representing demand zones where price historically finds support and reacts upward.
Thick Orange Lines: Bearish Order Blocks representing supply zones that act as resistance.
Yellow Boxes: OTE (Optimal Trade Entry) zones between the 50% and 61.8% retracement levels of the Order Block—ICT's preferred fib confluence area for precision entries.
Dashed Lines: Breaker Blocks indicating former Order Blocks that have been violated by price and now act as reverse levels or "mitigated" areas.
Key Differences from Standard Tools
Most available Order Block indicators mark every red or green candle indiscriminately, creating excessive noise and poor trading opportunities. This code implements a displacement filter to capture only structures formed after significant, volume-backed institutional moves. It contains no future reference or repainting logic—all decisions finalize strictly on bar close based on confirmed historical data.
Settings
Displacement Lookback (2-5 bars): Determines how many subsequent bars to analyze for momentum confirmation after the initial Order Block candle. Three bars provides the optimal balance between responsiveness and confirmation.
ATR Multiplier (0.5+): Sets the sensitivity for displacement detection. A value of 1.5 works well for Gold (XAU/USD). Lower values generate more Order Blocks but decrease quality and reliability.
Mitigation Zones: Toggle the display of OTE (Optimal Trade Entry) boxes on or off.
Usage Recommendations
This indicator is not a standalone buy/sell signal generator—it marks zones where institutional capital is likely positioned.
Recommended approach:
Apply to 15-minute or 1-hour charts, particularly during the New York session (14:30-17:00 EST) when institutional volume peaks.
Wait for price to reach the confluence of the Blue Line and Yellow OTE box.
The setup invalidates if price closes below the OTE zone boundary.
When Orange lines transition to dashed (Breaker Block), recognize that former support has become resistance; adjust position management accordingly.
Risk Warning
This is a statistical model based on historical price behavior, not a "holy grail" solution. Market conditions change, particularly during high-volatility macroeconomic news events (FOMC, CPI, NFP), where Order Blocks may fail. Always employ stop-loss protection and integrate this tool as one component of a comprehensive risk management strategy rather than relying on it exclusively.
Written in Pine Script v6 utilizing array structures for efficient real-time line updates and optimized for performance even on older hardware configurations.
Developer Note: Historical backtest analysis indicates that BOS-validated Order Blocks, particularly in Gold (XAU/USD) and major indices, demonstrate improved win rates when combined with disciplined entry criteria and proper risk management. However, the market retains ultimate authority—respect price action above all indicators.
XAU CAPITAL Premium ZonesXAU CAPITAL • Premium Support & Supply Zones is a minimalist yet powerful TradingView indicator designed for traders who prefer clarity over clutter.
This indicator automatically detects key Support and Supply zones based on pivot structure and price behavior, helping traders identify high-probability reaction areas where price is likely to pause, reverse, or continue.
🔍 Key Features:
✔ Automatically plotted Support & Supply zones
✔ Clean, transparent zones for clear price visibility
✔ EMA-based trend structure for directional bias
✔ Works smoothly on XAUUSD (Gold) and other markets
✔ Ideal for SMC, price action & intraday trading
✔ Non-repainting structure logic
🎯 Best Used For:
Gold (XAUUSD) trading
Intraday & swing setups
Entry refinement at key zones
Market structure & trend alignment
⚠️ This indicator is a technical tool and should be used with proper risk management and confirmation.
Smart Take ProfitThis script for EURUSD on the M3 timeframe detects Take Profit zones close to a reversal, automatically displays TP1, TP2, and Stop Loss, and follows the RSI + Bollinger Band + ATR logic.
It triggers an exit signal when the price touches a Bollinger Band, when the RSI is in an extreme zone, or when there is a rejection candle.
It automatically calculates the TP at 0.8 ATR, TP2 at 1.0 ATR, and the Stop Loss at 0.6 ATR.
It operates on the EURUSD M3 timeframe. You decide the entry point. This indicator is not a trading strategy.
Triple SMMA 11-21Is Script ki Khoobiyan:
Custom Inputs: Aap indicator ki settings mein jaakar 11 aur 21 ki jagah koi bhi number daal sakte hain bina code chhede.
Visual Crossover: Jab 11-period SMMA (Blue) 21-period SMMA (Red) ko upar ki taraf cross karega, to chart par ek Green Triangle dikhega.
Smoothing: SMMA normal Moving Average se zyada "smooth" hota hai, isliye ye noise ko kam karta hai.
Fixed Timeframe SMMA: Isme Orange rang ki ek moti line (linewidth 3) dikhegi. Ye hamesha 15 minute ka SMMA 21 calculate karegi.
Visual Clarity: * Blue: SMMA 11 (Aapke current chart ka)
Red: SMMA 21 (Aapke current chart ka)
Orange (Moti Line): SMMA 21 (Sirf 15-Minute chart ka)
Ek Zaruri Baat:
Jab aap 15-minute se bade timeframe par honge (jaise 1-hour ya Daily), toh 15-min ki line thodi "zigzag" ya seedhi dikh sakti hai kyunki bade timeframe ke ek candle mein 15-min ki kai candles hoti hain. Ye bilkul normal hai.
Kalman Hull Bands For Loop | RakoQuant Kalman Hull Bands For Loop | RakoQuant
RakoQuant | Kalman Hull Bands For Loop is a trend-following breakout + regime tool built to keep you on the right side of the market with clean structure and minimal noise. It combines a Kalman Filter (noise reduction), a Hull Moving Average baseline (responsive trend anchor), and a standard deviation envelope computed via a for-loop (robust rail bands) to define actionable bullish and bearish regimes.
What it does
This indicator builds a dynamic “rail system” around price:
Kalman Filtered Source → reduces measurement noise in the input series.
Hull Baseline (HMA) → fast trend baseline built on the Kalman-filtered source.
Deviation Bands (“Rails”) → upper/lower rails based on a loop-calculated standard deviation.
Regime Breakout Logic → trend regime flips only when price breaks out beyond the rails:
Bullish regime when close crosses above the upper rail
Bearish regime when close crosses below the lower rail
Once a regime is established, the tool highlights the active rail in bright neon and fades the inactive rail (optional), giving you a clear “trend corridor” and a strong visual state.
Key Features
1) Kalman Noise Filtering (R & Q)
The Kalman filter smooths the selected source using:
R (Measurement Noise) – how noisy you assume the observations are
Q (Process Noise) – how quickly the model is allowed to adapt
This helps reduce chop without turning the indicator into a laggy moving average.
2) Hull Baseline (fast + smooth)
The baseline is a Hull Moving Average applied to the Kalman-filtered source:
responsive in trend,
cleaner during transitions,
ideal for breakout regime detection.
3) Deviation Envelope with Two Modes
Deviation rails are calculated using a for-loop standard deviation (population stdev), with two choices:
Residual vs Baseline (default): deviation of (src - baseline)
→ focuses on “distance from fair value” instead of raw price volatility
Raw Source: deviation of the source itself
→ classic volatility envelope behavior
Then bands are formed by:
upper = baseline + mult * sd
lower = baseline - mult * sd
4) Regime Rails + Candle Painting (RakoQuant Neon)
Bull regime: active lower rail plotted in Neon Aqua
Bear regime: active upper rail plotted in Neon Magenta
Candles are painted to match the current state (optional)
Inactive rails can be shown faintly for context.
5) Alerts for Breakouts
Built-in alerts trigger exactly on regime flips:
Bull Breakout (close crosses above upper rail)
Bear Breakout (close crosses below lower rail)
How to Use It
Trend-following approach
Stay with the active regime until a breakout flip occurs.
In bull regime, the lower rail behaves like an adaptive trend support guide.
In bear regime, the upper rail behaves like an adaptive trend resistance guide.
Breakout confirmation
Use the breakout as a confirmation layer with your other confluences:
take longs only after a bull breakout,
take shorts only after a bear breakout,
filter mean-reversion trades by the regime state.
Inputs Summary
Source: select what the model tracks (default: high)
Kalman: R / Q controls smoothing vs responsiveness
Baseline: Hull length
Deviation: loop length, mode (Residual vs Baseline / Raw Source), multiplier
Visuals: candle painting, baseline visibility, inactive rails
Disclaimer
Backtests are based on historical data and are not indicative of future performance.
:
Clean CPR v7.0 (Call & Put)// --------------------------------------------------------------------
// DESCRIPTION
// --------------------------------------------------------------------
// Clean CPR v7.1 is a multi-module trading and analysis toolkit built
// around Central Pivot Range (CPR) for intraday and swing trading.
//
// Core features:
// • Daily / Weekly / Monthly CPR with fills, labels and price display
// • Automatic CPR width classification (Super Narrow → Wide)
// • Visual alert when today’s CPR is WIDE (“WIDE CPR TODAY”)
// • Trade filtering: Wide CPR days are blocked from new entries
// • Pivot-based Support & Resistance (R1–R5, S1–S5, optional historical)
// • Developing CPR and Developing R1 / S1 levels
// • Previous Session High/Low with optional shaded zones
// • Dual Donchian Channels with auto-alignment coloring
// • Anchored Day-Open VWAP
// • Initial Balance (first hour range)
// • CPR + ATR + EMA + Fundamentals information table
// • Integrated 1H Call & Put breakout strategy with Supertrend, ADX,
// ATR trailing stop, targets, gap handling and time filters
//
// This script is designed as a single dashboard combining market bias,
// volatility, structure, and execution logic in one indicator.
// --------------------------------------------------------------------
PPAO - Propagator Price Action Oscillator
How PPAO works in one cycle (what it does every candle)
PPAO has 3 moving parts that run every bar:
1) It measures new candle pressure (the “push”)
This is the forcing term.
Return (ret): did price go up or down from last close?
Body: did the candle close above or below its open?
CLV: did the candle close near the high or near the low of its range?
With Option B, the “price action push” is directional:
Body is positive on bullish candles, negative on bearish candles.
CLV is:
near +1 if the candle closes near the high (buying strength),
near -1 if it closes near the low (selling strength).
So a candle that closes weak (near the low) pushes PPAO downward even if the candle range is large.
2) It decides how much to remember vs forget (the “friction”)
This is damping / decay.
High volatility (noisy market) → forget faster
Low volatility (cleaner market) → remember longer
So PPAO adapts: in chop it won’t hold bias for long; in smooth trends it will.
3) It updates a hidden “momentum engine” (state)
Internally it keeps two numbers (p and q) that store the market’s impulse with memory.
Every candle:
it shrinks the old state (decay),
rotates it a bit (momentum/volatility creates oscillation),
then adds the candle push (forcing).
Finally, it converts that hidden state into a 0–100 line:
> 50 means the state is aligned bullish,
< 50 means it’s aligned bearish.
The image below will give you an example of a deep analysis using the Propagator Price Action Oscillator (PPAO).
PPAO below 30
What that means mechanically
Below 30 = bearish impulse extreme.
It happens when the recent candles are consistently “bearish pressure” according to the forcing inputs:
returns are negative and/or
candles close weak inside their range (CLV negative) and/or
bodies are bearish (close < open)
Also, if volatility is elevated, damping can make this flip faster and stay extreme during a strong impulse.
What it means behaviorally
PPAO < 30 is not “prediction.” It is diagnosis:
“Recent candle pressure has been strongly bearish.”
This can show up in two common market contexts:
Continuation context
Price is breaking structure down, and candles keep closing weak → PPAO stays < 30.
Distribution / hidden weakness context (important)
Price may look stable or near a high, but candles are repeatedly closing poorly inside their ranges (negative CLV).
That makes PPAO drop under 30 even if price hasn’t collapsed yet.
That second case is exactly why Option B (Body + CLV) is useful: it can flag weak closes / selling absorption earlier than “price-only” oscillators.
PPAO above 70
What that means mechanically
Above 70 = bullish impulse extreme.
It occurs when the forcing inputs are strongly positive:
returns are positive and/or
candles close strong inside their range (CLV positive) and/or
bodies are bullish (close > open)
If volatility is not exploding, damping won’t erase the accumulated bullish state quickly, so PPAO can stay above 70 during sustained buying pressure.
What it means behaviorally
Again: not a prophecy, but an impulse read:
“Recent candle pressure has been strongly bullish.”
Two common contexts:
Trend continuation
Price is pushing higher and closes are strong → PPAO remains > 70.
Exhaustion risk
If price is hitting major resistance/liquidity and you start seeing weaker closes (CLV drops) while PPAO stops making new highs → that’s where reversals begin to appear.
The key takeaway using both images
PPAO extremes are best understood as:
Below 30: “Sellers are currently dominating candle pressure.”
Above 70: “Buyers are currently dominating candle pressure.”
Whether that dominance leads to continuation or reversal depends on what price does next (structure + where you are on the chart). PPAO is measuring pressure, not guaranteeing outcome.
Growth Comparison (Gold, Silver, Copper, Platinum & Crypto)
Data Sources
The symbols configured this time point to globally trusted data sources (providers).
・OANDA (XAUUSD, XAGUSD, XCUUSD, XPTUSD):
Data from OANDA, one of the world's largest FX and commodity providers. It reflects the “spot prices” for gold, silver, copper, and platinum in near real-time.
・BINANCE (BTCUSDT, ETHUSDT, XRPUSDT):
Data from Binance, the world's largest cryptocurrency exchange. It has the highest trading volume and is used as the global standard price indicator. Retrieves BTC, ETH, and XRP.
How the Script Works (Technical Explanation)
・Fixed Starting Price:
The script internally stores the price on the set “comparison start date” (e.g., January 1, 2025).
・Real-Time Calculation:
It constantly retrieves the latest current price and continuously calculates the percentage using the following formula.
Formula: (Current Price - January 1, 2025 Price) ÷ January 1, 2025 Price × 100
*Since January 1 is a global market holiday (New Year's Day) with no prices available, the script automatically adopts the next market opening price (e.g., January 2 morning's open price) as the baseline.
・Automatic label tracking:
The program displays labels like “GOLD” at the right edge of the graph. This ensures you never lose track of which line corresponds to which asset, even when lines overlap.
Translated with DeepL.com (free version)
MATT 4This indicator helps identify high-probability trend shifts and continuation setups by combining momentum, trend strength, and volatility into a single, easy-to-read signal. It highlights bullish/bearish conditions, marks potential entries and exits, and reduces noise during choppy markets with adaptive filtering. Use it to confirm direction, time pullbacks, and stay aligned with the dominant trend.
AI Academy: Volume k-NN [PhenLabs]📊 AI Academy: Volume k-NN
Version: PineScript™ v6
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📌 Description
AI Academy: Volume k-NN (Theory Edition) is an educational indicator designed to demystify how artificial intelligence pattern recognition works directly on your TradingView charts. Rather than being a black-box signal generator, this tool visualizes the entire k-Nearest Neighbors algorithm process in real-time, showing you exactly how AI identifies similar historical patterns and generates predictions.
The indicator scans up to 2,000 historical bars to find patterns that match your current price action, then uses an ensemble of the closest matches to project potential future movement. What sets this apart is the integrated “AI Grimoire”—an interactive educational book overlay that teaches core machine learning concepts through four illuminating chapters.
Whether you’re a trader curious about AI methodology or a developer learning algorithmic concepts, this indicator transforms abstract machine learning theory into tangible, visual understanding.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 Points of Innovation
• First TradingView indicator to visualize k-NN algorithm execution in real-time with full transparency
• Interactive “AI Grimoire” educational overlay teaches machine learning concepts while you trade
• Dual-mode pattern matching combines price action with optional volume confirmation
• Confidence-based opacity system visually communicates prediction reliability
• Historical match visualization shows exactly which past patterns informed the prediction
• Ghost bar projections display averaged ensemble predictions with adjustable forecast horizons
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 Core Components
• Pattern Capture Engine: Converts recent price action into logarithmic returns for normalized comparison across different price levels
• k-NN Search Algorithm: Calculates Euclidean distance between current pattern and historical patterns to find closest matches
• Volume Weighting System: Optional feature that incorporates volume patterns into distance calculations with adjustable influence
• Ensemble Predictor: Averages future returns from k-nearest historical matches to generate consensus forecast
• Confidence Calculator: Measures average distance of top matches to determine prediction reliability on 0-100% scale
• AI Grimoire Display: Table-based educational overlay rendering book-style content with chapter navigation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔥 Key Features
• Adjustable Pattern Length: Define how many bars constitute the current pattern for matching (5-100 bars)
• Configurable Search Depth: Control how far back the algorithm searches for historical matches (500-4,900 bars)
• Flexible k-Neighbors: Select how many closest matches inform the prediction (1-20 neighbors)
• Volume Toggle: Enable or disable volume pattern matching for different market conditions
• Volume Influence Slider: Fine-tune the weight given to volume vs. price patterns (0-100%)
• Ghost Bar Count: Adjust how many future bars the indicator projects (3-15 bars)
• Minimum Confidence Filter: Set threshold to hide low-confidence predictions
• Historical Match Display: Toggle visibility of colored boxes marking source patterns
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎨 Visualization
• Blue Scanner Box: Highlights current pattern being analyzed labeled “AI INPUT (The Prompt)”
• Green Historical Boxes: Mark past patterns where price subsequently moved bullish
• Red Historical Boxes: Mark past patterns where price subsequently moved bearish
• Ghost Bars: Semi-transparent candles projecting into the future showing predicted price path
• Confidence Label: Displays prediction confidence percentage and number of matches used
• AI Grimoire Book: Leather-bound book overlay in top-right corner with navigable chapters
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 Usage Guidelines
Algorithm Settings
• Pattern Length — Default: 20 | Range: 5-100 | Controls how many recent bars define the pattern. Shorter values find more matches but less specific. Longer values find fewer but more precise matches.
• Search Depth — Default: 2000 | Range: 500-4900 | Determines how many historical bars to scan. Higher values find more potential matches but increase computation time.
• k-Neighbors — Default: 5 | Range: 1-20 | Number of closest matches to use for prediction. Higher values smooth predictions but may dilute strong signals.
• Ghost Bar Count — Default: 5 | Range: 3-15 | How many future bars to project. Shorter horizons are typically more reliable.
• Use Volume Matching — Default: Off | When enabled, patterns must match on both price AND volume characteristics.
• Volume Influence — Default: 30% | Range: 0-100% | Weight given to volume pattern when volume matching is enabled.
Visualization Settings
• Bullish/Bearish Match Colors — Customize colors for historical match boxes based on outcome direction.
• Min Confidence % — Default: 60 | Predictions below this threshold will not display.
• Show Historical Matches — Default: On | Toggle visibility of source pattern boxes on chart.
Education Settings
• Select Chapter — Navigate through AI Grimoire chapters or keep book closed for clean chart view.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Best Use Cases
• Learning how k-Nearest Neighbors algorithm functions in a trading context
• Understanding the relationship between historical patterns and forward predictions
• Identifying when current market conditions resemble past scenarios
• Supplementing discretionary analysis with pattern-based confluence
• Teaching others machine learning concepts through visual demonstration
• Validating whether volume confirms price pattern formations
• Building intuition for what AI “sees” when analyzing charts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Limitations
• Past pattern similarity does not guarantee future outcome similarity
• Requires sufficient historical data (minimum 500+ bars) to function properly
• Computation-intensive on lower timeframes with maximum search depth
• Cannot predict truly novel “black swan” events not represented in historical data
• Volume matching less effective on assets with inconsistent volume reporting
• Predictions become less reliable as forecast horizon extends further out
• Educational overlay may obstruct chart view on smaller screens
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 What Makes This Unique
• Full Transparency: Unlike black-box AI tools, every step of the algorithm is visualized on your chart
• Integrated Education: The AI Grimoire teaches machine learning concepts without leaving TradingView
• Theory Meets Practice: See exactly which historical patterns inform each prediction
• Honest Uncertainty: Confidence scoring and opacity fading acknowledge when the AI “doesn’t know”
• Dual-Mode Analysis: Optional volume weighting adds institutional-quality analysis dimension
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔬 How It Works
1. Pattern Capture: On each bar, the indicator captures the most recent price changes as logarithmic returns, creating a normalized “fingerprint” of current market behavior. If volume matching is enabled, volume changes are captured similarly.
2. Historical Search: The algorithm iterates through up to 2,000 historical bars, calculating the Euclidean distance between the current pattern fingerprint and each historical pattern. Distance combines price similarity and optional volume similarity based on weight settings.
3. Neighbor Selection: All historical patterns are ranked by similarity (lowest distance = most similar). The k-closest matches are selected as the “ensemble council” that will inform the prediction.
4. Confidence Calculation: Average distance of top-k matches determines confidence. Tighter clustering of similar patterns yields higher confidence scores, while scattered or distant matches produce lower confidence.
5. Prediction Generation: Future returns from each historical match (what happened AFTER those patterns) are averaged together. This ensemble average is applied to current price to generate ghost bar projections.
6. Visualization: Historical match locations are marked with colored boxes (green for bullish outcomes, red for bearish). Ghost bars render with opacity tied to confidence level—higher confidence means more solid bars.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 Note:
This indicator is designed primarily for educational purposes —to help traders understand how AI pattern recognition algorithms function. While the predictions can supplement your analysis, they should never be used as the sole basis for trading decisions. The AI Grimoire chapters explain key concepts including why AI “hallucinates” during unprecedented market events. Always combine with proper risk management and additional confirmation.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Chinese Silver Price_SRC (USD/oz)This indicator converts the Chinese silver price quoted in CNY per kilogram (e.g. SHFE silver) into USD per troy ounce and overlays it directly on the XAGUSD (global silver spot) chart.
The conversion uses the real-time USD/CNY exchange rate and the standard troy ounce conversion factor.
USD/oz = (CNY/kg ÷ USD/CNY) ÷ 32.1507
Momentum Exhaustion UltimateMomentum Exhaustion Ultimate
Introduction
This indicator is a comprehensive market timing tool based on Consecutive Bar Counting logic. Unlike standard oscillators like RSI or MACD which smooth data using averages (lagging price), this strategy analyzes the specific sequence and persistence of price action to identify moments of trend exhaustion in real-time.
It is widely used on professional trading desks to answer one specific question: "Has the current trend run out of gas?"
The Core Philosophy
Markets do not move in straight lines; they move in waves of momentum and exhaustion. This strategy posits that a trend typically exhausts itself after a specific cadence of buying or selling pressure. By "counting" these pressure bars, we can identify high-probability zones where the market is likely to pause (Extension) or reverse completely (Exhaustion).
How It Works: The Two Phases
1. The Extension Phase (The "9"):
Goal: Identifies a trend that is becoming overextended (Momentum).
The Signal: A count of 9 consecutive bars closing higher/lower than the close 4 bars prior.
Meaning: This is a "Momentum Pause" signal. When a 9 appears, the market often corrects for 1-4 bars. It is the first warning sign of fatigue.
2. The Exhaustion Phase (The "13"):
Goal: Identifies the final exhaustion of the trend.
The Signal: A count of 13 bars (not necessarily consecutive) where price pushes to new extremes relative to the high/low 2 bars prior.
Meaning: This is the "Reversal" signal. The buying/selling pressure has likely fully capitulated, and a major counter-trend move is expected.
How To Use This Script
This indicator is not just a "reversal catcher." It includes institutional features (Structure Lines and Invalidation Levels) to help you manage the trade:
Don't Just Fade the "9": A "9" isn't always a buy signal. If the trend is strong, the "9" might just be a pause. Wait for the 13 for major reversals.
The "Quality Filter" (Diamond ♦): A signal is statistically stronger if the final bar (8 or 9) actually pushes deeper than previous bars. This script marks these high-quality signals with a Diamond (♦).
The Trend Barrier Breakout: The script plots Structural Support/Resistance Lines (Dashed Red/Green). If price ignores a Reversal Signal and breaks through this line, the reversal has failed. Cancel your fade and trade the Breakout (Trend Continuation). This is often the most profitable signal in the system.
The "Invalidation" Line: The Blue Dotted line represents the "Stop Loss" level derived from the volatility of the count. If price closes past this line, the signal is invalid—exit immediately.
Features Included in This Script:
Full Engine: Includes both the Extension (1-9) and Exhaustion (1-13) counters.
Wick-Sensitive Mode: Option to switch logic for fast-moving markets (Crypto/FX) to detect wicks rather than closes.
Deferral Logic: "Qualifier" rules that prevent a 13 from firing until momentum actually slows down.
Structure Lines: Institutional trend barriers for breakout trading.
Volatility Stops: Dynamic invalidation levels to protect capital.
Minimalist Mode: Hides the "number soup" to keep your chart clean, showing only actionable signals.
Overnight Mid-pointThis script defines a scrollable intraday session and continuously tracks the highest and lowest candle body closes made during that session, explicitly ignoring wicks. As the session develops, it plots a single horizontal midpoint line (dotted, dashed, or solid by user selection) calculated as the average of those two body closes, extending to the right from the session. For visual verification, it places exactly two dots on the chart: a green dot above the bar with the highest body close and a red dot below the bar with the lowest body close. Each new session resets the calculation, ensuring only one midpoint line and two verification markers are visible at any time. For proper use, 1800 - 0800 local time should be used (may be a couple hours off depending on your region).
Adaptive ML VWAP v1.0Overview
Adaptive ML VWAP is a next-generation "Smart Indicator" that moves beyond static deviations (Standard Deviation). Instead of assuming market volatility is distributed normally (Bell Curve), this indicator uses a k-Nearest Neighbors (k-NN) machine learning engine to learn the specific volatility behavior of the asset you are trading.
It answers the question: "When price extends away from VWAP, how far does it actually go before reversing?"
The Adaptive ML Engine
This script features a 5-Dimensional ML Engine that tracks every major extension or pullback event. It records:
Deviation Depth (Normalized to ATR)
Trend Slope (Is the trend steep or flat?)
ADX (Trend Strength)
VWAP Deviation (Relative Position)
Time of Day (Session Context)
When a new setup occurs, the k-NN engine instantly searches its memory for the 5 most similar historical events and calculates the probability of success based on what happened last time.
Two Strategy Modes
You can toggle the logic to suit your trading style:
1. Mean Reversion Mode (Default)
"Fade The Move"
Goal: Catch price at an exhaustion point returning to VWAP.
Signal: Triggers when price touches a Smart Band and reverses back toward the center.
k-NN Learning: Learns which conditions favor a snap-back.
Best For: Ranging markets, Lunch hours, Choppy sessions.
2. Trend Following Mode
"Ride The Move"
Goal: Catch breakouts that are launching away from value.
Signal: Triggers when price breaks out of the Inner Band (1.0).
k-NN Learning: Learns which breakouts tend to extend to the Outer Bands.
Best For: Morning Drives, News Events, Strong Trends.
Visual Guide
The indicator uses a Dynamic Gradient system to visualize risk/reward:
Cyan Mist (0.5 - 1.0): The Value Zone. Noise area. Safe for trend entries.
Deep Cyan (1.0 - 2.0): The Trend Zone. Price is moving proactively.
Orange Glow (2.0 - 3.0): The Danger Zone. Price is statistically overextended. Reversals are highly probable here.
"Fractal" Math
Unlike standard indicators that break when you change timeframes, Adaptive ML VWAP uses Fractal Normalization.
A "2.0 Band" on a 15-second chart means the same statistical extreme as a "2.0 Band" on a 4-hour chart.
Auto-Adaptive Lookback: The indicator automatically boosts the ML memory (Lookback) on lower timeframes (seconds/minutes) where more noise requires larger sample sizes, ensuring robust predictions without manual tweaking.
Settings
Auto-Adapting Lookback: (Default: True) automatically increases Lookback to 100+ for seconds charts and 50+ for minute charts.
Lookback (Events): Manual override base value (Default: 100).
Strategy Mode: Toggle between Mean Reversion and Trend Following.
k-Neighbors: The number of similar past events to structurally compare (Default: 5).
Disclaimer: This tool is for educational purposes. Machine learning performance is dependent on market conditions and historical recursion.
Super AccumulatorThis indicator is designed to make Accumulation/Distribution (A/D) movements more visible and easier to interpret.
Under normal conditions, accumulation and distribution activity can be hard to spot on the chart, especially with short-term volume signals. To address this, we visualized the A/D difference as a histogram, allowing you to quickly assess buying and selling pressure.
Additionally, the histogram is combined with the SuperTrend indicator to clearly show the trend direction on the panel. Buy signals are displayed as yellow circles, sell signals as red circles, providing an immediate view of both momentum and trend direction.
When used alongside other indicators, this setup becomes a powerful tool for trend-following and volume-based strategies.
Note: This indicator is not a standalone buy/sell signal; always use it with proper risk management.
Ed's Swing Ready Ripper v2 (SMC) - RIP + TREND + SMC Filter// ============================================================================
// Ed's Swing Ready Ripper v2 (SMC) - How to Trade It (Rules + Reasoning)
// ============================================================================
//
// PURPOSE
// This indicator is built for swing trades that try to enter strong stocks
// WITHOUT chasing. It uses:
// 1) DAILY filters to choose which type of setup is active:
// - Ready-to-Rip (RIP): strong but not too extended
// - Trend Continuation (TREND): very strong trend, ride it longer
// 2) ENTRY timeframe (default 2H) to time entries.
// 3) Optional SMC filter to reduce late entries:
// - BOS Up confirmation (break of last swing high)
// - Discount pullback (buy the pullback, not the top)
//
// ---------------------------------------------------------------------------
// TIMEFRAMES (IMPORTANT)
// - Daily TF controls the "market regime" filter (RIP vs TREND).
// - Entry TF controls signals and management (BUY PART, BUY FULL, exits).
//
// Suggested workflow:
// 1) Use Daily chart to confirm overall trend + avoid earnings/news spikes.
// 2) Use 2H (or 4H) for entries and trade management.
// 3) Use 1H only if you want more signals (more noise).
//
// ---------------------------------------------------------------------------
// MODE LOGIC (RIP vs TREND)
// - Ready-to-Rip (RIP) activates when:
// * Daily uptrend: Close > EMA20 > EMA50
// * RSI is strong but not too high (default 40-65)
// * Optional Relative Volume >= threshold
// Reasoning: You want strength, but not overextended "already blew off" moves.
//
// - Trend Continuation (TREND) activates when:
// * Daily uptrend: Close > EMA20 > EMA50
// * RSI is stronger (default >= 55)
// * Optional Relative Volume >= threshold
// Reasoning: Some stocks keep trending; this mode exits slower to capture runners.
//
// - Auto mode:
// * Prefers RIP when both qualify.
// * Uses TREND when RIP is not active but TREND is.
//
// ---------------------------------------------------------------------------
// SMC FILTER (OPTIONAL but recommended)
// This is a LIGHT SMC gate (not a full Smart Money Concepts clone).
//
// 1) BOS Up (Break of Structure Up)
// - BOS happens when Entry TF close breaks above the last pivot swing high.
// - When BOS triggers, the script "arms" an impulse range.
// Reasoning: BOS confirms buyers are actually pushing structure higher.
//
// 2) Discount Pullback (Entry Quality)
// - Discount level = impulseLow + (impulseHigh - impulseLow) * discountPct
// default discountPct = 0.50 (50% level).
// - "inDiscount" means price pulls back into the lower part of the impulse.
// Reasoning: This attempts to reduce chasing and improves R:R by entering on pullback.
//
// Notes:
// - If you want MORE signals, turn off Discount requirement.
// - If you want HIGHER quality signals, keep BOS + Discount ON.
//
// ---------------------------------------------------------------------------
// ENTRY RULES
// BUY PART triggers when ALL are true:
// 1) Daily mode is active (RIP or TREND)
// 2) Entry timeframe bias is positive (Close > Entry EMA50)
// 3) Entry trigger fires: Close crosses ABOVE Entry EMA20 (reclaim)
// 4) SMC gate passes (if enabled): BOS armed and/or inDiscount (depending settings)
//
// Reasoning: In strong markets, the EMA20 reclaim after a pullback is a common
// continuation entry. Bias filter avoids countertrend longs.
//
// ---------------------------------------------------------------------------
// ADD RULE ("BUY FULL")
// BUY FULL triggers when:
// - Already in trade
// - TP1 has been hit
// - Not already added
// - Price is still above Entry EMA20
//
// Reasoning: This is a pyramiding concept:
// - You start smaller (risk control)
// - Only add once trade is proving itself
//
// If you do NOT want adding, you can disable it in code later.
//
// ---------------------------------------------------------------------------
// TARGETS (TP1 / TP2)
// Targets are ATR-based from the entryPrice on the Entry TF:
// - TP1 = entryPrice + ATR * atrMult1
// - TP2 = entryPrice + ATR * atrMult2
//
// Defaults:
// - RIP has slightly smaller targets (more "hit and run").
// - TREND has larger TP2 (try to catch runners).
//
// Reasoning: ATR adapts to volatility automatically.
//
// ---------------------------------------------------------------------------
// EXIT RULES
// RIP Exit (faster protection):
// - Exit if Entry TF closes below EMA20, OR TP2 hit.
//
// Reasoning: RIP is not meant to sit through deep pullbacks.
// If it loses EMA20, momentum likely fading.
//
// TREND Exit (slower, runner-friendly):
// - Trail Entry EMA20 with grace bars.
// - If close stays below EMA20 for more than graceBars, exit, OR TP2 hit.
//
// Reasoning: Trends often dip below EMA20 briefly before continuing.
// Grace bars prevent exiting too early.
//
// ---------------------------------------------------------------------------
// RISK MANAGEMENT (HOW TO SIZE + STOPS)
// This script gives entries/exits/targets, but YOU manage risk.
// A simple approach:
// - Risk 0.5% to 1.0% of account per trade.
// - Stop idea (manual):
// * Conservative: below the most recent Entry TF swing low
// * Aggressive: below EMA50 on Entry TF
// - If stock gaps hard against you (earnings/news), exit quickly.
// - Avoid holding through earnings unless you accept gap risk.
//
// ---------------------------------------------------------------------------
// BEST PRACTICES (REALISTIC USE)
// - This works best on liquid stocks/ETFs and strong sectors.
// - Use your screener to narrow candidates, then use this indicator to time entries.
// - If too many signals are "late":
// * require Discount ON
// * raise RelVolMin
// * tighten RIP RSI max (e.g., 60)
// - If too few signals:
// * turn Discount OFF (keep BOS on)
// * lower RelVolMin
//
// ---------------------------------------------------------------------------
// DISCLAIMER
// For educational use only. Not financial advice.
// ============================================================================
PSP with Color ThemesEnglish Description
The PSP with Color Themes indicator is a sophisticated tool for detecting price swing divergences between the current trading instrument and a selected reference asset. This indicator implements PSP (Price Swing Divergence) logic to identify moments when price movements between two correlated assets diverge from their typical relationship. Traders can select from multiple professionally designed color themes or customize their own color scheme, with adjustable opacity for optimal chart visibility. The core functionality compares candlestick patterns between the current chart and the reference symbol, highlighting bullish signals when the current asset rises while the reference falls (or vice versa in inverse mode). This divergence detection helps identify potential momentum shifts and trading opportunities before they become apparent in single-asset analysis. The indicator offers flexible configuration including inverse correlation mode for negatively correlated pairs and a clean visual presentation that doesn't clutter the price chart while providing immediate visual cues through colored candlesticks.
Русское описание
Индикатор PSP с цветовыми темами представляет собой продвинутый инструмент для обнаружения дивергенций колебаний цены между текущим торговым инструментом и выбранным эталонным активом. Этот индикатор реализует логику PSP (Price Swing Divergence) для выявления моментов, когда движения цен между двумя коррелирующими активами отклоняются от их типичной взаимосвязи. Трейдеры могут выбирать из нескольких профессионально разработанных цветовых тем или настраивать собственную цветовую схему с регулируемой прозрачностью для оптимальной видимости на графике. Основная функция сравнивает свечные модели между текущим графиком и эталонным символом, выделяя бычьи сигналы, когда текущий актив растет, а эталонный падает (или наоборот в инверсном режиме). Это обнаружение дивергенций помогает выявить потенциальные сдвиги импульса и торговые возможности до того, как они станут очевидными при анализе одного актива. Индикатор предлагает гибкую настройку, включая режим обратной корреляции для отрицательно коррелированных пар, и чистое визуальное представление, которое не загромождает ценовой график, обеспечивая при этом мгновенные визуальные подсказки через окрашенные свечи.






















