Engulfing Logic Candle Consolidation
The "Engulfing Logic Candle Consolidation" indicator is designed to visualize price zones where multiple candlesticks are engulfing each other. When candles meet specific engulfing conditions, the script merges them into a single "virtual" range and displays it using semi-transparent boxes on the chart.
- Engulfing Range Logic : Automatically detects and consolidates groups of candles that are fully engulfed by others, forming clear structural zones.
- Multi-Session Time Highlights : Marks major trading sessions (Asia, Europe, U.S.) with customizable colors and visibility settings, helping traders identify time-based market rhythms.
The indicator uses two engulfing conditions to form virtual zones:
1、 Short-after-Long (right-side engulfing) : If the current candle is engulfed by the previous candle, a virtual box begins from that pair.
2、 Long-after-Short (left-side engulfing) : If the current candle engulfs one or more previous candles (looping backward), it triggers zone formation.
The zone grows as long as new candles are completely inside the range of prior ones. When engulfing ends, the range is boxed and preserved visually.
This tool is ideal for traders who focus on price structure. By consolidating engulfing candles into zones, it filters out noise and emphasizes meaningful price behavior. Works well when combined with trendlines, support/resistance, and volume indicators.
---
中文
<概述>
結合律 K 線整理指標用於視覺化市場中具有「吞噬行為」的價格結構。當多根 K 線出現互相包含的情況時,指標會將它們合併成一個虛擬區間,並以半透明區塊方式在圖表中標示出來。
<功能>
- 吞噬區間邏輯 :自動判斷多根 K 線是否符合「包容」邏輯,將其歸納為單一整理區。
- 多時區背景提示 :標示亞洲、歐洲、美國主要交易時段,並可自由設定顏色與開關,強化交易節奏感知。
<邏輯說明>
此指標使用兩種吞噬條件建立整理區:
短後長(右側包容) :若當前 K 線被前一根吞噬,將該兩根視為起點。
長後短(左側包容) :若當前 K 線吞噬一或多根前方 K 線,則回頭形成區間。
只要後續 K 線繼續落在區間內,就會不斷擴展。直到不再符合條件,該區間會被框選並視覺化標示。
<使用情境>
適合用於進行價格行為結構分析的交易者。它能簡化雜訊,聚焦在關鍵轉折與延續區。可與趨勢線、支撐壓力、成交量指標等搭配使用,提高 K 線策略的判讀效率。
อินดิเคเตอร์และกลยุทธ์
[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.
[Pandora's Chambers] BUY/SELL Blocks + Strength FCBased on the secret technique of ATTA,
Traditional price action analysis techniques, such as ICT (Inner Circle Trader), are often based on subjective interpretations and frequently miss the true structure of the market according to the Wyckoff method. The " BUY/SELL Blocks + Strength FC" indicator aims to correct this problem by automatically and accurately identifying buy/sell "blocks" according to Wyckoff principles, calculating volume strength, filtering breached blocks, and displaying precise support and resistance levels.
Indicator Highlights
Buy/Sell Blocks Identification
Uses the ta.pivothigh and ta.pivotlow functions to locate upper and lower pivot points, and draws a "box" between the two points to represent the block.
Each block is automatically extended to the right of the chart (can be disabled in settings) for a fixed number of bars or until the end of the chart.
Colors are configurable: turquoise shades for buy blocks, and purple for sell blocks.
Volume Strength Calculation and Update
In each candle, positive volume (in a rising market) or negative volume (in a falling market) is added to the relevant block.
Displays in percentages which side (buyers/sellers) controls the block: a label on the block shows +XX% or -XX%.
Changes the background color of the box to gray when the net volume flips (e.g., a strong sell block receives a net positive).
Filtering Breached Blocks
Option to automatically filter and remove blocks where the price has closed above the top of the sell block or below the bottom of the buy block, in order to maintain a clean and focused chart.
"Adjusted" Fibonacci Grid
In the last calculated bars, the indicator identifies the nearest high support level (sup) and the nearest low resistance level (res) among all existing blocks.
Based on sup and res, a Fibonacci grid of 0%, 25%, 50%, 75%, and 100% is constructed, automatically updating as the chart progresses.
What is so new here?
Accuracy according to Wyckoff and not personal interpretation: In the Wyckoff method, market oscillations are built on supply and demand balances in precise price gaps. Here, each block is built directly on pivots from a number of bars back, and not on feelings of an "area" as is sometimes done in ICT techniques.
Quantitative measurement of control: The indicator does not settle for a visual identification of a block but calculates for each block the buy volume versus the sell volume, and clearly displays who is in control.
Automatic filtering to maintain relevance: Breached blocks are removed, so only the strong areas that have not yet been closed remain.
Full integration with modern price action: Understanding price movement is measured here objectively, leaving no room for subjective interpretations of "structure breaks" or "diagonal waves" that standard tools do not support.
Why is the existing price action not enough?
Inconsistency in defining supply and demand zones: Many techniques rely on manual marking of "buy zones" only, without fixed criteria (number of bars back, low highs, volume, etc.).
Scarcity of quantitative indicators: Without calculating net volume, it is difficult to know if a particular block is truly supported by the power of buyers or sellers.
Net invalidation of blocks that have been violated: Repeated breaches of support and resistance areas below/above their boundaries confuse the trader, while here they are automatically removed.
The " BUY/SELL Blocks + Strength FC" indicator comes to correct all these shortcomings, and provides the user with an objective, accurate, and quantitative framework for understanding the dynamics of the market and identifying volume-based support and resistance areas, according to the principles of the Wyckoff method.
[Pandora's Chambers] Apex-Flux NavigatorThe " Apex Flux Navigator FC" indicator, whose name alludes to the unveiling of hidden market forces, offers a rich visual representation of market pressure by combining volume-based pivot analysis with RSI, including a dynamic Fibonacci grid, balanced pressure lines, and highlighted boxes for quick readability. The term "Chambers" in its name refers to the way the indicator frames the balance of power between buyers and sellers within the space defined by two consecutive pivot lines, essentially creating visual chambers that encapsulate this ongoing struggle. The grid is built according to the 25%, 38.2%, 50%, 61.8%, and 75% levels, marking key support and resistance points. Crucially, this indicator allows you to spot pinpoint momentum divergences against volume, offering insights into potential trend reversals or continuations. The indicator also calculates cumulative buy/sell percentages since the formation of each pivot, displays an average Buy/Sell ratio for each point, uses a smart algorithm that analyzes the length of movement against speed, and draws backgrounds that outline liquidity zones based on Fibonacci ratios of volume and overbought/oversold areas (boxes) to clearly and legibly highlight buyer/seller pressure zones. Furthermore, the rapid identification of pressure zones and momentum shifts can assist in recognizing opportunities for quick scalping trades. Additionally, the width and spacing of the pressure lines visually represent the current market volatility and the difference in liquidity between buyers and sellers.
General Description
The indicator enables automatic identification of pivot points (highs and lows) based on buy/sell activity and TradingView RSI.
It draws vertical lines connecting the full pivot high to the full pivot low, creating a standard Fibonacci grid, and adds balanced pressure lines on the price sides with F--/F+/(F++) annotations corresponding to the degree of TradingView pressure.
How it Works
Pivot Identification – Uses ta.pivothigh and ta.pivotlow with the Pivot Sensitivity parameter to determine highs and lows.
Volume and RSI Collection – The f_addPivot function stores buy/sell volume according to the day's fluctuations and initial RSI; in each bar, the cumulative volume and RSI are updated to calculate a dynamic average.
Creation of Lines and Pressure Points – Calculates pressure percentages based on volume and displays them through dotted/solid lines and labels, including dynamic colors and backgrounds (boxes) for visual illustration using the TradingView “Pressure Lines” technique.
How to Interpret the Output
Dotted lines indicate Liquidity zones where the dominant side's volume is particularly strong and may mark areas that the price is drawn to in order to achieve equilibrium.
Labels with text (“B: xx% | RSI yy%”) display the buy/sell percentage and the average RSI since the pivot's creation together.
F--/F+/F++ annotations reflect a pressure quality scale using the f_getAnnotation function based on pressure percentages.
How to Use
Select “Add to chart” to attach the indicator to the chart.
Through the indicator's settings, you can change Pivot Sensitivity, Fibonacci Grid Length, RSI Period, and more.
Inputs and Settings
Pivot Sensitivity (default: 3)
Extend Pressure Lines (default: off)
RSI Period (default: 14)
Fibonacci Grid Length, Color, Offset
Colors and line styles for the reporting mode
Tips and Recommendations
Use a timeframe that reflects appropriate volatility (e.g., H4/D) to reduce noise; the shorter the timeframe, the more fluid the information the indicator presents.
To improve identification accuracy, combine with moving averages or additional Fibonacci tools.
Avoid automated trading based on the indicator alone – always require confirmation from an additional indicator.
Trade Smart – Let the Apex Flux Navigator FC guide you to significant market pressure levels!
ConeCastConeCast is a forward-looking projection indicator that visualizes a future price range (or "cone") based on recent trend momentum and adaptive volatility. Unlike lagging bands or reactive channels, this tool plots a predictive zone 3–50 bars ahead, allowing traders to anticipate potential price behavior rather than merely react to it.
How It Works
The core of ConeCast is a dynamic trend-slope engine derived from a Linear Regression line fitted over a user-defined lookback window. The slope of this trend is projected forward, and the cone’s width adapts based on real-time market volatility. In calm markets, the cone is narrow and focused. In volatile regimes, it expands proportionally, using an ATR-based % of price to scale.
Key Features
📈 Predictive Cone Zone: Visualizes a forward range using trend slope × volatility width.
🔄 Auto-Adaptive Volatility Scaling: Expands or contracts based on market quiet/chaotic states.
📊 Regime Detection: Identifies Bull, Bear, or Neutral states using a tunable slope threshold.
🧭 Multi-Timeframe Compatible: Slope and volatility can be calculated from higher timeframes.
🔔 Smart Alerts: Detects price entering the cone, and signals trend regime changes in real time.
🖼️ Clean Visual Output: Optionally includes outer cones, trend-trail marker, and dashboard label.
How to Use It
Use on 15m–4H charts for best forward visibility.
Look for price entering the cone as a potential trend continuation setup.
Monitor regime changes and volatility expansion to filter choppy market zones.
Tune the slope sensitivity and ATR multiplier to match your symbol's behavior.
Use outer cones to anticipate aggressive swings and wick traps.
What Makes It Unique
ConeCast doesn’t follow price — it predicts a possible future price envelope using trend + volatility math, without relying on lagging indicators or repainting logic. It's a hybrid of regression-based forecasting and dynamic risk zoning, designed for swing traders, scalpers, and algo developers alike.
Limitations
ConeCast projects based on current trend and volatility — it does not "know" future price. Like all projection tools, accuracy depends on trend persistence and market conditions. Use this in combination with confirmation signals and risk management.
RSI Run‑Length by ATTARSI Run‑Length by ATTA – The Next Generation of RSI
The RSI Run‑Length by ATTA indicator was developed to quantify not only the magnitude of price movements but also the continuity with which they occur. Instead of relying on point‑by‑point averages of gains and losses, it counts each sequence of consecutive gains (up‑run) and each sequence of consecutive losses (down‑run), applies Wilder’s RMA smoothing to these counts, and then computes the classic RSI formula on their ratio.
This approach significantly reduces market noise by giving greater weight to sustained trends, while simultaneously reducing the lag inherent in traditional methods. Rather than waiting for signals triggered by isolated fluctuations, RSI Run‑Length by ATTA detects turning points at the earliest stages of movement streaks and maintains precise, timely responsiveness.
Core Principles:
Run‑Length Counting: Measures trend depth without distortion from isolated spikes.
Wilder’s RMA on Counts: Provides statistical smoothing to suppress excessive volatility.
Classic RSI Formula: Applies the familiar RSI calculation to the smoothed run‑length ratio.
This mechanism enables early identification of momentum shifts and the construction of strategies based on stable sequences rather than sporadic gains. The simplicity of a single parameter (run‑length period – default 14) and the logical sequence of counting, smoothing, and ratio calculation make the tool both transparent and intuitive for technical traders and quantitative analysts alike.
Usage Instructions:
Select the run‑length period (commonly 14 bars).
Set overbought/oversold thresholds (recommended 70/30).
Overlay with complementary indicators (classic RSI, MACD, etc.) for confirmation.
I invite traders and analysts to incorporate RSI Run‑Length by ATTA into their indicator libraries to gain deeper, more actionable insights into price momentum.
X OHLdesigned to plot significant levels—closed higher timeframe High, Low, Open, and an Equilibrium (EQ) level and current Open—on the current chart based on user-defined higher timeframes (HTFs). It helps traders visualize HTF price levels on lower timeframes for confluence, context, or decision-making.
Key Functional Components:
Configurable Inputs:
Four Timeframes: Customizable (default: 1H, 4H, D, W).
Visibility Toggles for:
Previous High (pHigh)
Previous Low (pLow)
EQ (midpoint between high and low)
Current Open
Previous Open
How It Works:
For each selected timeframe:
retrieves OHL Data
Previous high/low (high , low )
Current and previous open
EQ is calculated as midpoint: (high + low) / 2
Draws Horizontal Lines:
Lines are drawn from the candle where the HTF bar opens and extended until timeframe switch. Lines extends a few bars beyond current to assist in visualization
Labels:
On the most recent bar, each level is labeled with a description (pHigh 1H, EQ 6H, etc.).
Labels are customizable (size, color, background).
Anchoring:
Lines and labels are redrawn on the start of each new HTF bar to ensure accuracy and relevance.
[blackcat] L3 Twin Range Filter ProOVERVIEW
The L3 Twin Range Filter Pro indicator enhances trading strategies by filtering out market noise through a sophisticated dual-range approach. Unlike previous versions, this script not only provides clear visual indications of buy/sell signals but also incorporates a dynamic trend range filter line. By averaging two smoothed exponential moving averages—one fast and one slow—the indicator generates upper and lower range boundaries that adapt to changing market conditions. Traders can easily spot buy/sell opportunities when the closing price crosses these boundaries, supported by configurable alerts for real-time notifications.
FEATURES
Dual-Range Calculation: Combines fast and slow moving averages to create adaptive range boundaries.
Customizable Parameters:
Periods: Adjustable lengths for fast (default 9 bars) and slow (default 34 bars) moving averages.
Multipliers: Coefficients to modify the distance of the trailing lines from the price.
Dynamic Trend Range Filter Line: Visually displays buy/sell signals directly on the chart.
Trailing Stop Loss Logic: Automatically follows price movements to act as a trailing stop loss indicator.
Trade Signals: Clearly indicates buy/sell points with labeled signals.
Alerts: Configurable notifications for buy/sell signals to keep traders informed.
Visual Enhancements: Colored fills and dynamic boundary lines for easy interpretation.
HOW TO USE
Add the L3 Twin Range Filter Pro indicator to your TradingView chart.
Customize the input parameters:
Price Source: Choose the desired price source (e.g., Close).
Show Trade Signals: Toggle on/off for displaying buy/sell labels.
Fast Period: Set the period for the fast moving average (default 9 bars).
Slow Period: Set the period for the slow moving average (default 34 bars).
Fast Range Multiplier: Adjust the multiplier for the fast moving average.
Slow Range Multiplier: Adjust the multiplier for the slow moving average.
Monitor the plotted trend range filter and dynamic boundaries on the chart.
Identify buy/sell signals based on the crossing of price and range boundaries.
Configure alerts for real-time notifications when signals are triggered.
TRADE LOGIC
BUY Signal: Triggered when the price is higher than or equal to the upper range level. The indicator line will trail just below the price, acting as a trailing stop loss.
SELL Signal: Triggered when the price is lower than or equal to the lower range level. The indicator line will trail just above the price, serving as a trailing stop loss.
LIMITATIONS
The performance of this indicator relies on the selected periods and multipliers.
Market volatility can impact the accuracy of the signals.
Always complement this indicator with other analytical tools for robust decision-making.
NOTES
Experiment with different parameter settings to optimize the indicator for various market conditions.
Thoroughly backtest the indicator using historical data to ensure its compatibility with your trading strategy.
THANKS
A big thank you to Colin McKee for his foundational work on the Twin Range Filter! Your contributions have paved the way for enhanced trading tools. 🙏📈🔍
Yome Kill Zones ProPerfect for US30 Entry ## Yome Kill Zones Pro
**Yome Kill Zones Pro** is a precision trading tool designed for day traders and scalpers who focus on session-based setups, liquidity sweeps, and directional bias during the London–New York overlap.
---
### **Key Features**
- **Customizable Kill Zone Box**
- Marks session high/low from any user-defined time window (default: 6:00–11:30 UTC).
- **Swing Point Sweep Detection**
- Identifies significant highs/lows swept by price with momentum—ideal for supply/demand or S/R zones.
- **Independent Bias Kill Zone**
- Separate bias calculation window with adjustable start/end time to isolate market sentiment.
- **Bias Table (Always-On Display)**
- **Killzone Bias** – Shows direction based on price change during bias time.
- **Long-Term Bias** – Compares price vs. Open and EMA(50) from any selected timeframe (default: 15m).
- **Full Visual Customization**
- Editable sweep labels, line colors, line style, label visibility, and kill zone extensions.
---
### **How to Use**
1. **Set Your Session Times**
- Use the “Killzone Settings” to define high/low tracking time.
- Use “Bias Killzone Settings” to define when to calculate bias direction.
2. **Check the Bias Table**
- Use **Killzone Bias** for short-term session direction.
- Use **Long-Term Bias** to align with higher timeframe market structure.
3. **Watch for Liquidity Sweeps**
- Look for momentum-based breaks of swing highs/lows within your kill zone window.
- Use these levels to anticipate reversals, retests, or continuations.
4. **Customize It Your Way**
- Everything from line styles, sweep label visibility, thickness, and colors can be customized.
---
### **Best For**
- London & New York session scalpers
- Liquidity & structure-based traders
- Traders using ICT, Smart Money Concepts, or Wyckoff-style analysis
---
> **Tip:** Pair with volume or order block tools for enhanced sniper entries.
Heikin Ashi Colored Regular OHLC CandlesHeikin Ashi Colored Regular OHLC Candles
In the world of trading, Heikin Ashi candles are a popular tool for smoothing out price action and identifying trends more clearly. However, Heikin Ashi candles do not reflect the actual open, high, low, and close prices of a market. They are calculated values that change the chart’s structure. This can make it harder to see precise price levels or use standard price-based tools effectively.
To get the best of both worlds, we can apply the color logic of Heikin Ashi candles to regular OHLC candles. This means we keep the true market data, but show the trend visually in the same smooth way Heikin Ashi candles do.
Why use this approach
Heikin Ashi color logic filters out noise and helps provide a clearer view of the current trend direction. Since we are still plotting real OHLC candles, we do not lose important price information such as actual highs, lows, or closing prices. This method offers a hybrid view that combines the accuracy of real price levels with the visual benefits of Heikin Ashi trend coloring. It also helps maintain visual consistency for traders who are used to Heikin Ashi signals but want to see real price action.
Advantages for scalping
Scalping requires fast decisions. Even small price noise can lead to hesitation or bad entries. Coloring regular candles based on Heikin Ashi direction helps reduce that noise and makes short-term trends easier to read. It allows for faster confirmation of momentum without switching away from real prices. Since the candles are not modified, scalpers can still place tight stop-losses and targets based on actual price structure. This approach also avoids clutter, keeping the chart clean and focused.
How it works
We calculate the Heikin Ashi values in the background. If the Heikin Ashi close is higher than the Heikin Ashi open, the trend is considered bullish and the candle is colored green. If the close is lower than the open, it is bearish and the candle is red. If they are equal, the candle is gray or neutral. We then use these colors to paint the real OHLC candles, which are unchanged in shape or position.
Test OHLCV LibraryThis indicator, "Test OHLCV Library," serves as a practical example of how to use the OHLCVData library to fetch historical candle data from a specific timeframe (like 4H) in a way that is largely impervious to the chart's currently selected time frame.
Here's a breakdown of its purpose and how it addresses request.security limitations:
Indicator Purpose:
The main goal of this indicator is to demonstrate and verify that the OHLCVData library can reliably provide confirmed historical OHLCV data for a user-specified timeframe (e.g., 4H), and that a collection of these data points (the last 10 completed candles) remains consistent even when the user switches the chart's time frame (e.g., from 5-second to Daily).
It does this by:
Importing the OHLCVData library.
Using the library's getTimeframeData function on every bar of the chart.
Checking the isTargetBarClosed flag returned by the library to identify the exact moment a candle in the target timeframe (e.g., 4H) has closed.
When isTargetBarClosed is true, it captures the confirmed OHLCV data provided by the library for that moment and stores it in a persistent var array.
It maintains a list of the last 10 captured historical 4H candle opens in this array.
It displays these last 10 confirmed opens in a table.
It uses the isAdjustedToChartTF flag from the library to show a warning if the chart's time frame is higher than the target timeframe, indicating that the data fetched by request.security is being aligned to that higher resolution.
Circumventing request.security Limitations:
The primary limitation of request.security that this setup addresses is the challenge of getting a consistent, non-repainting collection of historical data points from a different timeframe when the chart's time frame is changed.
The Problem: Standard request.security calls, while capable of fetching data from other timeframes, align that data to the bars of the current chart. When you switch the chart's time frame, the set of chart bars changes, and the way the requested data aligns to these new bars changes. If you simply collected data on every chart bar where request.security returned a non-na value, the resulting collection would differ depending on the chart's resolution. Furthermore, using request.security without lookahead=barmerge.lookahead_off or an offset ( ) can lead to repainting on historical bars, where values change as the script recalculates.
How the Library/Indicator Setup Helps:
Confirmed Data: The OHLCVData library uses lookahead=barmerge.lookahead_off and, more importantly, provides the isTargetBarClosed flag. This flag is calculated using a reliable method (checking for a change in the target timeframe's time series) that accurately identifies the precise chart bar corresponding to the completion of a candle in the target timeframe (e.g., a 4H candle), regardless of the chart's time frame.
Precise Capture: The indicator only captures and stores the OHLCV data into its var array when this isTargetBarClosed flag is true. This means it's capturing the confirmed, finalized data for the target timeframe candle at the exact moment it closes.
Persistent Storage: The var array in the indicator persists its contents across the bars of the chart's history. As the script runs through the historical bars, it selectively adds confirmed 4H candle data points to this array only when the trigger is met.
Impervious Collection: Because the array is populated based on the completion of the target timeframe candles (detected reliably by the library) rather than simply collecting data on every chart bar, the final contents of the array (the list of the last 10 confirmed 4H opens) will be the same regardless of the chart's time frame. The table then displays this static collection.
In essence, this setup doesn't change how request.security fundamentally works or aligns data to the chart's bars. Instead, it uses the capabilities of request.security (fetching data from another timeframe) and Pine Script's execution model (bar-by-bar processing, var persistence) in a specific way, guided by the library's logic, to build a historical collection of data points that represent the target timeframe's candles and are independent of the chart's display resolution.
S&P 500 Top 25 - EPS AnalysisEarnings Surprise Analysis Framework for S&P 500 Components: A Technical Implementation
The "S&P 500 Top 25 - EPS Analysis" indicator represents a sophisticated technical implementation designed to analyze earnings surprises among major market constituents. Earnings surprises, defined as the deviation between actual reported earnings per share (EPS) and analyst estimates, have been consistently documented as significant market-moving events with substantial implications for price discovery and asset valuation (Ball and Brown, 1968; Livnat and Mendenhall, 2006). This implementation provides a comprehensive framework for quantifying and visualizing these deviations across multiple timeframes.
The methodology employs a parameterized approach that allows for dynamic analysis of up to 25 top market capitalization components of the S&P 500 index. As noted by Bartov et al. (2002), large-cap stocks typically demonstrate different earnings response coefficients compared to their smaller counterparts, justifying the focus on market leaders.
The technical infrastructure leverages the TradingView Pine Script language (version 6) to construct a real-time analytical framework that processes both actual and estimated EPS data through the platform's request.earnings() function, consistent with approaches described by Pine (2022) in financial indicator development documentation.
At its core, the indicator calculates three primary metrics: actual EPS, estimated EPS, and earnings surprise (both absolute and percentage values). This calculation methodology aligns with standardized approaches in financial literature (Skinner and Sloan, 2002; Ke and Yu, 2006), where percentage surprise is computed as: (Actual EPS - Estimated EPS) / |Estimated EPS| × 100. The implementation rigorously handles potential division-by-zero scenarios and missing data points through conditional logic gates, ensuring robust performance across varying market conditions.
The visual representation system employs a multi-layered approach consistent with best practices in financial data visualization (Few, 2009; Tufte, 2001).
The indicator presents time-series plots of the four key metrics (actual EPS, estimated EPS, absolute surprise, and percentage surprise) with customizable color-coding that defaults to industry-standard conventions: green for actual figures, blue for estimates, red for absolute surprises, and orange for percentage deviations. As demonstrated by Padilla et al. (2018), appropriate color mapping significantly enhances the interpretability of financial data visualizations, particularly for identifying anomalies and trends.
The implementation includes an advanced background coloring system that highlights periods of significant earnings surprises (exceeding ±3%), a threshold identified by Kinney et al. (2002) as statistically significant for market reactions.
Additionally, the indicator features a dynamic information panel displaying current values, historical maximums and minimums, and sample counts, providing important context for statistical validity assessment.
From an architectural perspective, the implementation employs a modular design that separates data acquisition, processing, and visualization components. This separation of concerns facilitates maintenance and extensibility, aligning with software engineering best practices for financial applications (Johnson et al., 2020).
The indicator processes individual ticker data independently before aggregating results, mitigating potential issues with missing or irregular data reports.
Applications of this indicator extend beyond merely observational analysis. As demonstrated by Chan et al. (1996) and more recently by Chordia and Shivakumar (2006), earnings surprises can be successfully incorporated into systematic trading strategies. The indicator's ability to track surprise percentages across multiple companies simultaneously provides a foundation for sector-wide analysis and potentially improves portfolio management during earnings seasons, when market volatility typically increases (Patell and Wolfson, 1984).
References:
Ball, R., & Brown, P. (1968). An empirical evaluation of accounting income numbers. Journal of Accounting Research, 6(2), 159-178.
Bartov, E., Givoly, D., & Hayn, C. (2002). The rewards to meeting or beating earnings expectations. Journal of Accounting and Economics, 33(2), 173-204.
Bernard, V. L., & Thomas, J. K. (1989). Post-earnings-announcement drift: Delayed price response or risk premium? Journal of Accounting Research, 27, 1-36.
Chan, L. K., Jegadeesh, N., & Lakonishok, J. (1996). Momentum strategies. The Journal of Finance, 51(5), 1681-1713.
Chordia, T., & Shivakumar, L. (2006). Earnings and price momentum. Journal of Financial Economics, 80(3), 627-656.
Few, S. (2009). Now you see it: Simple visualization techniques for quantitative analysis. Analytics Press.
Gu, S., Kelly, B., & Xiu, D. (2020). Empirical asset pricing via machine learning. The Review of Financial Studies, 33(5), 2223-2273.
Johnson, J. A., Scharfstein, B. S., & Cook, R. G. (2020). Financial software development: Best practices and architectures. Wiley Finance.
Ke, B., & Yu, Y. (2006). The effect of issuing biased earnings forecasts on analysts' access to management and survival. Journal of Accounting Research, 44(5), 965-999.
Kinney, W., Burgstahler, D., & Martin, R. (2002). Earnings surprise "materiality" as measured by stock returns. Journal of Accounting Research, 40(5), 1297-1329.
Livnat, J., & Mendenhall, R. R. (2006). Comparing the post-earnings announcement drift for surprises calculated from analyst and time series forecasts. Journal of Accounting Research, 44(1), 177-205.
Padilla, L., Kay, M., & Hullman, J. (2018). Uncertainty visualization. Handbook of Human-Computer Interaction.
Patell, J. M., & Wolfson, M. A. (1984). The intraday speed of adjustment of stock prices to earnings and dividend announcements. Journal of Financial Economics, 13(2), 223-252.
Skinner, D. J., & Sloan, R. G. (2002). Earnings surprises, growth expectations, and stock returns or don't let an earnings torpedo sink your portfolio. Review of Accounting Studies, 7(2-3), 289-312.
Tufte, E. R. (2001). The visual display of quantitative information (Vol. 2). Graphics Press.
Climax Detector (Buy & Sell)This indicator identifies potential Buying Climax (BC) and Selling Climax (SC) events based on volume spikes relative to historical averages.
• Buying Climax (BC):
• Detected when a green candle forms with volume significantly higher than the average (default: 2×).
• Often signals the end of an uptrend or distribution phase.
• Selling Climax (SC):
• Detected when a red candle forms with very high volume (default: 2× average).
• Often occurs at the end of a downtrend, suggesting panic selling and potential accumulation.
How it works:
• Calculates a moving average of volume over a user-defined period (default: 20 candles)
• Flags a climax when current volume exceeds the defined multiplier (default: 2.0×)
• Marks:
• BC with an orange triangle above the bar
• SC with a fuchsia triangle below the bar
Customizable Settings:
• Volume spike sensitivity
• Lookback period for average volume
Use Cases:
• Spot possible trend exhaustion
• Confirm Wyckoff phases
• Combine with support/resistance for reversal entries
Disclaimer: This tool is designed to assist in identifying high-probability exhaustion zones but should be used alongside other confirmations or strategies.
Liquidity and S&R Zones╔══════════════════════════════════════════════════════════════════════╗
║ Description ║
╚══════════════════════════════════════════════════════════════════════╝
This indicator identifies liquidity zones and support/resistance (S&R) levels
using pivot points and volume analysis. Liquidity zones highlight areas of high
trading activity, while S&R levels mark key price levels where price may reverse
or break. Breakouts are confirmed with a volume oscillator and visualized with
shapes. Alerts are provided for significant S&R breakouts.
╔══════════════════════════════════════════════════════════════════════╗
║ User Guide ║
╚══════════════════════════════════════════════════════════════════════╝
#### Overview
This indicator detects liquidity zones and support/resistance (S&R) levels
using pivot points and volume analysis. Liquidity zones highlight areas of
high trading activity, often targeted by institutional traders. S&R levels
indicate key price levels where price may reverse or break, with breakouts
confirmed by a volume oscillator. The indicator is designed for traders
seeking to trade breakouts or reversals at critical levels.
#### Features
- **Liquidity Zones**: Identifies pivot highs/lows with high-volume confirmation.
- **Support/Resistance Levels**: Plots dynamic S&R lines based on pivot points.
- **Breakout Signals**: Displays shapes for price crossing S&R levels with volume confirmation.
- **Volume Oscillator**: Uses short/long EMA difference to confirm breakouts.
- **Alerts**: Notifies users of support/resistance breakouts.
#### Input Parameters
- **Liquidity Settings**:
- *Liquidity Lookback Period*: Bars for average volume (default: 50).
- *Liquidity Volume Threshold Multiplier*: Volume multiplier for liquidity zones (default: 1.5).
- *Liquidity Pivot Lookback*: Bars for pivot detection (default: 5).
- **S&R Settings**:
- *Show Breaks*: Toggle breakout shapes (default: true).
- *Left/Right Bars*: Bars for S&R pivot detection (default: 15).
- *S&R Volume Threshold*: Minimum oscillator value for breakouts (default: 20).
- **Style Settings**: Predefined colors for liquidity and S&R visualization.
#### Usage
1. Apply the indicator to a chart (e.g., 1H, 4H, or D timeframes recommended).
2. Adjust input parameters to suit the instrument and timeframe:
- Increase `liqLookback` for smoother volume averages on lower timeframes.
- Adjust `leftBars` and `rightBars` for more/less sensitive S&R levels.
- Set `srVolumeThresh` based on typical oscillator values (plot `osc` to calibrate).
3. Monitor liquidity zones (red/green/yellow crosses) and S&R lines (red/green).
4. Watch for breakout signals (shapes) when price crosses S&R levels with volume confirmation.
5. Set up alerts for "Support Broken" or "Resistance Broken" to receive notifications.
#### Recommended Settings
- **Timeframes**: 1H, 4H, or D for reliable signals.
- **Instruments**: Assets with good volume (e.g., crypto, forex, indices).
- **Liquidity**: Increase `liqVolumeThreshold` (e.g., 2.0) for stricter zones.
- **S&R**: Use `leftBars = rightBars = 10` for faster markets.
#### Cautions
- Ensure sufficient chart history for pivot and volume calculations.
- High `liqLookback` or `leftBars` may delay signals on lower timeframes.
- Volume oscillator requires accurate volume data; test on reliable instruments.
- Backtest breakout signals, as false breakouts can occur in choppy markets.
#### Customization Ideas
- Add Fibonacci levels to complement S&R zones.
- Integrate with trend indicators (e.g., EMA) to filter breakouts.
- Visualize volume oscillator as a histogram for calibration.
- Extend liquidity zones with boxes to highlight price ranges.
#### Notes
- Combine with other analysis for a complete trading system.
- Test thoroughly in a demo account before live trading.
- Contact the author for support or feature requests.
Happy trading, and may your trades align with the market’s key levels! 🚀
Future OI AnalysisThis indicator appears to be a Futures Open Interest (OI) Analysis Tool designed to help traders understand market sentiment (long/short bias), cost of carry dynamics, and rollover behaviour. Below is a comprehensive description along with the formulas used:
To analyze futures market trends using:
Price change
Open Interest (OI) data
Cost of Carry (COC)
Rollover percentage
Column Breakdown and Formulas:
Date : Trading date.
Close : Close price of the spot on that day.
OI Cur (Current Open Interest) : Total open interest of the current (near) month contract.
OI Next (Next Month Open Interest) : Open interest of the next month contract.
COI (Cumulative Open Interest) : OI Cur + OI Next
COI Chg = ((Current COI - Previous COI) / Previous COI) × 100
Price Cng = ((Current Close - Previous Close) / Previous Close) × 100
OI BuildUP (Interpreted sentiment based on price & OI change):
Long Buildup : Price ↑ & OI ↑
Short Buildup : Price ↓ & OI ↑
Short Covering : Price ↑ & OI ↓
Long Unwinding : Price ↓ & OI ↓
PoiBox# PoiBox: Advanced Market Structure and POI Visualization Tool
PoiBox is a comprehensive market structure analysis tool designed to identify high-probability trading zones through advanced internal market structure (IDM) detection and points of interest (POI) calculation.
## How It Works
The indicator uses a multi-step approach to analyze price action:
1. **Market Structure Identification**: The script identifies significant highs and lows within your selected time range to determine the overall market structure direction (up or down).
2. **IDM Pattern Detection**: It then analyzes internal market structure patterns within this range, focusing on significant price movements that create trading opportunities.
3. **POI Calculation**: Using adaptive ATR measurements across multiple timeframes, the indicator calculates precise POI zones where price is likely to react. These zones are calibrated based on the volatility profile of each identified structure.
4. **Timeframe Correlation**: The script automatically determines which timeframe best matches each structure's size, providing valuable context for your trading decisions.
5. **Technical Implementation**: The indicator uses a sophisticated algorithm to analyze price swings, identify pivot points, and calculate market structure connections. It maintains a database of significant highs/lows and uses these to determine trend direction and potential reversal zones.
## Display Modes
PoiBox offers three powerful display options:
- **Main BOS**: Shows only the most significant breakout structure with its associated POI zone
- **Leg**: Displays the largest price leg within the selected range along with percentage-based POI zones
- **All IDMs**: Reveals all detected internal market structures and their POI zones
## Advanced Features
- **QM Mode**: Visualizes important market structure relationships with dashed lines connecting significant highs and lows
- **Trick Display**: Identifies nested market structures (tricks) within larger patterns, perfect for precision entries
- **Customizable POI Labels**: Control which price labels appear to maintain chart clarity
- **Extensive Color Settings**: Fully customizable colors for all visual elements
- **Safety Functions**: Includes built-in buffer management and error prevention algorithms to ensure stable performance across all timeframes and market conditions
## Trading Examples
**Downtrend Example:**
When PoiBox identifies a downtrend structure (Higher High → High → Low → Lower Low), it creates POI zones based on the market structure. As shown in the chart, these zones provide excellent entry opportunities when price returns to test previous structure. In this example, entering at the red POI zone with a stop above the zone and target at the QM level resulted in a 3.45 risk/reward trade.
**How to Read QM Lines:**
The dashed lines connecting High → Low → Higher High → Lower Low reveal the market's true structure. These connections help you anticipate where price might head next. When price breaks below a significant Low and creates a Lower Low, it confirms the downtrend continuation and provides a trading opportunity when price retests the broken structure.
**POI Zone Interpretation:**
- Red zones indicate bearish POI areas (ideal for short entries)
- Green zones indicate bullish POI areas (ideal for long entries)
- Yellow zones highlight the identified market structure
## Practical Application Example
In the GBP/USD example shown in the chart:
1. PoiBox identified a downtrend structure with Higher High → High → Low → Lower Low
2. The yellow box shows the main market structure area
3. The red POI zone appeared when price returned to test previous structure
4. Entry was taken at the POI zone with stop loss above structure
5. Target was placed at the QM level, resulting in a 3.45 risk/reward ratio trade
6. The dashed QM lines showed the overall market flow and direction
This demonstrates how PoiBox automatically identifies optimal entry and exit points based on market structure, without requiring manual analysis of each price swing.
## Mathematical Approach
PoiBox uses several mathematical concepts to determine market structure and calculate POI zones:
1. **Adaptive ATR Integration**: The script analyzes ATR (Average True Range) across multiple timeframes (M1, M5, M15, H1, H4, D1, W1, MN1) to determine the appropriate volatility context for each structure.
2. **Height-to-ATR Ratio**: The indicator calculates the ratio between structure height and the closest matching ATR value to determine the structure's timeframe context.
3. **Dynamic POI Calculation**: POI values are calculated using the formula:
`POI = factor * (atr_trigger + atr_double_trigger)`
where `factor` is derived from the structure's height-to-ATR ratio.
4. **Self-Adjusting Limits**: If the calculated POI value exceeds certain thresholds relative to structure height, the script automatically applies proportional adjustments to maintain optimal zone sizing.
## What Makes PoiBox Unique
While many indicators use common concepts like support/resistance or trend analysis, PoiBox stands apart through its:
1. **Adaptive POI Calculation**: Unlike static indicators, PoiBox automatically calibrates POI zones based on each market structure's volatility profile by analyzing ATR across multiple timeframes.
2. **Smart Timeframe Detection**: The indicator automatically determines the most relevant timeframe for each structure, eliminating guesswork and helping you align your trading with the appropriate market cycles.
3. **QM Visualization System**: Our proprietary QM visualization method reveals hidden market structure relationships that standard indicators cannot detect, giving you an edge in anticipating price movements.
4. **Nested Pattern Recognition**: The "Trick" detection feature identifies high-probability setups where smaller patterns form within larger ones, creating precise entry opportunities missed by conventional tools.
5. **Self-Adjusting Analysis**: PoiBox dynamically adapts to changing market conditions without requiring manual parameter adjustments, saving you time and increasing accuracy.
These innovations combine to create a truly original trading system that transforms complex market structure concepts into clear, actionable signals.
## How To Use
1. Define your analysis area using the time range selectors (X1 and X2)
2. Choose your preferred display mode based on your trading style
3. Enable QM Mode for additional market structure context if needed
4. Use the POI zones as potential entry and exit areas for your trades
5. Reference the automatically detected timeframe indicators to align your trading with the appropriate timeframe
### Settings Explanation
**Display Settings:**
- Display Mode: Choose between Main BOS, Leg, or All IDMs visualization
- QM Mode: Enable to see market structure connections with dashed lines
**Trick Settings:**
- Trick Display: Show the main trick or all nested patterns
- Trick POI: Control which POI zones appear for trick patterns
**Label Settings:**
- Leg POI %: Customize percentage-based POI zones in Leg mode
- POI Labels: Control which price labels appear on your chart
**Time Range:**
- X1 and X2: Define the analysis area for market structure detection
**Colors:**
- TF Color: Color for timeframe labels
- H/L Color: Color for high/low labels
- QM Lines: Color for market structure connection lines
- Trick Color: Color for nested pattern visualization
This indicator is designed for traders who understand market structure concepts and want a powerful tool that automatically identifies high-probability trading zones based on structural price patterns and volatility-adjusted measurements.
FVG [TakingProphets]🧠 Purpose
This indicator is built for traders applying Inner Circle Trader (ICT) methodology. It detects and manages Fair Value Gaps (FVGs) — price imbalances that often act as future reaction zones. It also highlights New Day Opening Gaps (NDOGs) and New Week Opening Gaps (NWOGs) that frequently play a role in early-session price behavior.
📚 What is a Fair Value Gap?
A Fair Value Gap forms when price moves rapidly, skipping over a portion of the chart between three candles — typically between the high of the first candle and the low of the third. These zones are considered inefficient, meaning institutions may return to them later to:
-Rebalance unfilled orders
-Enter or scale into positions
-Engineer liquidity with minimal slippage
In ICT methodology, FVGs are seen as both entry zones and targets, depending on market structure and context.
⚙️ How It Works
-This script automatically identifies and manages valid FVGs using the following logic:
-Bullish FVGs: When the low of the current candle is above the high from two candles ago
-Bearish FVGs: When the high of the current candle is below the body of two candles ago
-Minimum Gap Filter: Gaps must be larger than 0.05% of price
-Combine Consecutive Gaps (optional): Merges adjacent gaps of the same type
-Consequent Encroachment Line (optional): Plots the midpoint of each gap
-NDOG/NWOG Tracking: Labels gaps created during the 5–6 PM session transition
-Automatic Invalidation: Gaps are removed once price closes beyond their boundary
🎯 Practical Use
-Use unmitigated FVGs as potential entry points or targets
-Monitor NDOG and NWOG for context around daily or weekly opens
-Apply the midpoint (encroachment) line for precise execution decisions
-Let the script handle cleanup — only active, relevant zones remain visible
🎨 Customization
-Control colors for bullish, bearish, and opening gaps
-Toggle FVG borders and midpoint lines
-Enable or disable combining of consecutive gaps
-Fully automated zone management, no manual intervention required
✅ Summary
This tool offers a clear, rules-based approach to identifying price inefficiencies rooted in ICT methodology. Whether used for intraday or swing trading, it helps traders stay focused on valid, active Fair Value Gaps while filtering out noise and maintaining chart clarity.
Weekly Moving Averages (MAs) to Intraday ChartThis indicator overlays key weekly timeframe moving averages onto your intraday chart, allowing you to visualize important long-term support and resistance levels while trading shorter timeframes. The indicator includes:
330-period Simple Moving Average (white): Ultra long-term trend indicator
200-period Simple Moving Average (fuchsia): Major long-term trend indicator often watched by institutional traders
100-period Simple Moving Average (purple): Medium-to-long term trend indicator
50-period Exponential Moving Average (blue): Medium-term trend indicator, more responsive to recent price action
21-period Exponential Moving Average (teal): Short-to-medium term trend indicator
9-period Exponential Moving Average (aqua): Short-term trend indicator, highly responsive to recent price movements
This multi-timeframe approach helps identify significant support/resistance zones that might not be visible on your current timeframe. When price interacts with these weekly moving averages during intraday trading, it often signals important areas where institutional orders may be placed.
The indicator uses color-coding with increasing line thickness to help you quickly distinguish between different moving averages. Consider areas where multiple MAs cluster together as particularly strong support/resistance zones.
Perfect for day traders and swing traders who want to maintain awareness of the bigger picture while focusing on shorter-term price action.
OTC COT / smart money Index 2.0 COT/ Smart money Indicator – Institutional Commitment & Position Sizing (Inspired by Bernd Skorupinski Methodology)
📈 Description:
This indicator focuses on visualizing net positions held by commercials (smart money) and other key market participants, using data from the Commitments of Traders (COT) report. Inspired by Bernd Skorupinski’s institutional approach, the tool works hand-in-hand with the COT Index to provide a full picture of institutional sentiment and positioning strength.
👉 Core Functionality:
Displays net-long and net-short positions over time, helping traders understand how heavily institutions are positioned in a market.
Highlights historical extremes in net positions, which can act as warning signs or entry points when combined with technical analysis.
Supports customizable timeframes and asset selection (commodities, forex, indices) for maximum flexibility.
Best used in combination with the COT Index, offering a layered view of both relative extremes (COT Index) and absolute exposure (Net Positions).
The tool is designed to act as a contextual filter—it should complement technical setups rather than provide standalone trade signals.
📊 Applied Example – Gold Trade Using COT Net Position Analysis
To show the practical application, here’s a breakdown of a Gold (GC1!) trade that leveraged both COT Index and COT Net Positions to identify a high-probability setup.
Step 1️⃣ – Identifying Technical Structure:
The analysis started with classic price action review: Gold was approaching a significant demand zone, a well-established area that has historically triggered institutional buying.
Step 2️⃣ – COT Index Confirmation:
Upon reviewing the COT Index, the data revealed a 312-week buying extreme—the most aggressive commercial buying seen in over six years, signaling strong institutional accumulation.
Step 3️⃣ – COT Net Positions Validation:
Next, the COT Net Position Indicator showed that commercials were holding their largest net-long position in over 15 years—a rare and powerful signal of institutional conviction.
Step 4️⃣ – Divergence Check:
For added confirmation, divergence between commercials and retail traders was assessed:
✅ Commercials: Strongly net-long.
❌ Retail traders: Heavily net-short.
This clear divergence between smart money and retail sentiment further validated the setup.
Step 5️⃣ – Trade Execution:
With everything aligned:
Demand zone identified,
312-week COT Index extreme,
15-year high in net positions,
Divergence between commercials and retail,
…the trade was entered with a stop-loss placed just below the demand zone and a target set at a significant prior high. The result: a risk-reward ratio of 1:14.8, reflecting the strength and precision of the setup.
⚙️ What Sets This Tool Apart:
Provides deep insight into institutional exposure, showing both the magnitude of positions and how they evolve over time.
Enhances decision-making by cross-validating positioning extremes with technical levels.
Flexible design allows use across multiple asset classes and timeframes.
📌 Best Practices:
Always pair COT Net Position data with the COT Index to gauge both relative and absolute strength.
Use in conjunction with demand/supply zones or key technical levels for the strongest setups.
Look for divergence signals (institutions vs. retail) to confirm potential reversals.
Indicators Used in the Example:
This trade combined:
🧠 COT Net Position Indicator – to measure institutional exposure.
📊 COT Index – to identify positioning extremes.
📅 Seasonality Forecasting Tool – for time-based confirmation.
Together, these indicators provided a robust, multi-layered framework for high-confidence trading decisions.
OTC - COT Net positions 2.0 COT Net Position Indicator – Institutional Commitment & Position Sizing (Inspired by Bernd Skorupinski Methodology)
📈 Description:
This indicator focuses on visualizing net positions held by commercials (smart money) and other key market participants, using data from the Commitments of Traders (COT) report. Inspired by Bernd Skorupinski’s institutional approach, the tool works hand-in-hand with the COT Index to provide a full picture of institutional sentiment and positioning strength.
👉 Core Functionality:
Displays net-long and net-short positions over time, helping traders understand how heavily institutions are positioned in a market.
Highlights historical extremes in net positions, which can act as warning signs or entry points when combined with technical analysis.
Supports customizable timeframes and asset selection (commodities, forex, indices) for maximum flexibility.
Best used in combination with the COT Index, offering a layered view of both relative extremes (COT Index) and absolute exposure (Net Positions).
The tool is designed to act as a contextual filter—it should complement technical setups rather than provide standalone trade signals.
📊 Applied Example – Gold Trade Using COT Net Position Analysis
To show the practical application, here’s a breakdown of a Gold (GC1!) trade that leveraged both COT Index and COT Net Positions to identify a high-probability setup.
Step 1️⃣ – Identifying Technical Structure:
The analysis started with classic price action review: Gold was approaching a significant demand zone, a well-established area that has historically triggered institutional buying.
Step 2️⃣ – COT Index Confirmation:
Upon reviewing the COT Index, the data revealed a 312-week buying extreme—the most aggressive commercial buying seen in over six years, signaling strong institutional accumulation.
Step 3️⃣ – COT Net Positions Validation:
Next, the COT Net Position Indicator showed that commercials were holding their largest net-long position in over 15 years—a rare and powerful signal of institutional conviction.
Step 4️⃣ – Divergence Check:
For added confirmation, divergence between commercials and retail traders was assessed:
✅ Commercials: Strongly net-long.
❌ Retail traders: Heavily net-short.
This clear divergence between smart money and retail sentiment further validated the setup.
Step 5️⃣ – Trade Execution:
With everything aligned:
Demand zone identified,
312-week COT Index extreme,
15-year high in net positions,
Divergence between commercials and retail,
…the trade was entered with a stop-loss placed just below the demand zone and a target set at a significant prior high. The result: a risk-reward ratio of 1:14.8, reflecting the strength and precision of the setup.
⚙️ What Sets This Tool Apart:
Provides deep insight into institutional exposure, showing both the magnitude of positions and how they evolve over time.
Enhances decision-making by cross-validating positioning extremes with technical levels.
Flexible design allows use across multiple asset classes and timeframes.
📌 Best Practices:
Always pair COT Net Position data with the COT Index to gauge both relative and absolute strength.
Use in conjunction with demand/supply zones or key technical levels for the strongest setups.
Look for divergence signals (institutions vs. retail) to confirm potential reversals.
Indicators Used in the Example:
This trade combined:
🧠 COT Net Position Indicator – to measure institutional exposure.
📊 COT Index – to identify positioning extremes.
📅 Seasonality Forecasting Tool – for time-based confirmation.
Together, these indicators provided a robust, multi-layered framework for high-confidence trading decisions.
SMT Divergences By RootkitHow It Works:
Heikin Ashi Smoothing
Instead of using raw OHLC price data, the script applies Heikin Ashi smoothing to reduce noise and better identify pivot highs and lows.
Pivot Detection
It looks for local swing highs and lows using a user-defined lookback period (Pivot Lookback). These are used to detect potential divergences.
SMT Divergence Logic
An SMT divergence is identified when:
A pivot low occurs on the main chart.
But one or more of the comparison symbols makes a higher low instead (or lower high for bearish SMT).
This signals a disagreement between instruments, often attributed to smart money accumulation or distribution.
Trend Filter
To reduce false signals, the script only allows:
Buy signals during an uptrend
Sell signals during a downtrend
The trend is determined by comparing Heikin Ashi highs/lows to previous bars.
Signal Markers
BUY labels appear below bars at valid bullish SMT divergences.
SELL labels appear above bars at valid bearish SMT divergences.
Optional trend lines visually connect the last significant pivot to the current one.
⚙️ Inputs:
Pivot Lookback – Number of bars for swing high/low detection.
Symbol A/B/C – Up to 3 comparison symbols (futures, indices, etc.).
Toggle Each Symbol – Enable or disable any comparison ticker.
Custom Colors – Choose your own line colors for buy/sell signals.
🧠 Why It Matters:
SMT divergence is used by professional traders to spot early signs of accumulation/distribution, often before price reverses. This script helps you detect these signals automatically while keeping them filtered by overall market trend.
OTC Seasonal forecasting tool 2.0Seasonality Forecasting Tool – Advanced Seasonal Pattern Analysis (Inspired by Bernd Skorupinski Methodology)
📈 Description:
This script provides a structured way to analyze seasonal trends across financial markets, helping traders identify historical patterns that tend to repeat at specific times of the year. Inspired by Bernd Skorupinski’s institutional strategy, it has been refined with enhanced smoothing and customization options to improve adaptability across asset classes like commodities, forex, and indices.
👉 Core Functionality:
Analyzes historical price data over multiple lookback periods (5, 10, and 15 years) to calculate average seasonal performance.
Generates a smoothed seasonal curve that visually highlights periods of expected strength or weakness.
Allows users to customize lookback periods and adjust smoothing parameters, offering flexibility based on market type and volatility.
This tool is designed to be used as a contextual filter rather than a trade trigger—adding a layer of time-based confluence to enhance decision-making.
📊 Applied Example – Crude Oil Seasonality & Demand Zone Alignment
To demonstrate practical usage, here’s an example using Light Crude Oil Futures (CL1!) where seasonal tendencies and price structure aligned to create a high-probability setup.
Setup Steps:
1️⃣ Structural Context – Price Reaching a Demand Zone:
The market had been in a decline and approached a well-defined institutional demand area, which historically attracts buying interest.
2️⃣ Seasonality Analysis – Bullish Bias Identified:
The Seasonality Tool was applied using three distinct lookback windows:
5-year average 🟢
10-year average 🔴
15-year average 🔵
All three seasonal curves showed consistent upward trends during the late December to February period, historically signaling accumulation phases in crude oil markets.
3️⃣ Execution – Trade Setup:
With both:
Price action confirming a technical demand zone,
and seasonality indicating a strong historical bullish period,
a long position was taken targeting the next significant supply zone.
Result:
The trade unfolded as anticipated, with price rebounding strongly and delivering a risk-reward ratio of approximately 1:5.8—an outcome consistent with historical seasonal performance patterns.
⚙️ What Sets This Tool Apart:
Combines multi-timeframe seasonal data into a unified, easy-to-interpret visual output.
Includes custom smoothing algorithms to reduce noise, making the seasonal curves clearer and more reliable in fast-moving markets.
Offers flexibility to analyze not only commodities but also forex, indices, and other instruments influenced by recurring cycles (e.g., agricultural products, metals).
📌 Best Practices for Use:
Apply the tool alongside key technical zones (demand/supply) to find optimal trade timing.
Look for confluence across at least two of the seasonal curves (e.g., 5-year and 10-year averages agreeing on direction).
Use in combination with other market analysis tools—such as valuation indicators, COT data, or smart money flow—for full confirmation.
OTC valuation indicator 2.0Valuation Indicator – Relative Asset Valuation Tool (Inspired by Bernd Skorupinski Methodology)
📈 Description:
This script is designed to analyze relative value shifts between two assets—such as Gold (GC1!) and the Dollar Index (DXY)—to identify overvalued and undervalued market conditions. It is inspired by principles from Bernd Skorupinski’s methodology but has been developed with custom adjustments and improvements to enhance flexibility and adaptability across various asset classes.
👉 How It Works:
The script calculates a normalized valuation index by measuring the percentage price deviation between a target asset (e.g., Gold) and a reference asset (e.g., Dollar Index).
A moving average baseline defines fair value, with deviations indicating potential overvaluation or undervaluation.
A volatility-adjusted filter dynamically smooths the output, reducing noise and improving signal accuracy across different market environments.
Parameters such as evaluation period and sensitivity are fully customizable, allowing traders to tailor the tool to commodities, forex, indices, or other asset pairs.
📊 Detailed Example – Gold & Dollar Index Setup:
To demonstrate how the indicator can be used, here’s an example based on a real market scenario:
Context : Identifying high-probability buy setups on Gold when undervaluation is confirmed relative to the Dollar Index.
Conditions :
1️⃣ Gold enters a significant demand zone (identified through traditional technical analysis).
2️⃣ The valuation index (from this script) drops below the -75 level, signaling strong undervaluation
In both October 2022 and October 2023, the valuation index dropped well below -75, and Gold was sitting at major demand zones. The result?
📈 Massive moves to the upside, with Risk-Reward ratios hitting 1:4 or more.
snapshot
This is a textbook Bernd Skorupinski strategy setup, combining macro fundamentals (valuation) with technical structure (demand zones).
This is not just theory — the same conditions repeated multiple times, delivering repeatable, high-probability trades.
This showcases how macro mispricing (Dollar overvalued, Gold undervalued) can be identified visually and quantitatively using the indicator, enabling traders to make more confident, data-backed entry decisions.
⚙️ What Makes It Unique:
Unlike standard correlation or spread indicators, this script combines dynamic volatility filtering with a multi-step comparative analysis to better handle market volatility and price extremes.
It offers flexible asset pairing, allowing traders to adapt the tool to various market scenarios beyond just Gold/DXY—such as Oil vs. Euro or Stocks vs. Forex.
📌 Recommended Use:
Best applied on weekly and daily charts.
Should be combined with other technical tools such as support/resistance levels or demand zones for added confirmation.
Not intended as a standalone signal; it works best as part of a broader market analysis strategy.
Hull Moving Average with Cloud📈 Hull Moving Average with Cloud – Adaptive Trend Visualization
This indicator combines the power of the Hull Moving Average (HMA) with a visual signal line and trend cloud, giving traders a clearer view of market direction, momentum shifts, and potential reversals.
🔍 Key Features:
Dynamic HMA Length (optional): Adjusts the HMA period based on ATR volatility, allowing the moving average to adapt to changing market conditions.
Custom Smoothing Options: Smooth the main HMA with your choice of SMA, EMA, or WMA for a tailored trend line.
Signal Line (Orange HMA): A shorter-period Hull MA that acts as a trigger line for crossovers and trend changes.
Color-Coded Trend Cloud:
🟩 Green Cloud: Bullish – main HMA is above the signal HMA.
🟥 Red Cloud: Bearish – main HMA is below the signal HMA.
Real-Time Trend Coloring: Both lines dynamically change color based on slope (green for rising, red/purple for falling).
Offset Capability: Shift the HMA forward to visualize trend development and potential future direction.
✅ Use Cases:
Identify trend direction with cloud coloration.
Spot early reversals through HMA crossover signals.
Filter trades with volatility-aware moving average responsiveness.