Enhanced Swing Trading Confluence [Hidden Div Bonus + Dashboard]powerful swing trading indicator combining multiple confluence factors for high-probability setups.
This indicator identifies premium long and short opportunities by requiring alignment across:
• Trend direction (price above/below 200 EMA + optional 50/100/200 EMA stacking)
• RSI oversold/overbought conditions (with optional strict crossover requirement)
• MACD line/signal crossover
• Price touching Bollinger Band extremes
• Optional Bollinger Band squeeze (low volatility contraction)
• Optional volume spike confirmation
Features:
• Clean entry arrows for ready signals
• Real-time confluence dashboard showing which conditions are met
• Accurate regular RSI divergence detection (reversal signals)
• Hidden RSI divergence detection (trend continuation signals)
• Optional use of recent hidden divergence as a bonus confirmation filter
• Customizable inputs and alerts
Ideal for swing traders seeking multi-factor confirmation before entries. Works across all markets and timeframes. Alerts fire only when full confluence is achieved for disciplined, high-quality trade setups.
Chỉ báo và chiến lược
FVG Heatmap [Hash Capital Research]FVG Map
FVG Map is a visual Fair Value Gap (FVG) mapping tool built to make displacement imbalances easy to see and manage in real time. It detects 3-candle FVG zones, plots them as clean heatmap boxes, tracks partial mitigation (how much of the zone has been filled), and summarizes recent “fill speed” behavior in a small regime dashboard.
This is an indicator (not a strategy). It does not place trades and it does not publish performance claims. It is a market-structure visualization tool intended to support discretionary or systematic workflows.
What this script detects
Bullish FVG (gap below price)
A bullish FVG is detected when the candle from two bars ago has a high below the current candle’s low.
The zone spans from that prior high up to the current low.
Bearish FVG (gap above price)
A bearish FVG is detected when the candle from two bars ago has a low above the current candle’s high.
The zone spans from the current high up to that prior low.
What makes it useful
Heatmap zones (clean, readable FVG boxes)
Bullish zones plot below price. Bearish zones plot above price.
Partial fill tracking (mitigation progress)
As price trades back into a zone, the script visually shows how much of the zone has been filled.
Mitigation modes (your definition of “filled”)
• Full Fill: price fully trades through the zone
• 50% Fill: price reaches the midpoint of the zone
• First Touch: price touches the zone one time
Optional auto-cleanup
Optionally remove zones once they’re mitigated to keep the chart clean.
Fill-Speed Regime Dashboard
When zones get mitigated, the script records how many bars it took to fill and summarizes the recent environment:
• Average fill time
• Median fill time
• % fast fills vs % slow fills
• Regime label: choppy/mean-revert, trending/displacement, or mixed
How to use
Use FVG zones as structure, not guaranteed signals.
• Bullish zones are often watched as potential support on pullbacks.
• Bearish zones are often watched as potential resistance on rallies.
The fill-speed dashboard helps provide context: fast fills tend to appear in more rotational conditions, while slow fills tend to appear in stronger trend/displacement conditions.
Alerts
Bullish FVG Created
Bearish FVG Created
Notes
FVGs are not guaranteed reversal points. Fill-speed/regime is descriptive of recent behavior and should be treated as context, not prediction. On realtime candles, visuals may update as the bar forms.
Buying Opportunity Score V2.1Overview
A composite scoring system (0-100) that identifies high-probability buying opportunities during market pullbacks. Validated through backtesting on SPY from 2010-2024.
How It Works
The indicator combines multiple fear and oversold signals into a single actionable score. When fear is elevated and the market is oversold, the score rises. Higher scores historically correlate with better forward returns.
Scoring Components
VIX Level (30 pts) - Market fear gauge
Drawdown (30 pts) - Distance from 52-week high
RSI 14 (12 pts) - Oversold confirmation
Bollinger Band (13 pts) - Statistical extreme
VIX Timing (15 pts) - Bonus when VIX declining from peak
Signal Levels
80+ = STRONG BUY (high conviction)
70-79 = BUY (consider entry)
60-69 = WATCH (monitor closely)
Below 60 = No signal
Backtest Results (SPY, 2010-2024)
70+ Signals: 85% win rate, 7.5% average 20-day return
80+ Signals: 100% win rate, 14% average 20-day return
Features
Statistics table showing 1Y, 3Y, 5Y rolling performance
Signal markers (green triangles) on buy signals
Outcome labels showing WIN/LOSS after measurement period
Multiple alert options
Works on SPY, QQQ, IWM (use VIX for all)
How To Use
Add to SPY, QQQ, or IWM (daily timeframe)
Wait for score to reach 70+ or 80+
Green triangle marks signal day
Check statistics table for recent performance
Set alerts for notifications
Alerts Available
STRONG BUY Signal (80+)
BUY Signal (70+)
Moderate Signal (60+)
Score Crossed 80/70
Score Dropped Below 70
Important Notes
Designed for daily timeframe on broad market ETFs
Signals confirm at end of day (bar close)
Statistics table shows rolling windows based on loaded data
Past performance does not guarantee future results
GME Warrant Tracker [theUltimator5]The GME Warrant Tracker was designed to be used for GME warrants tracking. The theory behind this indicator is that warrants are priced similarly to options and generally follow the same Greeks. With that assumption, we can break down the price of the warrants by using known Greeks to estimate either the theoretical price, or even estimate Implied Volatility (IV).
The base settings for this indicator plot the calculated IV, the theoretical price (there are multiple methods of calculation which I will discuss later) and the current warrant price.
You can toggle on or off all of these plots to display only what you want to track.
For example, you can simply track the difference between the theoretical price and the current price to see if warrants are trading at a premium or a discount vs what the indicator calculates it to be.
Calculating implied volatility is extremely difficult and must be approximated.
The theoretical warrant price produced by this indicator depends primarily on the volatility input (σ) used in the Black–Scholes pricing model.
This script supports five distinct methods for approximating σ, each extracting different information from the market.
1) Close-to-Close Historical Volatility
Close-to-Close computes the standard deviation of daily close-to-close returns and uses a lookback window scaled to time-to-expiry. As the expiration approaches, the lookback window tightens, giving a more responsive volatility approximation relative to time-to-expiry.
This option produces conservative approximations for volatility, and may lag actual volatility intraday.
2) Parkinson High-Low Volatility
Parkinson High-Low volatility uses daily high and low prices to calculate intraday trading range for a more responsive estimation to volatility. It ignores opening and close gaps, so overnight volatility is not accounted for.
This option produces higher theoretical volatility during choppy price action and can over estimate actual volatility.
3) Garman–Klass Volatility
Garman–Klass volatility is a way to estimate how much price is fluctuating by using the open, high, low, and close for each period. Because it draws on multiple intraperiod price points (not just the range or close-to-close moves), it typically produces a tighter, more informative volatility estimate than simpler approaches. It’s often most helpful when gaps occur and when the open and close carry meaningful information about the session’s trading.
4)Yang–Zhang Volatility
The Yang–Zhang volatility estimator is designed to account for both opening jumps and price drift. It estimates volatility by combining overnight (close-to-open) variance, intraday (open-to-close) variance, and a weighted Rogers–Satchell component using OHLC data, often yielding a more robust measure than simpler close-to-close style estimators.
5) Option price
By default, the indicator uses the call option strike dated closest to the warrant expiration date. Since the Greeks for both the warrants and the
options are assumed to be equivalent with a minor difference in theta (time-to-expiry), the theoretical price of the warrants closely matches the trade price of the call strike chosen.
There is a table that can be enabled (off by default because it is large and fills entire screen on mobile) which shows all the configuration settings and Greeks.
You can also manually adjust the "dilution" factor for the warrants, which shifts the number of active warrants and moves the count into the shares outstanding for the underlying (GME). The reason for this is that as warrants get exercised, the total quantity of warrants in circulation decreases and the the total quantity of shares outstanding increases.
Since this indicator was built around the single warrant, ticker NYSE: GME/W, it is only meant to be used with NYSE:GME. Any other ticker will not work properly with this indicator.
Order Block Finder [MHA Finverse]A comprehensive order block detection indicator that identifies institutional buying and selling zones with advanced volume filtering and King Order Block (KOB) detection.
Key Features
Dual Structure Detection
- Internal Order Blocks: Short-term zones based on 5-bar pivots for precise entries
- Swing Order Blocks: Higher timeframe zones based on 50-bar pivots for major support/resistance levels
- Toggle between structures or display both simultaneously
King Order Block (KOB)
The indicator automatically identifies the order block with the highest volume and marks it as the "King Order Block" - typically the most significant institutional zone that deserves priority attention. You can optionally color-code KOB blocks differently for instant visual recognition.
Intelligent Volume Filtering
Uses ATR or Cumulative Mean Range to filter out low-quality blocks and focus only on institutional-sized moves. This ensures you're trading zones where smart money has left clear footprints.
Volume Metrics Display
Each order block shows its actual volume and percentage contribution, helping you prioritize which zones to trade. Higher volume blocks indicate stronger institutional interest.
Flexible Lookback Periods
Choose from preset trading styles (Scalping: 50 bars, Day Trading: 150 bars, Swing Trading: 400 bars, Position Trading: 750 bars) or set custom lookback periods to match your strategy.
Advanced Mitigation Options
Select between Close or High/Low mitigation methods to control when order blocks are considered invalidated.
King Order Block (KOB)
The King Order Block is the order block with the highest volume among all active blocks on your chart. It represents the zone where the largest institutional activity occurred, making it the most significant level for potential reversals. When multiple order blocks are present, the KOB should be your primary focus as it typically offers higher probability setups. The indicator automatically identifies and marks the KOB with a special label, and you can optionally color-code it differently for instant visual recognition. KOB zones often produce stronger reactions when price returns to test them, allowing for more confident entries with tighter stop losses.
How to Use
1. For Short-Term Trading: Enable Internal Order Blocks to identify quick reversals and entries on lower timeframes.
2. For Position Trading: Enable Swing Order Blocks to find major institutional zones on higher timeframes.
3. Focus on KOB: When multiple blocks appear, prioritize the King Order Block as it represents the highest volume zone.
4. Volume Confirmation: Check the volume metrics - blocks with 30%+ volume contribution are typically stronger zones.
5. Entry Strategy: Wait for price to return to an order block, look for rejection signals (pin bars, engulfing patterns), then enter with stops below/above the block.
6. Adjust Lookback: Match the lookback period to your trading timeframe for optimal block visibility.
Color Themes
- Colored Mode: Distinct colors for bullish/bearish and internal/swing blocks
- Monochrome Mode: Professional grayscale palette for clean charts
Alert System
Comprehensive alerts for:
- Order block creation (internal/swing, bullish/bearish)
- Order block mitigation
- King Order Block events
Perfect for traders who follow Smart Money Concepts (SMC), institutional order flow, and supply/demand zones.
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice or trading recommendations. Past performance does not guarantee future results. Always conduct your own analysis, use proper risk management, and never risk more than you can afford to lose. Trading involves substantial risk of loss.
AI Market Open - Live Session Tracker (PDH/PDL/ONH/ONL)🤖 AI MARKET OPEN - LIVE SESSION TRACKER
A comprehensive real-time tracking system designed for intraday traders who trade the market open using previous day levels (PDH/PDL) and overnight session ranges (ONH/ONL). This indicator provides intelligent context and mitigation tracking to help you make informed trading decisions during the critical morning session.
═══════════════════════════════════════════════════════════════
📊 WHAT THIS INDICATOR DOES
This indicator automatically tracks and displays six critical price levels:
• PDH (Previous Day High) - Yesterday's regular session high (9:30 AM - 4:00 PM ET)
• PDL (Previous Day Low) - Yesterday's regular session low
• PDC (Previous Day Close) - Yesterday's 3:59 PM ET close price
• ONH (Overnight High) - Overnight session high (6:00 PM - 9:29 AM ET)
• ONL (Overnight Low) - Overnight session low
• 9:30 Open - The exact opening price at market open
It monitors whether each level has been "mitigated" (touched/tested) in real-time and provides AI-generated context about current market structure.
═══════════════════════════════════════════════════════════════
🎯 KEY FEATURES
✅ REAL-TIME MITIGATION TRACKING
• Live status updates showing ✅ (mitigated) or ⏳ (unmitigated) for each level
• Persistent tracking - once a level is touched, it stays marked
• Gap fill detection with 🌕 (filled) or 🌒 (open) status
✅ DYNAMIC CALCULATIONS
• Δ Open: Distance from 9:30 AM opening price to each level
• RT Δ: Real-time distance from current price to each level
• Automatic color coding (green for resistance, red for support)
✅ AI MARKET CONTEXT SUMMARY
The indicator generates intelligent commentary based on:
• Gap size classification (large/moderate/small)
• PDH/PDL mitigation status
• Current position within overnight range
• Directional bias and key levels to watch
✅ CUSTOMIZABLE DISPLAY
• Choose table position (9 locations available)
• Adjustable text size (tiny/small/normal/large)
• Custom colors for headers, summary text, and background
• Show/hide table with single toggle
✅ PROFESSIONAL LEVEL LINES
• Ray-style horizontal lines extending right
• Customizable line width (1-4)
• Three line styles: Solid, Dashed, Dotted
• Color-coded labels with exact price values
• Lines auto-update and reset each session
═══════════════════════════════════════════════════════════════
🔧 HOW IT WORKS
SESSION TRACKING
• Regular Session: 9:30 AM - 4:00 PM ET (for PDH/PDL calculation)
• Close Capture: 3:59 PM ET close becomes PDC
• Overnight Session: 6:00 PM - 9:29 AM ET (for ONH/ONL)
• Session Reset: 6:00 PM ET daily
MITIGATION LOGIC
A level is considered "mitigated" when price touches or crosses it:
• PDH mitigated: High >= PDH at any point after 6:00 PM previous day
• PDL mitigated: Low <= PDL at any point after 6:00 PM previous day
• ONH mitigated: High >= ONH after 9:30 AM open
• ONL mitigated: Low <= ONL after 9:30 AM open
• Gap filled: Price crosses PDC after gapping up or down
AI SUMMARY ALGORITHM
The indicator analyzes three key dimensions:
1. GAP CLASSIFICATION
• Large gap (>50 pts): Suggests gap-fill or extension scenarios
• Moderate gap (20-50 pts): Monitor overnight levels for direction
• Small gap (<20 pts): Range-bound expectation
2. PDH/PDL STATUS
• Both untested: Clean liquidity zones
• One mitigated: Remaining level becomes primary target
• Both mitigated: Expect range/balance trade
3. OVERNIGHT RANGE POSITION
• Top 25%: Bullish bias, watch PDH
• Mid-upper: Slight bull bias
• Mid-lower: Neutral
• Bottom 25%: Vulnerable to PDL sweep
═══════════════════════════════════════════════════════════════
📖 HOW TO USE
STEP 1: ADD TO CHART
• Apply to any intraday timeframe (1m, 5m, 15m recommended)
• Works on ES, NQ, YM, RTY, and other CME futures
• Can be used on stocks and forex (adjust session times accordingly)
STEP 2: SET YOUR TIMEZONE
• Default: America/New_York (Eastern Time)
• Also supports: Chicago, Los Angeles, Phoenix
• Ensure your chart timezone matches your selection
STEP 3: CUSTOMIZE APPEARANCE
• Position table where it doesn't block your chart action
• Adjust text size based on screen resolution
• Customize colors to match your chart theme
• Toggle line styles for visual preference
STEP 4: INTERPRET THE DATA
• Before market open (pre-9:30 AM): Review gap size and overnight levels
• At market open: Check which levels are closest to price
• During session: Monitor mitigation status and RT Δ values
• Read AI summary for contextual bias and key scenarios
STEP 5: APPLY TO YOUR STRATEGY
• Use unmitigated levels as potential targets
• Watch for reactions when price approaches key levels
• Gap-fill setups: Trade reversions when gap is open
• Breakout setups: Trade continuations when levels get mitigated
═══════════════════════════════════════════════════════════════
⚙️ INDICATOR SETTINGS
DISPLAY SETTINGS
• Timezone: Select your local market timezone
• Table Position: 9 locations (corners, edges, center)
• Text Size: tiny | small | normal | large
• Show Summary Table: Toggle on/off
COLOR CUSTOMIZATION
• Header Text Color: Default white
• AI Summary Color: Default aqua
• Background Color: Default semi-transparent black
• Border Color: Default blue
LINE CUSTOMIZATION (PDH)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default red with 40% transparency
LINE CUSTOMIZATION (PDL)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default green with 40% transparency
LINE CUSTOMIZATION (PDC)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default yellow with 60% transparency
LINE CUSTOMIZATION (ONH)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default orange with 50% transparency
LINE CUSTOMIZATION (ONL)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default blue with 50% transparency
LINE CUSTOMIZATION (9:30 Open)
• Line Width: 1-4 pixels
• Line Style: Solid | Dashed | Dotted
• Color: Default white with 50% transparency
═══════════════════════════════════════════════════════════════
💡 BEST PRACTICES
✓ Use on 1-minute or 5-minute charts for precise level tracking
✓ Combine with volume profile for confluence
✓ Wait for confirmation candles near key levels
✓ Pay attention to gap-fill probability (larger gaps more likely to fill)
✓ Use RT Δ values to gauge distance and set realistic targets
✓ Review AI summary each morning for bias and scenario planning
✓ Don't trade blindly - use levels as reference points, not mechanical signals
═══════════════════════════════════════════════════════════════
⚠️ IMPORTANT NOTES
• This indicator is designed for CME session times (futures markets)
• For stocks, session times may differ - adjust expectations accordingly
• Levels reset daily at 6:00 PM ET - no weekend carryover
• Mitigation tracking persists throughout the session
• The AI summary provides context, not trade signals
• Always use proper risk management
═══════════════════════════════════════════════════════════════
📌 IDEAL FOR
• Day traders focusing on market open
• Scalpers using previous day levels
• Session-based traders (Asia/London/NY)
• Traders who need automated level tracking
• Anyone trading overnight gaps and ranges
═══════════════════════════════════════════════════════════════
🔄 VERSION HISTORY
v1.0 - Initial Release
• Core tracking system for PDH/PDL/PDC/ONH/ONL/Open
• Real-time mitigation status
• AI context summary
• Fully customizable display and lines
• Multi-timezone support
═══════════════════════════════════════════════════════════════
📧 FEEDBACK & SUPPORT
If you find this indicator helpful, please:
• Leave a like 👍
• Add to favorites ⭐
• Share with fellow traders
• Comment with suggestions or questions
Happy trading! 📈
═══════════════════════════════════════════════════════════════
HMA vs Candle True CloudHMA vs Candle – Trend Cloud Indicator (Brief Note)
This indicator compares price (candle source) with a long-period Hull Moving Average (HMA) to identify trend direction, momentum shifts, and regime changes.
The HMA, being momentum-sensitive, reacts to changes in price speed, while price itself represents real-time market action.
A dynamic two-way cloud is drawn between price and HMA:
Green cloud when price is above HMA → bullish dominance and accumulation
Red cloud when price is below HMA → bearish control and distribution
The width of the cloud reflects the strength of momentum:
Narrow cloud → compression / consolidation
Expanding cloud → impulse move or trend acceleration
This setup is especially effective on short timeframes with long HMA periods, where it filters noise while preserving early trend signals.
Overall, the indicator acts as a visual trend-momentum framework, highlighting early warnings, trend confirmation, and exhaustion zones in a single view.
Scalping Acciones PRO (Entradas + TP + SL) leo
How to use it correctly
• Timeframe: 1m or 5m
• High-volume stocks (SPY, AAPL, TSLA, NVDA…)
• Take Profit (TP): VWAP or EMA 21
• Stop Loss (SL): low/high of the signal candle
⸻
If you want, in the next message I can:
• 🔧 add automatic Stop Loss and Take Profit
• 🚀 convert it into a strategy (Strategy Tester)
• 🎯 filter only strong reversals (fewer false signals)
My Price Curtain by @magasine - v20251217**My Price Curtain by @magasine - v20251217**
This is a highly visual and practical TradingView overlay indicator designed to help traders quickly assess price position relative to a reference average (either a dynamic Simple Moving Average or a user-defined fixed price, such as a personal average entry cost).
### Key Features & Value for Traders:
- **Dynamic Price Curtain Background**
The entire chart background is lightly tinted green when price is above the average, red when below, or gray when at parity. This instant color feedback provides an immediate sense of bullish/bearish bias without needing to interpret lines or oscillators.
- **Deviation Zones (Optional)**
When enabled, semi-transparent horizontal bands appear above (green) and below (red) the average price, sized according to a user-defined percentage deviation (default 5%). These zones act as visual "fair value" corridors, highlighting over-extension or potential mean-reversion areas.
- **Persistent Horizontal Reference Lines**
- Solid blue line: the current average price (SMA or fixed)
- Dotted lines: upper and lower deviation zone boundaries
- Thin trailing line (when using SMA): connects previous SMA values for smoother trend visualization
- **Real-Time Information Panel**
A clean table in the bottom-right corner displays:
- Current average price and type (SMA(length) or FIXED)
- Latest close price
- Percentage distance from the average
- Total candles above/below the average (with percentages)
- Current position status (ABOVE/BELOW/AT AVERAGE) with color-coded highlighting
- **Additional Visual Cues**
- Small triangle markers on crossovers/crossunders of the average price
- Floating label on the last bar showing the average and current % deviation
- **Optional Cross Alerts**
Configurable alerts fire when price crosses above or below the reference average, including price, average, and deviation details.
### Why Traders Love It:
- Perfect for position traders monitoring performance relative to their average cost
- Great for mean-reversion or range-bound strategies using the deviation zones
- Excellent contextual awareness tool on any timeframe or asset
- Clean, non-cluttered design that enhances rather than overwhelms price action
In short, My Price Curtain transforms a simple moving average into a powerful, intuitive "price sentiment dashboard" that delivers instant visual context and actionable information at a glance.
Donations: linktr.ee
ICT MTF FVG BPR Toolkit [D4A}The ICT MTF FVG BPR Toolkit encompasses the following 5 components:
- Fair Value Gaps - current timeframe
- Fair Value Gaps - higher timeframe
- BPR - Balanced Price Range
- Long Wicks - which are considered to be gaps by ICT
- Immediate Rebalance - it leaves no gaps, but is as important in assessing current workflow
This is advanced Fair Value Gaps script that uses trading methodology taught by ICT trader. To use it effectively it requires at least some basic knowledge of Smart Money Concepts (SMC) as outlined in ICT's lectures found on YT. I may publish another SMC related scripts in future if this kind of tool is useful to anybody.
The idea behind this work, is to have all the necessary tools related to Fair Value Gaps in one script that is easy to use (requires SMC knowledge), fully customizable and will keep the chart as clutter free as possible. Since, I could not find a ready-made script which would tick all my requirements, I created this new script, partially by borrowing some ideas and code from existing open source projects that I liked. Rather than re-inventing the wheel, I focused on adopting and improving existing solutions and have them work together in one tool that could present the information accurately and in a polished way, where the trader can customize almost everything. Full credit goes to other coders, who tackled this subject before me, but particularly to:
QuantVue
LuxAlgo
pmk07
The script have these unique features:
- Can present FVGs from up to 3 different timeframes at any given interval
- The amount and interval of higher timeframe FVGs is fully customizable
- FVGs can be displayed based on size
- Volume Imbalance can be included as part of FVG (as recommended by ICT)
- Higher timeframe FVGs can have quadrants displayed along with C.E. (based on ATR filter)
- Both current and higher timeframe FVGs can be displayed in different ways depending on price interactions
- BPR which works on current timeframe only
- Long Wick detection logic has been slightly changed from the original LuxAlgo code
- Immediate Rebalance code has been simplified and re-focused on clarity
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
MTF H4 Double Maru - All Historydouble marubozu level at h4 will appear at lower timeframe, use it wisely , take action after price already near or react with the level
FVG MTF Consensus OscillatorFVG MTF Consensus Oscillator
A multi-timeframe, multi-component oscillator that combines momentum, deviation, and slope analysis across multiple timeframes using Zeiierman's Chebyshev-filtered trend calculation. This indicator identifies potential turning points with zone-based signal classification and timeframe consensus filtering.
Backed by ML/Deep Learning evaluation on ES Futures data from 2015-2024.
🎯 Concept
Traditional oscillators suffer from two major weaknesses:
Single measurement - relying on one metric makes them susceptible to noise
Single timeframe - missing the bigger picture leads to fighting the trend
The FVG MTF Consensus Oscillator addresses both issues by combining three independent measurements across three timeframes into a weighted consensus signal.
The Three Components
Momentum - How fast is the trend moving?
Deviation - How far has price stretched from the trend?
Slope - What is the short-term directional bias?
The Three Timeframes
TF1 (Chart) - Your current chart timeframe (lowest weight)
TF2 (Medium) - Typically 1H or 4H (medium weight)
TF3 (High) - Typically 4H or Daily (highest weight)
By requiring agreement across multiple components AND multiple timeframes, the oscillator filters out noise while capturing meaningful, high-probability market movements.
🔧 How It Works
The Core: Chebyshev Type 1 Filter
At its heart, this indicator uses a Chebyshev Type 1 low-pass filter (inspired by Zeiierman's FVG Trend) to extract a clean trend line from price action. Unlike simple moving averages, the Chebyshev filter offers:
Sharper cutoff between trend and noise
Minimal lag for a given smoothness level
Controlled overshoot via the ripple parameter
Three Oscillator Components
1. Momentum Component
Momentum = Current Trend Value - Previous Trend Value
Measures the velocity of the trend. High positive values indicate strong upward acceleration, while high negative values show downward acceleration.
2. Deviation Component
Deviation = Close Price - Trend Value
Measures how far price has stretched away from the trend line. Useful for identifying overextended conditions and mean reversion opportunities.
3. Slope Component
Slope = Change in Trend over 3 bars
Captures the short-term directional bias of the trend itself, helping confirm trend changes.
Normalization & Component Consensus
Each component is individually normalized to a -100 to +100 scale using adaptive scaling. The oscillator output is a weighted average of all three components, allowing you to emphasize different aspects based on your trading style.
Multi-Timeframe Weighting
The final oscillator value combines all three timeframes using configurable weights:
Combined = (TF1 × Weight1 + TF2 × Weight2 + TF3 × Weight3) / Total Weight
Default weights (1, 2, 3) ensure higher timeframes have more influence, keeping you aligned with the dominant trend while timing entries on lower timeframes.
📊 Zone System
The oscillator uses a fuzzy zone system to classify market conditions:
ZoneRangeInterpretationSignal ColorNeutral-5 to +5No clear bias, avoid tradingGrayContinuation±5 to ±25Trend pullback, continuation setupsAquaDeep Swing±25 to ±50Extended move, stronger setupsGreenReversalBeyond ±50Extreme extension, reversal potentialOrange
When "Show Zone Background" is enabled, the background shading darkens as the oscillator moves into more extreme zones, providing instant visual feedback.
📈 Signal Interpretation
Turn Signals
The indicator plots triangular markers when the oscillator changes direction:
▲ Triangle Up (bottom): Oscillator turning up from a low
▼ Triangle Down (top): Oscillator turning down from a high
Signal Quality by Zone
Not all signals are equal. The signal color indicates which zone the turn occurred in:
ColorZoneProbabilityBest UseGrayNeutralLowAvoid or use very tight stopsAquaContinuationModerateTrend continuation entriesGreenDeep SwingHigherSwing trade entriesOrangeReversalHighestCounter-trend with caution
Timeframe Consensus Filter
Signals only fire when the required number of timeframes agree on direction. With default settings (TF Consensus = 2), at least 2 of 3 timeframes must be moving in the same direction for a signal to trigger.
This prevents:
Taking longs when higher timeframes are bearish
Taking shorts when higher timeframes are bullish
Whipsaws during timeframe disagreement
Trend Coloring
The combined oscillator line changes color based on trend direction:
Light purple (RGB 240, 174, 252): Majority of timeframes trending up
Dark purple (RGB 84, 19, 95): Majority of timeframes trending down
Info Table
When MTF is enabled, a table in the top-right corner displays:
Current oscillator values for each timeframe (TF1, TF2, TF3)
Combined value (CMB)
Color coding: Green = rising, Red = falling
⚙️ Settings Guide
Timeframe Settings
SettingDefaultDescriptionEnable Multi-TimeframeOnMaster switch for MTF functionalityTF1 (Chart)"" (current)First timeframe, typically your chart TFTF2 (Medium)60Second timeframe, typically 1HTF3 (High)240Third timeframe, typically 4HTF1/TF2/TF3 Weight1 / 2 / 3Influence of each TF on combined signal
Timeframe Tips:
Keep TF1 ≤ TF2 ≤ TF3 (ascending order)
For day trading: 5m / 15m / 1H
For swing trading: 1H / 4H / Daily
For position trading: 4H / Daily / Weekly
Display Settings
SettingDefaultDescriptionShow All TimeframesOffDisplay individual TF oscillator linesShow Combined LineOnDisplay the weighted combined oscillatorShow Zone BackgroundOffShade background based on current zone
Trend Filter Settings
SettingDefaultDescriptionTrend Ripple4.0Filter responsiveness (1-10). Higher = faster but more overshootTrend Cutoff0.1Cutoff frequency (0.01-0.5). Lower = smoother trendNormalization Length50Lookback for scaling. Longer = more stable
Component Weights
SettingDefaultDescriptionMomentum Weight1.0Emphasis on trend speedDeviation Weight1.0Emphasis on price stretch from trendSlope Weight1.0Emphasis on short-term trend direction
Component Tips:
For trend-following: Increase Momentum and Slope weights
For mean reversion: Increase Deviation weight
Set any weight to 0 to disable that component
Zone Thresholds
SettingDefaultDescriptionNeutral Zone5Inner boundary (±5 = neutral)Continuation Zone25Middle boundary for continuation setupsDeep Swing Zone50Outer boundary for reversal zone
Adjust based on instrument volatility. More volatile instruments may need wider zones.
Signal Filters
SettingDefaultDescriptionSignal Cooldown3Minimum bars between signalsMin Turn Size2.0Minimum oscillator change for valid turnTF Consensus Required2Minimum TFs agreeing for signal (1-3)
💡 Usage Examples
Example 1: Trend Continuation (Dip Buying)
Setup: Uptrend confirmed by higher timeframes
Check the info table - TF2 and TF3 should show green (rising)
Wait for TF1 to pull back, oscillator enters Continuation zone
Enter on Aqua ▲ signal (turn up with TF consensus)
Stop below recent swing low
Target: Previous high or next resistance
Why it works: You're buying a dip in an established uptrend with multi-timeframe confirmation.
Example 2: Deep Swing Entry
Setup: Extended move showing exhaustion
Oscillator reaches Deep Swing zone (±25 to ±50)
At least 2 TFs start showing the same direction
Enter on Green signal indicating momentum exhaustion
Use tighter stop as the move is already extended
Target: Return to Continuation zone or trend line
Why it works: Extended moves tend to mean-revert. The zone system identifies these opportunities.
Example 3: Reversal Setup (Advanced)
Setup: Extreme extension with diverging timeframes
Oscillator reaches Reversal zone (beyond ±50)
Watch for TF1 to turn while TF3 is still extended
Enter on Orange signal - this is counter-trend!
Use smaller position size and wider stops
Target: Return to Deep Swing or Continuation zone
Why it works: Extreme extensions eventually correct. The orange signal marks high-probability reversal points.
Example 4: Avoiding Bad Trades
What to avoid:
Gray signals in Neutral zone - No edge, random noise
Signals against TF3 direction - Fighting the dominant trend
Signals without TF consensus - Timeframe disagreement = choppy market
Multiple signals in quick succession - Let cooldown filter work
🔬 Multi-Timeframe Analysis Tips
Reading the Info Table
The info table shows real-time oscillator values:
| TF1 | TF2 | TF3 | CMB |
| 23.5 | 45.2 | 67.8 | 52.1 |
All green: Strong uptrend across all timeframes
All red: Strong downtrend across all timeframes
Mixed colors: Potential transition or consolidation
Timeframe Alignment States
TF1TF2TF3Interpretation↑↑↑Strong bull - look for long entries↓↓↓Strong bear - look for short entries↑↑↓Pullback in downtrend - caution on longs↓↓↑Pullback in uptrend - caution on shorts↑↓↑Choppy - reduce position size↓↑↓Choppy - reduce position size
The Power of Consensus
With TF Consensus = 2, signals only fire when 2+ timeframes agree. This single filter eliminates most whipsaws and keeps you aligned with the dominant trend.
For more conservative trading, set TF Consensus = 3 (all timeframes must agree).
⚠️ Important Notes
This indicator does not predict the future. It measures current market conditions and momentum across multiple timeframes.
Always use proper risk management. No indicator is 100% accurate.
Combine with price action. The oscillator works best when confirmed by support/resistance, candlestick patterns, or other confluence factors.
Respect the higher timeframe. When TF3 disagrees, trade smaller or sit out.
Zone signals are probabilistic. Orange (reversal) signals have higher probability but aren't guaranteed reversals.
Adjust settings per instrument. Default settings are optimized for ES Futures but may need tuning for other markets.
🧪 ML/Deep Learning Background
The default parameters and zone thresholds were evaluated using machine learning techniques on ES Futures data spanning 2015-2024. This included:
Optimization of component weights
Zone threshold calibration
Timeframe weight balancing
Signal filter tuning
While past performance doesn't guarantee future results, the parameters represent a data-driven starting point rather than arbitrary defaults.
🙏 Credits
This indicator is inspired by Zeiierman's Multitimeframe Fair Value Gap (FVG) indicator, specifically utilizing concepts from his Chebyshev Type 1 filter implementation for trend calculation.
Original indicator: Multitimeframe Fair Value Gap – FVG (Zeiierman)
📝 Changelog
v1.0
Initial release
Three-component consensus oscillator (Momentum, Deviation, Slope)
Multi-timeframe support with weighted combination
Fuzzy zone classification system
Configurable component and timeframe weights
TF consensus filter for signal quality
Signal cooldown and minimum turn size filters
Real-time info table with TF values
Optional zone background shading
Elev8+ Impulse Levels | Smart Support & ResistanceElev8+ Impulse Levels | Smart Support & Resistance
Ever notice price rejecting “empty” areas on the chart—like it remembered something that isn’t obvious?
That “something” is often Institutional Impulse : footprints left behind by large, aggressive moves that get defended again days or weeks later .
Elev8+ Impulse Levels automatically detects these moments and projects the most important prices forward so you can see the structure most traders miss.
— — —
🧠 How It Works (The Logic)
This is not a typical support/resistance tool. It does not hunt swing highs/lows.
It looks for Market Intent —the “Perfect Storm” when two conditions align:
Volume Spike — buying/selling pressure significantly exceeds average volume (multiplier-based).
Volatility Expansion — the candle body is unusually large relative to recent ATR.
When both occur, the script marks the event and treats the impulse close as a key “line in the sand” that can influence future reactions.
— — —
🎯 How to Use These Levels
The script includes a Smart Line behavior that changes level styling based on how price interacts with it—so you can quickly separate two core setups:
1) The Defense (Bounce)
Visual: 🟢 Solid line (Fresh / Untouched)
What it means: Price has not yet traded through or “invalidated” the level.
What to look for: First return to the level → rejection / bounce behavior.
Why it matters: Large players often defend prior entries; first tests can react sharply.
2) The Flip (Break & Retest)
Visual: ◌ Dotted line (Broken / Re-priced)
What it means: A candle has closed through the level.
What to look for: Price returns to the dotted level from the other side (“kiss”) → continuation.
Why it matters: Broken support can act as resistance (and vice versa), similar to a breaker concept.
— — —
✨ Key Features
Smart Visualization — levels automatically transition from solid → dotted when broken to reduce chart noise.
Impulse Candle Highlighting — see the exact candle that created the level (origin clarity).
Fully Customizable Sensitivity — tune volume + size thresholds for Crypto, Forex, Futures, or Stocks.
— — —
🚀 The Elev8+ Workflow
Think of Impulse Levels as your map : it shows where reactions are most likely.
For entry timing, pair it with Elev8+ Pro Reversal to confirm the moment price reacts at these high-value zones.
— — —
Disclaimer: Trading involves risk. This tool is for educational/technical analysis purposes only and does not guarantee future results.
TASC 2026.01 The Reversion Index█ OVERVIEW
This script implements the Reversion Index as presented by John F. Ehlers in the January 2026 edition of the TASC Traders' Tips , "Identifying Peaks And Valleys In Ranging Markets”. This indicator was created to provide timely buy and sell signals for mean reversion strategies.
█ CONCEPTS
Ehlers came up with the idea for the Reversion Index following the development of the "Continuation Index" (featured in the September 2025 edition). While the Continuation Index provides indications for trend onset, continuation, and exhaustion; the Reversion Index serves as its counterpart for mean-reversion trading.
The raw Reversion Index value is calculated as the net change in price normalized to the sum of the absolute value of change in price over the same period; for clarity, it is then smoothed using Ehlers' SuperSmoother.
The Smooth Reversion Index value is led by a "Trigger" line, which is created by smoothing the raw data to half the smoothing period of the smoothed index.
Note: Ehlers suggests the smoothing lengths be left at 8 and 4 (Reversion Index & Trigger). For this reason these lengths are hard-coded in the script but can be easily modified in the code.
█ USAGE
In order to identify peaks and valleys effectively, the "Length" should ideally be set to half of that of the expected cycle of the data. If the expected cycle of your trading data is 20 bars, a 10 bar length should be set.
Note: The Reversion Index is intended to identify peaks and valleys within a cycle, not over a large sample period. Ehlers suggests that this would create an estimation of trend, which is not the goal here.
Once the length is set, peaks and valleys are interpreted as the cross of the "Trigger" and "Smooth" lines.
Key Levels: Volume Profile POCProfessional Intraday Key Levels (CST)
This is a comprehensive, institutional-grade Pine Script indicator designed for intraday traders (Futures, Stocks, Options) operating in the Central Time Zone. It automatically plots the most significant support and resistance levels used by algorithms and professional desks.
1. Core Levels Monitored
Daily Levels: Previous Day High (PDH), Low (PDL), Open, Close, and the 50% Midpoint (Equilibrium).
Volume Profile POC: Unlike standard indicators that use a simple average, this calculates the Volume Weighted Average Price (VWAP) of the previous day to determine the true "Fair Value" or Point of Control. Plotted with a thicker, distinct purple line.
Weekly Magnets: Previous Week High (PWH) and Low (PWL), which often act as major targets for breakouts or reversals.
Pre-Market Data: Tracks the High and Low established between 03:00 AM – 08:30 AM CST.
Opening Range (OR): Automatically captures the High and Low of the first 60 minutes of the regular session (08:30 AM – 09:30 AM CST).
2. Smart Visualization Features
Anti-Overlap Labels: If two levels (e.g., Pre-Market High and Previous Day High) are within 0.02% of each other, the script automatically merges them into a single label (e.g., "PDH & Pre-Market High") to prevent chart clutter.
Source Tracing: Trace lines extend backward from the current price level to the exact candle where that High or Low was formed (for Pre-Market and Opening Range levels), giving you instant context on when the level was created.
Clean Readability: Labels are displayed in bold, solid text without price numbers, ensuring a clean chart that focuses on level identification rather than data overload.
3. Technical Precision
Time Zone Locked: Hardcoded to America/Chicago to ensure Pre-Market and Opening Range calculations remain accurate regardless of your local computer settings.
Non-Repainting: Daily and Weekly levels are locked using closed-candle data (lookahead_on), ensuring lines do not shift during the trading day.
Buffer Safe: Optimized drawing logic prevents historical buffer errors, even on lower timeframes (1m/5m).
4. Customization
Toggle Everything: Every single level has an individual "Show/Hide" checkbox in the settings.
Label Sizing: Adjustable text size (Tiny to Huge) and offset positioning.
Compact Mode: Option to switch between full names ("Previous Day High") and abbreviations ("PDH").
Buy / Sell Volume + % (Classic + Pressure)Buy / Sell Volume % (Classic + Pressure)
Overview
Buy / Sell Volume (Classic + Pressure) is a volume decomposition and dominance indicator designed to help traders understand how trading volume is distributed between buying and selling pressure on each candle.
Instead of treating volume as a single number, this indicator splits total volume into estimated Buy Volume and Sell Volume, visualizes them symmetrically, and summarizes dominance using a compact on-chart dashboard.
The indicator is intended as a context and confirmation tool, not a trade signal generator.
Core Concepts
1. Buy / Sell Volume Decomposition
The indicator estimates buying and selling activity based on the position of the close within the candle’s high–low range:
Closes near the high → more buying pressure
Closes near the low → more selling pressure
Middle closes → balanced activity
This provides a clear visual view of demand vs supply on every bar.
2. Dual Calculation Modes
🔹 Classic Mode (Default)
Uses pure candle-range logic
Buy Volume + Sell Volume = Total Volume (exact conservation)
No smoothing or directional bias
Values closely match traditional volume behavior
Best for:
Structural analysis
Accumulation / distribution studies
Comparing against raw volume
🔹 Pressure Mode
Introduces a directional bias:
Bullish candles slightly favor buy volume
Bearish candles slightly favor sell volume
Optional EMA smoothing reduces noise
Still volume-conserving (Buy + Sell = Total Volume)
Best for:
Identifying dominance
Trend continuation confirmation
Absorption vs initiative activity
Visual Elements
Volume Bars
Buy Volume plotted above zero
Sell Volume plotted below zero
Optional Total Volume Envelope for context
Color by Dominance
Bright colors when one side dominates
Faded colors when dominance is weak
Helps instantly identify:
Accumulation
Distribution
Absorption
Dashboard (Optional)
A compact dashboard displays:
Buy %
Sell %
Dominance State
BUY DOM
SELL DOM
BALANCED
The dashboard can be toggled ON/OFF and switched between Normal and Compact size to suit multi-pane layouts.
How to Use This Indicator
This indicator works best as a confirmation layer, not a standalone system.
Common Use Cases
Confirming breakouts or breakdowns
Spotting accumulation or distribution near key levels
Identifying absorption during consolidations
Filtering false price moves
Examples
Price rising + strong Buy % → constructive demand
Price rising + strong Sell % → possible distribution
Flat price + balanced volume → absorption / compression
What This Indicator Is NOT
❌ Not true order-flow or bid/ask data
❌ Not a buy/sell signal generator
❌ Not predictive on its own
All calculations are candle-based estimations, designed for context and insight, not execution timing.
Best Use
Works on all timeframes
Most reliable on liquid instruments
Especially useful when combined with:
Support / resistance
Trend structure
Market regime or breadth indicators
Summary
Buy / Sell Volume (Classic + Pressure) helps traders go beyond raw volume by visualizing who is in control of each candle, how strong that control is, and whether volume behavior supports price action.
Used correctly, it can significantly improve trade selectivity, confidence, and risk awareness.
10 DMA vs 20 DMA Professional Chart by hasan15 minutes chart for intraday bull and bear flag . this will gives you trend confirmation as well
Gold Smart Scalper AI V21. The "Red Zone" (News Management)
The strategy logic does not "know" when the Federal Reserve is speaking.
Rule: Disable the strategy or stop taking signals 15 minutes before and after high-impact news (CPI, NFP, FOMC).
Why: During these times, Gold can move $30 in seconds. Slippage will cause your $1.50 Stop Loss to execute much further away, leading to massive drawdown.
2. Session Selection
Gold "Scalping" requires high liquidity and tight spreads.
Discretionary Filter: Only trade during the London/New York overlap (13:00 – 17:00 UTC).
Avoid: The late Asian session or Sunday market open. Spreads often widen to $0.50–$1.00, meaning you are already down 30-50% of your Stop Loss the moment you enter.
3. Market "Mood" (Trend vs. Range)
Trend Context: If the 50 EMA (the White line) is completely flat, the market is in a "Bracket." In this state, EMA crossovers generate many false signals.
The Adjustment: Discretionary traders wait for the 50 EMA to show a clear slope (up or down) before trusting the 9/21 crossover signals.
ADX Trend IndicatorThe Average Directional Index (ADX) is commonly known in English as the "Trend Strength Indicator" or "ADX Trend Strength Indicator".It measures the strength of a trend (regardless of direction: up or down), not the direction itself. Traders often call it a "trending ADX" or simply "ADX for trend" when focusing on its role in identifying strong trending markets (typically when ADX > 25).Quick Overview in English:ADX > 25 — Strong trend (good for trend-following strategies).
ADX < 20 — Weak or no trend (ranging/sideways market; avoid trend trades).
It combines with +DI (positive directional indicator) and -DI (negative directional indicator) to also show trend direction.
AI PRE-MARKET PRO - True/Fake Gap Classification-Version 1.0## **AI PRE-MARKET PRO: QUICK START GUIDE**
This indicator classifies market gaps by comparing the **Current Price** to yesterday’s **High (PDH)**, **Low (PDL)**, and **Close (PDC)**.
### **1. GAP CLASSIFICATIONS**
* **🔥 TRUE GAPS (High Momentum)**
* **True Gap Up:** Price is above PDH. The market is in "Discovery Mode." High probability of trend continuation.
* **True Gap Down:** Price is below PDL. Significant bearish sentiment. High probability of further selling.
* **⚠️ FAKE GAPS (Mean Reversion)**
* **Fake Gap Up:** Above PDC but below PDH. Price is "trapped" in yesterday's value. Often reverts to the Close (PDC).
* **Fake Gap Down:** Below PDC but above PDL. Price is "trapped." Often bounces back toward the Close (PDC).
### **2. TRADING STRATEGY CHEAT SHEET**
| Scenario | Primary Play | Entry Logic |
| --- | --- | --- |
| **True Gap Up** | **Continuation** | Wait for a pullback to **PDH**; buy the hold. |
| **True Gap Down** | **Continuation** | Wait for a rally to **PDL**; short the rejection. |
| **Fake Gap Up** | **Fade/Range** | Short the rejection of **PDH** or **ONH**; target **PDC**. |
| **Fake Gap Down** | **Fade/Range** | Buy the bounce at **PDL** or **ONL**; target **PDC**. |
### **3. CRITICAL LEVELS ON YOUR CHART**
* **PDH / PDL:** The "Line in the Sand." Breaking these turns a Fake Gap into a True Gap.
* **ONH / ONL:** Overnight High/Low. These are your immediate support/resistance targets for the first 30 minutes of trading.
* **PDC:** Previous Day Close. The "Magnet." If the market doesn't trend, it usually returns here.
### **4. HOW TO READ THE AI TABLES**
* **Left Table:** Shows real-time distance (RT Δ) to key levels and whether they have been hit yet (**Mitigated**).
* **Bottom Tables:** Provide a probability-based "Game Plan" and specific execution rules (e.g., "Wait for 15-minute confirmation").
---
**Next Step:** Would you like me to show you how to set up an alert for when the price crosses the **PDH** or **PDL** to catch a True Gap breakout?
RSI Distribution [Kodexius]RSI Distribution is a statistics driven visualization companion for the classic RSI oscillator. In addition to plotting RSI itself, it continuously builds a rolling sample of recent RSI values and projects their distribution as a forward drawn histogram, so you can see where RSI has spent most of its time over the selected lookback window.
The indicator is designed to add context to oscillator readings. Instead of only treating RSI as a single point estimate that is either “high” or “low”, you can evaluate the current RSI level relative to its own recent history. This makes it easier to recognize when the market is operating inside a familiar regime, and when RSI is pushing into rarer tail conditions that tend to appear during momentum bursts, exhaustion, or volatility expansion.
To complement the histogram, the script can optionally overlay a Gaussian curve fitted to the sample mean and standard deviation. It also runs a Jarque Bera normality check, based on skewness and excess kurtosis, and surfaces the result both visually and in a compact dashboard. On the oscillator panel itself, RSI is presented with a clean gradient line and standard overbought and oversold references, with fills that become more visible when RSI meaningfully extends beyond key thresholds.
🔹 Features
1. Distribution Histogram of Recent RSI Values
The script stores the last N RSI values in an internal sample and uses that rolling window to compute a frequency distribution across a user selected number of bins. The histogram is drawn into the future by a configurable width in bars, which keeps it readable and prevents it from colliding with the active RSI plot. The result is a compact visual summary of where RSI clusters most often, whether it is spending more time near the center, or shifting toward higher or lower regimes.
2. Gaussian Overlay for Shape Intuition
If enabled, a fitted bell curve is drawn on top of the histogram using the sample mean and standard deviation. This overlay is not intended as a direct trading signal. Its purpose is to provide a fast visual comparator between the empirical RSI distribution and a theoretical normal shape. When the histogram diverges strongly from the curve, you can quickly spot skew, heavy tails, or regime changes that often occur when market structure or volatility conditions shift.
3. Jarque Bera Normality Check With Clear PASS/FAIL Feedback
The script computes skewness and excess kurtosis from the RSI sample, then forms the Jarque Bera statistic and compares it to a fixed 95% critical value. When the distribution is closer to normal under this test, the status is marked as PASS, otherwise it is marked as FAIL. This result is displayed in the dashboard and can also influence the histogram styling, giving immediate feedback about whether the recent RSI behavior resembles a bell shaped distribution or a more distorted, regime driven profile.
Jarque Bera is a goodness of fit test that evaluates whether a dataset looks consistent with a normal distribution by checking two shape properties: skewness (asymmetry) and kurtosis (tail heaviness, expressed here as excess kurtosis where a perfect normal has 0). Under the null hypothesis of normality, skewness should be near 0 and excess kurtosis should be near 0. The test combines deviations in both into a single statistic, which is then compared to a chi square threshold. A PASS in this script means the sample does not show strong evidence against normality at the chosen threshold, while a FAIL means the sample is meaningfully skewed, heavy tailed, or both. In practical trading terms, a FAIL often suggests RSI is behaving in a regime where extremes and asymmetry are more common, which is typical during strong trends, volatility expansions, or one sided market pressure. It is still a statistical diagnostic, not a prediction tool, and results can vary with lookback length and market conditions.
4. Integrated Stats Dashboard
A compact table in the top right summarizes key distribution moments and the normality result: Mean, StdDev, Skewness, Kurtosis, and the JB statistic with PASS/FAIL text. Skewness is color coded by sign to quickly distinguish right skew (more time at higher RSI) versus left skew (more time at lower RSI), which can be helpful when diagnosing trend bias and momentum persistence.
5. RSI Visual Quality and Context Zones
RSI is plotted with a gradient color scheme and standard overbought and oversold reference lines. The overbought and oversold areas are filled with a smart gradient so visual emphasis increases when RSI meaningfully extends beyond the 70 and 30 regions, improving readability without overwhelming the panel.
🔹 Calculations
This section summarizes the main calculations and transformations used internally.
1. RSI Series
RSI is computed from the selected source and length using the standard RSI function:
rsi_val = ta.rsi(rsi_src, rsi_len)
2. Rolling Sample Collection
A float array stores recent RSI values. Each bar appends the newest RSI, and if the array exceeds the configured lookback, the oldest value is removed. Conceptually:
rsi_history.push(rsi_val)
if rsi_history.size() > lookback
rsi_history.shift()
This maintains a fixed size window that represents the most recent RSI behavior.
3. Mean, Variance, and Standard Deviation
The script computes the sample mean across the array. Variance is computed as sample variance using (n - 1) in the denominator, and standard deviation is the square root of that variance. These values serve both the dashboard display and the Gaussian overlay parameters.
4. Skewness and Excess Kurtosis
Skewness is calculated from the standardized third central moment with a small sample correction. Kurtosis is computed as excess kurtosis (kurtosis minus 3), so the normal baseline is 0. These two metrics summarize asymmetry and tail heaviness, which are the core ingredients for the Jarque Bera statistic.
5. Jarque Bera Statistic and Decision Rule
Using skewness S and excess kurtosis K, the Jarque Bera statistic is computed as:
JB = (n / 6.0) * (S^2 + 0.25 * K^2)
Normality is flagged using a fixed critical value:
is_normal = JB < 5.991
This produces a simple PASS/FAIL classification suitable for fast chart interpretation.
6. Histogram Binning and Scaling
The RSI domain is treated as 0 to 100 and divided into a configurable number of bins. Bin size is:
bin_size = 100.0 / bins
Each RSI sample maps to a bin index via floor(rsi / bin_size), with clamping to ensure the index stays within valid bounds. The script counts occurrences per bin, tracks the maximum frequency, and normalizes each bar height by freq/max_freq so the histogram remains visually stable and comparable as the window updates.
7. Gaussian Curve Overlay (Optional)
The Gaussian overlay uses the normal probability density function with mu as the sample mean and sigma as the sample standard deviation:
normal_pdf(x) = (1 / (sigma * sqrt(2*pi))) * exp(-0.5 * ((x - mu)/sigma)^2)
For drawing, the script samples x across the histogram width, evaluates the PDF, and normalizes it relative to its peak so the curve fits within the same visual height scale as the histogram.
Hosoda ZHosoda’s Clouds is a trend-following strategy designed to trade only long positions in traditionally trending markets with a strong bullish bias: SPY(D); DJI (D); NDX (D); XAUUSD (D); Tesla (D, H4, H1); AAPL (D, H4, H1); GOOG (D, H4); META (D, H4); NVDA (D, H4); AMZN(D, H4).
Strategy Parameters
Initial Capital: $10,000 USD.
Position Size: Risks 10% of your equity per trade.
Commission: 0.1%
Indicators
The strategy combines two main technical tools:
A. Ichimoku Cloud This is the core of the strategy. It calculates the classic lines:
• Tenkan-sen (Fast Line): Average of the highest high and lowest low of the last 9 periods.
• Kijun-sen (Base Line): Average of the last 26 periods.
• Cloud (Senkou Span A and B): Projects future support/resistance.
B. EMA 500 (Trend Filter)
• A 500-period Exponential Moving Average is calculated.
• Function: Serves as a very long-term trend filter. If the price is above the EMA 500, the market is considered bullish in the long term.
Entry Rules
• Bullish Cross (Bull Cross): The fast line (Tenkan) crosses above the base line (Kijun). This is the classic Ichimoku entry signal.
• Trend Filter (Optional):
•If you check the "Enable EMA Filter" box in the options, the system will only buy if the closing price is above the EMA 500.
•If the box is unchecked, it will ignore the EMA and buy based solely on the Ichimoku cross.
Exit Rules
A. Stop Loss (Loss Protection) It is a dynamic Stop Loss based on market structure, not a fixed percentage.
• At the moment of entry, the code looks back 12 bars (configurable in sl_bars_back) and finds the lowest price (low).
• It places the Stop Loss at that minimum level.
• Visual: Draws a dotted red line on the chart showing where your Stop Loss is.
B. Technical Take Profit (Exit due to Weakness) Lets profits run until the trend shows weakness.
• Condition: Closes the trade if the Tenkan line crosses below the bottom of the Cloud .
• This means short-term momentum has been lost and the price has entered or crossed below the cloud.
Statistics Panel
In the top right corner, the code draws a table (Panel) that updates in real-time or at the end of Backtesting. It shows:
• Total P&L: Net profit or loss in dollars.
• Win Rate: Percentage of winning trades.
• Trades: Total number of trades executed.
Summary
1. The script waits for the blue line (Tenkan) to cross over the red line (Kijun).
2. It verifies if the price is above the orange line (EMA 500) (if the filter is active).
3. If so, it BUYS.
4. It immediately places a Stop Loss at the low of the last 12 candles (red dotted line).
5. It keeps the trade open until the Stop Loss is hit or until the Tenkan line drops below the Cloud.
Customizable Settings
• Whether to use the EMA filter or not.
• The EMA length (default is 500).
• The Ichimoku periods (9, 26, 52 are standard).
• How many bars to look back to set the Stop Loss.
iFVG ultimateUltimate ifvg strategy indictor, has 1hr/4hr high/low marker, Session high/low and 50% Daily range marker






















