Chart Patterns – [AlphaGroup.Live]
# 📈 Chart Patterns Indicator –
Stop guessing. This tool hunts down the **10 most powerful price action patterns** and prints them on your chart exactly where they happen — once. No spam. No noise.
### Patterns Detected:
- Ascending / Descending / Symmetrical Triangles
- Rising & Falling Wedges
- Bull & Bear Flags
- Bull & Bear Pennants
- Double Tops & Bottoms
- Head & Shoulders / Inverse Head & Shoulders
### Why Traders Use It:
- **Clean execution**: Labels appear once, exactly where the structure forms.
- **No clutter**: Lines are capped, anchored, and never stretch across your entire chart.
- **Control**: Adjustable lookback, label spacing, and style.
### How to Apply:
- Catch continuation setups before the breakout.
- Identify reversal structures before the crowd.
- Train your eyes to see what institutions use to move billions.
⚡ Want more?
Get **100 battle-tested trading strategies**:
👉 (alphagroup.live)
This isn’t theory. It’s structure recognition at scale. Use it — or keep drawing lines by hand and falling behind.
Educational
Comet C/2025 N1 (ATLAS) Ephemeris☄️ Ephemeris How-To: Plot JPL Horizons Data on TradingView (Educational)
Overview
This open-source Pine Script™ v6 indicator demonstrates how to bring external astronomical ephemeris into TradingView and plot it on a daily chart. Using Comet C/2025 N1 (ATLAS) as an example dataset, it shows the mechanics of structuring arrays, indexing by date, and drawing past and forward ( future projections ) values—strictly as an educational visualization of celestial motion.
Why This Approach
Data is generated from NASA JPL Horizons, a mission-grade, publicly available ephemeris service ( (ssd.jpl.nasa.gov)). On the daily timeframe, Horizons provides high-precision positions you can regenerate whenever solutions update—useful for educational accuracy in exploring orbital data.
What’s Plotted
- Geocentric ecliptic longitude (Earth-view)
- Heliocentric ecliptic longitude (Sun-centered)
- Declination (deg from celestial equator)
Features
- Simple arrays + date indexing (no per-row timestamps)
- Circles for historical/current bars; polylines to connect forward points, emphasizing future projections
- Toggle any series on/off via inputs
- Daily timeframe enforced (runtime error if not 1D)
- Optional table with zodiac conversion (AstroLib by BarefootJoey)
Data & Updates
The example arrays span 2025-07-01 (discovery date) → 2026-01-01. You can refresh them anytime from JPL Horizons (Observer: Geocentric; daily step; include ecliptic lon/lat and declination) and paste the new values into the script.
How we pulled the ephemeris from JPL Horizons (quick guide):
0) Open ssd.jpl.nasa.gov System
1. Ephemeris Type: Observer Table
2. Target Body: C/2025 N1 (ATLAS) (or any object you want)
3. Observer Location: Geocentric
4. Time Specification: set Start, Stop, Step = 1 day
5. Table Settings → Quantities:
* Astrometric RA & Dec
* Heliocentric ecliptic longitude & latitude
* Observer (geocentric) ecliptic longitude & latitude
6. Additional Table Settings:
* Calendar format: Gregorian
* Date/Time: calendar (UTC), Hours & Minutes (HH:MM)
* Angle format: Decimal degrees
* Refraction model: No refraction / airless
* Range units: Astronomical units (au)
7. Generate → Download results (CSV or text).
8. Use AI or a small script to parse columns (e.g., Obs ecliptic lon, Helio ecliptic lon, Declination) into arrays, then paste them into your Pine script.
Educational Note
This indicator’s goal is to show how to prepare and plot ephemeris—so you can adapt the method for other comets or celestial bodies, or swap in data from existing astro libraries, for learning about astronomical projections using JPL daily data.
Credits & License
- Ephemeris: Solar System Dynamics Group, Horizons On-Line Ephemeris System, 4800 Oak Grove Drive, Jet Propulsion Laboratory, Pasadena, CA 91109, USA.
- Zodiac conversion: AstroLib by BarefootJoey
- License: MIT
- For educational use only.
Alpha Chart Patterns [AlphaGroup.Live]What it does
Automatically detects classical patterns and draws clean, price-anchored annotations with a single, text-only label per pattern (no filled background). Each label includes the pattern name and bias (Bullish/Bearish). Uses confirmed pivots, so it’s non-repainting after confirmation.
Detected patterns:
Double Top / Double Bottom
Head & Shoulders / Inverse H&S
Triangles: Ascending, Descending, Symmetrical
How it works
The script builds swing structure from confirmed pivot highs/lows. Tolerance and minimum swing filters keep only meaningful structures. Triangle detection looks for falling highs / rising lows (or flat sides) within a configurable window. Drawings and labels are anchored to bar_index and the price scale so they follow candles when you pan/zoom.
Inputs
Pivot Left/Right Bars : pivot sensitivity (higher = stricter, fewer signals).
Level Tolerance (%) : how close “equal” highs/lows must be (double tops/bottoms, flat triangle sides).
Min Swing Size (%) : filters out tiny wiggles.
Triangles Window (bars) : max span used when validating triangles.
Max Lookback (bars) : limits how far back objects are drawn.
Label Offset (ATR) : vertical offset for labels to avoid covering price.
Draw Necklines / Borders : toggle helper lines.
Bullish/Bearish Text & Line Colors + Neutral Line Color : fully editable to match light/dark themes.
Alerts
One-shot alerts are provided for each pattern. After adding the script to your chart:
Create Alert → Condition: this script → choose the specific pattern event (e.g., “Ascending Triangle”). Alerts trigger once per newly labeled instance.
Tips
If drawings ever appear detached after manual scale changes, enable Pin to right scale in the script’s Style (or just toggle the indicator once).
For noisier markets/timeframes, increase Pivot Bars and/or Min Swing .
Combine with trend/volume for confirmation.
Non-repainting note
Patterns are confirmed using completed pivots (labels appear only after the swing completes), so past signals don’t repaint.
Known limitations
Classical pattern recognition is heuristic by nature. Structures can overlap, and triangle classifications may vary with tolerance choices. Tune inputs to your instrument/timeframe.
Open-source
Pine Script v6. Clone, tweak, and share improvements. Please credit “Alpha Chart Patterns” if you fork.
Change log
v1.0 — Initial release: DT/DB, H&S/Inverse, Asc/Desc/Sym triangles, editable colors, minimal labels, price-anchored drawings, one-shot alerts.
Parabolic SAR Trend Following - Black GUIA Parabolic SAR-based strategy that buys when the SAR dots are below the price and sells when they are above.
The strategy uses a black-themed GUI for better visibility.
You can customize the input parameters for the SAR calculation.
This strategy is effective for trending markets.
Always backtest the strategy before applying it to live trading.
Visit - for more such strategies.
Buy/sell EMA Crossover with 5 ema RibbonThe indicator has 2 indicators in 1, based all on customizable ema's. The main ema signal indicator is customizable for the length , at the ema crossover the indicator will plot the main (biggerarrow )buy or sell signal when the crossover happens and plot(smaller) directional arrows on all the following candles after the crossover, this helps with the visuals for the main trend. The 2nd indicator is a also customizable ema ribbon that will help in the trend direction.(ex: you can plot larger length ema's for better visual of the main on any timeframe. The indicator is designed for easy ema visuals with background trend color change, and color change on the main 2 ema crossover for easy detection of the price trend.
NQ FVG + MSS ChecklistThe NQ FVG + MSS Quick Checklist is a visual trading HUD for Nasdaq 100 (NQ) futures. It helps traders quickly track key setup elements: session & previous day levels, 5M FVG, retests, 1M MSS, and 1M FVG inside MSS.
Each step can be manually ticked, and a Trade Score shows setup strength at a glance. The checklist table sits on top of all chart elements for easy reference without interfering with your analysis.
Features:
Step-by-step NQ trading checklist
Manual inputs with visual ✅/❌
Trade Score for quick setup confirmation
Table overlay always on top of the chart
PanelWithGrid v1.7PanelWithGrid v1.7 - Advanced Multi-Timeframe Grid and Panel Indicator
DESCRIPTION:
PanelWithGrid v1.7 is a comprehensive tool for traders who want to monitor multiple timeframes simultaneously while operating based on a customizable price grid. This indicator combines two essential functionalities in a single script:
🎯 MAIN FEATURES:
✅ CUSTOMIZABLE GRID SYSTEM
Configurable timeframe for the grid base (1M to Monthly)
Selection of the reference candlestick level (0 = current, 1 = previous, etc.)
NEW: Custom price as the grid base
Adjustable distance between lines in points
Colored lines (red = base, blue = above, gold = below)
Informative label with the base value
✅ COMPLETE MULTI-TIMEFRAME DASHBOARD
Monitoring of 11 timeframes: 1M, 5M, 15M, 30M, 1H, 2H, 3H, 4H, 6H, 12H, and 1D
Real-time data: open, close, difference, and candlestick type
Countdown to close Each candle
Intuitive colors (green for bullish, red for bearish)
✅ CONFLUENCE SYSTEM
Visual and audio alerts for bullish/bearish confluence on all timeframes
Special confluence analysis for 1H candles after 30 minutes of formation
Buy/sell arrows on the chart for clear signals
⚙️ MAIN SETTINGS:
Grid Settings:
Timeframe for Grid: Select the period for the baseline
Candle Level: 0 (current candle), 1 (last candle), etc.
Grid Distance: Distance between lines in points
NEW: Use Custom Price - Enables manual price as a base
Custom Close Price - Sets the manual value for the grid
🎨 VISUAL:
Grid with lines extended to the right
Panel positioned in the upper left corner
Colors organized for easy interpretation
Informative labels directly on the chart
🔔 ADVANCED FEATURES:
Alerts configured for confluences
Optimized for performance
Real-time updates
Compatible with all pairs and markets
PERFECT FOR:
Scalpers and day traders
Level-based trading
Multiple timeframe analysis
Reversal and breakout strategies
UPDATE v1.7:
Added custom price option for the grid
Improved line stability
Performance optimization
Bug fixes minors
INSTRUCTIONS FOR USE:
Apply the indicator to the chart
Set the desired timeframe and level for the grid
Adjust the distance between lines according to your strategy
Use the custom price if you want a specific basis
Monitor the dashboard to see the convergence between timeframes
Trade based on the identified confluences
BSL/SSL 8:00–9:30 ET (Daily Reset)AlexCShow you the buyside and sellside liquidity that create between 8AM EST and 9:30 AM EST
Stoch TraderSimple example strategy that has greater than 60% win rate on 1m, 3m, and 5m views. Using something as simple as this with leverage can produce decent returns within 15-30min. It's also very easy to lose money doing this.
Reversal Triggers + 200 EMA + Prior D1 + Bias TableKeep it simple stupid.
D1 bias
H1 bias
H1 ORB (momentum)
NQ FVG + MSS ChecklistThe NQ FVG + MSS Quick Checklist is a simple yet powerful visual tool for traders focusing on the Nasdaq 100 (NQ) futures. It provides a step-by-step checklist to assess trade setups based on key market concepts like Fair Value Gaps (FVG), Market Structure Shifts (MSS), session highs/lows, and previous day levels.
This indicator helps you quickly see which elements of your trading plan are met before entering a trade. Each checklist item can be manually toggled, and a cumulative Trade Score provides a quick visual guide to setup strength.
Key Features:
Step-by-step checklist for NQ trading setups
Track levels: Session highs/lows & Previous Day High/Low
Spot 5M FVG and Retests
Identify MSS on 1M and find 1M FVG inside MSS
Manual SL & TP guidance
Trade Score for quick setup strength assessment
Fully visible table overlay on top of the chart
How to Use:
Mark session & previous day levels
Observe reaction at key levels (Sweep or Continue)
Identify 5M FVG and any retests
Spot 1M MSS and 1M FVG inside MSS
Set SL/TP based on FVG extremes and next session levels
Check the cumulative Trade Score for setup confirmation
Note: This indicator is manual input-based, letting traders tick off items as they analyze the chart, making it a lightweight trading checklist HUD that stays on top of all chart elements.
Market Sessions & Daily Range ProThis tool is designed for market visualization. It displays the real trading sessions (Asia, Europe, and America) together with the daily range (00:00–24:00). Boxes and labels show daily highs, lows, open/close levels, and current extremes. The purpose is to provide traders with a clear visual map of how price behaves across sessions and within the daily structure.
Relative Strength (Daily) V2Relative Strength (Daily) V2 With BTC, Stock
Thanks ChatGPT5 for finish and upgrade
Rolling Correlation BTC vs Hedge AssetsRolling Correlation BTC vs Hedge Assets
Overview
This indicator calculates and plots the rolling correlation between Bitcoin (BTC) returns and several key hedge assets:
• XAUUSD (Gold)
• EURUSD (proxy for DXY, U.S. Dollar Index)
• VIX (Volatility Index)
• TLT (20y U.S. Treasury Bonds ETF)
By monitoring these dynamic correlations, traders can identify whether BTC is moving in sync with risk assets or decoupling as a hedge, and adjust their trading strategy accordingly.
How it works
1. Computes returns for BTC and each asset using percentage change.
2. Uses the rolling correlation function (ta.correlation) over a configurable window length (default = 12 bars).
3. Plots each correlation as a separate colored line (Gold = Yellow, EURUSD = Blue, VIX = Red, TLT = Green).
4. Adds threshold levels at +0.3 and -0.3 to help classify correlation regimes.
How to use it
• High positive correlation (> +0.3): BTC is moving together with the asset (risk-on behavior).
• Near zero (-0.3 to +0.3): BTC is showing little to no correlation — neutral/independent moves.
• Negative correlation (< -0.3): BTC is moving in the opposite direction — potential hedge opportunity.
Practical strategies:
• Watch BTC vs VIX: a spike in volatility (VIX ↑) usually coincides with BTC selling pressure.
• Track BTC vs EURUSD: stronger USD often puts downside pressure on BTC.
• Observe BTC vs Gold: during “flight to safety” events, gold rises while BTC weakens.
• Monitor BTC vs TLT: rising yields (falling TLT) often align with BTC weakness.
Inputs
• Window Length (bars): Number of bars used to calculate rolling correlations (default = 12).
• Comparison Timeframe: Default = 5m. Can be changed to align with your intraday or swing trading style.
Notes
• Works best on intraday charts (1m, 5m, 15m) for scalping and short-term setups.
• Use correlations as context, not standalone signals — combine with volume, VWAP, and price action.
• Correlations are dynamic; they can switch regimes quickly during macro events (CPI, NFP, FOMC).
This tool is designed for traders who want to manage risk exposure by monitoring whether BTC is behaving as a risk-on asset or hedge, and to exploit opportunities during decoupling phases.
Custom Support & Resistance Levels (Manual Input)This indicator lets you plot your own support levels (and can be extended for resistance) directly on the chart by entering them as comma-separated values.
📌 Supports manual input for multiple price levels.
📊 Lines are extended across the chart for clear visualization.
🎨 Dynamic coloring:
Green if the current price is above the level.
Red if the current price is below the level.
🧹 Old lines are automatically cleared to avoid clutter.
This tool is ideal if you:
Prefer to mark your own key zones instead of relying only on auto-detected levels.
Want clean and simple visualization of critical price areas.
👉 Coming soon: Resistance levels input (commented in the code, can be enabled).
Kitti-Playbook ATR Study R0
Date : Aug 22 2025
Kitti-Playbook ATR Study R0
This is used to study the operation of the ATR Trailing Stop on the Long side, starting from the calculation of True Range.
1) Studying True Range Calculation
1.1) Specify the Bar graph you want to analyze for True Range.
Enable "Show Selected Price Bar" to locate the desired bar.
1.2) Enable/disable "Display True Range" in the Settings.
True Range is calculated as:
TR = Max (|H - L|, |H - Cp|, |Cp - L|)
• Show True Range:
Each color on the bar represents the maximum range value selected:
◦ |H - L| = Green
◦ |H - Cp| = Yellow
◦ |Cp - L| = Blue
• Show True Range on Selected Price Bar:
An arrow points to the range, and its color represents the maximum value chosen:
◦ |H - L| = Green
◦ |H - Cp| = Yellow
◦ |Cp - L| = Blue
• Show True Range Information Table:
Displays the actual values of |H - L|, |H - Cp|, and |Cp - L| from the selected bar.
2) Studying Average True Range (ATR)
2.1) Set the ATR Length in Settings.
Default value: ATR Length = 14
2.2) Enable/disable "Display Average True Range (RMA)" in Settings:
• Show ATR
• Show ATR Length from Selected Price Bar
(An arrow will point backward equal to the ATR Length)
3) Studying ATR Trailing
3.1) Set the ATR Multiplier in Settings.
Default value: ATR Multiply = 3
3.2) Enable/disable "Display ATR Trailing" in Settings:
• Show High Line
• Show ATR Bands
• Show ATR Trailing
4) Studying ATR Trailing Exit
(Occurs when the Close price crosses below the ATR Trailing line)
Enable/disable "Display ATR Trailing" in Settings:
• Show Close Line
• Show Exit Points
(Exit points are marked by an orange diamond symbol above the price bar)
High Time Frame Candles [TakingProphets]High Time Frame Candles
Stay aligned with institutional context by visualizing higher timeframe (HTF) candles directly on your lower timeframe chart. This tool combines HTF structure, SMT divergence detection, and real-time projections of Open, High, Low, and Close levels — all in a clean, customizable package.
What It Does
🟩 Plots HTF Candles — See up to 10 higher timeframe candles rendered on your chart, offset to the right for a clutter-free view.
⏱️ HTF Close Timer — Know exactly when the current HTF candle is about to close.
🔀 SMT Divergence Detection — Automatically highlights bearish or bullish SMT setups by comparing your chart against a correlated instrument (default: CME_MINI:ES1!).
📊 Real-Time Projections — Projects the current HTF candle’s Open, High, Low, and Close levels forward, with optional price labels for precision trading.
Key Features
🎛 Configurable Candle Rendering
Adjustable width, transparency, offsets, colors, and label sizes.
Choose any HTF — from 1 minute to 1 month.
🕒 Custom Time Labels
Displays HH:MM timestamps for intraday or dates for higher frames.
Supports both 12-hour and 24-hour formats.
🔍 Smart Money Divergence (SMT)
Detects historical and real-time SMT setups automatically.
Optional labels, fully customizable colors, line styles, and widths.
Comes with built-in alert conditions for instant notifications.
📈 HTF Candle Projections
Draws Open, High, Low, and Close levels from the start of the current HTF period.
Labels price points with customizable sizes, colors, and styles.
Inputs Overview
Timeframe Settings → Select the HTF for plotting.
Display Settings → Number of candles, offset, width, transparency, time labels, and size.
Visual Settings → Custom bullish/bearish colors, borders, and wick styles.
SMT Settings → Enable SMT, choose correlated asset, tweak colors, lines, and alerts.
Projection Settings → Toggle Open/High/Low/Close projections, customize line styles, widths, and labels.
Alerts 🔔
Built-in alerts let you stay ahead of SMT divergence in real-time:
Bullish SMT → Divergence detected between main and correlated asset lows.
Bearish SMT → Divergence detected between main and correlated asset highs.
Bullish Real-Time SMT → Live SMT divergence forming.
Bearish Real-Time SMT → Live SMT divergence forming.
Pro Tips
⚡ Best used on lower timeframe charts to see HTF structure while trading intraday setups.
🎯 Keep displayed candles limited (e.g., 3–6) for cleaner visuals and better performance.
🔗 Ensure your correlated SMT symbol has real-time data access on TradingView for accurate comparisons.
NPM Trend Indicator ProNPM Trend Indicator Pro
The NPM Trend Indicator Pro is a closed-source, professional-grade trend detection tool designed to help traders identify high-probability directional moves in the market. It combines multiple technical factors to generate clear, actionable trend signals while filtering out noise and reducing false entries.
What it does
Displays trend direction (uptrend, downtrend, or neutral) for the selected symbol.
Shows a confidence or strength score to indicate how reliable the trend signal is.
Highlights potential areas of market exhaustion or reversal based on aggregated trend analysis.
Provides visual cues on the chart to assist with trade timing and risk management.
How it works (concept-level)
Integrates multiple trend-detection methods, including moving average structures, momentum confirmation, and volatility assessment.
Uses adaptive filters to avoid false signals during sideways or choppy market conditions.
Includes zone awareness to help traders avoid entering trades too close to likely reaction points.
Aggregates all signals into a single output to give traders a concise, actionable overview.
How to use it
1. Apply the indicator to your chosen symbol.
2. Observe the trend direction and confidence score displayed on the chart.
3. Confirm that the trend aligns with your trading strategy and timeframe.
4. Use the visual cues for potential entry, exit, and risk management decisions.
Alerts
Optionally set alerts when trend direction changes or when the confidence score reaches a user-defined threshold.
Notes
Suitable for multiple markets, including forex, indices, crypto, and equities.
Can be used for intraday scalping, swing trading, or longer-term trend analysis depending on the trader’s selected timeframe.
⚠️ Disclaimer: This script is for educational purposes only and is not financial advice. Trading involves risk, and you can lose money. Always test strategies on a demo account and use proper risk management.
NPM Rsi DivergenceNPM RSI Divergence Indicator
The NPM RSI Divergence Indicator is a closed-source tool designed to help traders identify potential reversals and high-probability trade setups using divergence between price action and the Relative Strength Index (RSI). It highlights areas where momentum is weakening or strengthening, giving traders early signals of potential trend changes.
What it does
Detects divergences between RSI and price movement, indicating potential trend reversals or continuation.
Shows the strength or reliability of each divergence signal to help traders gauge probability.
Plots visual markers directly on the chart for easier recognition of potential setups.
Helps traders spot early exhaustion points in trends before price reverses or continues strongly.
How it works (concept-level)
Compares price highs/lows with RSI highs/lows to detect hidden or regular divergences.
Applies adaptive filtering to reduce false signals in choppy or low-volatility markets.
Aggregates divergence signals into clear visual markers and strength indicators.
Incorporates momentum context to highlight divergences that are more likely to produce actionable moves.
How to use it
1. Apply the indicator to your chosen symbol and timeframe.
2. Observe divergence markers and their strength indicators on the chart.
3. Confirm potential trade opportunities by considering trend direction and market context.
4. Use divergence signals to assist with trade entry, exit, or risk management decisions.
Alerts
Optionally set alerts when divergence signals appear or when the strength indicator exceeds a user-defined threshold.
Notes
Suitable for multiple markets, including forex, indices, crypto, and equities.
Can be used on intraday or swing trading timeframes depending on your trading strategy.
⚠️ Disclaimer: This script is for educational purposes only and is not financial advice. Trading involves risk, and you can lose money. Always test strategies on a demo account and practice proper risk management.
NPM Trend Dashboard NPM Trend Dashboard
The NPM Trend Dashboard is a closed-source tool designed to help traders quickly assess market conditions and make informed decisions. It combines trend detection, momentum, and volatility awareness into a clear interface, showing the current trend direction and strength for selected symbols.
What it does
Displays trend direction (uptrend, downtrend, or neutral) for each selected symbol.
Shows a confidence score or strength indicator to help gauge reliability.
Highlights potential areas of market exhaustion or reversal based on aggregated trend signals.
How it works (concept-level)
Combines multiple trend-detection methods such as moving average structure, momentum filters, and volatility assessment to generate an overall trend signal.
Uses adaptive filters to reduce noise and avoid false signals in choppy markets.
Incorporates zone awareness to account for areas where price may pause or reverse.
Aggregates signals into a single dashboard view to provide traders with a quick, actionable overview.
How to use it
1. Select symbols to monitor.
2. Switch to your desired timeframe to view trend information.
3. Observe trend direction and confidence score for each symbol.
4. Use the dashboard to supplement trade entries, exits, and risk management strategies.
Alerts
Optionally set alerts when trend direction changes or when confidence exceeds a user-defined threshold.
Notes
Suitable for multiple markets, including forex, indices, crypto, and equities.
Can be used for intraday scalping, swing trading, or longer-term trend analysis depending on the selected timeframe.
⚠️ Disclaimer: This script is for educational purposes only and is not financial advice. Trading involves risk, and you can lose money. Always test strategies on a demo account and practice proper risk management.
High Time Frame FVG [TakingProphets]HTF FVG
The HTF FVG indicator is built for traders who want a clean, multi-timeframe view of Fair Value Gaps (FVGs) without manually flipping charts. It automatically detects unmitigated FVGs across up to five higher timeframes and overlays them directly on your active chart, keeping your execution bias aligned with higher-timeframe liquidity.
✨ What it does
📌 Multi-timeframe mapping – Detects and plots bullish/bearish FVGs across up to 5 custom HTFs + your current chart.
🧩 Auto-labeling – Each gap is tagged with its originating timeframe (e.g., M5, H1, D1).
🔄 Live updates – FVGs extend forward in time and are automatically removed once mitigated based on your plan.
🟢 Inverse FVGs (optional) – Highlight “inverse gaps” for traders who utilize them in reversal models.
🎯 Consequent Encroachment lines – Enable mid-gap CE levels for precision-based trade management.
⚡ Optimized performance – Built with array management, capped lookback periods, and per-timeframe limits for smooth charting.
🛠️ How it works
Fair Value Gaps are detected using a 3-candle structure:
Bullish FVG → the high of two candles ago is below the low of the prior candle.
Bearish FVG → the low of two candles ago is above the high of the prior candle.
For each selected timeframe:
When an FVG forms, a box is drawn from the gap boundaries and extended forward by a configurable number of bars.
If price closes into the gap on its originating timeframe, the box is automatically removed.
If Consequent Encroachment is enabled, a mid-gap line is plotted for refined targeting.
When multiple gaps exist per side, only the closest unmitigated one remains highlighted for clarity.
⚙️ Inputs & customization
Detection Sensitivity → High / Medium / Low
Lookback Period → 1 Day / 1 Week / 1 Month / Max
Extend Gaps → Add extra forward bars beyond the originating candle.
Show Consequent Encroachment → Toggle CE midlines on/off.
Show Inverse FVGs → Mark inverted gaps for advanced models.
Custom HTFs → Choose up to 5 timeframes to map onto your execution chart.
Appearance Settings → Configure colors, transparency, label size, and gap boundary styles.
📈 Practical tips
Use smaller execution timeframes (e.g., 1m–5m) and overlay multiple HTFs (e.g., M15, H1, H4, D1).
Watch for stacked HTF FVGs in the same price zone — these often create higher-probability draw areas.
Pair CE midlines with session timing, PD arrays, and liquidity concepts to refine entries.
Limit your lookback period and max stored FVGs for better performance during volatile sessions.
📌 Notes
This tool does not generate buy/sell signals. It’s a context mapping utility to help align your trading plan with higher-timeframe structure.
Weekend gaps are automatically filtered out to reduce false positives.
🏷️ Credits & disclaimer
Concepts: ICT / Smart Money methodologies around imbalances and liquidity gaps.
Disclaimer: This script is for educational purposes only and should not be considered financial advice. Always test on demo and trade your own plan.