Advanced Displacement Zone StrategyThis TradingView Pine Script strategy detects bullish and bearish displacement zones based on candle wicks, identifying potential buy and sell signals when price enters these zones. It automatically executes trades with a fixed take profit of 12 points and a stop loss of 1 point, plotting visual markers for entry and exit points
Fraktal
Daily EMA Crossover with Previous High/Low Breakgive buy and sell signal arrow sign when below condition met on candlestick chart of trading view. show buy arrow signal when 9 EMA cross above 20EMA upside and same time broken 1 previous day ago high price. show see arrow signal when 9 EMA cross below 20EMA upside and same time broken 1 previous day ago low price. Please create a pine code for trading view , Time frame should be 1 day char
High/Low Break & Volume Spike Alert📈 Signal Alert GPT
Multi-Condition Alert System for Technical Breakouts and Volume Spikes
This indicator generates alerts and visual markers for the following conditions:
🔺 High Breakout Alert: Price breaks above the latest pivot high (based on adjustable left/right bar counts).
🔻 Low Breakout Alert: Price breaks below the latest pivot low.
🔸 Volume Spike Alert: Volume exceeds a user-defined percentage of the average volume over the past N bars.
✅ Any Signal Alert: Triggers when any of the above conditions is met (simplified alert message).
Features:
White ▲ and ▼ markers for pivot lows and highs.
Red 🔸 marker on bars with a volume spike.
Fully customizable via input settings.
Alert toggles via checkboxes for user control.
Consolidated "Any Signal" alert to reduce alert setup effort.
Fractal Breakout Strategy (TP/SL/Trailing + Direction Filter)using fractals channel it gives buy and sell signals and we can trade accordingly
Market Structure (Compact Dashboard) with Trade PlansScript to identify multi timeframe market structure and Position, Short Term and Scalp Startegy based on ICT Swing Process
Current Fractal High/Low (Dynamic) v1.8This PRO version of the “Fractal High/Low” indicator dynamically tracks the latest confirmed fractal levels on the chart and updates them automatically when price breaks above/below them. It uses a minimal lag approach with 1 candle to the left and right, allowing near real-time adjustments.
Features:
Dynamic adjustment after breakout (no repainting).
Extended lines for easier visibility.
Labels with last known fractal high/low.
Lightweight and non-intrusive design.
Published by: @astairwaytoprofit
Version: 1.0 PRO
RunRox - Entry Model🎯 RunRox Entry Model is an all-in-one reversal-pattern indicator engineered to help traders accurately identify key price-reversal points on their charts. It will be part of our premium indicator package and improve the effectiveness of your trading strategies.
The primary concept of this indicator is liquidity analysis, making it ideal for Smart Money traders and for trading within market structure. At the same time, the indicator is universal and can be integrated into any strategy. Below, I will outline the full concept of the indicator and its settings so you can better understand how it works.
🧬 CONCEPT
In the screenshot below, I’ll schematically illustrate the core idea of this indicator. It’s one of the patterns that the indicator automatically detects on the chart using a two-timeframe approach. We use the higher timeframe to identify liquidity zones, and the lower timeframe to capture liquidity removal and structure breaks. The schematic is shown in the screenshot below.
Our indicator includes three entry models in total , and I will discuss its functionality and features in more detail later in this post.
💡 FEATURES
Three entry models
PO3 HTF Bar
Entry Area
Optimization for each Entry Area
Filters
HTF FVG
Alert customization
Next, we will examine each entry model in detail.
🟠 ENTRY MODEL 1
The first model is the core one we’ll work with; all other models rely on its structure and construction. In the screenshot below, I’ll schematically show the complete model.
As shown in the screenshot above, we display higher-timeframe candles on the current chart to better visualize the entry model and keep the trader informed of what’s happening on the larger timeframe. The screenshot also highlights both the Long and Short models, as well as the Entry Area, which I will explain in more detail below.
The schematic model on the lower timeframe is shown in the screenshot above. It illustrates that after the Entry Model forms, we draw the Entry Area on the next candle and wait for a price pullback into this zone for the optimal trade entry. Statistically, before moving higher, the price typically revisits the Entry Area, covering the imbalances created by MSS; thus, the Entry Area represents the ideal entry point.
🟩 Entry Area
Once the Entry Model has formed, we focus on identifying the optimal pullback zone for taking a position. To determine which retracement area performs best, we conducted extensive historical backtesting on potential zones and selected those that consistently delivered the strongest results. This process yields Entry Areas with the highest probability of a successful reversal.
On the screenshot above, you can see an example of the Entry Area and which zones carry a higher versus lower probability of reversal. Zones rendered with greater transparency have historically delivered weaker results than the more opaque zones. The deeper-colored areas represent the optimal entry zones and can improve your risk-reward ratio by allowing you to enter at more favorable prices.
It’s important to remember that the entire Entry Area functions as a potential zone for scaling into a position. However, if your risk-to-reward ratio isn’t favorable, you can wait for the price to retrace to lower levels within the Entry Area and enter with a more attractive risk-to-reward.
🟢 Pattern Rating
Each entry model receives a rating in the form of green circles next to its name 🟢. The rating ranges from one to four circles, based on the historical performance of similar patterns. To calculate this rating, we backtest past data by analyzing candle behavior during the model’s formation and assign circles according to how similar patterns performed historically.
Example Ratings:
🟢 – One circle
🟢🟢 – Two circles
🟢🟢🟢 – Three circles
🟢🟢🟢🟢 – Four circles
The more green circles a model has, the more reliable it is—but it’s crucial to rely on your own analysis when identifying strong reversal points on the chart. This rating reflects the model’s historical performance and does not guarantee future results, so keep that in mind!
Below is a screenshot showing four model variations with different ratings on the chart.
⚠️ Unconfirmed Pattern
Entry Model 1 is designed so that, until the higher-timeframe candle closes, the pattern remains unconfirmed and is hidden on the chart. For traders who prefer to see setups as they form, there’s a dedicated feature that displays the unconfirmed pattern at the moment of its appearance - triggered by the Market Structure Shift - before the HTF candle closes. The screenshot below shows what the pattern looks like prior to confirmation.
‼️IMPORTANT: Until the pattern is confirmed and the higher-timeframe candle has closed, the model may disappear from the chart if price reverses and the HTF candle closes below the previous bar. Therefore, this mode is suitable only for experienced traders who want to see market moves in advance. Remember that the pattern can be removed from the chart, so we recommend waiting for the HTF candle to close before deciding to enter a trade.‼️
✂️ Filters
For the primary model, there are four filters designed to enhance entry points or exclude less-confirmed patterns. The filters available in the indicator are:
Bounce Filter
Market Shift Mode
Same Wave Filter
Only with Divergence
I will explain how each of these filters works below.
- Bounce Filter
The Bounce Filter identifies significant deviations of price from its mean and only displays the Entry Model once the asset’s price moves beyond the average level. The screenshot below illustrates how this appears on the chart.
The actual average-price calculation is more sophisticated than what’s shown in the screenshot, that image is just an illustrative example. When the price deviates significantly from the N-bar average, we start looking for the Entry Model. This approach works particularly well in range-bound markets without a clear trend, as it lets you trade strong deviations from the mean.
- Market Shift Mode
This filter works by detecting the initial impulse that triggered the liquidity sweep on the previous higher-timeframe candle, and then holding the Market Structure Shift level at that point after the sweep. If the filter is turned off, price may move higher following the liquidity removal, creating a new MSS level and potentially producing a false structure shift and entry signal on the formed model.
This filter helps you more accurately identify genuine shifts - but keep in mind that the model can still perform well without it, so choose the setting that best suits your trading style.
- Same Wave Filter
The Same Wave Filter removes entry models that form without a clear lower-timeframe structure when liquidity is swept from the previous higher-timeframe candle. In other words, if the prior HTF candle and the current one belong to the same impulse wave - without any retracements on the LTF - the model is filtered out.
Keep in mind that this filter may also exclude patterns that could have produced positive results, so whether to enable it depends on your trading system.
- Only with Divergence
The Only with Divergence filter detects divergence between the lows of successive candles and indicators like RSI. When the low that swept liquidity diverges from the previous candle’s low, the indicator displays a “DIV” label. Although RSI is cited as an example, our divergence calculation is more advanced. This filter highlights patterns where low divergence signals genuine liquidity manipulation and a likely aggressive price reversal.
🌀 Model Settings
Trade Direction: Choose whether to display models for Long or Short trades.
Fractal: Select between automatic fractal detection—which adapts the lower-timeframe (LTF) and higher-timeframe (HTF) candles—or Custom.
Custom Fractal: When Custom is selected, manually specify the LTF and HTF timeframes used to detect the patterns.
History Pattern Limit: Set the maximum number of patterns to display on the chart to keep it clean and uncluttered.
🎨 Model Style
You can flexibly customize the model’s appearance by choosing your preferred line thickness, color, and the other settings we discussed above.
🔵 ENTRY MODEL 2
This model appears under specific conditions when Model 1 cannot form. It’s a price-reversal model constructed according to different rules than the first model. The screenshot below shows how it looks on the chart.
This model forms less frequently than Model 1 but delivers equally strong performance and is displayed as a position-entry zone.
Like the Entry Area in Entry Model 1, this zone is calculated automatically and highlights the best entry levels: areas that showed the strongest historical results are rendered in a brighter shade.
🎨 Model Style
You can flexibly customize the style of Entry Model 2 - its color, opacity, visibility, and the average price of the previous candle.
🟢 ENTRY MODEL 3
Entry Model 3 is a continuation pattern that only forms after Entry Model 1 has completed and delivered the necessary price move to trigger Model 3.
Below is a schematic illustration of how Model 3 is intended to work.
🎨 Model Style
As with the previous models, you can flexibly customize the style of this zone.
⬆️ HTF CANDLES
One of the standout features of this indicator is the ability to plot higher-timeframe (HTF) candles directly on your lower-timeframe (LTF) chart, giving you clear visualization of the entry models and insight into what’s unfolding on the larger timeframe.
You can fully customize the HTF candles - select their style, the number of bars displayed, and tweak various settings to match your personal trading style.
HTF FVG
Fair Value Gaps (FVGs) can also be drawn on the HTF candles themselves, enabling you to spot key liquidity or interest zones at a glance, without switching between timeframes.
Additionally, you can view all significant historical HTF highs and lows, with demarcation lines showing where each HTF candle begins and ends.
All these options let you tailor the HTF candle display on your chart and monitor multiple timeframes’ trends in a single view.
📶 INFO PANEL
Instrument: the market symbol on which the model is detected
Fractal Timeframes: the LTF and HTF fractal periods used to locate the pattern
HTF Candle Countdown: the time remaining until the higher-timeframe candle closes
Trade Direction: the direction (Long or Short) in which the model is searched for entry
🔔 ALERT CUSTOMIZATION
And, of course, you can configure any alerts you need. There are seven alert types available:
Confirmed Entry Model 1
Unconfirmed Entry Model 1
Confirmed Entry Model 2
Confirmed Entry Model 3
Entry Area 1 Trigger
Entry Area 2 Trigger
Entry Area 3 Trigger
You also get a custom macro field where you can enter any placeholders to fully personalize your alerts. Below are example macros you can use in that field.
{{event}} - Event name ('New M1')
{{direction}} - Trade direction ('Long', 'Short')
{{area_beg}} - Entry Area Price
{{area_end}} - Entry Area Price
{{exchange}} - Exchange ('Binance')
{{ticker}} - Ticker ('BTCUSD')
{{interval}} - Timeframe ('1s', '1', 'D')
{{htf}} - High timeframe ('15', '60', 'D')
{{open}}-{{close}}-{{high}}-{{low}} - Candle price values
{{htf_open}}-{{htf_close}}-{{htf_high}}-{{htf_low}} - Last confirmed HTF candle's price
{{volume}} - Candle volume
{{time}} - Candle open time in UTC timezone
{{timenow}} - Signal time in UTC timezone
{{syminfo.currency}} - 'USD' for BTCUSD pair
{{syminfo.basecurrency}} - 'BTC' for BTCUSD pair
✅ USAGE EXAMPLES
Now I’ll demonstrate several ways to apply this indicator across different trading strategies.
Primarily, it’s most effective within the Smart Money framework - where liquidity and manipulation are the core focus - so it integrates seamlessly into your SMC-based approach.
However, it can also be employed in other strategies, such as classic technical analysis or Elliott Wave, to capitalize on reversal points on the chart.
Example 1
The first example illustrates forming a downtrend using a Smart Money strategy. After the market structure shifts and the first BOS is broken, we begin looking for a short entry.
Once Entry Model 1 is established, a Fair Value Gap appears, which we use as our position-entry zone. The nearest target becomes the newly formed BOS level.
In this trade, it was crucial to wait for a strong downtrend to develop before hunting for entries. Therefore, we waited for the first BOS to break and entered the trade to ride the continuation of the downtrend down to the next BOS level.
Example 2
The next example illustrates a downtrend developing with a Fair Value Gap on the 1-hour timeframe. The FVG is also displayed directly on the HTF candles in the chart.
The pattern forms within the HTF Fair Value Gap, indicating that we can balance this inefficiency and ride the continuation of the downtrend.
The target can simply be a 1:2 or 1:3 risk–reward ratio, as in our case.
📌 CONCLUSION
These two examples illustrate how this indicator can be used to identify reversals or trend continuations. In truth, there are countless ways to incorporate this tool, and each trader can adapt the model to fit their own strategy.
Always remember to rely on your own analysis and only enter trades when you feel confident in them.
Current Fractal High/Low (Dynamic)
This indicator dynamically tracks the most recent confirmed Fractal High and Fractal Low across any timeframe using custom left/right bar configurations.
🔍 Key Features:
Detects Fractal Highs and Lows based on user-defined pivot settings.
Draws a green line and label ("FH") at the most recent Fractal High.
Draws a red line and label ("FL") at the most recent Fractal Low.
All lines extend from the confirmation bar to the current candle.
Automatically removes old lines and labels for a clean, uncluttered chart.
🛠️ Customizable Inputs:
Left & Right bars for pivot sensitivity
Line width for visibility
📌 Use Cases:
Identifying structure shifts
Recognizing key swing points
Supporting liquidity and breakout strategies
💡 Fractals are confirmed only after the full formation of the pattern (left and right bars). This ensures reliability over reactivity.
This script is designed for intraday to swing traders who want a reliable way to visualize market turning points with minimal noise.
NDS Position SizerNDS Position Sizer is built on the risk‑management framework taught in the booklet “Simple Money Management Strategy Overview” by Dr. Iraj Jafarian (NDS Academy, August 2024).
The script implements the core idea—sizing positions and setting stop‑losses with a 1‑ATR buffer—exactly as outlined in that guide, giving traders a quick, practical way to apply Dr. Jafarian’s volatility‑based money‑management rules directly on their charts.
EZWay Trading FractalEZWay Trading Fractal
This is an indicator based on EZWay Trading to identify high and low points of the formation
LibertyFocused®Description:
LibertyFocused® 📊💼 is a powerful, disciplined trading strategy designed to capture market trends with precision! 🚀 Built for TradingView, it combines technical indicators, risk management, and clear visual cues to guide your trades. This strategy identifies high-probability long and short opportunities during active market hours, using a blend of EMAs, RSI, VWAP, and daily trend filters. With customizable risk settings and dynamic stop-loss/take-profit levels, it’s your key to structured, confident trading! 💪✨
How It Works (Made Simple! 😎):
1-Trend Confirmation 📈: Uses 21-period and 9-period EMAs to ensure trades align with the market’s direction. Longs require price above both EMAs; shorts require price below.
2-Momentum Check 📡: RSI (>50 for longs, <50 for shorts) and VWAP (price above for longs, below for shorts) confirm momentum.
3-Daily Trend Filter 🗓️: Requires two consecutive bullish daily candles for longs or bearish for shorts to ensure a strong trend backdrop.
4-Trade Timing ⏰: Trades are restricted to active market hours (8:00–16:00 EST) with sufficient volatility (based on ATR).
5-Risk Management 💸: Risk per trade is a user-defined percentage of capital (e.g., 1%). Position size is calculated to risk only this amount, with stop-loss set at recent swing low/high.
6-Profit Targeting 🎯: Take-profit is set at a customizable reward-to-risk ratio (default 3:1), ensuring disciplined exits.
7-Visual Clarity 🖼️: Entry, stop-loss, and take-profit levels are plotted as colored lines with labels showing potential loss/reward in dollars. Debug labels highlight when conditions are met! 🔍
Why LibertyFocused®? 🌟
Structured & Reliable ✅: Combines multiple indicators for robust trade signals.
Risk-First Approach 🛡️: Protects your capital with precise position sizing and stop-losses.
Customizable 🎨: Adjust risk percentage, reward ratio, and colors to suit your style.
User-Friendly 🖱️: Clear visuals and debug labels make it easy to understand signals.
Time-Savvy ⏱️: Limits trades to high-liquidity hours, avoiding choppy markets.
How to Use:
Add LibertyFocused® to your TradingView chart.
Configure settings: initial capital, risk percentage, reward-to-risk ratio, and colors.
Monitor signals during the trading window (8:00–16:00 EST).
Watch the chart for entry/stop-loss/take-profit lines and debug labels to track conditions! 📈
LANZ Strategy 4.0🔷 LANZ Strategy 4.0 — Trend Impulse Detection with Risk Management
LANZ Strategy 4.0 is a multi-indicator trend strategy designed for short to medium-term trading on any asset or timeframe. It combines Parabolic SAR, Supertrend, ADX, and time zone highlighting to detect and confirm trend impulses, while managing entries with dynamic Stop Loss (SL) and Take Profit (TP) levels.
🧠 Core Components:
Parabolic SAR: Identifies short-term trend reversals.
Supertrend: Highlights trend continuation zones.
ADX Filter: Ensures trend strength by filtering entries when ADX exceeds a defined threshold.
Impulse Detection Logic: Detects and confirms movement impulses with a counter, only generating trade signals on confirmed sequences.
Risk Management: Calculates dynamic SL/TP with a default risk-reward ratio of 1:2, minimum SL of 4 pts, and maximum of 12 pts.
📊 Visual Features:
Trend lines from Supertrend and SAR.
Colored background zones for different sessions (Asia, NY).
Labels and lines for entry, SL, and TP.
Movement number labels help visualize impulse progression.
Alerts when a new impulse is confirmed.
⚙️ How It Works:
The strategy waits for a confirmed impulse (i.e., change in SAR + Supertrend + ADX filter).
Once a valid impulse is confirmed:
A trade signal (BUY/SELL) is shown.
SL and TP levels are calculated and drawn.
The script monitors live price to determine if SL or TP is hit.
Impulse counter advances to label movement progression.
🔔 Alerts:
You will receive an alert each time a new valid impulse is confirmed, indicating a potential trading opportunity.
📝 Notes:
Script is intended for discretionary or assisted trading, not automated execution.
Works best during active sessions with visible trend direction.
You can adjust ATR period, multiplier, SL padding, and impulse thresholds.
Credits:
Developed by LANZ combines established technical indicators and original impulse-count logic.
ATS LOGIC CHART 云超级数字净量主图 V5.0In complex market environments, the Delta Net Volume chart provides you with clear directional guidance. Whether it's capturing trends, avoiding risks, optimizing strategies, or enhancing returns, it is an indispensable tool for you. Let the data speak and make trends clearly visible—the Delta Net Volume chart helps you navigate the market steadily and confidently!
QTheory Sessions AMDX-XAMDMy Personal Quarterly Theory Sessions AMDX-XAMD Indicator:
Quarterly Sessions:
Accumulation Phase (Asia - AQ1) 18:00 - 00:00 (EST TIME)
Manipulation Phase (London - LQ2) 00:00 - 06:00 (EST TIME)
Distribution Phase (New York - NQ3) 06:00 - 12:00 (EST TIME)
Continuation / Distribution Phase (New York - NQ4) 12:00 - 18:00 (EST TIME)
+ 90 min cycles in every AMD Phase
+ Fractals
+ FVG
+ OB
+ HTF Candle
+ Liquidity
THX for inspirations and open source material TFO, Tflab, TehTomas, fazi and more...
Enjoy it.
QTX Rush(Sep_Trader & alireza.fxart) Precision Candle (PC) and Precision Swing Point (PSP) Indicator Documentation
Overview
The Precision Candle (PC) and Precision Swing Point (PSP) indicator is designed to identify candlestick patterns and swing points across multiple symbols on TradingView, enabling traders to analyze market movements effectively.
Features
Symbol Selection: Analyze up to two additional symbols alongside the primary chart. For dual-chart comparison, input the same symbol twice.
Signal Types:
PC (Precision Candle): Signals appear on the second candle.
PSP (Precision Swing Point): Signals appear on the third candle.
CRT (Cross-Reference Candle): Signals appear on the second candle, without requiring precision.
SMT Analysis: Supports Smart Money Technique (SMT) analysis between fractal candles, customizable for pairs: 1 and 2, 2 and 3, or 1 and 3.
Stable Version: PC Advanced Precision Candles is the most reliable configuration.
Configuration
Symbols: Select up to two symbols for analysis (repeat the second symbol for dual-chart comparison).
Signals:
PC: Marks the second candle with precision-based signals.
PSP: Marks the third candle for swing point signals.
CRT: Marks the second candle without precision requirements.
SMT Customization: Configure SMT analysis for fractal candle pairs (1 and 2, 2 and 3, or 1 and 3) based on preference.
PC Advanced Precision Candles: Optimized for stability and precision.
Usage
Add the indicator to your TradingView chart.
Configure the primary and secondary symbols.
Set up SMT analysis for desired fractal candle pairs (1 and 2, 2 and 3, or 1 and 3).
Monitor signals:
PC on the second candle.
PSP on the third candle.
CRT on the second candle (non-precision).
Use PC Advanced Precision Candles for optimal performance.
Disclaimer
This indicator is provided for informational purposes only. Trading involves risks, and users should conduct their own research before making decisions.
QTX(sep_trader)# Precision Candle (PC) and Precision Signal Point (PSP) Indicator Documentation
## Overview
The **Precision Candle (PC)** and **Precision Signal Point (PSP)** indicator identifies specific candlestick patterns across multiple symbols on TradingView, aiding traders in market analysis.
## Features
- **Symbol Selection**: Analyze two additional symbols alongside the primary chart. For dual-chart comparison, input the same symbol twice.
- **Signal Types**:
- **PC (Precision Candle)**: Signals appear on the **second candle**.
- **PSP (Precision Signal Point)**: Signals appear on the **third candle**.
- **CRT (Cross-Reference Candle)**: Signals appear on the **second candle**, without requiring precision.
- **Stable Version**: **PC Advanced Precision Candles** is the most reliable configuration.
## Configuration
- **Symbols**: Select up to two symbols for analysis (repeat the second symbol for dual-chart comparison).
- **Signals**:
- **PC**: Marks the second candle with precision-based signals.
- **PSP**: Marks the third candle for confirmation signals.
- **CRT**: Marks the second candle without precision requirements.
- **PC Advanced Precision Candles**: Optimized for stability and precision.
## Usage
1. Add the indicator to your TradingView chart.
2. Configure the primary and secondary symbols.
3. Monitor signals:
- PC on the second candle.
- PSP on the third candle.
- CRT on the second candle (non-precision).
4. Use **PC Advanced Precision Candles** for best results.
## Disclaimer
This indicator is for informational purposes only. Trading involves risks, and users should conduct independent research before making decisions.
---
Let me know if you need any tweaks!
ETH to RTH Gap DetectorETH to RTH Gap Detector
What It Does
This indicator identifies and tracks custom-defined gaps that form between Extended Trading Hours (ETH) and Regular Trading Hours (RTH). Unlike traditional gap definitions, this indicator uses a specialized approach - defining up gaps as the space between previous session close high to current session initial balance low, and down gaps as the space from previous session close low to current session initial balance high. Each detected gap is monitored until it's touched by price.
Key Features
Detects custom-defined ETH-RTH gaps based on previous session close and current session initial balance
Automatically identifies both up gaps and down gaps
Visualizes gaps with color-coded boxes that extend until touched
Tracks when gaps are filled (when price touches the gap area)
Offers multiple display options for filled gaps (color change, border only, pattern, or delete)
Provides comprehensive statistics including total gaps, up/down ratio, and touched gap percentage
Includes customizable alert system for real-time gap filling notifications
Features toggle options for dashboard visibility and weekend sessions
Uses time-based box coordinates to avoid common TradingView drawing limitations
How To Use It
Configure Session Times : Set your preferred RTH hours and timezone (default 9:30-16:00 America/New York)
Set Initial Balance Period : Adjust the initial balance period (default 30 minutes) for gap detection sensitivity
Monitor Gap Formation : The indicator automatically detects gaps between the previous session close and current session IB
Watch For Gap Fills : Gaps change appearance or disappear when price touches them, based on your selected style
Check Statistics : View the dashboard to see total gaps, directional distribution, and touched percentage
Set Alerts : Enable alerts to receive notifications when gaps are filled
Settings Guide
RTH Settings : Configure the start/end times and timezone for Regular Trading Hours
Initial Balance Period : Controls how many minutes after market open to calculate the initial balance (1-240 minutes)
Display Settings : Toggle gap boxes, extension behavior, and dashboard visibility
Filled Box Style : Choose how filled gaps appear - Filled (color change), Border Only, Pattern, or Delete
Color Settings : Customize colors for up gaps, down gaps, and filled gaps
Alert Settings : Control when and how alerts are triggered for gap fills
Weekend Session Toggle : Option to include or exclude weekend trading sessions
Technical Details
The indicator uses time-based coordinates (xloc.bar_time) to prevent "bar index too far" errors
Gap boxes are intelligently limited to avoid TradingView's 500-bar drawing limitation
Box creation and fill detection use proper range intersection logic for accuracy
Session detection is handled using TradingView's session string format for reliability
Initial balance detection is precisely calculated based on time difference
Statistics calculations exclude zero-division scenarios for stability
This indicator works best on futures markets with extended and regular trading hours, especially indices (ES, NQ, RTY) and commodities. Performs well on timeframes from 1-minute to 1-hour.
What Makes It Different
Most gap indicators focus on traditional open-to-previous-close gaps, but this tool offers a specialized definition more relevant to ETH/RTH transitions. By using the initial balance period to define gap edges, it captures meaningful price discrepancies that often provide trading opportunities. The indicator combines sophisticated gap detection logic with clean visualization and comprehensive tracking statistics. The customizable fill styles and integrated alert system make it practical for both chart analysis and active trading scenarios.
Nyx-AI Market Intelligence DashboardNyx AI Market Intelligence Dashboard is a non-signal-based environmental analysis tool that provides real-time insight into short-term market behavior. It is designed to help traders understand the quality of current price action, volume dynamics, volatility conditions, and structural behavior. It informs the trader whether the current market environment is supportive or hostile to trading and whether any active signal (from other tools) should be trusted, filtered, or avoided altogether.
Nyx is composed of seven intelligent modules. Each module operates independently but is visually unified through a floating dashboard panel on the chart. This panel renders live diagnostics every few bars, maintaining a low visual footprint without drawing overlays or modifying price.
Market Posture Engine
This module reads individual candlesticks using real-time candle anatomy to interpret directional bias and sentiment. It examines body-to-range ratio, wick imbalances, and compares them to prior bars. If the current candle is a large momentum body with minimal wick, it is interpreted as a directional thrust. If it is a small body with equal wicks, it is considered indecision. Engulfing patterns are used to detect potential liquidity tests. The system outputs a plain-text posture signal such as Building Bullish Intent, Bearish Momentum, Indecision Zone, Testing Liquidity (Up or Down), or Neutral.
Flow Reversal Engine
This module monitors short-term structural shifts and volume contraction to detect early signs of reversal or exhaustion. It looks for lower highs or higher lows paired with weakening volume and closing behavior that implies loss of momentum. It also monitors divergence between price and volume, as well as bar-to-bar momentum stalls (where highs and lows stop expanding). When these conditions are met, it outputs one of several states including Top Forming, Bottom Forming, Flow Divergence, Momentum Stall, or Neutral. This is useful for detecting inflection points before they manifest on trend indicators.
Fractal Context Engine
This engine compares the current bar’s range to its surrounding structural context. It uses a dynamic lookback length based on volatility. It determines whether the market is in expansion (strong directional trend), compression (shrinking range), or a transitional phase. A special case called Flip In Progress is triggered when the current high and low exceed the entire recent range, which often precedes sharp reversals or volatility expansion. The result is one of the following: Trend Expansion, Trend Breakdown, Sideways or Coil, Flip In Progress, or Expansion to Coil.
Candle Behavior Analyzer
This module analyzes the last five candles as a set to detect behavioral traits that a single candle may not reveal. It calculates average body and wick size, and counts how many recent candles show thrust (large body dominance), trap behavior (price returns inside wicks), or weakness (small bodies with high wick ratios). The module outputs one of the following behaviors: Aggressive Buying, Aggressive Selling, Trap Pattern, Trap During Coil, Low Participation, Low Energy, or Fakeout Candle. This helps the trader assess sentiment quality and the reliability of price movement.
Volatility Forecast and Compression Memory
This module predicts whether a breakout is likely based on recent compression behavior. It tracks how many of the last 10 bars had significantly reduced range compared to average. If a certain threshold is met without any recent large expansion bar, the system forecasts that a volatility expansion is likely in the near future. It also records how many bars ago the last high volatility impulse occurred and classifies whether current conditions are compressing. The outputs are Expansion Likely, Active Compression, and Last Burst memory, which provide breakout timing and energy insights.
Entry Filter
This module scores the current bar based on four adaptive criteria: body size relative to range, volume strength relative to average, current volatility versus historical volatility, and price position relative to a 20-period moving average. Each factor is scored as either 1 or 2. The total score is adjusted by a behavioral modifier that adds or subtracts a point if recent candles show aggression or trap behavior. Final scores range from 4 to 8 and are classified into Optimal, Mixed, or Avoid categories. This module is not a trade signal. It is a confluence filter that evaluates whether conditions are favorable for entry. It is particularly effective when layered with other indicators to improve precision.
Liquidity Intent Engine
This engine checks for price behavior around recent swing highs and lows. It uses adaptive pivots based on volatility to determine if price has swept above a recent high or below a recent low. This behavior is often associated with institutional liquidity hunts. If a sweep is detected and price has moved away from the sweep level, the engine infers directional intent and compares current distance to the high and low to determine which liquidity pool is more dominant. The output is Magnet Above, Magnet Below, or Conflict Zone. This is useful for anticipating directional bias driven by smart money activity.
Sticky Memory Tracking
To avoid flickering between states on low volatility or noisy price action, Nyx includes a sticky memory system. Each module’s output is preserved until a meaningful change is detected. For example, if Market Posture is Neutral and remains so for several bars, the previous non-neutral value is retained. This makes the dashboard more stable and easier to interpret without misleading noise.
Dashboard Rendering
All module outputs are displayed in a clean two-column panel anchored to any corner of the chart. Text values are color-coded, tooltips are added for context, and the data refreshes every few bars to maintain speed. The dashboard avoids clutter and blends seamlessly with other chart tools.
This tool is intended for informational and educational purposes only. It does not provide financial advice or trading signals. Nyx analyzes price, volume, structure, and volatility to offer context about the current market environment. It is not designed to predict future price movements or guarantee profitable outcomes. Traders should always use independent judgment and risk management. Past performance of any analysis logic does not guarantee future results.
Liquidity Sweep Detector – PDH/PDL LevelsPrevious Day High/Low Liquidity Sweep Detector (Intraday Accurate)
This indicator tracks the previous day's high and low using intraday data, rather than the daily candle, ensuring precise sweep detection across lower timeframes (15m to 4H).
It monitors for liquidity sweeps—moments when price briefly moves above the previous high or below the previous low—and visually marks these events on the chart.
Key Features
Intraday-accurate PDH/PDL tracking
Real-time sweep detection
On-chart labels marking sweep events
Toggleable table showing sweep status
Alert conditions for PDH/PDL sweep triggers
Best For
Traders who use Smart Money Concepts (SMC), liquidity-based strategies, or look for stop hunts and reversal zones tied to key prior-day levels.
Works well across FX, crypto, and indices on 15m, 1H, and 4H charts.
[Pandora's Chambers] Liquidity Grab Magnet Tool VDV_V6Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6
The “Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6” indicator is built as a mathematical function library in Pine Script® that identifies “magnet” points (local maxima) of price action density, based on a combination of frequency analysis (wick density) and Fibonacci values. The algorithm considers the distribution of wick touches within a lookback range, builds volume profiles at different price levels, and then marks the strongest dynamic support and resistance levels. This structure has been empirically proven to be particularly effective for rapid scalping, as these “magnet points” are characterized by strong market forces influencing sharp price movements.
Background and Methodology
Price Range Division into Bins: The range between the minimum and maximum price over the last N candles is divided into k equal bins.
Wick Touch Counting: For each bin, the number of times the bin center falls within the wick body of a candle is calculated.
Bullish and Bearish Candles:
For bullish candles (close > open), touches between the low and the open are counted.
For bearish candles (close < open), touches between the open and the high are counted.
Density Function: For each bin j, a density function ρ(j) = number of touches in j is obtained.
Strongest Levels: The strongest support level below the current price is arg max_{binCenter < close} ρ(j), and the resistance – above the price.
Integrated Volume Profile: For each bin, the trading volume of the candles where the bin center is included in the wick body is accumulated, adding a volume dimension to the selection of magnet points.
The Secret Algorithm
The algorithm utilizes several key constructs:
Dynamic Trailing with Sensitivity Threshold (trailTolerance): To avoid market noise, the line is redrawn only when the new point differs by Δ ≥ trailTolerance from the previous level.
Fibonacci Value Integration: After identifying support (sell-side) and resistance (buy-side) levels, Fibonacci lines are calculated at n ratios (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0), with the option to extend them to additional "snap" values (1.618, 2.618). Each line also displays the corresponding trading volume in its paired bin, providing an indication of market depth at the Fibonacci point.
Visualization and Functionality:
Clear and Dynamic Colored Lines: Support is colored purple, resistance is colored cyan.
Transparent Labels: Displaying the actual volume value for each level.
“Magnet Point” Markers (red dots): Appearing upon the breakout of a line – enabling the identification of rapid scalping opportunities. Crossing of a line indicates the price "drinking liquidity." A red dot appears when the price reaches equilibrium.
Continued Liquidity: If the line moves away from the price, liquidity is expected to continue.
Key Parameters
Parameter Description
Lookback Bars Number of candles for historical analysis; size of the discrete dimension for density distribution.
Bin Count Number of bins for dividing the price range; determines the analysis resolution.
Tolerance Minimum threshold for a level change before a new line is created (to reduce noise).
Fibonacci Offsets Number of candles to the right to display Fibonacci lines with volume labels.
Show Liquidity Snap Toggle to display extended "snap" values outside the main range.
Line Width & Color Adjustable thickness, style, and color of support and resistance lines.
Label Size/Offset Adjustment of label text size and position – to prevent overlaps on the chart.
Export to Sheets
How to Use for Scalping
Identify the Magnet Point: Follow the red dot (•) the moment the price crosses a liquidity level downwards/upwards.
Parameter Adjustment: To increase sensitivity for scalping – reduce the Lookback or increase the Bin Count.
Market Depth Confirmation: Use the volume labels alongside the Fibonacci lines to confirm that the point is indeed accompanied by significant volume movement.
Mathematical Conclusion
The indicator combines statistical principles of density and historical memory with Fibonacci geometry, in a configuration that allows for the identification of reliable “magnet points.” For quantitative traders, this is a formal tool for drawing conclusions about market forces in the language of density functions and volume profiles, providing an ideal environment for rapid and precise scalps.
צור מחדש אבל תחליף את המילים סופורט וריסיסטנס לליקווידיטי
בטח, הנה הגרסה המחודשת של התיאור עם החלפת המילים "סופורט" ו"ריסיסטנס" ב"ליקווידיטי":
חדרי פנדורה – כלי מגנט ללכידת נזילות VDV_V6
האינדיקטור “חדרי פנדורה – כלי מגנט ללכידת נזילות VDV_V6” נבנה כספריית פונקציות מתמטית ב‑Pine Script® המזהה נקודות “מגנט” (מקסימום מקומי) של צפיפות תנועת המחיר, על בסיס שילוב של ניתוח תדרים (צפיפות וויקים) וערכי פיבונאצ’י. האלגוריתם מתייחס להתפלגות נגיעות הוויקים בתוך טווח הסתכלות (lookback), בונה פרופילי נפח במחיריים שונים, ולאחר מכן מסמן את רמות הנזילות הדינמיות החזקות ביותר. המבנה הוכח אמפירית כיעיל במיוחד לסקאלפינג מהיר, שכן “נקודות המגנט” מתאפיינות בכוחות שוק חזקים המשפיעים על תנועה חדה של המחיר.
רקע ומתודולוגיה
חלוקת טווח המחיר לבינים (bins): הטווח בין המחיר המינימלי למקסימלי ב־N הנרות האחרונים מחולק ל־k תאים שווים.
בכל תא מחשבים את מספר הפעמים שבהן מרכז התא נכנס לתוך גוף הוויק (wick) של הנר.
נרות בולשים ודובשים:
בנרות בולשים (close > open) נספרים מגעים בין ה־low ל־open.
בנרות דובשים (close < open) נספרים מגעים בין ה־open ל־high.
פונקציית צפיפות (Density Function): עבור כל תא j מתקבלת פונקציית צפיפות ρ(j) = מספר המגעים ב־j.
הרמה החזקה ביותר מתחת למחיר הנוכחי היא arg max_{binCenter < close} ρ(j), ולהתנגדות – מעל המחיר.
פרופיל נפח משולב (Volume Profile): לכל תא מצטבר נפח המסחר של הנרות שבהם מרכז התא נכלל בגוף הוויק, מה שמוסיף ממד נפחי לבחירת נקודות המגנט.
האלגוריתם הסודי
האלגוריתם עושה שימוש בכמה קונסטרוקטים עיקריים:
טריילינג דינמי עם סף רגישות (trailTolerance): כדי למנוע רעשי שוק, הקו ניזון מחדש רק כאשר הנקודה החדשה שונה ב־Δ ≥ trailTolerance מהרמה הקודמת.
שילוב ערכי פיבונאצ’י: לאחר זיהוי רמות נזילות (sell-side) ורמות נזילות (buy-side), מחושבים קווי פיבונאצ’י ב־n יחסיות (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0), ואפשרות להרחבתם לערכי סנאפ נוספים (1.618, 2.618). כל קו מציג גם את נפח המסחר המתאים בתא התאום שלו, מה שנותן אינדיקציה לקריאות עומק השוק בנקודת פי
You stopped this response
Giv'atayim, Israel
צור מחדש אבל תחליף את המילים סופורט וריסיסטנס לליקווידיטי
באנגלית
Okay, here's the revised English description with "support" and "resistance" replaced by "liquidity":
Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6
The “Pandora’s Chambers – Liquidity Grab Magnet Tool VDV_V6” indicator is built as a mathematical function library in Pine Script® that identifies “magnet” points (local maxima) of price action density, based on a combination of frequency analysis (wick density) and Fibonacci values. The algorithm considers the distribution of wick touches within a lookback range, builds volume profiles at different price levels, and then marks the strongest dynamic liquidity levels. This structure has been empirically proven to be particularly effective for rapid scalping, as these “magnet points” are characterized by strong market forces influencing sharp price movements.
Background and Methodology
Price Range Division into Bins: The range between the minimum and maximum price over the last N candles is divided into k equal bins.
Wick Touch Counting: For each bin, the number of times the bin center falls within the wick body of a candle is calculated.
Bullish and Bearish Candles:
For bullish candles (close > open), touches between the low and the open are counted.
For bearish candles (close < open), touches between the open and the high are counted.
Density Function: For each bin j, a density function ρ(j) = number of touches in j is obtained.
Strongest Levels: The strongest sell-side liquidity level below the current price is arg max_{binCenter < close} ρ(j), and the buy-side liquidity – above the price.
Integrated Volume Profile: For each bin, the trading volume of the candles where the bin center is included in the wick body is accumulated, adding a volume dimension to the selection of magnet points.
The Secret Algorithm
The algorithm utilizes several key constructs:
Dynamic Trailing with Sensitivity Threshold (trailTolerance): To avoid market noise, the line is redrawn only when the new point differs by Δ ≥ trailTolerance from the previous level.
Fibonacci Value Integration: After identifying sell-side liquidity and buy-side liquidity levels, Fibonacci lines are calculated at n ratios (0.0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0), with the option to extend them to additional "snap" values (1.618, 2.618). Each line also displays the corresponding trading volume in its paired bin, providing an indication of market depth at the Fibonacci point.
Visualization and Functionality:
Clear and Dynamic Colored Lines: Sell-side liquidity is colored purple, buy-side liquidity is colored cyan. Crossing of a line indicates the price "drinking liquidity."
Transparent Labels: Displaying the actual volume value for each level.
“Magnet Point” Markers (red dots): Appearing upon the breakout of a line – enabling the identification of rapid scalping opportunities. A red dot appears when the price reaches equilibrium. If the line moves away from the price, liquidity is expected to continue.
Key Parameters
Parameter Description
Lookback Bars Number of candles for historical analysis; size of the discrete dimension for density distribution.
Bin Count Number of bins for dividing the price range; determines the analysis resolution.
Tolerance Minimum threshold for a level change before a new line is created (to reduce noise).
Fibonacci Offsets Number of candles to the right to display Fibonacci lines with volume labels.
Show Liquidity Snap Toggle to display extended "snap" values outside the main range.
Line Width & Color Adjustable thickness, style, and color of liquidity lines.
Label Size/Offset Adjustment of label text size and position – to prevent overlaps on the chart.
Export to Sheets
How to Use for Scalping
Identify the Magnet Point: Follow the red dot (•) the moment the price crosses a liquidity level downwards/upwards.
Parameter Adjustment: To increase sensitivity for scalping – reduce the Lookback or increase the Bin Count.
Market Depth Confirmation: Use the volume labels alongside the Fibonacci lines to confirm that the point is indeed accompanied by significant volume movement.
Mathematical Conclusion
The indicator combines statistical principles of density and historical memory with Fibonacci geometry, in a configuration that allows for the identification of reliable “magnet points.” For quantitative traders, this is a formal tool for drawing conclusions about market forces in the language of density functions and volume profiles, providing an ideal environment for rapid and precise scalps.
BTC Markup/Markdown Zones by Koenigsegg📈 BTC Markup/Markdown Zones
A handcrafted indicator designed to mark Bitcoin's most critical High Time Frame (HTF) structure shifts. This tool overlays true institutional-level Markup and Markdown Zones, selected manually after deep market review. Whether you're testing strategies or actively trading, this tool gives you the bigger picture at all times.
🔍 Key Features:
✅ HTF Markup & Markdown Zones
Every zone is manually selected — no indicators, no repainting. Just raw market history and real structure.
✅ Two Display Modes
• Background Zones — soft overlays with low opacity for visual context — with the option to increase opacity manually if desired.
• Start Candle Highlight — sharply highlighted candle marking the final pivot before a macro reversal.
✅ Custom Color Controls (Style Tab)
All visual styling lives in the Style tab, with clearly labeled fields:
• Markup Zone
• Markdown Zone
• Start Candle Highlight Markup
• Start Candle Highlight Markdown
✅ Minimal Input Section
Just one toggle: display mode. Everything else is kept clean and intuitive.
🧠 Purpose:
This script is made for any timeframe:
• Zoom into lower timeframes to know whether you're trading inside a Markup or Markdown
• Use it during strategy testing for true structural awareness
📅 Handpicked Macro Turning Points:
Each zone originates from a manually confirmed candle — the last meaningful candle before a shift in control between bulls and bears:
• FRI 19 AUG 2011 12PM – MARK DOWN
• THU 20 OCT 2011 12AM – MARK UP
• WED 10 APR 2013 12PM – MARK DOWN
• FRI 12 APR 2013 12PM – MARK UP
• SAT 30 NOV 2013 12AM – MARK DOWN
• WED 14 JAN 2015 12PM – MARK UP
• SUN 17 DEC 2017 12PM – MARK DOWN
• SAT 15 DEC 2018 12PM – MARK UP
• WED 14 APR 2021 4AM – MARK DOWN
• TUE 22 JUN 2021 12PM – MARK UP
• WED 10 NOV 2021 12PM – MARK DOWN
• MON 21 NOV 2022 8PM – MARK UP
• THU 14 MAR 2024 4AM – MARK DOWN
• MON 5 AUG 2024 12PM – MARK UP
• MON 20 JAN 2025 4AM – MARK DOWN
💡 Zones are manually updated by me after each new confirmed Markup or Markdown.
🧬 Fractal Structure for MTF Systems
Price is fractal — meaning the same principles of structure repeat across all timeframes. In Version 2, this tool evolves by introducing manually selected sub-zones inside each High Time Frame (HTF) Markup or Markdown. These sub-zones reflect Medium Timeframe (MTF) structure shifts, offering precision for traders who operate on both intraday and swing levels.
This makes the indicator ideal for low timeframe (LTF) Markup/Markdown awareness — whether you're managing 15m entries or building multi-timeframe confluence systems.
No auto-zones. No guesswork. Just clean, intentional structure division within the broader trend, handpicked for maximum clarity and edge.
💡 Pro Tip:
When price is inside a Markup Zone, shorting becomes riskier — you're trading against a macro bullish structure.
When inside a Markdown Zone, longing becomes riskier — you're fighting against confirmed bearish momentum.
Use this tool to stay aligned with the broader move, especially when zoomed into smaller timeframes or managing entries/exits during intraday setups.
📈 Markup Phase – Bullish Sentiment
Definition: A period where price makes higher highs and higher lows — the uptrend is in full force.
Why sentiment is bullish:
- Institutions and smart money are already positioned long.
- Public/institutional demand drives prices up.
- Momentum is supported by positive news, breakouts, and FOMO.
- Higher highs confirm buyers are in control.
📉 Markdown Phase – Bearish Sentiment
Definition: A period where price makes lower lows and lower highs — clear downtrend.
Why sentiment is bearish:
- Distribution has already occurred, and supply outweighs demand.
- Smart money is short or sidelined, waiting for deeper prices.
- Panic selling or trend-following traders add downside momentum.
- Lower lows confirm sellers are in control.
❌ Trading Against the Trend — Consequences:
-Reduced Probability of Success
-You’re fighting the dominant flow. Most participants are pushing in the opposite direction.
-Drawdowns & Stop-Outs
-Countertrend trades often get wicked or flushed before any meaningful move, especially without structure-based entries.
-Low Risk-Reward Ratio
-Trends offer sustained moves. Countertrend trades may have small take-profit zones or chop.
-Mental Drain & Doubt
-Fighting momentum causes anxiety, second-guessing, and emotional reactions.
-Missed Opportunities
-Focusing on fighting the trend makes you blind to the high-probability setups with the trend.
-Increased Transaction Costs
-More stop-outs and re-entries mean more fees, more friction.
-FOMO from Watching the Trend Run
-Entering countertrend means you might watch the trend explode without you.
-Confirmation Bias & Stubbornness
-Countertrend traders often look for reasons to justify staying in the wrong direction — leading to bigger losses.
🧠 Summary
In markup = bulls dominate → you swim with the current.
In markdown = bears dominate → going long is like pushing a rock uphill.
Trading with the trend is not just safer, it's smarter. The edge lives in momentum — not ego.
⚠️ Disclaimer
This indicator is for educational and analytical use only. It is not financial advice and should not be relied on for decision-making without personal analysis.
This is not a predictive tool. No indicator can forecast upcoming price movements.
What you see here is based purely on past market behavior — specifically, historical tops and bottoms that marked the start of confirmed reversals.
This script does not know where the next reversal begins, nor can it determine where a new Markup or Markdown starts or ends. It is designed to provide context, not prediction.
Always trade with responsibility and perform your own due diligence.
Overnight ES Strategy: CBC + Fractal + RSI + ATR FilterThis script is designed for overnight trading of the E-mini S&P 500 futures (ES) between 6 PM and 11 PM EST.
It combines multiple technical confluences to generate high-probability buy and sell signals, focusing on volatility-rich, low-liquidity evening sessions.
Key Features:
Candle Body Confluence (CBC) Approximation:
Identifies candles with small real bodies compared to total range, simulating consolidation zones where price is likely to reverse.
Williams Fractal Confirmation:
Detects local tops and bottoms based on 5-bar fractal reversal patterns, helping validate breakout or reversal points.
RSI Filter:
Ensures momentum is supportive — buys only when RSI < 35 (oversold) and sells only when RSI > 65 (overbought).
ATR Volatility Filter:
Trades are only allowed if the Average True Range (ATR) exceeds a user-defined threshold, filtering out low-volatility, risky environments.
Time Session Control:
Signals are only generated during the user-defined evening session (default: 6 PM to 11 PM EST) to match market behavior.
Real-Time Alerts Enabled:
Alerts can be set for BUY or SELL conditions, enabling mobile notifications, emails, or pop-ups without constant chart monitoring.
Recommended Settings:
Chart Timeframe: 15-minute or 30-minute candles
Assets: ES Mini (ES1!), NQ Mini, or other CME futures
Session: New York Time (EST)
ATR Threshold: Adjust based on market conditions; 5.0 suggested starting point for ES Mini on 15m.
Important:
This script only plots signals, it does not auto-execute trades.
Always backtest and paper trade before using live capital.
Volatility can vary; consider adjusting RSI and ATR filters based on market environment.
Credits:
Script designed based on confluence of price action, momentum, reversal structure, and volatility filtering principles used by professional traders.
Inspired by Candle Body Confluence (CBC) theory and Williams fractal techniques.
Swing + 3-Bar Breakout(Mastersinnifty)Overview
This script is a hybrid trading tool combining swing-based structural analysis, momentum filtering, and breakout validation — designed to detect early reversals and confirm trend continuations within a single unified system.
It integrates five major components:
- ZigZag Structural Detection — to identify critical swing highs and lows.
- Momentum Validation — using RSI and Rate of Change (ROC) to confirm the strength behind swings.
- Three-Bar Breakout Confirmation — spotting trend continuation beyond swing structures.
- Dynamic Trailing Stop System — managing trades adaptively via ATR-based trailing stops.
- Projected Target Levels — estimating future price destinations based on measured swings.
---
What Makes This Script Unique
Rather than using standard indicators in isolation, this script layers multiple conditions sequentially and contextually:
- Structural Foundation: Identifies pivots through a tight ZigZag algorithm tuned with a low-depth setting for early detection.
- Momentum Checkpoint: Validates pivots only if RSI extremes and ROC momentum surges align, reducing false breakouts during sideways movements.
- Breakout Validation: Confirms trend continuation when price breaches critical multi-bar highs/lows post-swing formation.
- Risk-Managed Progression: Initiates adaptive ATR-based trailing stops immediately after signal generation, tightening risk dynamically as trends unfold.
- Target Projection: Estimates potential move size by projecting the magnitude of the last completed swing, offering realistic price milestones.
This combination provides a dual-purpose tool for both reversals and breakouts, allowing flexible trading styles within a single indicator.
---
How the Script Works
- Swing Detection
- A swing low is identified when a price bottom forms (via ZigZag) and momentum conditions are met (RSI < 20, ROC > +0.5).
- A swing high is identified when a price top forms and momentum conditions are met (RSI > 80, ROC < -0.5).
- Breakout Confirmation
- After a swing is detected, if price crosses above/below a three-bar swing structure, a secondary breakout signal is triggered.
- Trailing Stop Activation:
- Upon a confirmed swing or breakout, an ATR-multiplied trailing stop is initialized below/above the entry point to secure profits dynamically.
- Projection Logic
- Swing height is measured from the latest high-low sequence, and potential future targets are plotted for visual guidance.
---
Who Can Benefit From This Indicator
- Swing Traders — who seek early entries around reversal zones.
- Scalpers & Intraday Traders — needing fast-reacting momentum-based confirmation.
- Breakout Traders — to time entries after multi-bar compressions.
- Risk Managers — through integrated ATR trailing stops for dynamic exit management.
- Price Action Analysts — utilizing projected swing targets for strategic planning.
---
How to Use
- Entry Identification
- Look for buy signals at swing lows with strong positive momentum.
- Look for sell signals at swing highs with strong negative momentum.
- Use breakout confirmations to validate the trend continuation beyond swings.
- Risk Management
- Monitor trailing stop lines to track trade health.
- Watch projected targets to anticipate realistic move completions.
- Chart Visibility
- All plotted points, breakout markers, trailing stops, and projected levels are generated automatically for clarity.
---
Disclaimer
This script is intended for educational and analytical purposes only.
It does not constitute financial advice, and past performance does not guarantee future results.
All trading involves risk. Users are responsible for their own trading decisions.