Support & Resistance External/Internal & BoS [sgbpulse]Market Structure Support & Resistance External/Internal & BoS
Overview: Smart & Fast Market Structure Analysis
The Market Structure "Support & Resistance External/Internal & BoS " indicator is designed to empower your technical analysis by automatically and precisely identifying significant support and resistance levels. It achieves this by pinpointing high and low Pivot Points, plus key Pre-Market High/Low levels.
Its unique strength lies in its dynamic adaptability to any timeframe and any asset you choose. This tool analyzes the relevant market structure for the current timeframe and asset, providing you with accurate and relevant levels in real-time. The indicator maintains a clean chart and swiftly displays all support, resistance, and Pre-Market levels for any asset, saving valuable analysis time and enabling you to get a clear and quick snapshot of the market.
How the Indicator Works
The indicator identifies and displays three critical types of key levels:
External Pivots: These are more significant pivot points, indicating important reversal points across a broader range of price movement, considering the current timeframe. The indicator draws dark green support lines (for low pivots) and dark red resistance lines (for high pivots) from these points.
Internal Pivots: These are shorter-term pivot points, signifying smaller corrections or reversals within the overall structure of the current timeframe. These lines provide additional areas of interest within the ranges of the External Pivots.
Pre-Market High/Low Levels: The indicator displays the High and Low reached during pre-market hours as distinct lines on the chart. Please note: These levels will only appear when the selected timeframe is lower than one day (e.g., 1-hour, 15-minute) and provided that the "Session extended trading hours" option is enabled in your TradingView chart settings. These levels are crucial for identifying potential opening ranges and critical support/resistance areas upon regular market open, especially for intraday trading.
Break of Structure (BoS) Identification
A key feature of this indicator is its ability to identify Break of Structure (BoS). When a support or resistance line is breached, the indicator changes the line's color to gray and displays a "Break of Structure" label, indicating a potential trend change or continuation:
External BoS: When an external support/resistance line is broken, a "BoS" label in red will appear. This is a strong signal for a potential shift in the primary market structure or a strong trend continuation.
Internal BoS: When an internal support/resistance line is broken, an "iBoS" label in green will appear. This indicates a break within the existing market structure, which can be used to confirm direction or identify shorter-term entry/exit opportunities.
Full Indicator Customization
The indicator provides maximum flexibility to suit any trading style and timeframe:
Number of Lines Displayed: You can choose how many support and resistance lines you want to see on your chart. The default is 15 lines, but you can increase or decrease this number according to your needs and desired level of detail.
External Pivot Settings: Define the number of bars before and after a pivot point required for External Pivot identification.
Internal Pivot Settings: Define the number of bars before and after a pivot point required for Internal Pivot identification.
Color Customization: Full control over colors! You can change the colors of the support and resistance lines, the colors of the Pre-Market levels, and also the colors of the BoS and iBoS labels to create a visual appearance that perfectly matches your personal preferences.
This flexibility allows you to adapt the indicator to your trading style and any timeframe you operate in, without needing to manually change settings each time.
Recommended Uses
Clean Chart & Quick Analysis: The indicator displays important levels clearly, enabling quick identification of areas of interest without visual clutter on the chart. This significantly saves analysis time and allows you to make faster decisions.
Critical Levels for Any Timeframe & Asset: Get precise and adaptive support and resistance, plus essential Pre-Market levels (in relevant timeframes), for any timeframe and on any asset you choose.
Trend Direction Identification: Clear support and resistance lines help understand market structure.
Breakout Confirmation: The BoS label provides visual confirmation of key level breaches, helping to confirm potential trend changes.
Locating Entry & Exit Points: Use these levels as potential areas of interest for trades, after confirming a breakout or reversal.
Finding Stop-Loss & Take-Profit Points: Strategically place protective stops and profit targets around these support and resistance levels.
Important Note
Like any technical indicator, Market Structure "Support & Resistance External/Internal & BoS " is a supplementary tool. It's highly recommended to use it in conjunction with additional analysis methods (such as price action analysis, other indicators, and fundamental analysis) for informed trading decisions. Financial markets are dynamic, and trading always carries inherent risk.
Support
TWAP/VWAP AUTO SHIFTER Bands🟢 TWAP/VWAP AUTO SHIFTER Bands – NinjaTrader Logic + Dynamic Deviation Zones
📌 Overview
This powerful tool combines institution-grade price anchoring (VWAP/TWAP) with adaptive volatility bands and smart zone visualization. The core innovation: a toggleable VWAP logic engine, letting traders switch between:
* 🧠 Standard TradingView VWAP/TWAP
* 🧠 Custom NinjaTrader-style VWAP logic (faithfully ported for Pine Script 6)
Use it to visualize where price is anchored, where trend turns, and where hidden liquidity or mean-reversion zones may be forming.
🎯 What This Script Does
This indicator plots:
1. A central VWAP/TWAP line, anchored to -any timeframe or custom period-
2. Karma trend line using adaptive volatility envelopes
3. Dynamic bands that react to price range, volatility, and momentum
4. Optional range-based zones using Fibonacci-like ratios for structure detection
5. A visual "hidden fill" shading system to highlight bullish or bearish control
🚀 Unique Features
🧮 1. NinjaTrader VWAP Logic (Optional)
When enabled, this mode replaces TradingView’s default VWAP with a custom weighted average based on:
mean = average of ((high + low) and (open + close))
VWAP = sum(mean × volume) / sum(volume)
✔ Gives more stable center in volatile conditions
✔ Matches many institutional VWAP tools
Use the toggle:
☑️ “Use NinjaTrader VWAP Formula”
To activate this precision logic.
🕰 2. Anchor VWAP/TWAP to Any Timeframe
Choose your VWAP anchor from:
* D = Daily
* W = Weekly
* M = Monthly
* Or define your **own custom timeframe** (e.g., “240” or “15”)
This makes it:
⏳ Perfect for day traders anchoring intraday
🧭 Valuable for swing traders observing weekly bias
🧱 Solid for long-term positioning
📊 3. Karma Deviation Line (Trend Pulse)
The Karma line uses an adaptive efficiency ratio + fast/slow deviation logic to track momentum shifts.
* When it crosses above VWAP: possible bullish control
* When it falls below: possible reversion risk
It uses smoothed deviation bands to filter noise.
🎨 4. Hidden Fills & Range Bands
Zone shading makes this one of the most visual VWAP bands indicators out there:
* Red shade = aggressive push above VWAP
* Green shade = price collapsing under VWAP
* White “internal channel” = tight inner value zone
* Purple/gray bands = map structural levels for profit-taking, fading, or breakout watch
🧠 How to Use It
🧩 VWAP Anchoring
* Set timeframe to match your strategy horizon
* Use custom anchor (like 15m, 2h) to match intraday setups
🧠 Ninja Logic
* Enable to use VWAP matching NinjaTrader and institutional backends
* Recommended for high-volume or low-liquidity instruments
📈 Karma Bands
* Look for Karma line breaking VWAP from below → early trend
* Look for Karma curling down inside green zone → mean reversion
📐 Range Zones
* Use shaded fills to visualize exhaustion
* Watch for clean bounces off internal ratios
⚙️Recommended Settings
| Style | Setting |
| -------------------------------| ------------------------------------ |
| VWAP Mode | NinjaLogic ON (for precise behavior) |
| Anchor TF | Daily (or custom intraday like 30m) |
| Deviation | Fast: 50, Slow: 200 |
| Show Range Marks | ON |
| Hidden Zones | ON (for visual clarity) |
🧪 Tested On:
* BTC/ETH/USD
* Nifty Futures
* NASDAQ Stocks
* SPY/QQQ
* Crude Oil and Metals
📝 Author’s Note
Remember that this is an educational idea and past performance is not assurance of future performance.
🟢 Happy Anchoring!
Important High & Low ⚖️This indicator automatically identifies and plots horizontal lines on the chart at significant price-reversal points.
Two “setup” styles are available to the user:
Normal (identifies classic reversal configurations)
Special (…)
The “Important High” lines appear at key highs, and the “Important Low” lines appear at key lows.
ULTIMATE Price Action Oscillator with Volume-Based S/R - MehtaULTIMATE Price Action Oscillator with Volume-Based S/R (UPO-PRO-VOL)
Key Features:
Smart Oscillator: Combines price action momentum with customizable smoothing.
Volume-Confirmed S/R: Identifies high-confidence Support/Resistance levels when price crosses above-average volume.
Real-Time Tracking: Displays S/R levels with timestamps (IST) in a clean table.
Visual Alerts: Dashed lines + labels mark key levels for easy spotting.
⚠️ STRONG DISCLAIMER
❌ This indicator is for educational purposes only.
❌ Not financial advice. Trading involves risk—always conduct your own analysis.
❌ No guarantee of accuracy. Past performance ≠ future results.
❌ Adjust settings carefully. Test in a demo account first.
❌ Volume thresholds may vary by asset. Customize Volume Threshold Multiplier as needed.
📝 How to Use:
S/R Signals: Green "S" = Support (oscillator crosses up with high volume). Red "R" = Resistance (oscillator crosses down with high volume).
Table: Tracks latest S/R prices and formation time (IST).
Tweak Settings: Adjust Oscillator Length, Smoothing, and Volume Threshold for your trading style.
Tip: Combine with trend analysis for higher-probability trades!
Script Settings (Default):
Oscillator Length: 5 (Can be adjusted upto a maximum value of 200)
Smoothing: 3
S/R Lookback: 100 bars
Volume Threshold: 1.5x avg volume
Running Minimum HighThe running minimum high looks at the minimum high from a defined lookback period (default 10 days) and plots that on the price chart. Green arrows signify when the low of the candle is above the running minimum high (suggesting an uptrend), and red arrows signify when the high of the candle is below the running minimum high (suggesting a downtrend).
It is recommended to use this on high timeframes (e.g. 1 hour and above) given the high number of signals it generates on lower timeframes.
Protected Pivots Points by RiotwolftradingProtected Pivots Points by Riotwolftrading
---
You have an advanced visual tool designed for traders who want to identify and manage key price levels with maximum precision.
This script detects protected pivots (significant highs and lows) and marks them with horizontal lines on the chart. These lines automatically extend for a fixed number of bars or until price invalidates the level with a closing break.
---
🚀 What makes this indicator special?
---
✅ Protected pivot detection:
The indicator identifies protected highs and lows using a fixed pivot strength
✅ Wick break detection (liquidity sweep visualization):
When a wick crosses the pivot level **without the candle closing beyond the level, the indicator automatically changes the line’s color and style.
👉 This immediately shows the trader that the level was tested but remains structurally valid.
✅ Highly customizable visuals:
* Choose whether to show color for protected highs, lows, or wick break levels.
* Set your own colors, line styles (solid, dashed, dotted), and line widths.
---
### 🌟 Why is wick break detection so valuable?
---
💡 Instant context on price action:
No need to manually check every candle to see if a level was barely tested. The indicator changes the line’s appearance automatically, so you can focus on decisions.
💡 Clear distinction between untouched levels and tested levels:
* A level with no wick test is pristine support/resistance.
* A level tested by a wick but not invalidated is still valid — but may have been swept for liquidity.
💡 Crucial for precision trading strategies:
This is particularly important for strategies that rely on:
✅ Liquidity sweeps / stop hunts.
✅ Reversals from tested zones.
✅ Smart Money Concepts (SMC).
✅ ICT concepts, breakers, Quasimodo, BOS/MSS.
The wick break visualization helps filter false breakouts and highlights areas where institutional players may have stepped in.
💡 Avoid premature exits or entries:**
The color/style change tells you a level was tested but not broken, so you avoid overreacting to wick activity.
---
### ⚡ Example use case**
Imagine a protected low line:
🔹 Price dips and its wick touches the level — the line changes color (e.g. violet solid line).
🔹 The level is still valid because the close didn’t break it.
🔹 This could signal a stop hunt or liquidity grab, with a possible reversal opportunity right at that level.
---
### 🧭 **Why most pivot indicators don’t offer this**
Most pivot indicators:
❌ Simply mark the level and remove it after a close break.
❌ Don’t distinguish between a wick test and a true break.
🌟 **This indicator does — giving traders an extra layer of market insight.**
---
### ⚠ **Disclaimer**
This indicator is a visual aid to help identify key levels and price reactions. It does **not** generate buy or sell signals and should be used alongside your trading analysis and strategy.
---
Ultra VolumeVisualizes volume intensity using dynamic color gradients and percentile thresholds. Includes optional SMA, bar coloring, and adaptive liquidity boxes to highlight high- and low-volume zones in real time.
Introduction
The Ultra Volume indicator enhances volume analysis by categorizing volume bars into percentile-based intensity levels. It uses color-coded gradients to quickly identify periods of unusually high or low activity. The script also includes an optional simple moving average (SMA), bar coloring, and visual box overlays to highlight zones of significant liquidity shifts.
Detailed Description
.........
Volume Classification
Volume is segmented into five tiers: Extra High, High, Medium, Normal, and Low, using percentile ranks calculated over a dynamically adjusted historical window. This segmentation adapts based on the chart's timeframe – using 100 bars for daily and 1440/minutes for intraday – allowing for consistent behavior across resolutions.
.....
Color Gradients
Each volume bar is colored based on its percentile category, smoothly transitioning between thresholds for visual clarity. This makes it easy to spot volume spikes or droughts relative to recent history.
.....
Simple Moving Average (SMA)
An optional SMA can be plotted on top of the volume bars for trend comparison and baseline reference. Its length and color are fully customizable.
.....
Bar Coloring
You can optionally color the chart's candlesticks to reflect the same volume intensity as the histogram bars, reinforcing visual cues across the chart.
.....
Liquidity Boxes
Two adaptive box systems highlight zones of increased or decreased liquidity:
High Liquidity Boxes expand upward when price exceeds the previous box’s top.
Low Liquidity Boxes expand downward when price breaks the previous box’s bottom.
These boxes persist and auto-adjust over time unless reset, helping traders spot key zones of volume-driven price action.
.....
Box Indexing
A configurable index shift determines how far back in the chart the boxes originate. Setting this to 501 makes them "stick" to the candle where they were first created.
.....
Data Handling
A safety check ensures the script throws an error if volume data is unavailable (e.g., for some crypto or CFD symbols).
.........
Summary
Ultra Volume is a practical tool for traders who want more than just raw volume bars. With intelligent percentile-based classification, real-time adaptive liquidity zones, and fully customizable visual elements, it turns volume into a highly readable, actionable signal.
Essa - Multi-Timeframe LevelsEnhanced Multi‐Timeframe Levels
This indicator plots yearly, quarterly and monthly highs, lows and midpoints on your chart. Each level is drawn as a horizontal line with an optional label showing “ – ” (for example “Apr 2025 High – 1.2345”). If two or more timeframes share the same price (within two ticks), they are merged into a single line and the label lists each timeframe.
A distance table can be shown in any corner of the chart. It lists up to five active levels closest to the current closing price and shows for each level:
level name (e.g. “May 2025 Low”)
exact price
distance in pips or points (calculated according to the instrument’s tick size)
percentage difference relative to the close
Alerts can be enabled so that whenever price comes within a user-specified percentage of any level (for example 0.1 %), an alert fires. Once price decisively crosses a level, that level is marked as “broken” so it does not trigger again. Built-in alertcondition hooks are also provided for definite breaks of the current monthly, quarterly and yearly highs and lows.
Monthly lookback is configurable (default 6 months), and once the number of levels exceeds a cap (calculated as 20 + monthlyLookback × 3), the oldest levels are automatically removed to avoid clutter. Line widths and colours (with adjustable opacity for quarterly and monthly) can be set separately for each timeframe. Touches of each level are counted internally to allow future extension (for example visually emphasising levels with multiple touches).
Breakout of inclined trendline [Drobode]█ DESCRIPTION
The script is designed to automatically detect a possible trendline breakout under the conditions of the popular "Slanted Trendline Breakout" strategy. The algorithm assumes that during the movement the price approaches the slanted (trend) line several times. With each subsequent approach (touch) to the trend line, the price consolidates more and more near this line, the distances between the extremes (touches) decrease, which indicates a high probability of a breakout of this line. The script checks the number of touches (approaches) of the extremes and the distances between the extremes. If all conditions are met, the script draws a slanted (trend) line in the corresponding area and an arrow with a possible price breakout direction. The length of the arrow is half the height of the slanted (trend) line and may indicate the level (price) at which it is advisable to fix the profit. In the script, you can enable or disable additional analysis periods (history length, number of bars), the more periods are enabled, the slower the script may load. For example, when placing the script on M-15, we can additionally enable the period 300 or 500, which will allow us to take into account a larger number of historical bars, and this can be considered as the extremes of the older timeframe. The script calculates each period separately, so one large period will not be able to take into account and analyze smaller periods. You can set the percentage deviation of the distance of the extremes from the trend line that touch the inclined line, depending on your needs and style of technical analysis. The smaller the percentage, the more accurate and closer to the inclined line the price extreme should be and vice versa. The main goal of the script is to facilitate the trader's routine work of identifying a possible trend line breakout. However, it should be understood that the script is not a full-fledged self-sufficient strategy, in case of receiving a signal, it is recommended to additionally conduct a comprehensive thorough analysis before taking trading actions. The script can be useful for traders of all levels, both beginners and experienced analysts. Like any other strategy or script, this script can work better on some instruments than on others. When analyzing trading setups, it is desirable to have a clear trend, it is recommended to take into account the signal of this script with a small period when the arrow shows the direction of the trend. However, at the same time, it is necessary to deeply analyze many other factors at this stage, in particular, such as volumes, consolidation, volatility, candlestick patterns, etc.
█ SCRIPT SETTINGS
By default, the script was developed and tested on medium timeframes with cryptocurrency futures instruments USDT.P
Alert
The Alert function in the script is enabled by default, you just need to activate Alert in the TradingView window and select the signal source - Breakout of inclined trendline .
The notification provides the following information (example):
Possible breakout to the upside
Ticker- DOGEUSDT.P
Price- 0.15844
Timeframe- 30
Period length- 377
Periods length
The script allows you to set the length of the period (number of bars) for which the calculation will be performed. Different periods allow you to cover more timeframes (in particular, larger timeframes). You can change up to 4 periods at a time. However, if you choose too large periods, the script may slow down and the loading time will increase. To increase the loading speed of the script, disable additional periods 3, 4, i.e. uncheck the corresponding checkboxes and use only fields 1 and 2 for periods, where you can also set the period length you need.
Percentage deviation of extremes from the trend line
The next settings are the percentage deviation of the extremes from the sloping line. The smaller the deviation, the more accurate and closer to the line the extreme bars should be, however, in this case the number of identification signals will be smaller. By default, the rejection zone is - 0.15%. On larger timeframes, the deviation can be set to be larger.
Gann Single SwingGann Single Swing Indicator
The Gann Single Swing indicator is a sophisticated tool rooted in the geometric and cyclical market analysis principles pioneered by William Delbert Gann. Designed for traders who value deep market structure analysis, this indicator leverages the interplay of price and time to identify key support and resistance zones, potential reversal points, and critical price-time synchronization areas. Its unique approach makes it an invaluable instrument for those employing Gann-based methodologies or seeking a systematic way to decode complex market dynamics.
What It Does
The Gann Single Swing indicator is built to pinpoint high-probability zones for price action, such as support and resistance levels, where traders can logically initiate long or short positions. By analyzing a user-defined price swing (a move between two selected points, such as a local high and low), the indicator constructs a geometric framework that reveals hidden patterns in market movements. It identifies:
Support and Resistance Zones: Key price levels where the market is likely to reverse or consolidate.
Temporal Reversal Zones: Specific time periods where price reversals are more probable due to time-price resonance.
Price-Time Synchronization Points: Areas where price and time align to signal potential market turning points.
How It Works
The indicator’s algorithm is grounded in Gann’s geometric principles, focusing on the relationship between price movements and time cycles. Here’s a high-level overview of its process:
Swing Selection: Traders select two key points on the chart (e.g., a local minimum and maximum) to define a price swing.
Channel Construction: The swing is encapsulated within a dynamic channel, forming the foundation of the geometric model.
Gann Fan Application: A Gann Fan is applied to the channel to calculate critical angles, representing the balance between price and time. These angles help identify resonant points that align with the channel’s central axis.
Squared Channel Analysis: The algorithm creates “squared” channels, geometrically derived sub-structures, analyzed for intersections and alignments to project external support and resistance zones beyond the base swing.
Internal Zone Mapping: Within the base swing, a reverse Gann Fan maps internal zones, highlighting areas of price-time convergence that may act as dynamic support or resistance.
Zone Projection: The indicator synthesizes these calculations to plot precise zones of support, resistance, and potential reversals, both spatially (price levels) and temporally (time-based zones).
While the exact mathematical formulations remain proprietary, the indicator relies on time-tested Gann techniques, such as angle-based analysis and cyclical resonance, to deliver actionable insights.
How to Use It
Select the Swing: Identify two significant points on the chart (e.g., a recent high and low) to define the swing. These points serve as the anchor for the indicator’s calculations.
Interpret the Zones: The indicator plots support and resistance zones (both price-based and time-based). Look for price action near these zones to identify potential entry or exit points.
Combine with Other Tools: For best results, use alongside other Gann-based tools (e.g., Gann Squares or Time Cycles) or traditional technical analysis (e.g., trendlines, Fibonacci levels) to confirm signals.
Monitor Temporal Zones: Pay attention to time-based reversal zones, as they may indicate when a price move is likely to occur, enhancing trade timing.
Why It’s Unique
Unlike conventional indicators that rely on moving averages, RSI, or other common metrics, the Gann Single Swing indicator offers a proprietary blend of Gann’s geometric and cyclical principles. Its ability to integrate price and time into a cohesive model sets it apart, providing traders with a deeper understanding of market structure. The indicator does not use public domain code or standard technical indicators, ensuring originality and value for traders seeking advanced tools.
Who It’s For
This indicator is ideal for:
Traders familiar with Gann’s methodologies who want to automate and enhance their geometric analysis.
Advanced traders looking to uncover hidden market patterns through price-time relationships.
Those seeking a robust, non-traditional tool for identifying high-probability trade setups.
The Gann Single Swing indicator is not a black-box forecasting tool but a powerful framework for dissecting market behavior. By combining user-defined inputs with sophisticated geometric calculations, it empowers traders to make informed decisions based on the timeless principles of Gann’s market philosophy.
TrueTrend MaxRThe TrueTrend MaxR indicator is designed to identify the most consistent exponential price trend over extended periods. It uses statistical analysis on log-transformed prices to find the trendline that best fits historical price action, and highlights the most frequently tested or traded level within that trend channel.
For optimal results, especially on high timeframes such as weekly or monthly, it is recommended to use this indicator on charts set to logarithmic scale. This ensures proper visual alignment with the exponential nature of long-term price movements.
How it works
The indicator tests 50 different lookback periods, ranging from 300 to 1280 bars. For each period, it:
- Applies a linear regression on the natural logarithm of the price
- Computes the slope and intercept of the trendline
- Calculates the unbiased standard deviation from the regression line
- Measures the correlation strength using Pearson's R coefficient
The period with the highest Pearson R value is selected, meaning the trendline drawn corresponds to the log-scale trend with the best statistical fit.
Trendline and deviation bands
Once the optimal period is identified, the indicator plots:
- A main log-scale trendline
- Upper and lower bands, based on a user-defined multiple of the standard deviation
These bands help visualize how far price deviates from its core trend, and define the range of typical fluctuations.
Point of Control (POC)
Inside the trend channel, the space between upper and lower bands is divided into 15 logarithmic levels. The script evaluates how often price has interacted with each level, using one of two selectable methods:
- Touches: Counts the number of candles crossing each level
- Volume: Weighs each touch by the traded volume at that candle
The level with the highest cumulative interaction is considered the dynamic Point of Control (POC), and is plotted as a line.
Annualized performance and confidence display
When used on daily or weekly timeframes, the script also calculates the annualized return (CAGR) based on the detected trend, and displays:
- A performance estimate in percentage terms
- A textual label describing the confidence level based on the Pearson R value
Why this indicator is useful
- Automatically detects the most statistically consistent exponential trendline
- Designed for log-scale analysis, suited to long-term investment charts
- Highlights key price levels frequently visited or traded within the trend
- Provides objective, data-based trend and volatility insights
- Displays annualized growth rate and correlation strength for quick evaluation
Notes
- All calculations are performed only on the last bar
- No future data is used, and the script does not repaint
- Works on any instrument or timeframe, with optimal use on higher timeframes and logarithmic scaling
TCT - Envelope MatrixTCT - Envelope Matrix
A powerful multi-envelope indicator that creates a comprehensive price channel system with 4 customizable envelopes and multiple intermediate levels for precise price action analysis.
Key Features:
• 4 customizable envelopes with adjustable percentages (0.2%, 0.4%, 0.6%, 0.8% by default)
• Optional EMA or SMA basis calculation
• Color-coded bands for easy visual identification
• Automatic horizontal lines showing current band values
• Midpoint lines between adjacent bands
• Additional 25%, 50%, and 75% levels between each band pair
The indicator provides:
- Clear visual representation of price channels
- Multiple support and resistance levels
- Dynamic price boundaries that adapt to market conditions
- Enhanced precision with intermediate levels between bands
Perfect for:
• Identifying potential support and resistance zones
• Spotting overbought/oversold conditions
• Finding potential reversal points
• Analyzing price volatility and channel width
• Making informed trading decisions based on price position relative to multiple bands
Customization Options:
• Adjustable length for the basis calculation
• Choice between EMA and SMA
• Customizable colors for each envelope
• Flexible percentage settings for each band
• Optional basis line color adjustment
This indicator is particularly useful for traders who want to analyze price action within multiple dynamic channels and identify potential trading opportunities based on price interactions with various support and resistance levels.
Engineer_Invest Support BTCDescription of the "Engineer_Invest Support BTC" indicator
The indicator is designed to highlight a dynamic support level using a combination of a smoothed trend and an assessment of market volatility. Its key features are:
1. Calculating the baseline using the EMA:
The script calculates an exponential moving average (EMA) of the opening price with a configurable period (200 by default). This allows you to create a reliable basis for interpreting price movements, minimizing the impact of short-term fluctuations.
2. Volatility assessment via ATR:
To analyze market variability, the method of calculating the average true range (ATR) multiplied by a given coefficient (default is 5) is used. This approach helps accurately reflect the current market volatility by adjusting the support level depending on the intensity of price fluctuations.
3. Fixed estimated timeframe:
The main calculation is performed on a fixed 3-day interval, which guarantees the stability of the plotted lines regardless of the selected base time interval of the graph. This avoids the undesirable effects of short-term "noise" and ensures the consistency of analytics, especially in highly volatile markets such as cryptocurrencies.
4. Dynamic line formation:
Based on the calculated values of EMA and ATR, the lower boundary of the channel is determined, which is drawn with a bold green line – it serves as a dynamic support zone. At the same time, the ATR value from the previous bar is used to increase the stability of the calculation, which helps smooth out extreme market surges.
5. Flexibility and customization:
Indicator parameters such as the ATR period, the ATR Multiplier coefficient, and a fixed estimated timeframe are available for change. This allows traders to adapt the script to individual strategies and features of the analyzed asset.
Practical application:
- Determining support levels: The indicator helps to identify potential areas where the asset price may find support in a decline.
- Adaptability to market conditions: Using ATR makes it possible to take into account volatility, which is especially important for active markets, for example, for BTC.
- Stability of signals on any timeframe: Due to the fixed 3-day calculation interval, the support line remains unchanged even when the base graphical interval is changed.
The "Engineer_Invest Support BTC" indicator is a well-thought-out analytical solution for technical analysis, combining elements of trend smoothing and a volatility filter. It can be used as an independent tool to find key support levels, or combined with other analysis methods to form a more complete picture of market dynamics.
Important!
This indicator is designed and optimized exclusively for working with BTC. His calculations take into account the unique features of bitcoin's market dynamics and volatility, which provides the most reliable determination of support levels for this particular asset. The use of this instrument in other markets may not provide the expected signal accuracy.
Auto Price Action SR Levels by Chaitu50cAuto Price Action SR Levels by Chaitu50c:
This is a session-based support and resistance indicator that identifies price levels based on actual candle activity, without relying on traditional indicators. It works by clustering open, high, low, or close values of past candles that frequently occur within a defined price range, making it a reliable price action-based tool for intraday traders.
The indicator calculates these levels at the start of each new trading session (based on NSE 09:15 time) and keeps them static throughout the session. This avoids unnecessary noise or flickering due to live price action, giving traders consistent zones to work with during the day.
FEATURES:
* Automatic detection of support and resistance levels based on candle price hits
* Cluster formation using high/low or open/close logic
* Static levels: calculated once per session and remain unchanged until the next session
* Adjustable settings for:
* Cluster range (in points)
* Number of lookback candles
* Line width
* Line color (default: black)
* Minimalist design for a clean chart experience
HOW IT WORKS:
The indicator looks back over a defined number of candles at the beginning of each session. It clusters prices that fall within a specified range (e.g., 250 points) and counts how many times they appear as open, high, low, or close values. If a price level is hit at least once (default), it is considered significant and a line is plotted.
Because clustering is done once per session, the lines do not shift during the session. This allows traders to base decisions on fixed, stable levels formed by prior market structure.
RECOMMENDED FOR:
* Intraday traders
* Price action traders
* Traders who prefer clean charts with logical SR zones
* Nifty, BankNifty, and stock-based day trading
Created by Chaitu50c for traders who rely on logic and structure, not signals.
Disclaimer:
This indicator is intended for educational and informational purposes only. It does not constitute financial advice or trading recommendations. Use at your own discretion and always manage risk responsibly.
---
Let me know if you’d like to include use-case examples or screenshots before publishing.
Long Wick Detector [LuxAlgo]The Long Wick Detector tool allows traders to identify candle wicks longer than a user-defined volatility threshold. This makes it useful for spotting zones with high supply or demand.
The tool displays mitigated and unmitigated levels and changes the color of the candles based on wick size and level breakouts.
🔶 USAGE
By default, the tool displays long mitigated and unmitigated candle wicks, with a maximum duration for an unmitigated long wick of 1,000 bars. What does all this mean?
🔹 Wick Threshold
Traders can adjust the volatility threshold to identify long wicks, with a higher threshold detecting more significant wicks.
As we can see in the image above, the tool detects more wicks with a smaller threshold compared to a higher one.
🔹 Level %
Traders can choose the percentage of the wick at which the level is located. By default, the level is displayed at the extremes of the wick. This parameter accepts values between 0 and 100.
100: extreme of the wick
50: middle of the wick
0: start of the wick
🔹 Max Duration
This parameter allows traders to specify the number of bars for the levels. The tool will only display mitigated or unmitigated levels up to the specified number of bars.
As shown in the above image, a longer duration allows more room for mitigation, displaying more levels.
🔹 Colored Candles
The tool allows for color customization using two parameters from the settings panel. The chart shows the different outputs.
The setting "Wick-Based Transparency" makes candles with smaller wicks less visible and candles with longer wicks more visible.
On the other hand, "Breakout-Based Color" changes the base color of the candles based on the mitigation of long wicks. When the price breaks above a detected top wick, the bullish color is used. When the price breaks below a detected bottom wick, the bearish color is used.
🔶 SETTINGS
Wick Threshold: The volatility threshold for wick detection. Use a smaller value to detect smaller wicks.
Level %: Placement of the plotted level relative to the wick.
Max Duration: The maximum duration in bars of mitigated wicks.
Mitigated Wicks: Enable or disable mitigated wicks.
🔹 Style
Wick Based Transparency: Make candles with smaller wicks more transparent and candles with longer wicks more solid.
Breakout Based Color: Change the base color based on wick mitigation.
Bullish & Bearish Colors
Support and Resistance Power Channel [ChartPrime]The Support and Resistance Power Channel indicator helps traders visualize key support and resistance zones, along with buy and sell power within those zones. By identifying the highest and lowest prices within a defined range, this indicator provides insight into potential price reversals and market strength. It calculates the strength of buy and sell pressure within the zones and includes additional features like midline values and delayed signals to reduce false breakouts.
⯁ KEY FEATURES AND HOW TO USE
⯌ Support and Resistance Zones :
This indicator identifies dynamic support (lower zone) and resistance (upper zone) levels, allowing traders to easily visualize key price levels. These zones are customizable with settings for the length of the channel and how far the zones extend into the future. The zones can be used to predict areas of potential price reversal or consolidation.
⯌ Buy and Sell Power :
Within the upper resistance zone, the indicator calculates Sell Power based on the number of bearish candles, while the lower support zone calculates Buy Power based on bullish candles. This feature helps traders understand the strength of buying or selling activity within each zone.
Example of buy and sell power tracking:
⯌ Highest, Lowest, and Mid Price Levels :
The indicator marks the highest and lowest price levels within the channel with an "X," and displays these values at the end of the channel. Additionally, the midline (average of the high and low) is plotted with a dotted line, showing a key area that the price often retests during trends.
⯌ Delayed Signal Markers :
To prevent false breakouts, the indicator includes a 2-bar delay for signals. These signals are plotted when the price crosses above or below the resistance or support zones, confirming potential reversals or breakouts. Arrows or diamonds are used to mark these signals on the chart.
Example of delayed breakout signals on the chart:
⯌ Extend Zones into the Future :
In the settings, traders can extend the support and resistance zones further into the future, allowing for ongoing analysis even after the initial levels have been identified. This feature can help with forward-looking trade planning.
⯁ USER INPUTS
Length : Defines the number of bars used to calculate the support and resistance zones.
Extend : Sets how far the support and resistance zones should be extended into the future.
Top and Bottom Colors : Allows customization of the colors for the support and resistance zones.
⯁ CONCLUSION
The Support and Resistance Power Channel indicator provides a powerful and visually intuitive way to track key market levels, buy and sell pressure, and potential reversals. With its real-time zone plotting and the calculation of power within each zone, it offers traders essential insights for making more informed trading decisions.
Impulse Profile Zones [BigBeluga]🔵 OVERVIEW
Impulse Profile Zones is a volume-based tool designed to highlight high-impact candles and visualize hidden liquidity zones inside them using microstructure data. It’s ideal for identifying volume concentration and potential reaction points during impulsive market moves.
Whenever a candle exceeds a specified size threshold, this indicator captures its structure and overlays a detailed intrabar volume profile (from a 10x lower timeframe), allowing traders to analyze the distribution of interest within powerful market impulses.
🔵 CONCEPTS
Filters candles that exceed a user-defined threshold by size.
For qualifying candles, retrieves lower timeframe price and volume data.
Divides the candle’s body into 10 volume bins and calculates the volume per zone. Highlights the bin with the highest volume as the Point of Control (POC) .
Each POC line extends forward until a new impulse is detected.
🔵 FEATURES
Impulse Candle Detection:
Triggers only when a candle’s body size is larger than the defined threshold.
Lower Timeframe Profiling:
Aggregates 10-bin volume data from a lower timeframe (typically 1/10 of current TF).
Volume Distribution Bars:
Each bin displays a stylized bar using unicode block characters (e.g., ▇▇▇, ▇▇ or ▇--).
The bar size reflects the relative volume intensity.
POC Zone Mapping:
The bin with the highest volume is marked with a bold horizontal line.
Its value is labeled and extended until the next valid impulse.
🔵 HOW TO USE
Use large candle profiles to assess which price levels inside a move were most actively traded.
Watch the POC line as a magnet for future price interaction (support/resistance or reaction).
Combine with market structure or order block indicators to identify confluence levels.
Adjust the “Filter Large Candles” input to detect more or fewer events based on volatility.
🔵 CONCLUSION
Impulse Profile Zones is a hybrid microstructure tool that bridges lower timeframe volume with higher timeframe impulse candles. By revealing where most of the volume occurred inside large moves, traders gain a deeper view into hidden liquidity, enabling smarter trade entries and more confident profit-taking zones.
ZenAlgo - MultiverseThe ZenAlgo – Multiverse indicator provides a multi-timeframe view of Volume-Weighted Average Price (VWAP) levels and their dynamic interaction with price across seven defined timeframes: Daily, Weekly, Monthly, Quarterly, Semi-Annual, and Yearly. The indicator is intended to help traders contextualize price within time-based value areas and examine how price interacts with statistically relevant bands derived from those VWAPs.
VWAP Calculation and Period Structure
At the core, this script computes VWAP levels anchored to six distinct timeframes using volume data and a configurable source (default is HLC3). Each VWAP resets at the start of its corresponding period (e.g., Daily VWAP resets at the beginning of a new day) using timeframe.change() as a detection mechanism. This allows each VWAP level to reflect a clean aggregation of price and volume over its specified period.
VWAP levels are only computed if volume data is present and cumulative volume increases, ensuring logical consistency. If volume is missing or inconsistent, the script terminates execution with an error to prevent invalid outputs.
Band Calculation
Each VWAP is accompanied by one or two optional bands on both sides, calculated using percentage-based offset. Daily VWAP is configurable per user preference to use either standard deviation or a percentage-based offset. These bands provide a dynamic value area that expands or contracts with volatility or proportional price distance, respectively.
The bands help classify price as:
Inside the main band (e.g., between ±1 band): near average value
Inside extended band (e.g., ±2 bands): stretched but not extreme
Beyond extended band: potentially overheated or oversold conditions
This layering creates a multi-zoned map of value perception across timeframes.
Labeling and Historical Tracking
As each new VWAP is computed, it is stored in a bounded array alongside metadata such as label position, line objects, test count, and test state (whether price has interacted with it). Each level is drawn as a dotted horizontal line and labeled with its value and corresponding period (e.g., "D", "W", "M").
Price interaction with a VWAP level (i.e., candle high/low crossing the line) changes the styling of the label and line, marking it as "tested." A cap on how many tested levels are retained (default 10) avoids excessive clutter and resource usage.
These persistent horizontal levels give the trader a visual reference of where value was defined in previous periods and how price has respected or ignored those levels over time.
Summary Tables and Grid
Two visual table overlays are provided:
1. VWAP Summary Table , this table shows:
VWAP values per timeframe
Trend interpretation (rising, falling, stable) relative to price
Ranked order of VWAP values (from highest to lowest)
The order is recalculated each bar to reflect the vertical positioning of each VWAP on the price chart.
2. VWAP Relationship Grid
A grid matrix compares each VWAP and current price against all others. Each cell reflects whether a given source is above, below, or within a tolerance threshold relative to another. Colors (green, red, gray) visually encode the result, with the diagonal marked in black and unused cells disabled.
This matrix helps identify alignment or dissonance among timeframes, allowing users to detect whether shorter-term value is leading or lagging longer-term value.
Price Band Classification
For the Daily VWAP specifically, the script includes an extra classification system. It assigns the current price to a zone (e.g., "At VWAP", "Bear Band", "Above Bull Band 2") based on where the price lies in relation to the VWAP bands. This classification is also used for dynamic coloring and added to the daily label.
Display Controls
The script offers fine-grained controls:
Toggle visibility of each VWAP and band group independently
Adjust the offset of labels from the current bar
Customize band multipliers and color transparency
Limit the number of historical VWAP labels plotted
Position both the summary and grid tables flexibly on screen
These options allow traders to declutter their charts and focus on the most relevant context for their strategy.
How to Interpret and Use
This indicator provides a structured view of market value perception across various timeframes. For example:
When price converges with multiple VWAPs, it may suggest consensus on value.
When price moves away from all VWAPs, it may indicate trending or stretched conditions.
Crosses and retests of VWAPs (especially higher-timeframe ones) can act as areas of interest.
The band-based classification helps identify transitional zones and whether price is situated in an area where value is being accepted or rejected.
The summary tables offer a high-level dashboard of price positioning and value structure, which can assist with top-down analysis, filtering setups, or contextual decision-making.
Added Value Compared to Free Alternatives
Most free VWAP scripts:
Cover only a single timeframe (often daily or session-based)
Lack historical level tracking with tested/retested visualization
Do not support grid-level relationships or multi-timeframe band analysis
Offer limited configuration over how bands are calculated or displayed
This script consolidates multiple value areas in one consistent framework and goes further by tracking historical relevance, providing interaction logs, and organizing data into actionable overlays.
For traders seeking comprehensive value context across intraday and swing horizons, this tool offers persistent and structured data views that are otherwise unavailable through individual, isolated VWAP tools.
Limitations and Disclaimers
The indicator depends on volume data. On instruments with unreliable or synthetic volume (e.g., certain spot forex or CFDs), results may not be meaningful.
Band-based interpretation should not be used as a signal mechanism on its own.
On low timeframes, longer-period VWAPs may appear flat or visually compressed.
As with any analytical tool, interpretation requires trader discretion and should be combined with broader context.
Levels by Touches (v2) [chingybrooks]Levels by Touches (v2)
This script scans the last N bars to identify significant support and resistance levels by counting wick-touches.
How it works:
1. Wick detection – marks a touch whenever upper or lower wick ≥ X% of candle body (or on doji)
2. Level grouping – merges touches within a tolerance of Y ticks
3. Touch weighting – recent touches (in the latter half of lookback) count Z× more
4. Filtering – only plots levels with ≥ M total touches
Inputs:
Bars to scan (N): lookback period (max 200 bars)
Min touches (M): minimum hits to qualify as a level
Tolerance (ticks): price “slop” for grouping nearby touches
Min wick %: wick size threshold as % of body
Recent touch weight (Z): multiplier for touches in the latest half
Use this indicator to spot high-probability S/R zones based on actual price rejections.
GapCluster SR For Intraday by Chaitu50c**GapCluster SR For Intraday by Chaitu50c**
**Overview**
GapCluster SR plots dynamic intraday support and resistance lines based on candle-to-candle gaps. Whenever an Open/Close or High/Low gap is detected, the script draws a horizontal level and “clusters” nearby gaps into a single line to keep your chart clean. Lines automatically color-code relative to price—green when below, red when above.
---
**Key Features**
* **Gap Detection Modes**: Choose between Open/Close gaps (default) or High/Low gaps.
* **Clustering**: Merge levels within a user-defined vertical range to avoid clutter.
* **Dynamic Coloring**: Levels below price turn green; levels above price turn red.
* **Session Reset**: Automatically removes levels older than X days.
* **Fully Customizable**: Adjust buffer, cluster range, line width, lookback period, and both above/below colors.
---
**Inputs**
| Input | Default | Description |
| ---------------------------- | :--------: | ------------------------------------------- |
| Gap Type | Open/Close | Select gap detection method |
| Price Buffer (points) | 5.0 | Maximum distance for gap matching |
| Cluster Range (points) | 100.0 | Vertical distance within which levels merge |
| Line Width | 2 | Thickness of plotted lines |
| Days to Include | 14 | Number of days to retain past levels |
| Color for Levels Above Price | red | Line color when level > current price |
| Color for Levels Below Price | green | Line color when level < current price |
---
**How to Use**
1. **Add to Chart**: Apply on any intraday timeframe (1 min, 5 min, etc.).
2. **Select Mode**: Pick Open/Close or High/Low in settings.
3. **Tweak Inputs**: Raise/lower buffer for tighter/looser gap detection; adjust cluster range to group levels; change lookback (“Days to Include”) to control session reset.
4. **Interpret Levels**:
* **Green Lines** mark potential support zones.
* **Red Lines** mark potential resistance zones.
5. **Combine with Your Strategy**: Use alongside volume, momentum, or trend filters for confirmation.
---
**Tips & Tricks**
* **Intraday Entries**: Look for price reaction at green (support) lines for long setups, or red (resistance) lines for shorts.
* **Filter Noise**: Increase the “Cluster Range” to consolidate many close levels into stronger, singular lines.
---
**Disclaimer**
This indicator is provided “as-is” for educational purposes only. Always backtest any setup and practice proper risk management.
Order Block Matrix [Alpha Extract]The Order Block Matrix indicator identifies and visualizes key supply and demand zones on your chart, helping traders recognize potential reversal points and high-probability trading setups.
This tool helps traders:
Visualize key order blocks with volume profile histograms showing liquidity distribution.
Identify high-volume price levels where institutional activity occurs.
rank historical order blocks and analyze their strength based on volume.
Receive alerts for potential trading opportunities based on price-block interactions.
🔶 CALCULATION
The indicator processes chart data to identify and analyze order blocks:
Order Block Detection
Inputs:
Price action patterns (consolidation areas followed by breakouts).
Volume data from current and lower timeframes.
User-defined lookback periods and thresholds.
Detection Logic:
Identifies consolidation areas using a dynamic range comparison.
Confirms breakout patterns with percentage threshold validation.
Maps volume distribution across price levels within each order block.
🔶Volume Analysis
Volume Profiling:
Divides each order block into configurable grid segments.
Maps volume distribution across price segments within blocks.
Highlights zones with highest volume concentration.
Strength Assessment:
Calculates total block volume and relative strength metrics.
Compares block volume to historical averages.
Determines probability of reversal based on volume patterns.
isConsolidation(len) =>
high_range = ta.highest(high, len) - ta.lowest(high, len)
low_range = ta.highest(low, len) - ta.lowest(low, len)
avg_range = (high_range + low_range) / 2
current_range = high - low
current_range <= avg_range * (1 + obThreshold)
🔶 DETAILS
Visual Features
Volume Profile Histograms:
Color-coded bars showing volume concentration within order blocks.
Gradient coloring based on relative volume (high volume = brighter colors).
Bull blocks (green/teal) and bear blocks (red) with varying opacity.
Block Visualization:
Dynamic box sizing based on volume concentration.
Optional block borders and background fills.
Volume labels showing total block volume.
Screener Table:
Real-time analysis of order block metrics.
Shows block direction, proximity, retest count, and volume metrics.
Color-coded for quick reference.
Interpretation
High Volume Areas: Zones with institutional interest and potential reversal points.
Block Direction: Bullish blocks typically support price, bearish blocks typically resist price.
Retests: Multiple tests of an order block may strengthen or weaken its influence.
Block Age: Newer blocks often have stronger influence than older ones.
Volume Concentration: Brightest segments within blocks represent the highest volume areas.
🔶 EXAMPLES
The indicator helps identify key trading opportunities:
Bullish Order Blocks
Support Zones: Identify strong support levels where price is likely to bounce.
Breakout Confirmation: Validate breakouts with volume analysis to avoid false moves.
Retest Strategies: Enter trades when price retests a bullish order block with high volume.
Bearish Order Blocks
Resistance Zones: Identify strong resistance levels where price is likely to reverse.
Distribution Areas: Detect zones where smart money is distributing to retail.
Short Opportunities: Find optimal short entry points at high-volume bearish blocks.
Combined Strategies
Order Block Stacking: Multiple aligned blocks create stronger support/resistance zones.
Block Mitigation: When price breaks through a block, it often indicates a strong trend continuation.
Volume Profile Applications: Higher volume segments provide more precise entry and exit points.
🔶 SETTINGS
Customization Options
Order Block Detection:
Consolidation Lookback: Adjust the period for consolidation detection.
Breakout Threshold: Set minimum percentage for breakout confirmation.
Historical Lookback Limit: Control how far back to scan for historical order blocks.
Maximum Order Blocks: Limit the number of visible blocks on the chart.
Visual Style:
Grid Segments: Adjust the number of volume profile segments.
Extend Blocks to Right: Enable/disable extending blocks to current price.
Show Block Borders: Toggle border visibility.
Border Width: Adjust thickness of block borders.
Show Volume Text: Enable/disable volume labels.
Volume Text Position: Control placement of volume labels.
Color Settings:
Bullish High/Low Volume Colors: Customize appearance of bullish blocks.
Bearish High/Low Volume Colors: Customize appearance of bearish blocks.
Border Color: Set color for block outlines.
Background Fill: Adjust color and transparency of block backgrounds.
Volume Text Color: Customize label appearance.
Screener Table:
Show Screener Table: Toggle table visibility.
Table Position: Select positioning on the chart.
Table Size: Adjust display size.
The Order Block Matrix indicator provides traders with powerful insights into market structure, helping to identify key levels where smart money is active and where high-probability trading opportunities may exist.
Entropy Chart Analysis [PhenLabs]📊 Entropy Chart analysis -
Version: PineScript™ v6
📌 Description
The Entropy Chart indicator analysis applies Approximate Entropy (ApEn) to identify zones of potential support and resistance on your price chart. It is designed to locate changes in the market’s predictability, with a focus on zones near significant psychological price levels (e.g., multiples of 50). By quantifying entropy, the indicator aims to identify zones where price action might stabilize (potential support) or become randomized (potential resistance).
This tool automates the visualization of these key areas for traders, which may have the effect of revealing reversal levels or consolidation zones that would be hard to discern through traditional means. It also filters the signals by proximity to key levels in an attempt to reduce noise and highlight higher-probability setups. These dynamic zones adapt to changing market conditions by stretching, merging, and expiring based on user-inputted rules.
🚀 Points of Innovation
Combines Approximate Entropy (ApEn) calculation with price action near significant levels.
Filters zone signals based on proximity (in ticks) to predefined significant price levels (multiples of 50).
Dynamically merges overlapping or nearby zones to consolidate signals and reduce chart clutter.
Uses ApEn crossovers relative to its moving average as the core trigger mechanism.
Provides distinct visual coloring for bullish, bearish, and merged (mixed-signal) zones.
Offers comprehensive customization for entropy calculation, zone sensitivity, level filtering, and visual appearance.
🔧 Core Components
Approximate Entropy (ApEn) Calculation : Measures the regularity or randomness of price fluctuations over a specified window. Low ApEn suggests predictability, while high ApEn suggests randomness.
Zone Trigger Logic : Creates potential support zones when ApEn crosses below its average (indicating increasing predictability) and potential resistance zones when it crosses above (indicating increasing randomness).
Significant Level Filter : Validates zone triggers only if they occur within a user-defined tick distance from significant price levels (multiples of 50).
Dynamic Zone Management : Automatically creates, extends, merges nearby zones based on tick distance, and removes the oldest zones to maintain a maximum limit.
Zone Visualization : Draws and updates colored boxes on the chart to represent active support, resistance, or mixed zones.
🔥 Key Features
Entropy-Based S/R Detection : Uses ApEn to identify potential support (low entropy) and resistance (high entropy) areas.
Significant Level Filtering : Enhances signal quality by focusing on entropy changes near key psychological price points.
Automatic Zone Drawing & Merging : Visualizes zones dynamically, merging close signals for clearer interpretation.
Highly Customizable : Allows traders to adjust parameters for ApEn calculation, zone detection thresholds, level filter sensitivity, merging distance, and visual styles.
Integrated Alerts : Provides built-in alert conditions for the formation of new bullish or bearish zones near significant levels.
Clear Visual Output : Uses distinct, customizable colors for buy (support), sell (resistance), and mixed (merged) zones.
🎨 Visualization
Buy Zones : Represented by greenish boxes (default: #26a69a), indicating potential support areas formed during low entropy periods near significant levels.
Sell Zones : Represented by reddish boxes (default: #ef5350), indicating potential resistance areas formed during high entropy periods near significant levels.
Mixed Zones : Represented by bluish/purple boxes (default: #8894ff), formed when a buy zone and a sell zone merge, indicating areas of potential consolidation or conflict.
Dynamic Extension : Active zones are automatically extended to the right with each new bar.
📖 Usage Guidelines
Calculation Parameters
Window Length
Default: 15
Range: 10-100
Description: Lookback period for ApEn calculation. Shorter lengths are more responsive; longer lengths are smoother.
Embedding Dimension (m)
Default: 2
Range: 1-6
Description: Length of patterns compared in ApEn calculation. Higher values detect more complex patterns but require more data.
Tolerance (r)
Default: 0.5
Range: 0.1-1.0 (step 0.1)
Description: Sensitivity factor for pattern matching (as a multiple of standard deviation). Lower values require closer matches (more sensitive).
Zone Settings
Zone Lookback
Default: 5
Range: 5-50
Description: Lookback period for the moving average of ApEn used in threshold calculations.
Zone Threshold
Default: 0.5
Range: 0.5-3.0
Description: Multiplier for the ApEn average to set crossover trigger levels. Higher values require larger ApEn deviations to create zones.
Maximum Zones
Default: 5
Range: 1-10
Description: Maximum number of active zones displayed. The oldest zones are removed first when the limit is reached.
Zone Merge Distance (Ticks)
Default: 5
Range: 1-50
Description: Maximum distance in ticks for two separate zones to be merged into one.
Level Filter Settings
Tick Size
Default: 0.25
Description: The minimum price increment for the asset. Must be set correctly for the specific instrument to ensure accurate level filtering.
Max Ticks Distance from Levels
Default: 40
Description: Maximum allowed distance (in ticks) from a significant level (multiple of 50) for a zone trigger to be valid.
Visual Settings
Buy Zone Color : Default: color.new(#26a69a, 83). Sets the fill color for support zones.
Sell Zone Color : Default: color.new(#ef5350, 83). Sets the fill color for resistance zones.
Mixed Zone Color : Default: color.new(#8894ff, 83). Sets the fill color for merged zones.
Buy Border Color : Default: #26a69a. Sets the border color for support zones.
Sell Border Color : Default: #ef5350. Sets the border color for resistance zones.
Mixed Border Color : Default: color.new(#a288ff, 50). Sets the border color for mixed zones.
Border Width : Default: 1, Range: 1-3. Sets the thickness of zone borders.
✅ Best Use Cases
Identifying potential support/resistance near significant psychological price levels (e.g., $50, $100 increments).
Detecting potential market turning points or consolidation zones based on shifts in price predictability.
Filtering entries or exits by confirming signals occurring near significant levels identified by the indicator.
Adding context to other technical analysis approaches by highlighting entropy-derived zones.
⚠️ Limitations
Parameter Dependency : Indicator performance is sensitive to parameter settings ( Window Length , Tolerance , Zone Threshold , Max Ticks Distance ), which may need optimization for different assets and timeframes.
Volatility Sensitivity : High market volatility or erratic price action can affect ApEn calculations and potentially lead to less reliable zone signals.
Fixed Level Filter : The significant level filter is based on multiples of 50. While common, this may not capture all relevant levels for every asset or market condition. Accurate Tick Size input is essential.
Not Standalone : Should be used in conjunction with other analysis methods (price action, volume, other indicators) for confirmation, not as a sole basis for trading decisions.
💡 What Makes This Unique
Entropy + Level Context : Uniquely combines ApEn analysis with a specific filter for proximity to significant price levels (multiples of 50), adding locational context to entropy signals.
Intelligent Zone Merging : Automatically consolidates nearby buy/sell zones based on tick distance, simplifying visual analysis and highlighting stronger confluence areas.
Targeted Signal Generation : Focuses alerts and zone creation on specific market conditions (entropy shifts near key levels).
🔬 How It Works
Calculate Entropy : The script computes the Approximate Entropy (ApEn) of the closing prices over the defined Window Length to quantify price predictability.
Check Triggers : It monitors ApEn relative to its moving average. A crossunder below a calculated threshold (avg_apen / zone_threshold) indicates potential support; a crossover above (avg_apen * zone_threshold) indicates potential resistance.
Filter by Level : A potential zone trigger is confirmed only if the low (for support) or high (for resistance) of the trigger bar is within the Max Ticks Distance of a significant price level (multiple of 50).
Manage & Draw Zones : If a trigger is confirmed, a new zone box is created. The script checks for overlaps with existing zones within the Zone Merge Distance and merges them if necessary. Zones are extended forward, and the oldest are removed to respect the Maximum Zones limit. Active zones are drawn and updated on the chart.
💡 Note:
Crucially, set the Tick Size parameter correctly for your specific trading instrument in the “Level Filter Settings”. Incorrect Tick Size will make the significant level filter inaccurate.
Experiment with parameters, especially Window Length , Tolerance (r) , Zone Threshold , and Max Ticks Distance , to tailor the indicator’s sensitivity to your preferred asset and timeframe.
Always use this indicator as part of a comprehensive trading plan, incorporating risk management and seeking confirmation from other analysis techniques.
weighted support or resistance linesQ: Why should users choose this script?
A: I found that in all the publicly available scripts about support and resistance lines, there is basically no weight identification for these lines. In other words, users do not know which support or resistance lines are the most important. So I specifically wrote this script.
1. By adjusting the weights, only the most effective support or resistance lines are displayed. (Length threshold of trend price (Bar))
2. By selecting the number of K-lines, only the latest number of support or resistance lines generated will be displayed. (Maximum number of reserved S/R lines)
3. By selecting whether to automatically remove lines, only support or resistance lines that have not been penetrated by the k-line will be displayed. If this function is checked, the weight can be adjusted lower, as high-weight SR may have already been penetrated, and the newly generated SR may have a lower weight. (Automatically remove lines penetrated by closing price confirmation)
4. Notes: The default parameters work well in 15-minute candlestick charts. For candlestick charts with other time periods, the parameters can be adjusted appropriately. It is suitable for sideways trading but not for strong trends.
5. I'm quite satisfied with the performance of the script, as I specifically optimized it, lol