Eagle Algo Pro : Trend & Reversal SystemOverview
Eagle Algo Pro is a comprehensive technical analysis system designed for scalping and short-term trading. It allows traders to identify high-momentum breakouts while simultaneously monitoring key structural reversal levels. By combining Trend Follow (Eagle) and Mean Reversion (S/R) logic into a single tool, this script eliminates the need for multiple indicators, offering a clean and actionable dashboard.
Concepts & Underlying Calculations
1. Dynamic Channel Breakout (Eagle Logic)
The core trend-following component utilizes a dynamic price channel mechanism, conceptually similar to localized Donchian Channels .
Calculation: The script tracks the highest high and lowest low over a user-defined lookback period (default 20).
Logic: A signal is generated when the price closes strictly outside this dynamic range. This signifies a volatility expansion and potential trend continuation, filtering out sideways noise.
2. Advanced Support & Resistance (Array-Based)
Unlike standard pivot indicators that vanish after a few bars, this script uses Pine Script's Array Library to manage memory.
Memory System: It identifies Pivot Highs and Lows and stores them in a memory array. These levels are projected forward as "Zones".
Filtering: The script calculates the "strength" of each zone based on the number of price rejections (wicks). It dynamically updates these zones and removes invalid ones, keeping the chart clean.
Reversal Confirmation: When price tests a stored Zone, the script checks for Rejection Wicks and RSI alignment (Overbought/Oversold) before suggesting a reversal.
3. Linear Regression Channel (RiViL)
To visualize the current market slope and deviation:
Math: It calculates the "Line of Best Fit" (Linear Regression) over 100 periods and plots Standard Deviation bands (2.0 deviation).
Usage: This helps traders visually confirm if the market is overextended relative to its statistical mean.
How to Use
For Trend Trading:
Look for the "CALL" or "PUT" text labels generated by the Eagle logic. These signals are most effective when the Linear Regression channel is sloping in the direction of the trade.
For Reversal Trading:
Watch for the colored Resistance (Red Zone) and Support (Green Zone) . A reversal signal is valid only if the price shows a rejection wick and RSI confirms the momentum shift.
Dashboard:
The on-screen panel provides real-time statistics on signal performance, distinguishing between Direct Wins and Martingale recovery sequences to help with risk management.
Originality & Value
This script justifies its Invite-Only status by implementing a custom Memory-Management System for Support & Resistance using arrays. Unlike public scripts that clutter charts with infinite lines, Eagle Algo Pro intelligently filters historical data to show only active, tested zones. This complex logic is protected to ensure the integrity of the algorithm.
Disclaimer
This tool is for educational and analytical purposes only. Past performance displayed on the dashboard does not guarantee future results. Traders should use proper risk management.
Göstergeler ve stratejiler
[SpaghettiForex] SFK - MACD Wave Divergences + Keltner x3SFK — MACD Wave Divergences (PRE + CONF) + Keltner x3 is a context indicator that highlights MACD histogram “wave” divergences on price, with two modes:
- PRE (Turning Point): earlier, faster markers inside the current wave (may be invalidated if the wave continues).
- CONF (Wave Peak): confirmed markers based on the true peak of each completed wave (typically more stable).
It also plots three Keltner Channel bands to provide volatility/extension context around the same areas.
This tool does not predict the market and it is not a guaranteed entry system. Divergences can fail. SFK is designed to help you spot potential momentum/structure mismatches and then decide what to do with your own process and risk management.
What it shows:
- PRE divergence markers (optional): triggered at the first histogram turning point inside a wave.
- CONF divergence markers (optional): triggered when a wave ends and its true peak is confirmed.
- Divergence lines connecting the two reference peaks (optional).
- Keltner Channels x3 (optional): EMA basis + ATR bands (1x / 1.5x / 2x).
________________________________________
Screenshots (examples):
Screenshot 1 — Overview (Keltner x3 + divergences)
A clean chart view showing Keltner Channels and a couple of divergence examples.
Use this to communicate what SFK looks like in normal use.
Screenshot 2 — PRE divergence (early turning point)
Example of a PRE divergence: earlier detection during the wave as the histogram turns.
PRE is faster but can be invalidated if the wave continues and a stronger peak forms.
Screenshot 3 — CONF divergence (wave peak confirmed)
Example of a CONF divergence: the signal is generated at wave end using the confirmed wave peak.
This mode is slower but generally more stable and easier to validate visually.
________________________________________
How it works (high level):
1. SFK computes the MACD histogram and splits it into “waves” based on histogram sign (positive vs negative).
2. For each wave, it tracks one peak per wave:
- Positive wave → maximum histogram value + corresponding price high.
- Negative wave → minimum histogram value + corresponding price low.
3. A divergence is detected when two peaks of the same colour meet classic conditions:
- Bearish: price makes a higher high while histogram peak is lower.
- Bullish: price makes a lower low while histogram peak is higher.
4. PRE uses an early turning point inside the current wave; CONF uses the confirmed peak when the wave ends.
Practical use (context, not entries):
- Use CONF for confirmed wave-peak divergences (fewer, more stable by design).
- Use PRE for early turning-point alerts (faster, may be invalidated as the wave develops).
- Use the Keltner bands to contextualise whether price is expanding/extended when a divergence appears.
ALERTS
Optional alerts are available for:
- PRE bearish / PRE bullish divergences.
- CONF bearish / CONF bullish divergences.
If “Alert On Bar Close Only” is enabled, alerts are evaluated only on confirmed bar close.
Important note:
SFK is a context indicator. It does not provide financial advice or performance guarantees. Divergences can appear in strong trends and still fail. Always apply appropriate risk management and confirmation rules from your own process.
Auto 1HR Level )Auto level 1 hr. pre market H/L opening print
Yes, the script updates automatically with price action. Here's how each level works:
Blue S/R Levels:
Updates in real-time during RTH (Regular Trading Hours)
New levels are created when your candle pattern rules are met
Old levels beyond your lookback period (1 days default, extends to 120days at extremes) are automatically removed
Broken levels are deleted when price closes through them
Red Premarket Levels:
Resets every new trading day
Tracks premarket high/low from 4:00 AM to 9:30 AM
Draws the levels when RTH starts at 9:30 AM
Green Opening Candle Level:
Resets every new trading day
Places level on the first RTH candle each day
So yes, as long as you have the indicator on your chart, it will continuously update with live price action - no manual refresh needed.
Farjeat RegressionThis indicator shows you price regressions for flawless entries, reacting before the price moves. Use it together Scalper Xtreme for great effectivity.
200 SMA from 1H timeframe &LabelPlots the 200-period Simple Moving Average (SMA) calculated strictly on the 1-hour timeframe, visible and accurate on any chart timeframe (1m, 5m, 15m, 4H, daily, etc.).
• The line appears “stepped” on lower timeframes (normal/expected for higher-TF data).
• Includes a clean, updating label on the right edge showing the current 1H 200 SMA value.
• Optional faint background tint highlights new 1H bars for easy visual reference.
Ideal for: Multi-timeframe analysis, trend filtering, support/resistance on intraday charts, or confirming the broader hourly trend while trading lower timeframes.
PDH & PDLDescription (Copy & Paste)
Overview This is a lightweight, optimized indicator that displays the Previous Day High (PDH) and Previous Day Low (PDL) on intraday charts.
These levels are critical reference points for day traders, acting as key liquidity pools where price often reacts. Whether you are trading Mean Reversion (fading the edges) or Momentum (breakouts), knowing exactly where yesterday's auction limits were is essential context.
Key Features
Historical Accuracy: Plots historical levels using step-line style, allowing you to backtest how price reacted to PDH/PDL in the past.
Zero Clutter (V2 Optimization): Unlike standard indicators that spam labels on every bar, this version uses efficient var label logic. It maintains a single label instance that stays pinned to the current price action, keeping your chart clean.
Multi-Timeframe Ready: Fetches Daily data correctly regardless of your intraday timeframe (1m, 5m, 15m, etc.).
Fully Customizable: Toggle history lines or current labels on/off and adjust colors/width to fit your theme.
How to Use
Context: Use these levels to determine market sentiment. Opening above PDH suggests bullish imbalance; opening inside the range suggests balance/chop.
Entry Triggers: Watch for "Rejection" (wicks) or "Acceptance" (strong closes) at these lines.
Breakout: Price closes firmly outside the level with volume.
Reversal: Price sweeps the level and immediately reclaims the range.
Settings
Show Historical Levels: Enable to see the levels for previous days (useful for backtesting).
Show Current Labels: Enable to see the price tags on the hard right edge.
Tokyo Protocol Session Pivots PDH & PDL Overlay Tokyo Protocol: Session-Anchored Structural Overlay
The Tokyo Protocol: Session PDH/PDL Overlay is a precision structural mapping tool designed for professional day traders. While most indicators use a standard "midnight" reset, this script allows you to Anchor your trading day to specific global liquidity cycles (Tokyo, London, or New York). It identifies the critical "battlefield" levels—PDH, PDL, and Institutional Pivots—relative to the session you are actually trading.
The "Why" Behind the Anchor
If you are trading the Tokyo Open, your "Daily" high and low shouldn't be defined by an arbitrary UTC reset. This script uses a Time-Shift Engine to recalculate the previous day's range based on your chosen session start. This provides a "True Session" perspective on where liquidity is resting.
Key Tactical Features
• Dynamic Session Anchoring: Choose from preset UTC anchors for Sydney, Tokyo, London, and NY, or set a Custom UTC anchor. This ensures your PDH/PDL levels align with actual market volume shifts.
• Institutional Global Pivots: Includes non-repainting Traditional Pivots () pulled from Daily OHLC data (). These levels remain fixed throughout the day, providing reliable targets and bounce zones that match standard institutional floor pivots.
• Zero-Lag PDH/PDL: Automatically identifies and extends the Previous Day High and Low. Unlike standard lines, these anchor to the exact timestamp the high/low occurred, providing a clear visual of the previous session's structural development.
• Non-Intrusive HUD: A clean table in the top-right corner confirms your current Anchor settings, ensuring you never trade on the wrong "time map."
The "Tokyo Protocol" Entry Method
This overlay is designed to be the "Location Filter" for the Tokyo Protocol Regime Engine:
1. Direction (Engine): The Regime Engine gives a "GO" signal for a Long.
2. Location (Overlay): Do not buy at market. Wait for the price to pull back to the Daily Pivot (P), PDL, or an S1/S2 level as defined by this overlay.
3. Execution: Look for a candle rejection/continuation from these structural "value zones."
Best Use Case
• Timeframe: Optimized for 5m and 15m.
• Markets: Any major forex pair, index, or commodity during session opens.
• Setup: Use this in tandem with the Tokyo Protocol Regime Engine to harmonize Direction and Location.
Access & Education
This is an Invite-only script. We believe in providing tools to traders who are committed to a mechanical, data-driven process.
To request access:
1. Subscribe to our YouTube channel: youtube.com/@ProtocolTrading
2. Follow our Live Session recordings to see how we use these levels to define 1.5:1 and 2:1 RR trades.
3. YouTube subscribers will get an invite
The Golden Pocket Master Tool: High-Probability Retracement ZoneThe Golden Pocket is one of the most powerful "hidden" zones in technical analysis. While many traders look at basic Fibonacci levels, the area between the 0.618 and 0.65 retracement levels is where the most reliable trend reversals happen.
This indicator automates the entire process, identifying significant market swings and projecting high-probability Entry, Target, and Stop Loss levels directly on your chart.
How It Works
Auto-Swing Detection: The script identifies major "Impulse Moves" (pumps or dumps) using dynamic Pivot Highs and Lows.
The Golden Pocket: It draws a highlighted "Gold Box" at the 0.618–0.65 Fibonacci zone. This is your high-probability area to Buy the Dip (in an uptrend) or Sell the Bounce (in a downtrend).
Smart Targets: Unlike standard Fibonacci tools that use random extensions, this script sets realistic targets based on recent market structure (Previous Swing Highs/Lows).
Key Features
📊 Real-Time Trade Dashboard: See your exact Entry Zone, Take Profit, and Stop Loss prices in a clean, top-right table.
⚖️ Risk/Reward Calculator: Automatically calculates the R/R ratio for the current setup so you only take the best trades.
🏷️ Dynamic Labels: Floating "LONG ZONE" or "SHORT ZONE" labels ensure you always know the current market bias.
🛑 Invalidation Line: Includes a red dotted line at the 0.786 Fibonacci level. If price closes past this, the trade setup is invalidated.
How to Trade the Play
For Longs: Wait for a Green Bias. Price should pull back into the Gold Box. Look for bullish candle confirmation and target the Blue Line.
For Shorts: Wait for a Red Bias. Price should bounce up into the Gold Box. Look for bearish rejection and target the Blue Line.
SMC MTFOverview
SMC MTF is a sophisticated technical analysis tool designed to bridge the gap between Higher Timeframe (HTF) institutional levels and Lower Timeframe (LTF) execution. Unlike standard indicators that simply plot zones, this engine utilizes a Smart Confluence Algorithm to identify high-probability areas where multiple timeframes align.
Built for precision traders, it automatically maps Fair Value Gaps (FVG) and Order Blocks (OB) from up to three different timeframes simultaneously, while keeping your chart clean through a dynamic "Calm Theme" system.
💎 Key Features
1. Multi-Timeframe Matrix
Monitor market structure across three distinct dimensions without switching charts:
HTF 1 (Primary): The anchor timeframe (e.g., 1H or 4H).
HTF 2 (Secondary): The strategic timeframe (e.g., 4H or Daily).
Current TF: The tactical timeframe (e.g., 5m or 15m).
2. ⚡ The Confluence Engine (The "Star" Signal)
The indicator's most powerful feature. When zones from different timeframes overlap (e.g., a 1H FVG intersects with a 15m FVG), the algorithm marks this confluence with a Star (★).
Why it matters: Confluence zones represent areas of "Timeframe Agreement," where institutional interest is significantly higher.
Signal: 1H FVG ★ means the zone is validated by multiple timeframes.
3. Smart Visual Hierarchy
Zones are visually coded to let you instantly recognize their origin without reading labels:
━━━ Solid Border: Primary HTF Levels (Strongest).
╌╌╌ Dashed Border: Secondary HTF Levels.
⋯⋯⋯ Dotted Border: Current Timeframe Levels.
4. Aesthetics & "Calm" Themes
Trading psychology is key. We've moved away from jarring neon colors to predefined "Calm Palettes" designed to reduce visual fatigue:
Midnight: Deep indigos and purples.
Ocean: Serene teals and blues.
Forest: Natural greens and browns.
Monochrome: Professional grayscale for distraction-free analysis.
🛠️ Technical Logic (Under The Hood)
To ensure reliability and performance, this script implements several advanced programming concepts:
Non-Repainting Architecture: Utilizes request.security with strict offset and lookahead_on confirmation. This ensures that HTF zones are only drawn once the HTF candle has fully closed, preventing the "disappearing zone" phenomenon common in inferior scripts.
Array-Based Zone Management: Uses dynamic arrays (array) to manage memory efficiently, automatically cleaning up old zones based on a proximity algorithm to maintain high performance.
Smart Mitigation Logic: Zones are monitored in real-time. Once price closes beyond a zone's limit (Method: checkMitigation), the zone is marked as broken or faded, giving you a clear history of market respect.
Optimized Resource Usage: consolidated security calls reduce script execution time by bundling OHLC, ATR, and Swing calculations into minimal requests.
🎯 How to Use (Best Practices)
1. The "Russian Doll" Strategy (Top-Down): Use the indicator to find "zones within zones".
Look for a Solid (HTF1) Zone.
Wait for price to approach it.
Entry Signal: Look for a Dotted (Current TF) zone forming inside or bouncing off the HTF zone. This is your trigger.
2. Trading the ★ (Star):
Setup: Identify a zone marked with a Star (★).
Context: This zone has double or triple confirmation.
Action: Place limit orders or aggressive entries at these levels with higher confidence, as they represent significant liquidity clusters.
3. Trend Continuation:
In a bullish trend, look for price to respect FVG▲ zones.
If a zone is broken and labeled invalid, wait for the next structure to form.
⚙️ Settings Guide
Target: MAIN section allows you to toggle specific timeframes.
Visuals: APPEARANCE lets you switch themes (Midnight, Ocean, etc.) instantly.
Filters: Use "Strong Quality" in FILTERS to show only the most significant displacement zones.
Advanced: Pro users can tweak Min Gap ATR to filter out insignificant noise.
Disclaimer: This tool is for educational purposes and technical analysis assistance. Always combine with your own risk management strategy.
The Tokyo ProtocolThe Tokyo Protocol: Multi-Pillar Market Regime Engine
The Tokyo Protocol is a high-performance trend-regime filter designed primarily for the 5-minute timeframe. Rather than providing lagging "Buy/Sell" signals, this script acts as a Mechanical Decision Engine. It synthesizes Price Action, Volatility-Adjusted Momentum, and Volume Flow to determine the "Path of Least Resistance."
How It Works
The script evaluates the market through four proprietary lenses to ensure you are only trading when the "environmental wind" is at your back:
Structural Bias (The Foundation): Uses Yesterday’s Floor Pivots with a tick-based buffer zone to establish the Daily Regime. It requires a confirmed "Regime Shift" (user-tunable) to prevent flickering in choppy markets.
Normalized Momentum (MACD Z-Score): Unlike standard MACD, this engine calculates the Standard Deviation of the MACD line. It identifies "UP_SEPARATED" (accelerating trends) versus "FLAT_HUGGING" (dangerous chop) using Z-score thresholds.
Volume Flow & Profile: Integrates OBV Slope analysis and a Mechanical Volume Profile to find High-Liquidity Support/Resistance nodes. It detects if a move is being fueled by "Smart Money" or if it is an "Exhaustion" move.
Divergence Hysteresis: A refined, pivot-based divergence engine (RSI & OBV) identifies "Real" vs. "False" price moves, preventing you from buying into a structural trap.
The "Action" Engine: Understanding "GO"
The most important feature of this script is the Action Table.
GO: This is NOT a "Buy Now" signal. It is an Environment Validation. It indicates that the structural bias, volume flow, and momentum are all synchronized. Use "GO" as a green light to execute your own specific entry triggers (flags, candle patterns, etc.) with higher probability.
WAIT: Indicates "Energy Loss" or "Regime Weakening." The trend may be intact, but the internal health of the move is deteriorating.
REVERSAL: Triggered when the price is still above/below the pivot, but internal metrics (RSI/MACD/OBV) have aligned aggressively against the current direction.
SKIP: No structural edge. Market is in a neutral squeeze.
Best Use Case
Timeframe: Optimized for 5m (Day Trading).
How to Enter: The "Primed" Strategy
IMPORTANT: This is not a "Market Order" indicator. A "GO" signal does not mean "Buy at Market." It means the market environment is primed for that direction for the remainder of the session.
The Entry Blueprint:
Wait for the Signal: The system identifies a LONG or SHORT bias and provides a GO status.
The Pullback: Once the "GO" appears, do not chase the price. Look for a pullback to a key structural level (Daily Pivot, Fibonacci retracement, or High-Liquidity Support).
The Continuation: Execute on the bounce/rejection from that level.
Targets: Optimized for 1.5:1 to 2:1 Reward-to-Risk ratios.
Timing Note: This engine is designed to be used after the first 15 minutes of a major market open (Tokyo, London, or New York). It uses the initial opening volatility to calibrate the regime and then capitalizes on the sustained momentum of the session.
The History: From AI to Pine Script
The Tokyo Protocol began as a manual process to remove the emotional "guesswork" of directional bias during the Asian Open. By using AI to review live market snapshots against parameters developed over years of trading, I found high accuracy but a "long-winded" workflow (manual calibration and constant snapshotting).
After building a deterministic engine and completing over 500 backtests, I realized the logic was robust enough to be fully automated. This Pine Script is the result of that transition—taking a high-level AI analysis workflow and hard-coding it into a responsive, real-time trading tool.
Backtest Insight
Data indicates that trades completed within the first hour of a signal often have a lower win rate than those that develop over 2+ hours. When you see a GO signal, remember that the session is primed for that direction over the course of the session. Be patient, wait for your levels, and let the trade develop.
Technical Pillars
Structural Bias: Daily Floor Pivots with a tick-based hysteresis buffer.
Momentum Z-Score: Normalizes MACD to distinguish between trend acceleration and "hugging" chop.
Volume Flow: Integrates OBV Slope and a Mechanical Volume Profile to find "Smart Money" nodes.
Divergence Engine: Refined RSI/OBV logic to filter out structural traps and exhaustion.
Action Table Glossary
GO: The environment is synchronized. Look for entries in the bias direction.
WAIT: Energy loss or regime weakening. Sit on your hands.
REVERSAL: Internal metrics have flipped against the regime. Watch for a trap.
SKIP: No structural edge. Neutral/Chop.
Role: Use as a "Parent Filter." If the Protocol says WAIT or SKIP, sit on your hands. If it says GO, look for entries in the indicated direction.
PDH(RTH)+PMH / PDL(RTH)+PML First Break + 3m EMA Retest + TPshows pre market levels, previous day levels, includes the 3min 9ema for the retest and a take profit indicator.
Volatility & Probability by Hour/DayVolatility & Probability by Hour/Day
Analyzes historical candle data to find statistically significant time-based patterns. Tracks green candle probability, volatility, and average returns broken down by hour (UTC), day of week, and their combinations.
What It Shows:
Hourly Table: P(Green), edge, volatility, and average return for each hour (00:00-23:00 UTC)
Day of Week Table: Same metrics aggregated by day (Sun-Sat)
Top Combinations: The 5 best bullish and 5 best bearish day+hour slots ranked by edge
Key Metrics:
P(Grn): Historical probability the candle closes green
Edge: Deviation from 50% (how tradeable the bias is)
Vol%: Average candle range as percentage of price
N: Sample size
Use Cases:
Identify optimal entry windows with statistical edge
Avoid low-edge, high-volatility periods (noise)
Find specific day+hour combinations with compounding edges
Time trades around recurring market patterns
Notes:
All times in UTC
Current period highlighted with ►
Best results on liquid assets with sufficient history
Edges are historical and not guaranteed to persist
Trt/ Grid&Grits Collab DTR VS. ATR DisplayDTR Vs. ATR Display Daily True Range Vs. Average True Range tells you how much a stock has moved in a day vs. how much it normally moves in a day. Its helpful to see if theres "room to go" or its overextended. Enjoy.
EMA Ribbon Trend LITEEMA Ribbon Trend LITE
A lightweight trend and structure indicator using EMA ribbons, SuperTrend, Bollinger Bands, and pivot levels to help identify market direction and potential entries.
Key Features
EMA Ribbons (Trend Structure):
White Ribbon (Fast, EMA 13): High, Close, Low
Slow Ribbon (EMA 89): High (yellow), Close (orange), Low (purple)
Market State Rules:
Flat / Choppy Market: Any overlap between the fast EMA ribbon and slow EMA ribbon → market considered neutral, avoid trading.
Trending / Potential Entry: All three EMA 13 lines fully above or below all three EMA 89 lines → trend separation detected. Table updates to BULLISH or BEARISH depending on direction.
Pivot Levels:
Highlight potential support and resistance points based on trend-aligned pivots
Green lines = bullish pivot lows (support)
Red lines = bearish pivot highs (resistance)
Can be combined with SuperTrend and Bollinger Band filters for stronger trade signals
Additional Tools:
SuperTrend Filter: Optional trend confirmation
Bollinger Band Filter: Optional volatility filter for pivots
Table Display:
Shows NEUTRAL, BULLISH, or BEARISH in the bottom-left corner for quick trend reference
How to Use Pivots in Real-Time:
Identify trend direction by watching EMA ribbons:
Ribbons fully separated → trend confirmed
Overlapping ribbons → flat/choppy market, avoid trading
Watch pivot levels for potential entries:
Green lines: bullish pivot lows → potential support, look for long entries
Red lines: bearish pivot highs → potential resistance, look for short entries
Use SuperTrend and Bollinger Band filters to strengthen signals:
Confirm trend alignment before taking trades
Only enter trades when pivots align with the trend and filters
Monitor how price reacts at pivot levels:
Break above a green pivot low in a bullish trend → continuation
Rejection at a red pivot high in a bearish trend → continuation of downtrend
Avoid trading when EMA ribbons overlap or pivots are ambiguous → market is indecisive
TL;DR:
Lightweight trend indicator using EMA ribbons, SuperTrend, Bollinger Bands, and pivot levels.
Trend: EMA 13 fully above/below EMA 89 = bullish/bearish, overlap = flat
Pivots: Green = bullish lows (support), Red = bearish highs (resistance)
Filters: SuperTrend & Bollinger Bands can confirm entries
Table: Shows NEUTRAL, BULLISH, or BEARISH for quick reference
Use EMA separation + pivot reactions for real-time trade decisions.
FX-CLINIC: Ultimate ICT Toolkit V1FX-CLINIC: Ultimate ICT Toolkit V1
ICT indicator contain multiple tools working powerful together
1- EXTRNAL STRUCTURE:
# Show EMSS,EBOS automatic
# Can control the length of the swing
# Can Change color type of the label and the line
2- INTERNAL STRUCTURE:
# Show IMSS,IBOS automatic
# Can control the length of the swing
# Can Change color type of the label and the line
3- LIQUIDITY LEVELS
# BSL,SSL
# Can control the strong of liquidity from 1-20
# Can Change color type of the label and the line
4- LIQUIDITY SWEEP:
# Can control the strong of liquidity from 1-20
# Can Change color type of the label and the line
5- FVG
# Automatic updated and deleted if break 100% by body candle
# Can Change color type of the label and the line
# Has 50% line and Can Change color type
6- ORDER BLOCK
# Automatic updated and deleted if break 100% by body candle
# Can Change color type of the label and the line
# Has 50% line and Can Change color type
Asia / London / Overlap / NY Sessions - Live + Futuresession markers to determine which session you're currently playing at
Historical Annual Avg Growth Lines + 1-Year ProjectionThis script creates an overlay indicator on your TradingView chart that visualizes the historical average annual growth rate of the selected instrument (e.g., TSLA) in a specific way. Here's a step-by-step summary of what it represents and how it works:
Overall Purpose
It calculates the average annual percentage gain (arithmetic mean) across the instrument's entire trading history, using non-overlapping periods of 252 trading days each (approximating one year, excluding weekends/holidays).
It then draws horizontal green lines on the chart for each complete "year" segment, showing a projected "fair value" price level for that year based on the overall average growth rate.
This helps you compare actual historical price action against what the price "would have been" if it had grown steadily at the stock's long-term average annual rate. Lines above actual prices suggest periods where growth exceeded the average (potentially overvalued in hindsight), while lines below suggest underperformance (potentially undervalued).
The calculation excludes the most recent incomplete year (any bars beyond the last full 252-day segment), ensuring only fully realized historical periods are used.
Key Calculations
Identifying Complete Years: It divides the chart's data from the first trading day (bar_index 0) into segments of exactly 252 bars each. For example:
Year 1: Bars 0 to 251
Year 2: Bars 252 to 503
And so on, up to the last full segment before the current bar.
If the total bars aren't a perfect multiple of 252, the partial current year is ignored.
Average Annual % Gain: For each complete year segment:
It computes the % gain as (end_price - start_price) / start_price.
Sums these % gains across all years and divides by the number of years to get the overall average (e.g., if TSLA averaged 42% per year historically, that's the value used).
Projected Price Lines: For each year segment:
Takes the starting price of that year.
Applies the overall average % gain to project a "target" end-of-year price: start_price * (1 + average_annual_gain).
Draws a horizontal line at that projected price level, spanning only the bars of that specific year (e.g., a flat green line covering 252 bars, positioned above or below the actual price action for visual comparison).
Visual Representation
Horizontal Lines: Each green line is flat and covers one historical year block on the chart. Earlier years (left side) will have lower projected prices (reflecting lower starting prices), while later years (right side) will have higher ones as the base price compounds over time—but each is independent and based on that year's start.
No Smoothing or Rolling: Unlike a moving average, these are static historical segments (non-overlapping), recalculated only on the last bar for efficiency.
Example on TSLA: Assuming TSLA's long-term average annual gain is ~42% (based on its history since 2010 IPO), the line for Year 1 would be at * 1.42, spanning the first 252 bars. Year 2 would start from the actual price at bar 252 and project * 1.42, and so on. If lines are consistently above actual prices in recent years, it might indicate recent growth slowing relative to historical averages.
Forward Projection (1 Year Out)
The script also extends a dashed orange horizontal line to the right of the current bar, projecting the price one year into the future based on the same historical average annual growth rate.
It starts from the end price of the last complete historical year as the base.
Applies the average % gain once more to estimate the "target" price after another 252 trading days (e.g., base_price * (1 + average_annual_gain)).
The line is dashed and orange for distinction, extending approximately 252 bars to the right (scroll or zoom right to view the full projection). This provides a visual guide for where the price "might" trend if growth continues at the historical average, helping with long-term investment planning like setting targets or assessing potential upside.
NQ Statistical MapperNQ Statistical Mapper
CRITICAL DISCLAIMER - READ FIRST
WARNING: THIS INDICATOR IS EXCLUSIVELY FOR NQ (NASDAQ-100 E-MINI FUTURES) ONLY
All statistics displayed in this indicator are HARD-CODED values derived from a comprehensive analysis of 12 years (2013-2025) of 1-minute NQ futures data. These statistics are calculated offline using Python and embedded directly into the indicator code.
These probabilities DO NOT apply to any instrument other than NQ
What This Indicator Does
The NQ Statistical Mapper is a data-driven trading tool that displays historical probability statistics for intraday NQ price behavior based on overnight session structure and opening positioning. Rather than generating signals, it provides context by showing:
Three trading sessions with visual boxes: Asia (8PM-2AM), London (2AM-8AM), and New York (8AM-4PM) Eastern Time
Key price levels with historical hit rate percentages showing the probability these levels are touched during the NY cash session (8AM-4PM)
Context-aware statistics that change based on current market conditions
Session range analysis showing whether Asia and London ranges are unusually large or small compared to recent history
Core Methodology and Statistical Foundation
Pattern Detection System
The indicator automatically detects one of four overnight session patterns based on how the London session (2AM-8AM) interacts with the Asia session (8PM-2AM):
London Engulfs Asia: London high is greater than Asia high AND London low is less than Asia low
Asia Engulfs London: Asia high is greater than or equal to London high AND Asia low is less than or equal to London low
London Partial Up: London high is greater than Asia high BUT London low is greater than or equal to Asia low (took out Asia high only)
London Partial Down: London low is less than Asia low BUT London high is less than or equal to Asia high (took out Asia low only)
Each pattern has distinct statistical characteristics that influence NY session behavior.
Conditional Probability Framework
The indicator uses a conditional probability approach where statistics adapt based on:
Primary Condition: Where does NY open (8:00 AM) relative to the London session midpoint?
"NY opens above London midpoint"
"NY opens below London midpoint"
This single condition dramatically changes the probabilities. For example:
When NY opens above London midpoint: 76.68% chance NY hits the London high before the London low during 8AM-4PM
When NY opens below London midpoint: 73.32% chance NY hits the London low before the London high during 8AM-4PM
Secondary Condition: The overnight pattern further refines these probabilities. Each combination of "NY position vs London midpoint" plus "overnight pattern" has unique hit rate statistics calculated from the 12-year dataset.
"Hit First" Statistics Explained
The table displays "Hit High First" and "Hit Low First" percentages. These answer the question: "During the NY cash session (8AM-4PM), if price eventually touches both the London high AND London low, which one does it touch FIRST?"
Example interpretation:
Hit High First: 76.68% means that in 76.68% of historical days with this setup, price touched the London high before touching the London low
Hit Low First: 22.48% means London low was touched first
The remaining approximately 1% represents days where neither level was hit during the NY session
This is fundamentally different from asking "will price go up or down" - it is about the sequence of range expansion during the NY session.
Displayed Levels and Their Meanings
Session Highs/Lows (Solid Lines)
These appear when each session completes and extend through the NY session:
Asia High/Low (Orange): The highest and lowest prices during 8PM-2AM EST
London High/Low (Blue): The highest and lowest prices during 2AM-8AM EST
Each level shows its hit rate percentage - the probability that NY session price (8AM-4PM) will touch that level, based on the current pattern and NY opening position.
Hourly Midpoint Levels (Dashed Gray Lines)
Three specific hourly levels with remarkably high hit rates:
7-8 AM Midpoint: Average of high and low during the 7-8 AM hour. Hit rates consistently above 93-94%, essentially sitting at the 8 AM open price (mean distance: -0.001%)
Midnight Open: The opening price at midnight EST. Hit rates vary from 62-87% depending on pattern and setup
2-3 AM Midpoint: Average of high and low during the 2-3 AM hour. Hit rates range from 67-92%
These levels are derived from mean-reversion behavior - price tends to revisit certain overnight reference points during the NY session.
Session Midpoints (Dotted Lines)
Optional display of Asia and London session midpoints. These lines terminate when their respective sessions end, providing additional reference levels for session positioning.
Statistics Table Breakdown
The table displays five sections of information:
1. SETUP Section
Shows whether "NY opens above/below London midpoint"
Displays the detected overnight pattern (1 of 4 types)
Sample size: Number of historical days matching this exact setup
Hit High First / Hit Low First: Directional bias percentages
2. HIT RATES (8AM-4PM) Section
Shows probability that each level gets touched at any point during the NY cash session:
7-8 AM Midpoint: Almost always touched (93-97% depending on pattern)
Midnight Open: Varies significantly (62-87%) based on whether the overnight pattern is aligned or contrary to NY's opening position
2-3 AM Midpoint: Strong hit rates (67-92%)
These are independent probabilities - they do not predict which is hit first, just whether each level gets visited.
3. ASIA RANGE Section
Real-time comparison of today's Asia session range versus recent history:
Sessions Captured: Shows how many sessions are in the rolling calculation (e.g., "18 / 50" = 18 sessions captured out of 50 requested). This alerts users if their chart history is insufficient
Current Range: Today's Asia high minus Asia low in points
Mean Range: Average range over the captured sessions
Percentile Rank: Where today's range falls in the distribution
80th percentile (red background): Unusually large range - top 20% of days
60-80th percentile (light gray): Above average
20-60th percentile (white): Normal range
Less than 20th percentile (light blue): Unusually small range - bottom 20% of days
4. LONDON RANGE Section
Identical structure to Asia Range section, analyzing the London session's range characteristics.
Why Percentile Rank Instead of Standard Deviation?
Intraday ranges exhibit right-skewed distributions with fat tails (volatility spikes create extreme outliers). Percentile rank is distribution-free and robust to these characteristics, providing more reliable identification of unusual ranges than z-scores or standard deviations.
How To Use This Indicator
For Context and Confluence
This is not a standalone trading system. The indicator provides statistical context to support other analysis:
Understanding Session Bias: If the table shows 76% probability of hitting the session high first, you know there is a statistical lean toward upside range expansion
Target Setting: If trading a breakout above the overnight high, knowing that Asia high gets hit 75% of the time helps assess target viability
Entry Timing: The 7-8 AM midpoint's 94% hit rate makes it an excellent re-entry or scaling level
Range Expansion Assessment: Percentile rankings help identify whether overnight sessions showed abnormal volatility, which may influence NY session behavior
Pattern-Specific Insights
London Partial Up plus NY Opens Below London Midpoint:
Midnight open hit rate jumps to 87.82% (strong mean reversion)
Suggests counter-trend reversal back toward overnight lows is likely
London Partial Down plus NY Opens Above London Midpoint:
Midnight open hit rate is 86.30%
Mirror pattern - reversion toward overnight highs
Asia Engulfs London Pattern:
Very high hit rates (85-98%) across all levels
Suggests consolidation/mean reversion during NY session rather than directional expansion
Typical Workflow
8:00 AM: Review the statistics table - which pattern occurred? Where did NY open relative to London midpoint?
Check Hit Rates: Note which levels have the highest probabilities of being touched
Assess Range Percentiles: Are Asia/London ranges unusually large or small? High percentiles may indicate already-extended ranges
Combine With Your Strategy: Use the statistics as confluence with your technical analysis, support/resistance, or order flow
Customization Options
Trading Sessions Settings
Session Visualization:
Toggle each session on/off independently
Customize colors for each session (New York, London, Asia)
Adjust background transparency using "Range Area Transparency" slider (0-100, default 90)
Show/hide session outlines with "Range Outline" checkbox
Each session has three customizable parameters on the same line:
Checkbox to enable/disable the session
Text field to rename the session label if desired
Color picker to select the session's display color
Hit Rate Levels Settings
Master Controls:
"Show Hit Rate Levels" - Master toggle to show or hide all level lines and labels
Individual Level Toggles:
"7-8 AM Midpoint" - Toggle the 7-8 AM hour midpoint level
"Midnight Open" - Toggle the midnight opening price level
"2-3 AM Midpoint" - Toggle the 2-3 AM hour midpoint level
Hourly Level Styling (applies to 7-8 AM Mid, Midnight, and 2-3 AM Mid):
"Hourly Level Color" - Color picker for all three hourly levels
"Hourly Level Line Width" - Thickness of hourly level lines (1-5, default 1)
"Hourly Level Line Style" - Choose between Solid, Dashed, or Dotted lines (default Dashed)
Session High/Low Styling (applies to Asia High/Low and London High/Low):
"Session High/Low Line Width" - Thickness of session extreme lines (1-5, default 1)
"Session High/Low Line Style" - Choose between Solid, Dashed, or Dotted lines (default Solid)
Additional Options:
"Show Session Midpoints" - Toggle display of Asia and London midpoint reference lines (dotted lines that end when each session completes)
"Label Text Size" - Size of percentage labels on all levels (tiny, small, normal, large, default small)
Table Settings
Statistics Table Controls:
"Show Statistics Table" - Master toggle to display or hide the entire statistics table
"Stats Table Position" - Choose from 9 positions on the chart:
Top: Top Left, Top Center, Top Right
Middle: Middle Left, Middle Center, Middle Right
Bottom: Bottom Left, Bottom Center, Bottom Right
"Stats Table Size" - Text size within the table (Auto, Tiny, Small, Normal, Large, Huge, default Small)
"Sessions for Stats Calculation" - Number of historical sessions to use for percentile calculations (5-100, default 50)
Lower values (20-30): More responsive to recent market conditions
Higher values (50-100): More stable baseline, requires more chart history
The table displays "Sessions Captured" to show how many sessions were actually available
Important Limitations and Considerations
1. This Is Historical Data, Not Prediction
The statistics show what happened in the past given similar setups. Markets evolve, regimes change, and past probability does not guarantee future outcomes. A 75% hit rate means that in 25% of historical cases, the level was NOT hit.
2. Chart History Requirements
TradingView imposes data limits:
5-minute chart: Approximately 10 days of history (enough for minimal statistics)
1-minute chart: Approximately 2-3 days of history (insufficient for percentile calculations)
Use 5-minute or higher timeframes to ensure adequate session capture
The table displays "Sessions Captured" (e.g., 18/50) to alert you when your chart history is limited.
3. Session Timing Is Fixed (EST)
All sessions use America/New_York timezone:
Asia: 8PM-2AM
London: 2AM-8AM
NY: 8AM-4PM
These times do not adjust for daylight saving changes in other regions. The definitions match CME NQ futures trading hours.
4. The Statistics Are From 2013-2025 Data
The 12-year analysis period includes:
Multiple market regimes (bull/bear/sideways)
Various volatility environments
QE, taper tantrums, COVID, 2022 bear market, 2023-2024 rally
However, it is still a limited sample. Future market structure changes (algorithmic trading evolution, regulatory changes, etc.) may alter these probabilities over time.
5. No Real-Time Calculation
This indicator does not recalculate statistics based on your chart's data. It displays pre-calculated probabilities. The only real-time calculations are:
Which pattern occurred today
Where NY opened relative to London midpoint
Current session ranges and their percentile ranks (based on your chart's recent history)
Statistical Methodology Details
Data Source
Instrument: NQ (Nasdaq-100 E-mini Futures) continuous contract
Timeframe: 1-minute bars
Period: January 2013 - January 2025 (12 years)
Sample Size: 3,132 trading days analyzed
Analysis Approach
Each trading day was classified by overnight pattern (4 types). NY opening position vs London midpoint was determined. For each combination (4 patterns times 2 positions equals 8 scenarios), the following was measured:
How often each level (session highs/lows, hourly midpoints) was touched during 8AM-4PM
Which session extreme (high or low) was hit first
Mean distance from 8 AM open to each level
Session ranges were measured for percentile analysis. All percentages were rounded to two decimal places for display.
Why These Specific Levels?
The levels were not chosen arbitrarily:
Session highs/lows: Natural support/resistance from overnight price discovery
7-8 AM midpoint: The final hour before NY open often establishes the opening range balance point
Midnight open: Represents the "true" start of the trading day (6PM-5PM structure)
2-3 AM midpoint: Captures early London price action balance
Testing showed these levels had the highest and most consistent hit rates across different patterns and setups.
Technical Implementation Notes
Language: Pine Script v5
Drawing Objects: Uses boxes for session visualization, lines for levels, labels for percentages, table for statistics
Performance: Optimized for real-time use with max limits set (500 boxes, 500 lines, 500 labels)
Calculations Per Bar:
Session detection (3 sessions)
Hourly detection (3 hourly periods)
Pattern classification
Conditional probability lookup
Percentile rank calculation (for session ranges)
All heavy statistical analysis was performed offline. The indicator only performs simple lookups and real-time range tracking.
Educational Value
Beyond trading application, this indicator demonstrates:
Conditional Probability: How market context (opening position, overnight structure) dramatically changes probabilities
Mean Reversion Dynamics: Why certain levels (7-8 AM midpoint, midnight) have such high revisit rates
Pattern Recognition: How overnight session relationships create different NY session behaviors
Distribution Analysis: Using percentile ranks instead of parametric statistics for skewed data
Understanding these concepts helps traders develop more sophisticated market models beyond simple "support and resistance."
Final Notes
This indicator is a tool for informed decision-making, not a crystal ball. It answers questions like:
"What typically happens in this setup?"
"How often does price revisit these levels?"
"Is this overnight range unusual?"
It does NOT answer:
"Should I buy or sell right now?"
"Where will price be at 4 PM?"
"What will happen tomorrow?"
Combine these statistics with proper risk management, sound trading strategy, and awareness that any individual day can deviate significantly from historical norms. The power of this indicator lies in providing objective, data-driven context to complement your analysis - not in replacing your judgment.
Farjeat Breakout HuntersThis indicator detects accumulation and distribution zones, as well as areas of highest trading volume, providing buy or sell signals upon breakouts. 85% effectiveness across all timeframes, all markets, and all trading sessions.
CRZTestBuildV2At market open, the indicator plots daily zones derived from the previous session's range and volatility, using statistically common extensions and reactions from similar prior days. These zones act as areas of interest where price commonly stalls, reverses, or accelerates, which makes them useful or HOD/LOD reference and structure trade entries.






















