Institutional Volume Trend [Structure Filter]Overview
The Institutional Volume Trend is a hybrid trend-following system designed to solve the single biggest problem in technical analysis: False Breakouts (Fakeouts).
Most trend indicators are purely price-reactive. If price moves up, they signal "Buy"—even if that move is driven by low liquidity and retail FOMO. This often leads to traders getting trapped in "chop" or weak reversals.
This script introduces a Volume-Verification Layer to market structure. It operates on a simple institutional premise: "Price advertises, Volume validates." A break of structure (BOS) is only considered a valid signal if it is backed by significant institutional volume.
Special thanks to the legendary Kıvanç Özbilgiç , whose extensive work on Supertrend and AlphaTrend concepts has paved the way for modern volatility-based trend systems. This script builds upon those foundational principles by adding a volume-weighted regime filter.
How It Works
This indicator combines two distinct engines to filter market noise:
Structure Engine (ATR Volatility):
It uses an ATR-based trailing stop mechanism (inspired by the classic Supertrend logic) to detect the underlying market structure. This creates the "Floor" (Support) and "Ceiling" (Resistance) of the current trend.
Institutional Volume Filter:
It calculates a relative volume average. If a trend change occurs without volume exceeding the average by a user-defined threshold (default 1.2x), the signal is flagged as Weak .
📖 Visual Guide: How to Interpret the Signs
This indicator communicates through Color and Labels . Here is exactly what each sign means:
1. The Ribbon Colors
🟢 Bright Green Ribbon: CONFIRMED BULLISH.
Meaning: The trend is Up AND Volume is supporting the move.
Action: Look for long entries or hold existing long positions.
🔴 Bright Red Ribbon: CONFIRMED BEARISH.
Meaning: The trend is Down AND Selling pressure is high.
Action: Look for short entries or hold existing short positions.
⚪ Gray / Dimmed Ribbon: WEAK / CHOP ZONE.
Meaning: The price has broken structure, BUT there is no volume to back it up. The market is undecided or resting.
Action: CAUTION. Do not open new trades. Wait for the color to turn Bright Green or Red.
2. The Labels
🏷️ "BOS + Vol" (Break of Structure + Volume):
Meaning: A high-probability signal. Price broke the trend line with a burst of volume.
Interpretation: This is your primary entry trigger.
🏷️ "Low Vol" (Small 'x' or Label):
Meaning: Price crossed the line, but volume was weak.
Interpretation: WARNING. This is likely a fakeout or a liquidity grab. Be very careful trusting this move.
3. The Trailing Line
The solid line running along the price is your Dynamic Stop Loss .
Bullish: As long as candles close above or touch (you choose) this line, the uptrend is valid.
Bearish: As long as candles close below or touch (you choose) this line, the downtrend is valid.
How to Use This Indicator
For Trend Following (Swing Trading)
Wait for the Flip: Look for the ribbon to flip from Red to Green (or vice versa).
Check the Validation: Ensure the ribbon is Bright Green/Red and not Gray. A "BOS + Vol" label is your confirmation.
Set the Stop: Use the plotted Trailing Structure Line as your dynamic Stop Loss.
For Scalping (1m - 15m Timeframes)
Filter the Noise: The most powerful feature for scalpers is the Gray Zone . If the market enters a low-volume drift (lunch hour or pre-market), the ribbon turns Gray. Avoid taking new entries during these periods to prevent "death by a thousand cuts."
Settings & Customization
Structure Lookback: Controls the sensitivity of the trend line. Higher numbers = fewer signals, longer trends.
Filter Low Volume (Chop): Toggle this ON to see the Gray zones. Toggle OFF if you want a standard trend view.
Volume Threshold: The multiplier required to validate a move.
1.2 (Default): Balanced.
1.5+ : Strict (Only catches massive breakouts).
1.0 : Loose (More signals, more noise).
Who Should Use This?
Breakout Traders: To distinguish between a true breakout and a "liquidity sweep."
Crypto Traders: To filter out the low-volume weekend chop.
Beginners: To learn the discipline of waiting for volume confirmation before entering a trade.
Open Source & Transparency
This script is open source to foster learning. The core logic utilizes a modified ATR trailing stop calculation combined with a boolean volume filter (volume > sma(volume) * mult). Traders are encouraged to inspect the code to understand exactly how their signals are generated.
⚠️ Disclaimer
Trading involves a high risk of losing money. This tool is designed for educational and analytical purposes only and does not constitute financial advice.
No indicator is 100% accurate. The "Volume Filter" reduces false signals but cannot eliminate them entirely.
Lag Warning: Like all trend-following tools, this indicator is reactive. It will perform best in trending markets and may produce losses in tight, sideways ranges (though the Gray filter helps mitigate this).
Risk Management: Always use a stop loss and proper position sizing. Never trade solely based on the color of a ribbon.
Indicadores e estratégias
Peak Trading Activity Graphs [LuxAlgo]The Peak Trading Activity Graphs displays four graphs that allow traders to see at a glance the times of the highest and lowest volume and volatility for any month, day of the month, day of the week, or hour of the day. By default, it plots the median values of the selected data for each period. Traders can enable the Median Delta feature to further highlight differences in the data. The graphs are customizable in width and height and feature gradient colors by default.
🔶 USAGE
The tool is simple yet powerful. Using the three main parameters on the settings panel, traders can display up to four different graphs and up to 16 different configurations.
There are two main types of data: volume and volatility. There are also four different time periods: months, days of the month, days of the week, and hours of the day. There is also the possibility of displaying the raw medians or the delta between them.
Understanding which time periods have the most and least volume and volatility is essential for any trader. From avoiding trading during periods of low volume to properly sizing positions during periods of high volatility, there are multiple use cases directly related to improving execution and risk management.
🔹 Months
This chart shows the monthly volume and volatility of NQ as medians at the top and as the delta of medians at the bottom.
As we can see on the left-hand chart, the volume is fairly consistent throughout the year. January, March, and October have the highest volume, and December has the lowest volume for obvious reasons. Note the bottom chart with the delta feature enabled, which clearly shows the top and bottom periods.
On the right, we have volatility, which is also evenly distributed throughout most months. October is the most volatile month, and March is the least volatile month. The differences are also very clear on the bottom chart with delta enabled.
Traders may want to compare median volatility and volume by month to size positions and favor exposure during historically high-activity months.
🔹 Days of Month
The same NQ charts are shown, but in this case, the Days of Month period has been selected. As you can see, this displays a calendar-like graph. The volume is on the left, the volatility is on the right, and the delta feature is enabled on the bottom charts. This feature allows for stronger differences in gradient.
The top charts show that the raw medians of both volume and volatility are evenly distributed. We need to enable the delta feature on the bottom charts to see where the most and least volume and volatility are.
Traders can use median activity by calendar day to anticipate liquidity expansions or contractions and adjust trade frequency.
🔹 Days of Week
In this case, we have BTC charts with the same layout as before. Notably, the difference in volume on weekends is not as pronounced from a volatility perspective on those same days.
A practical use case can be differentiate high-risk, high-participation weekdays from low-activity sessions to select trend or range-based strategies.
🔹 Hours of Day
This shows the volume and volatility of each hour of the day for gold futures. As we can see, the most volume and volatility occur during the three hours around the RTH open at 8:00, 9:00, and 10:00 a.m.
Traders may want to isolate hours with the highest median volatility and volume to concentrate execution and avoid low-liquidity periods.
🔹 Assets Comparison
This tool allows us to compare different assets over the same period. In this case, we are comparing the hours of the day for 10-year notes, the S&P 500, silver, and the yen. Each asset has a different volatility profile throughout the day.
With the Delta feature enabled, we can clearly see the differences. The 10Y Notes move from 7:00 to 9:00 and from 2:00 to 9:00. The Yen moves from 7:00 to 9:00 and from 2:00 to 9:00. Silver moves from 8:00 to 10:00. The S&P 500 moves from 8:00 to 9:00 and from 14:00 to 15:00. All times are in exchange time.
🔹 Sizing & Coloring Graphs
Traders can adjust the width and height of the graphs, as well as the text size, at will.
Traders can choose from four different color configurations in the settings panel.
🔶 SETTINGS
Data: Select the type of data to display: Volume or Volatility.
Period: Select the time period to display: Month, Day of Month, Day of Week, or Hours.
Display delta between medians. Display the difference between the medians as a percentage. The smaller median is 0 and the larger median is 100. Enabling this feature highlights the differences between values.
🔹 Graph
Graph: Select the graph location.
Size: Select the graph size.
Width: Select the graph width.
Height: Select the height of the graph.
🔹 Style
Colors: Select a color map: Viridis, Plasma, Magma, or Custom.
Custom Cold: Select a custom color for cold (low values).
Custom Lukewarm: Select a custom color for lukewarm (medium values).
Custom Hot: Select a custom color for hot (high values).
RSI: Evolved [DAFE]RSI: Evolved : The Ultimate Momentum Intelligence Engine
30+ RSI Engines. 15+ Zero-Lag Smoothers. The Revolutionary Quantum Horizon. This is Not Just an RSI. This is the Evolution of Momentum.
█ PHILOSOPHY: BEYOND THE OSCILLATOR, INTO THE NEXUS
The standard Relative Strength Index is a relic. It is a brilliant, timeless concept trapped in a rigid, one-dimensional formula developed in the 1970s. It assumes all market momentum is uniform, that all volatility is equal, and that a single mathematical lens is sufficient to view the infinitely complex character of modern markets. It is not.
RSI: Evolved was not created to be another RSI. It was engineered to be the definitive evolution of momentum analysis. This is not an indicator; it is a powerful, interactive research environment. It is a laboratory where you, the trader, can move beyond the static "one-size-fits-all" approach and forge a momentum oscillator that is perfectly adapted to the unique physics of your market, timeframe, and trading style.
This suite deconstructs the very DNA of the RSI, rebuilding it with a library of over 30 distinct, mathematically diverse calculation engines . From timeless classics and exotic variations to proprietary DAFE quantum models, this suite provides an unparalleled arsenal for quantifying the unseen forces of market momentum.
█ THE EVOLUTION: WHAT MAKES THIS UNLIKE ANY OTHER RSI?
This is not just a collection of features; it is a seamlessly integrated, multi-layered analytical system. It stands in a class of its own for several key reasons:
The 30+ Algorithm Core: At its heart is a library of over 30 unique RSI calculation engines. You can now choose an engine based on its mathematical properties—whether you need the zero-lag responsiveness of a Hull RSI, the time-warping capability of a Laguerre RSI, or the predictive power of a DAFE Quantum Fusion RSI.
Advanced Post-Processing: After the RSI is calculated, it passes through a multi-stage refinement process. First, choose from over 15+ professional-grade smoothing algorithms to create a crystal-clear signal. Then, activate the intelligent Filter Module to scale the RSI's output based on trend, volatility, or momentum regimes.
The Quantum Horizon & Temporal Wave: This is a revolutionary leap in data visualization. The indicator projects the historical momentum waves from higher timeframes directly onto your main price chart as a futuristic, holographic overlay. You can now see the alignment (or divergence) of macro momentum without ever looking away from price action. This is multi-timeframe analysis evolved into an art form.
Dynamic, Volatility-Adaptive Zones: Static 70/30 levels are obsolete. Evolved's "Quantum Zones" are alive; they "breathe" with market volatility. They automatically widen during powerful trends to keep you in a winning trade and tighten during choppy consolidation to help you catch reversals with greater precision.
Comprehensive Analytical Modules: This is a full suite of institutional-grade tools, including a powerful regular and hidden Divergence Engine , a multi-timeframe Consensus Dashboard , and dynamic RSI Bands (Bollinger, Keltner, etc.) plotted directly on the oscillator.
█ THE QUANTUM HORIZON & TEMPORAL WAVE: SEEING MOMENTUM IN 4D
This groundbreaking feature fundamentally changes how you interact with multi-timeframe momentum data. The Quantum Horizon is a dedicated visualization module that projects up to three "Temporal Waves" directly onto your main price chart. Each wave is a historical representation of a momentum oscillator (RSI, MFI, or Stoch RSI) pulled from a higher timeframe of your choice. Instead of flipping between charts or cluttering your screen with multiple indicators, you get an immediate, intuitive, and aesthetically stunning view of the market's complete momentum structure.
Each Temporal Wave is a self-contained universe, rendered as a glowing, flowing line within its own gridded channel. This channel is not just for show; it represents the 0-100 scale of the oscillator, with key 30, 50, and 70 levels marked for reference. You can see the history of momentum, its peaks, its troughs, and its crossovers with its own signal line. This allows you to visually identify macro divergences, trend alignment, and exhaustion points on your primary trading chart, transforming your analysis from a fragmented process into a single, unified experience. This is no longer just an indicator; it is a true Heads-Up Display for the flow of time and momentum.
█ THE ARSENAL: A DEEP DIVE INTO THE RSI & SMOOTHING ENGINES
This is your library of mathematical DNA. Understanding your tools is the first step to mastery. The 30+ RSI types are grouped into distinct families, each with a unique philosophy.
THE RSI ENGINE FAMILIES
The Classics (Wilder's, Cutler's, EMA, WMA): These are the foundational building blocks of momentum analysis. They provide a reliable, time-tested baseline. Wilder's uses the RMA for a unique smoothing characteristic, while Cutler's uses the SMA for a more direct, arithmetic average of gains and losses. The EMA and WMA versions offer increased responsiveness by weighting recent price action more heavily.
The Low-Lag Warriors (DEMA, TEMA, Hull, ZLEMA): This family is engineered specifically to combat the inherent lag of classical averages. The Double and Triple EMA (DEMA, TEMA) use a composite of multiple EMAs to reduce latency. The Zero-Lag EMA (ZLEMA) attempts to remove lag by adjusting the source price with its own past data. The Hull RSI is a standout, using a weighted moving average calculation to achieve a remarkable balance of extreme smoothness and near-zero lag, making it ideal for scalping.
The Exotics (Laguerre, Connors, Fisher, KAMA): These engines employ advanced mathematical concepts to view momentum through a different lens. The Laguerre RSI , based on John Ehlers' work, uses a time-warping, non-linear filter that can be extremely responsive to changes in trend. The Fisher Transform RSI normalizes the output to a Gaussian distribution, making peaks and troughs sharper and more defined for clearer signals. The KAMA Adaptive RSI is a "smart" algorithm that automatically slows its calculation in choppy markets and speeds it up in strong trends.
The Volume-Based (Volume-Weighted, MFI, VWAP-Weighted): This family infuses price momentum with volume data, providing a measure of conviction. They answer not just "how fast is price moving?" but "how much participation is behind the move?". The Money Flow RSI (MFI) is a classic, while the Volume-Weighted and VWAP-Weighted versions directly incorporate volume into the gain/loss calculation, giving more weight to high-volume bars.
The DAFE Proprietary Engines (The "God Mode" Algos): The crown jewels of the Laboratory, these are custom-built, proprietary algorithms you will not find anywhere else.
DAFE Quantum Fusion: This engine calculates RSI on three harmonic timeframes simultaneously (based on the Golden Ratio) and "superimposes" them using a dynamic weighting system based on volume and momentum confidence. It is the most robust and balanced all-rounder.
DAFE Kinetic Energy: Based on the physics principle that Momentum = Mass × Velocity. Standard RSI only sees Velocity (price change). Kinetic RSI weights every price move by Relative Volume (Mass), measuring the true "force" of the market.
DAFE Spectral: This engine uses concepts from Digital Signal Processing to analyze the frequency of price moves. It automatically differentiates between the "Signal" (the underlying trend) and the "Noise" (the chop), and adapts its calculation speed accordingly.
DAFE Entropy Flow: A unique engine that uses Information Theory to measure market "disorder." In chaotic, high-entropy markets, it automatically dampens its own signal to avoid whipsaws. In orderly, low-entropy trends, it sharpens its signal to be more responsive.
THE POST-SMOOTHING FILTERS
After your primary RSI is calculated, you can pass it through one of over 15 advanced filters for unparalleled clarity.
Low-Lag (Hull, DEMA, TEMA): Ideal for responsive smoothing that tracks the raw RSI closely.
Adaptive (KAMA, VIDYA): Perfect for smart, regime-aware smoothing that is slow in chop and fast in trends.
DSP & Scientific (SuperSmoother, Butterworth, Gaussian, Jurik-Style): The pinnacle of signal processing. These filters provide the absolute cleanest signal with minimal lag, leveraging advanced digital signal processing techniques to surgically remove noise.
█ THE ANALYTICAL MODULES: BEYOND THE LINE
Dynamic Zones: Your overbought/oversold levels (e.g., 70/30) are no longer static lines. They are living, breathing zones that respond to market volatility. They automatically widen during powerful, high-volatility trends to prevent you from selling a strong uptrend too early. Conversely, they tighten during low-volatility consolidation, allowing you to catch smaller, mean-reverting moves with greater precision. This is a crucial evolution for trading in modern, dynamic markets.
Divergence Engine: The automated engine works tirelessly in the background to detect critical disconnects between price and momentum. It automatically identifies and plots both Regular Divergences (which often signal major trend reversals) and Hidden Divergences (which often signal trend continuations after a pullback) with clear on-chart and in-pane markers and lines.
MTF Dashboard: Context is everything. This module provides an instant read on the momentum across three higher timeframes of your choice. The "Consensus" reading tells you if all timeframes are aligned ("ALL BULL" or "ALL BEAR"), providing powerful contextual confirmation for your trades and helping you avoid taking signals that go against the macro flow.
RSI Bands: This module applies a full-fledged band methodology (Bollinger Bands, Keltner Channels, etc.) directly to the RSI line itself. A pierce of the upper or lower band is a powerful sign of a statistical extreme, often preceding a sharp reversion back to the mean. A "squeeze" in the RSI bands often precedes an explosive move in momentum.
Signal Line & Histogram: The fast-moving RSI line is paired with a slower, smoother Signal Line of your choice. Crossovers between these two lines can be used as effective entry/exit triggers that are often more reliable than simple overbought/oversold levels. The histogram visually represents the momentum (the velocity and acceleration) of the RSI itself, turning from light to dark green in a strengthening uptrend, for example.
█ DEVELOPMENT PHILOSOPHY
RSI: Evolved was forged from a single, guiding principle: momentum is not a fixed property; it is a dynamic, multi-faceted force with a unique character in every market. This tool was designed for the trader who is no longer satisfied with a one-size-fits-all indicator. It is for the analyst, the tinkerer, the scientist—the individual who seeks to deconstruct, understand, and master the hidden physics of market momentum. This is a tool for forging your own alpha, not just following a lagging line.
RSI: Evolved is designed to give you that patience and discipline, providing a crystal-clear, multi-dimensional view of momentum so you can act with precision when the perfect setup finally arrives.
█ DISCLAIMER AND BEST PRACTICES
THIS IS AN ADVANCED ANALYTICAL TOOL: This indicator provides intelligence on momentum, not financial advice. It should be used as a core component of a complete trading strategy.
RISK MANAGEMENT IS PARAMOUNT: All trading involves substantial risk. Never risk more capital than you are prepared to lose.
START WITH A ROBUST BASE: The "DAFE Quantum Fusion" engine with the "SuperSmoother" is an exceptionally powerful and well-balanced starting point for most markets.
USE CONFLUENCE: The highest probability signals occur when multiple modules agree. For example: a Regular Bullish Divergence, as the RSI crosses up from an Extreme Oversold Dynamic Zone, while the Quantum Horizon shows the higher timeframes are also starting to turn up.
"The hard part is not making the decision to buy or sell, but having the patience and discipline to wait for the right setup."
— Mark Weinstein
Taking you to school. - Dskyz, Trade with Anticipation. Trade with Strength. Trade with RSI: Evolved
Laguerre Filter [BackQuant]Laguerre Filter
Overview
The Laguerre Filter is a powerful trend-following tool designed to smooth price action while maintaining responsiveness to market changes. It is based on the Laguerre recursive filter, which is a type of signal processing filter that adapts to both the current price dynamics and the underlying trend. The Laguerre Filter can be seen as a method to reduce market noise, enabling traders to more easily identify the strength and direction of trends while minimizing lag.
The Laguerre Filter is well-suited for markets with varying volatility levels, offering a smoother representation of price action without the delay associated with traditional moving averages. By dynamically adjusting to price movements, the Laguerre Filter provides a more adaptive and reliable signal compared to simpler smoothing techniques.
What is the Laguerre Filter?
The Laguerre Filter is derived from the Laguerre polynomial, which is used in signal processing for smooth filtering of data. The Laguerre filter is a recursive filter, meaning that each new value is calculated based on both the current price data and previous values, with a weighting system that allows it to adapt to market conditions. This recursive nature helps reduce the impact of short-term fluctuations, enabling the filter to focus on the underlying trend.
The Laguerre filter uses a feedback mechanism, where the input signal (price data) is smoothed iteratively. This iterative process helps avoid the lag that is typically associated with traditional moving averages while still capturing the overall trend direction.
The filter is designed to have:
Adaptive behavior: It reacts quickly to significant price changes while ignoring minor fluctuations.
Reduced noise: By filtering out random short-term price movements, it provides a clearer view of the underlying trend.
Customizability: Traders can adjust the filter’s sensitivity through user inputs, making it adaptable to different market conditions.
Core Calculation Methodology
The core of the Laguerre Filter lies in its recursive calculation:
Each new value is calculated using the previous value along with the current price input.
The recursive formula is governed by two key parameters: the damping factor (gamma) and the order of the filter (number of Laguerre elements).
The damping factor controls how responsive the filter is to changes in price. A higher gamma value makes the filter smoother but introduces more lag, while a lower gamma value makes it more reactive to price changes but can introduce more noise.
The order defines how many Laguerre elements are used in the calculation. A higher order results in a smoother output but with more delay, while a lower order provides a faster response but less smoothing.
The filter works by weighting previous values with a binomial weighting system, which assigns more weight to recent values and less weight to older values. This creates a dynamic smoothing effect that adapts to price volatility, ensuring that the filter is neither too slow nor too noisy.
Signal Logic and Trend Detection
The Laguerre Filter continuously evaluates the strength and direction of the trend by comparing the current smoothed value to the previous value:
If the current value is greater than the previous value, the trend is considered bullish, and the filter will signal a long condition.
If the current value is less than the previous value, the trend is considered bearish, and the filter will signal a short condition.
The trend detection logic is based on the recursive nature of the filter, which smooths price movements over time. This allows the filter to capture the broader trend while minimizing the influence of short-term price fluctuations.
The trend state is also visually represented by color-coding:
Green color represents an uptrend (bullish condition).
Red color represents a downtrend (bearish condition).
Neutral (white) indicates no clear trend direction.
This color-coding helps traders easily identify the prevailing trend and decide whether to enter or exit trades based on the trend's strength.
Laguerre Filter Behavior and Performance
The performance of the Laguerre Filter can be influenced by several factors:
Gamma (Damping Factor): A higher gamma value results in a smoother filter but increases lag. A lower gamma value allows for a faster response but may introduce more noise, making it more reactive to smaller price changes.
Filter Order: The order determines how many Laguerre elements are used in the filter calculation. A higher order provides more smoothing but increases lag, while a lower order results in a quicker response but less smoothing.
The sweet spot for gamma is typically between 0.7 and 0.85, where the filter offers a good balance between smoothness and responsiveness. The filter order is usually set to 4 for classic Laguerre filtering, but higher orders can be used for more smoothing if needed.
The Laguerre Filter’s performance shines in markets with sustained trends, where the filter can effectively capture and represent the underlying direction without excessive lag. It is particularly useful in volatile markets, as it helps smooth out noise while providing a clear picture of the trend.
Visual Presentation
The Laguerre Filter provides a dynamic, color-coded line that follows the trend direction. This line can be displayed alongside price data to visually highlight the market trend. In addition to the main Laguerre line, several visual enhancements can be applied:
Gradient fill between the price and the Laguerre Filter line, providing a visual cue for bullish or bearish market conditions.
Candle coloring to reflect the current trend, making it easier to spot trend reversals or confirmations directly on the chart.
Background shading to visually highlight areas of strong trend or consolidation.
Edge glow effect that highlights trend boundaries, making it easy to spot key levels of support or resistance.
These visual elements enhance the usability of the Laguerre Filter, allowing traders to quickly assess the market trend and make informed decisions.
Practical Use Cases
1) Trend Following
The Laguerre Filter is ideal for trend-following strategies. By using the filter to identify the prevailing trend, traders can:
Enter long positions when the Laguerre Filter turns bullish (green).
Enter short positions when the Laguerre Filter turns bearish (red).
By aligning trades with the dominant trend, traders can improve their chances of success.
2) Trend Strength Assessment
The Laguerre Filter can also be used to assess the strength of the trend:
A rising Laguerre value indicates a strengthening uptrend.
A falling Laguerre value indicates a strengthening downtrend.
A flattening Laguerre value signals weakening momentum or consolidation.
This information can be used to adjust position sizing or to decide when to enter or exit a trade.
3) Trade Management
The Laguerre Filter can also assist in trade management:
Use the Laguerre line as a trailing stop for long positions in an uptrend.
Scale out of positions as the Laguerre value begins to flatten or reverse.
Use the Laguerre Filter to avoid trades when the market is in consolidation or lacks a clear trend.
Tuning Guidelines
The Laguerre Filter can be adjusted for different market conditions using the following parameters:
Gamma (Damping Factor): Adjust for the desired level of responsiveness versus smoothness. Typical values range from 0.7 to 0.85.
Filter Order: Adjust to control the level of smoothing. The default value of 4 is a good starting point, but higher orders can be used for smoother filters.
Summary
The Laguerre Filter is a versatile and adaptive trend-following indicator that smooths price data and reduces noise, making it easier to identify and follow trends. By using recursive smoothing techniques and adjustable parameters, the Laguerre Filter provides an accurate representation of market conditions with minimal lag. It is especially useful in volatile markets where traditional moving averages may fail to capture the underlying trend. With its color-coded trend detection, gradient fills, and customizable settings, the Laguerre Filter is a powerful tool for traders looking to stay aligned with the prevailing market direction.
Supply Demand Zones ProSupply Demand Zones PRO
Version: 1.0
Built with: Pine Script v6
________________________________________
🧭 HOW TO USE Start Here
🧠 What it does default behavior
• ✅ Automatically identifies Supply & Demand zones on your chart
• ✅ Automatically ranks each zone from 0 to 10 higher = stronger
• ✅ Works across most TradingView symbols and timeframes with default settings
⚙️ Default settings recommended for most instruments
Use the default settings for:
• 💱 Forex
• 🪙 Crypto
• 📊 Indices
• 🛢️ Commodities
• 🏛️ Stocks
Defaults are tuned to provide a balanced mix of quality zones + clean charts.
🎯 How to trade with it high-level workflow
1. 🥇 Prioritize strong zones
o Focus on higher scores commonly 7–10 for best reversal potential.
2. 🔄 Wait for a reversal setup at the zone
o Example triggers: rejection wick, engulfing candle, strong reaction candle, structure shift.
3. ✅ Confirm with other indicators before entering
o Use confirmation tools (your choice), such as:
📈 Trend filter (MA / market structure)
🧪 Momentum (RSI / Stoch / MACD)
📉 Volume / volatility tools
o Then take BUY from demand or SELL from supply *only when confirmation aligns
🧩🖤 Executive Summary: PRO Features Overview
The Supply Demand Zones PRO indicator is a professional-grade tool built on the latest Pine Script v6, designed to automatically identify and score high-probability supply and demand zones.
It moves beyond simple zone plotting by incorporating a suite of advanced features that provide a deeper, more actionable market context. This helps traders filter out noise, focus on significant levels, and make more informed decisions.
The indicator is universally compatible and works seamlessly across all major asset classes and timeframes:
• Forex: EURUSD, GBPUSD, USDJPY
• Commodities: Gold/XAUUSD, Silver, Oil
• Indices: NQ, ES, DAX, FTSE
• Cryptocurrencies: Bitcoin, Ethereum, Altcoins
• Stocks: Individual equities
Most symbols available on TradingView are fully supported.
Notice on repainting 🕯️⬛
Active zones won’t repaint unless they are invalidated. Gray/Historic zones may repaint, and that’s fine—this script only displays the most recent and stronger historic zones (if historic zones are enabled).
________________________________________
⬛🛠️Key PRO Features Overview
⚙️ Feature 📌 Description
Zone Strength Ranking ||| Each zone is dynamically scored from 1–10 based on its age and number of retests. Fresher, less-tested zones are stronger, helping prioritize high-impact levels.
Real-Time Distance ||| Each active zone’s info label shows the exact distance (in pips) from current price to the zone edge for quick risk/opportunity assessment.
Trading Session Tracking ||| Zones are tagged by formation session (Asian / London / New York) for added context—high-volume session zones often matter more.
Automated Retest Markers ||| The script tracks retests and places an “R” marker for each retest, giving a clear visual history of price interaction.
Advanced ATR Filtering ||| Volatility-based filters control zone quality: set min/max zone height and optionally enforce a consistent zone height using ATR.
Minimum Zone Distance ||| Reduces clutter by requiring a minimum number of bars between new zones, ensuring zones are distinct and well-separated.
Dual Label Controls Independently toggle info labels for Active vs Historic zones to keep charts clean while preserving key detail.
Built on Pine Script v6 ||| Uses the newest Pine Script version for better efficiency, reliability, and smoother handling of complex logic/drawings.
________________________________________
Detailed Feature Breakdown ⬛
Zone Strength Ranking ⬛
The strength score is a proprietary calculation that helps traders instantly gauge the potential of a supply or demand zone. It is calculated in real time using:
1. Age of the Zone: As zones age, they may lose relevance. Strength decreases as the number of bars since creation increases.
2. Number of Retests: The first test is often the highest-probability reaction. Each retest reduces strength as liquidity is absorbed.
✅ A high score (7/10+) indicates a fresh, less-tested zone that may produce a strong reaction.
⚠️ A low score suggests a zone is old and/or heavily tested—use extra caution.
________________________________________
🧱⬛Invalidation & Historic Zones
A zone becomes invalidated broken when price closes beyond its outer boundary or wicks beyond it, depending on settings. Once broken, it becomes a Historic Zone and turns gray.
This matters for structure: a broken supply zone can become future demand a flip zone, and vice versa.
________________________________________
🧪⬛Advanced Filtering Explained
Three ATR-based filters control zone quality:
• Max Zone Height (ATR Multiplier): Blocks zones that are too large to trade effectively. Example: 1.0 ignores zones taller than 1× ATR.
• Min Zone Height (ATR Multiplier): Filters out zones that are too thin and likely noise. Example: 1.0 rejects zones smaller than 1× ATR.
• Force Zone Height (ATR Multiplier): Normalizes zone heights by expanding smaller valid zones up to the minimum ATR target. Example: 1.0 expands zones to at least 1× ATR.
________________________________________
🧾⬛Configuration Guide
⚙️⬛Zone Detection
⚙️ Setting 🔧 Default 📝 Description
Swing Length (Sensitivity) 12 Lookback bars for pivot high/low detection. Higher = fewer, stronger zones.
Max Zones to Display 10 Max number of active Supply + Demand zones shown.
Max Zone Height (ATR) 1.0 Rejects zones taller than this ATR multiplier.
Min Zone Height (ATR) 1.0 Rejects zones smaller than this ATR multiplier.
Force Zone Height (ATR) 1.0 Expands valid zones to be at least this ATR multiplier.
Min Distance Between Zones 44 Minimum bars required between consecutive zones of the same type.
________________________________________
🧱⬛Zone Settings
⚙️ Setting 🔧 Default 📝 Description
Zone Invalidation Close “Close” = candle must close past zone; “Wick” = wick past zone breaks it.
Show Historic Zones On Toggles visibility of broken (historic) zones.
Active Zones Lookback 1000 Hides active zones older than this many bars.
Historic Zones Lookback 1000 Hides historic zones older than this many bars.
________________________________________
🖥️⬛Display
⚙️ Setting 🔧 Default 📝 Description
Show Active Zone Info On Toggles text labels for active (unbroken) zones.
Show Historic Zone Info Off Toggles text labels for historic (broken) zones.
Label Size Small Adjusts the font size of zone info labels.
ICT Liquidity & OTE Engine - Real TimeICT Liquidity & OTE Engine - Real Time
This indicator is a comprehensive toolkit designed for traders utilizing Inner Circle Trader (ICT) concepts. It automates the identification of key structural liquidity pools (Buy Side & Sell Side Liquidity) and calculates real-time Optimal Trade Entry (OTE) levels, allowing you to react instantly to market structure shifts and liquidity sweeps.
Core Features
1. Dynamic Liquidity Pools (BSL / SSL) The script uses pivot high and low logic to identify significant swing points where stop losses and breakout orders typically reside.
BSL (Buy Side Liquidity): Green lines extending from Pivot Highs. These represent areas where short sellers have stops (buy stops).
SSL (Sell Side Liquidity): Red lines extending from Pivot Lows. These represent areas where long traders have stops (sell stops).
2. Real-Time "Sweep" Detection Unlike static support/resistance indicators, this script reacts to live price action.
Visual Feedback: When price "sweeps" or purges a liquidity level (breaks a BSL or SSL line), the line style automatically changes from solid to dotted and becomes semi-transparent.
Why this matters: This provides immediate visual confirmation that a "Stop Hunt" has occurred, often a precursor to a Smart Money reversal.
3. Optimal Trade Entry (OTE) 70.5% The indicator continuously tracks the highest high and lowest low over a definable lookback period (default 40 bars) to establish the current dealing range.
It plots the 70.5% Fibonacci retracement level, which is the classic ICT "Sweet Spot" for entries during a retracement.
This removes the need to manually draw and redraw Fib tools every time the range expands.
4. Bullish Fair Value Gap (FVG) Markers The script highlights specific bars that exhibit bullish displacement gaps, aiding in the identification of strong buying pressure or potential entries after a liquidity sweep.
How It Works
Pivots: It calculates pivots based on your user-defined Lookback input (default 20). A higher number finds longer-term swings; a lower number finds short-term scalping levels.
Liquidity Logic: Once a pivot is confirmed, a line is projected forward. If the current live High or Low breaches this line, the script detects the liquidity run and alters the line's appearance.
OTE Logic: (Highest High - Lowest Low) * 0.705. This dynamic calculation ensures the OTE level moves with the market structure in real-time.
How to Use
Identify the Sweep: Wait for price to run a SSL (Red Line) or BSL (Green Line). Watch for the line to turn dotted, indicating the liquidity has been taken.
Wait for Displacement: Look for a reaction away from the sweep (e.g., a sharp move up after taking SSL).
Find the Entry: Look for price to retrace to the plotted OTE 70.5% Line, ideally aligning with a marked FVG square, to position yourself in alignment with Smart Money.
Settings
Pivot Lookback: Adjusts the sensitivity of the liquidity lines (Default: 20).
Show BSL/SSL Lines: Toggles the liquidity pools on/off.
Show OTE Levels: Toggles the real-time Fibonacci level.
OTE Line Color: Customize the visual style of your entry level.
PaisaPani - BankNifty Demo PerformanceThis indicator displays a DEMO performance snapshot
to show how the PaisaPani approach behaves on BankNifty.
It is a trading system.
• Separate indicator designed specifically for BankNifty
• Intended for the mentioned timeframe only
• Focused on execution clarity, not predictions
🔒 Full access is limited.
Message “ACCESS” on TradingView if you want details.
⚠ Disclaimer:
For educational and demonstration purposes only.
Trading involves risk.
No profit guarantees are implied.
Adaptive AI SuperTrend [AlgoPoint]🚀 Adaptive AI SuperTrend
Adaptive AI SuperTrend is a high-performance trading terminal that redefines trend-following by integrating Machine Learning (ML) principles with advanced market regime detection. Unlike static indicators, this system dynamically recalibrates its internal parameters to match the ever-changing volatility of the financial markets.
Equipped with a custom "Wizard Engine," it filters out market noise during consolidation and identifies high-probability trend continuation points, making it an essential tool for scalpers, day traders, and swing traders alike.
🧠 What Makes it "AI"?
While traditional indicators use fixed rules, Adaptive AI SuperTrend utilizes Algorithmic Intelligence to make real-time decisions:
KNN-Inspired Adaptation: The engine analyzes the last 150 bars of volatility and trend strength to automatically adjust its sensitivity.
Market Regime Intelligence: It distinguishes between "Trending" and "Ranging" states using a sophisticated Squeeze Momentum module, preventing "whipsaws" during low-volume periods.
Self-Backtesting Logic: The indicator continuously calculates its own historical Win-Rate. If the probability of success falls below a certain threshold, it suppresses lower-quality signals.
🛠 Key Features
Dynamic Consolidation Boxes: Automatically identifies and wraps "choppy" price action in professional gray boxes. It waits for 3+ bars of consolidation before marking the zone, helping you spot breakout opportunities early.
Multi-Strategy Aggression:
- Conservative: Filtered signals for long-term trend following.
- Balanced: Optimized for daily volatility.
- Aggressive: High-frequency signals for capturing micro-trends.
Dual-Exit Risk Management:
- ATR TP-SL Mode: Sets mathematical targets based on market volatility with persistent on-screen lines.
- Smart Trailing Mode: Rides the trend to its exhaustion point. Includes intelligent labeling (🎯 TP or 🛑 SL) based on the trade's net profitability.
- RSI Pullback Confirmation: Beyond simple trend flips, it detects "buy the dip" or "sell the rip" opportunities within an existing trend using RSI 50-level crossovers.
📊 Real-Time Analytics Dashboard
The integrated AlgoPoint Dashboard provides a surgical view of the market:
- Market State: Instant "Trending" vs. "Ranging" (Consolidation) detection.
- Trend Strength: ADX-based momentum tracking.
- Strategy Status: Real-time feedback on your active aggression and exit modes.
🎨 Clean Charting & Customization
Built for professional clarity, you have total control over the UI:
Toggle Consolidation Boxes on/off.
Toggle ATR Target Lines and Exit Labels.
Customize background filters and dashboard visibility.
Multi-Session Volume Profile [MarkitTick]💡 This comprehensive Multi-Session Volume Profile indicator offers a sophisticated, array-based approach to Auction Market Theory. By simultaneously processing Daily, Weekly, Monthly, and Custom Session profiles, it empowers traders to visualize the migration of value across multiple timeframes without the performance overhead of standard heavy profile scripts. It is designed to identify key liquidity nodes, support/resistance zones defined by volume, and the directional bias of the market through Point of Control (POC) shifts.
✨ Originality and Utility
● Multi-Dimensional Value Analysis
Unlike standard volume profiles that often restrict users to a single timeframe or require multiple instances of an indicator, this script consolidates four distinct profile calculations into a single, efficient tool. It leverages Pine Script® arrays and custom types (`VPSlot`, `VolumeProfile`) to dynamically calculate volume distribution, ensuring minimal lag while maintaining high data granularity.
● Dynamic POC Shift Tracking
A standout feature of this utility is the "Shift Analysis." The indicator does not merely plot the current Point of Control; it calculates the delta between the current session's POC and the previous session's POC. This provides immediate visual feedback on "Value Migration"—whether the market is accepting higher prices (Bullish Shift) or lower prices (Bearish Shift).
● Granular Control via Custom Types
The script utilizes a custom quantitative structure (`type VolumeProfile`) to manage raw volume, highs, lows, and volatility slots independently for each timeframe. This allows for precise "row" calculations, ensuring that the volume distribution accurately reflects price action within the specific session, rather than broad approximations.
🔬 Methodology and Concepts
● Array-Based Bucketing
The core engine relies on a "Row Size" input to divide the session's price range into horizontal buckets (slots). As new price bars form, the script distributes the bar's volume across these slots. If a bar spans multiple slots, volume is distributed proportionally; if a bar is contained within a single slot, the total volume accumulates there. This mimics a true TPO (Time Price Opportunity) calculation using volume as the weight.
● Statistical Value Area Calculation
The Value Area (VA) is determined using a standard deviation proxy. The script identifies the POC (the slot with the highest accumulated volume) and then iteratively adds the next highest volume slots above or below the POC until the total accumulated volume reaches the user-defined percentage (default 70%).
● Session Logic and Reset
The indicator employs state-logic variables (`isNewDay`, `isNewWeek`, `isNewMonth`) to detect session boundaries. Upon a boundary cross, the `reset()` method clears the arrays and initializes a new profile, while the `draw()` method finalizes the visualization of the completed session. This ensures that the lines on the chart always represent the developing or completed structure of the specific time period.
🎨 Visual Guide
The indicator renders up to four distinct profiles, each color-coded for rapid identification.
● Daily Profile (Default: Yellow)
Solid Yellow Line: Represents the Daily POC (Point of Control)—the price level with the most volume traded today.
Dashed/Dotted Yellow Lines: Represent the Value Area High (VAH) and Value Area Low (VAL).
Yellow Background Box: Highlights the 70% Value Area, showing where the bulk of the day's trading occurred.
● Weekly Profile (Default: Blue)
Solid Blue Line: The Weekly POC. Use this to gauge the medium-term trend direction.
Blue Background: Encapsulates the weekly value area. A breakout from this zone often signals a significant trend continuation.
● Monthly Profile (Default: Purple)
Solid Purple Line: The Monthly POC. This is a high-timeframe magnet level, often acting as major support or resistance.
Purple Background: Shows the macro acceptance zone for the asset.
● Custom Session Profile (Default: Cyan)
Solid Cyan Line: Tracks the POC for a specific time window (e.g., 09:30-16:00). Ideal for isolating RTH (Regular Trading Hours) from electronic sessions.
● Labels and Shift Arrows
Right-Side Labels: Display the exact price of the POC for each active profile.
Shift Indicators (▲ / ▼): Located inside the label. A "▲" indicates the current POC is higher than the previous session's POC (Value Migration Up), while "▼" indicates the opposite.
📖 How to Use
● Trend Confirmation via Value Migration
Observe the Shift Arrows in the labels. If the Daily and Weekly profiles both show "▲" (Up Shift), it confirms that value is migrating higher, suggesting a healthy uptrend. Do not short the market when value is migrating up unless price breaks below the VAL.
● Mean Reversion Trades
When price extends far away from the POC but fails to establish value (volume) at those new levels, it often reverts back to the POC. Use the POC lines as profit targets for mean reversion strategies.
● Breakout Validation
A breakout is considered valid if price closes outside the Value Area (Background Box) and volume begins to build at the new levels. If price spikes out of the VAH but quickly returns inside the box, it is a "Failed Auction," and a rotation to the VAL is probable.
● Confluence Zones
Look for price levels where the Daily POC and Weekly VAL/VAH overlap. These "clusters" of volume act as reinforced support or resistance levels.
⚙️ Inputs and Settings
● General Settings
Row Size: Determines the resolution of the profile. Higher numbers (e.g., 100) give smoother, more precise profiles but use more resources. Lower numbers (e.g., 24) are blockier but faster.
Value Area %: The percentage of total volume to include in the VA. Standard is 70.0.
Show POC Shift Analysis: Toggles the display of the ▲/▼ drift comparison.
● Profile Toggles (Daily, Weekly, Monthly, Session)
Each section has individual toggles for Show Profile , Show Value Area , and Show Background .
Start of Week Day: Allows you to define when the weekly profile resets (e.g., Sunday or Monday).
● Alert Settings
Approach Distance (Ticks): Defines how close price must get to a POC/VAH/VAL level to trigger an "Approaching" alert.
Enable Alerts: Master switch to turn on internal alert condition checks.
🔍 Deconstruction of the Underlying Scientific and Academic Framework
● Auction Market Theory (AMT)
The script is grounded in Auction Market Theory, which posits that the market's primary purpose is to facilitate trade. Price advertises opportunity, and Volume records the acceptance of that opportunity. The "Value Area" represents the fair value established by buyers and sellers, while the POC represents the price of maximum consensus.
● Gaussian Distribution Application
The calculation of the Value Area at 70% is derived from the statistical properties of a Normal (Gaussian) Distribution, where approximately 68.2% of data points typically fall within one standard deviation of the mean. In this script, the POC acts as the mode (peak frequency), and the Value Area represents that first standard deviation of transactional volume.
● Volume-Price Integration
By integrating volume into price buckets (`VPSlot`), the indicator transforms two-dimensional time/price data into three-dimensional data (Time, Price, Volume). This reveals the "texture" of the market structure, distinguishing between high-volume nodes (strong acceptance) and low-volume nodes (rejection or emotional trading).
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
buy-sale new 1 //@version=6
indicator("EMA Cross RR Box (1:4 TP Green / SL Red)", overlay=true, max_lines_count=500, max_boxes_count=500)
// ===== INPUTS =====
emaFastLen = input.int(9, "Fast EMA")
emaSlowLen = input.int(15, "Slow EMA")
atrLen = input.int(14, "ATR Length")
slMult = input.float(1.0, "SL ATR Multiplier")
rr = input.float(4.0, "Risk Reward (1:4)") // 🔥 1:4 RR
// ===== EMA =====
emaFast = ta.ema(close, emaFastLen)
emaSlow = ta.ema(close, emaSlowLen)
plot(emaFast, color=color.green, title="EMA Fast")
plot(emaSlow, color=color.red, title="EMA Slow")
// ===== ATR =====
atr = ta.atr(atrLen)
// ===== EMA CROSS =====
buySignal = ta.crossover(emaFast, emaSlow)
sellSignal = ta.crossunder(emaFast, emaSlow)
// ===== VARIABLES =====
var box tpBox = na
var box slBox = na
var line tpLine = na
var line slLine = na
// ===== BUY =====
if buySignal
if not na(tpBox)
box.delete(tpBox)
if not na(slBox)
box.delete(slBox)
if not na(tpLine)
line.delete(tpLine)
if not na(slLine)
line.delete(slLine)
entry = close
sl = entry - atr * slMult
tp = entry + atr * slMult * rr // ✅ 1:4 TP
// TP ZONE (GREEN)
tpBox := box.new(
left=bar_index,
top=tp,
right=bar_index + 20,
bottom=entry,
bgcolor=color.new(color.green, 80),
border_color=color.green
)
// SL ZONE (RED)
slBox := box.new(
left=bar_index,
top=entry,
right=bar_index + 20,
bottom=sl,
bgcolor=color.new(color.red, 80),
border_color=color.red
)
tpLine := line.new(bar_index, tp, bar_index + 20, tp, color=color.green, width=2)
slLine := line.new(bar_index, sl, bar_index + 20, sl, color=color.red, width=2)
label.new(bar_index, low, "BUY", style=label.style_label_up, color=color.green, textcolor=color.white)
// ===== SELL =====
if sellSignal
if not na(tpBox)
box.delete(tpBox)
if not na(slBox)
box.delete(slBox)
if not na(tpLine)
line.delete(tpLine)
if not na(slLine)
line.delete(slLine)
entry = close
sl = entry + atr * slMult
tp = entry - atr * slMult * rr // ✅ 1:4 TP
// TP ZONE (GREEN)
tpBox := box.new(
left=bar_index,
top=entry,
right=bar_index + 20,
bottom=tp,
bgcolor=color.new(color.green, 80),
border_color=color.green
)
// SL ZONE (RED)
slBox := box.new(
left=bar_index,
top=sl,
right=bar_index + 20,
bottom=entry,
bgcolor=color.new(color.red, 80),
border_color=color.red
)
tpLine := line.new(bar_index, tp, bar_index + 20, tp, color=color.green, width=2)
slLine := line.new(bar_index, sl, bar_index + 20, sl, color=color.red, width=2)
label.new(bar_index, high, "SELL", style=label.style_label_down, color=color.red, textcolor=color.white)
FLOW DEPTH Price BreathingFLOW DEPTH is a visual, psychology-based indicator designed to reveal how the market breathes through phases of compression and expansion. Instead of relying on traditional trend lines or lagging indicators, it focuses on the depth of price movement around its natural balance, allowing traders to feel market rhythm rather than chase signals.
The indicator paints a smooth flow line and subtle background shading to highlight whether the market is exhaling (expansion) or inhaling (compression). This creates a calm, premium chart experience while still delivering meaningful insight into momentum and price behavior.
FLOW DEPTH is ideal for traders who prefer clean charts, visual clarity, and market structure awareness without clutter. It works especially well on XAUUSD, BTC, and major forex pairs, across intraday and swing timeframes.
🔍 How to Use
Green flow → Market is expanding (momentum phase)
Red flow → Market is compressing (rest phase)
Flow shift dots → Transition between market phases
Use FLOW DEPTH as a context tool, not a signal generator. Combine it with price action, structure, or session logic for best results.
[TehThomas] - Order Blocks█ OVERVIEW
This Order Blocks indicator identifies institutional-level support and resistance zones using fractal pattern recognition combined with Fair Value Gap (FVG) filtering. Order blocks represent areas where large institutional orders have been placed, creating significant price reactions when retested. This indicator uses a 5-bar fractal pattern to detect market structure breaks and highlights the last bearish or bullish candle before a strong impulse move.
█ KEY FEATURES
- Fractal-Based Detection: Uses 5-candle fractal patterns to identify key market structure highs and lows
- FVG Filtering: Optional Fair Value Gap confirmation ensures order blocks are followed by true market imbalances
- Automatic Mitigation: Order blocks are automatically removed when price breaks through them
- Overlap Prevention: Prevents cluttered charts by avoiding overlapping order block zones
- Customizable Display: Full control over colors, labels, line heights (body/wick), and maximum blocks shown
- Dual Polarity: Detects both bullish (OB+) and bearish (OB-) order blocks independently
█ HOW IT WORKS
The indicator scans price action for fractal patterns where the middle candle forms a local extreme (highest high or lowest low among 5 bars). When price breaks above a fractal high or below a fractal low, the script identifies the last opposing candle in the impulse move as the order block.
For bearish order blocks, it finds the highest bullish candle before a fractal low is broken, marking institutional selling pressure. For bullish order blocks, it locates the lowest bearish candle before a fractal high is breached, indicating institutional buying.
When FVG filtering is enabled, the indicator confirms that a Fair Value Gap (a 3-candle imbalance where price leaves an unfilled gap) occurred within the specified distance from the order block. This combination increases the probability that institutional traders are present in these zones.
█ SETTINGS
Bullish Order Block Settings
- Show/hide bullish order blocks
- Customize fill color and border color
- Toggle OB+ label display
Bearish Order Block Settings
- Show/hide bearish order blocks
- Customize fill color and border color
- Toggle OB- label display
Label Settings
- Label size: Tiny, Small, Normal, or Large
- Label text color customization
General Settings
- Bars Back to Check (10-200): Lookback period for order block detection
- Filter by FVG: Requires Fair Value Gap confirmation
- Max Bars Between OB and FVG (1-6): Distance tolerance for FVG filtering
- Line Height: Choose between Body or Wick for order block boundaries
- Prevent Overlapping OBs: Avoids drawing overlapping zones
- Max Order Blocks to Display (1-50): Limits active blocks on chart
- Length of Boxes (10-100): Horizontal projection length
█ HOW TO USE
1. Add the indicator to your TradingView chart
2. Configure settings based on your trading timeframe and style
3. Watch for OB+ labels (bullish order blocks) as potential support zones where price may bounce
4. Watch for OB- labels (bearish order blocks) as potential resistance zones where price may reverse
5. Wait for price retracement to the order block zone before taking entries
6. Use confirmation signals like volume spikes or reversal patterns at the order block
7. Place stop loss just outside the order block boundary to manage risk
8. Monitor mitigation: Order blocks disappear when price breaks through them completely
█ TRADING STRATEGY EXAMPLES
Bullish Order Block Strategy
Wait for a market structure shift from bearish to bullish. When price creates a bullish impulse breaking a fractal high, identify the OB+ zone. Enter long positions when price retraces to test the bullish order block, placing stop loss 10-20 pips below the zone's low. Target previous highs or resistance levels.
Bearish Order Block Strategy
Monitor for market structure shift from bullish to bearish. After price creates a bearish impulse breaking a fractal low, locate the OB- zone. Enter short positions when price retraces to test the bearish order block, placing stop loss 10-20 pips above the zone's high. Target previous lows or support levels.
FVG-Confirmed Entries
Enable FVG filtering to only display order blocks validated by Fair Value Gaps. These aligned setups increase probability as they combine institutional order placement with market inefficiencies. Trade retracements to these high-confluence zones for better risk-reward ratios.
█ IDEAL FOR
- ICT Traders: Follows Inner Circle Trader methodology for institutional order flow
- Smart Money Concepts: Tracks where large players place orders
- Swing Traders: Identifies key support/resistance for multi-day holds
- Price Action Traders: Pure chart-based approach without lagging indicators
- Breakout Traders: Confirms structure breaks with fractal patterns
- Forex, Crypto, and Stock Markets: Works on all liquid markets and timeframes
█ TECHNICAL SPECIFICATIONS
- Max Boxes: 500
- Max Labels: 500
- Detection Method: 5-bar fractal pattern recognition
- Mitigation Logic: Automatic removal when price breaks order block boundaries
- Time Projection: Uses time offset calculations for box extension
- Array Management: Dynamic array cleanup to prevent memory issues
█ NOTES & DISCLAIMERS
- Order blocks work best when combined with overall market context and trend analysis
- Not all order blocks result in price reversals; use proper risk management
- FVG filtering may reduce the number of signals but increases quality
- Fractal patterns require 5 bars to form, causing a 2-bar delay in detection
- Works optimally on higher timeframes (4H, Daily) for institutional footprints
- This indicator does not guarantee profitable trades; always use stop losses
- Past performance of order blocks does not predict future results
- Compatible with other ICT concepts like liquidity sweeps and market structure
Ichimoku Cloud Laboratory [DAFE]Ichimoku Cloud Laboratory : The Ultimate All-In-One Trend & Equilibrium Engine
50+ Cloud Engines. Multi-Cloud Architecture. Advanced Signal Filtering. This is Not Just Ichimoku. This is the Evolution of Market Equilibrium.
█ PHILOSOPHY: BEYOND THE CLOUD, INTO THE LABORATORY
The Ichimoku Kinko Hyo is more than an indicator; it is a complete trading philosophy, a masterpiece of market analysis that provides an "at-a-glance" view of trend, momentum, and equilibrium. However, its core calculation—the simple midpoint of the high and low—was conceived in a pre-computer era. While brilliant, it is blind to the modern market's most critical force: the nuanced character of volume, volatility, and microstructure.
The Ichimoku Cloud Laboratory was not created to be another Ichimoku clone. It was engineered to be the definitive evolution of Goichi Hosoda's original vision. This is not just an indicator; it is a powerful, interactive research environment. It is a laboratory where you, the trader, can move beyond the static "one-size-fits-all" approach and forge an Ichimoku system that is perfectly synchronized with the unique physics of your market, timeframe, and analytical style.
We have deconstructed the very DNA of the Cloud, replacing its rigid 1930s-era calculation with a library of over 50 distinct, mathematically diverse calculation engines . From classical moving averages and advanced DSP filters to proprietary DAFE quantum models, this suite provides an unparalleled arsenal for visualizing the true, underlying architecture of market equilibrium.
█ WHAT MAKES THIS A "LABORATORY"? THE CORE INNOVATIONS
This tool stands in a class of its own. It is a collection of what could be 50 separate indicators, all seamlessly integrated into one powerful, unified engine.
The 50+ Algorithm Engine: This is the heart of the Laboratory. You are no longer bound by the simple Donchian midpoint. You can now swap the core calculation engine of the Tenkan-sen, Kijun-sen, and Senkou Span B with any of over 50 algorithms. Want a zero-lag, Hull MA-based cloud? A volume-weighted cloud that gravitates towards liquidity? A cloud that adapts its speed based on market entropy? You now have the power to construct it.
Multi-Cloud Architecture: This revolutionary feature allows you to stack up to three layers of the Ichimoku cloud on your chart, each calculated with a progressively longer timeframe multiplier. This transforms the flat, two-dimensional cloud into a rich, three-dimensional "heatmap" of support and resistance. You can instantly see the alignment (or conflict) between the short-term, medium-term, and long-term trends.
Advanced Signal Logic & Filtering: Go beyond the simple TK Cross. The Laboratory includes eight distinct, built-in signal strategies, from the classic "Kumo Breakout" to the high-conviction "Perfect Order." Crucially, you can then fortify these signals with a professional-grade filter module, requiring confirmation from Volume, ATR (volatility), or ADX (trend strength) before a signal is even considered valid.
Proprietary DAFE Engines: The crown jewels of the Laboratory. These are custom-built, proprietary algorithms you will not find anywhere else, designed to infuse the cloud with modern quantitative analysis:
DAFE Flux Reactor: A cloud that breathes with volatility, automatically tightening in squeezes and expanding in trends.
DAFE Tensor Cloud: Uses a 4-dimensional average (OHLC) to create a cloud that tracks the "true" center of price action.
DAFE Quantum Step: A noise-canceling cloud that only moves when price exceeds a volatility-based threshold.
DAFE Gravity Well: A volume-weighted cloud that is magnetically pulled towards high-liquidity zones.
Integrated Performance Engine & Dashboard: How do you know which of the 50+ engines is best? You test it. The built-in Performance Dashboard tracks every trade generated by your chosen configuration, while the main dashboard provides a comprehensive, at-a-glance summary of the entire Ichimoku system's current state.
█ A GUIDED TOUR OF THE ALGORITHMIC CORE
This is your library of mathematical DNA. The 50+ engines are your tools to build the perfect cloud.
THE ENGINE FAMILIES
The Classics (Hull MA, ZLEMA, KAMA, VIDYA): Replace the choppy Donchian midpoint with smooth, low-lag, or adaptive moving averages to create a more responsive and readable cloud.
The DSP & Quantitative Masters (SuperSmoother, Kalman, Gaussian, Laguerre): Employ advanced digital signal processing and statistical filtering to construct a cloud that is surgically precise in its separation of trend "signal" from market "noise."
The Volume-Based (VWMA, VWAP, Money Flow Weighted): Build a cloud that is not just based on price, but is weighted by participation. This creates a cloud that automatically respects high-liquidity zones as stronger levels of support and resistance.
The Adaptive Geniuses (ATR-Scaled, Volatility-Modulated, Efficiency Ratio, Entropy): These are "smart" engines that analyze the market's character—its volatility, trendiness, or disorder—and adapt the cloud's calculation in real-time. The result is a cloud that is stable in chop and dynamic in trends.
The DAFE Proprietary Engines: The pinnacle of cloud engineering. These exclusive algorithms allow you to build clouds based on principles of physics, institutional analysis, and quantum mechanics, creating a truly next-generation analytical tool.
█ STRATEGIC APPLICATION: FROM SIGNALS TO STRUCTURE
The Laboratory transforms Ichimoku from a simple signal generator into a complete market structure framework.
The Signal Logic: You are not limited to one strategy.
TK Cross: For classic momentum signals.
Kumo Breakout: For pure price action breakout strategies.
Perfect Order: The ultimate filter. By requiring Price > Cloud > Tenkan > Kijun, you filter for only the strongest, most established trends, eliminating the majority of false signals.
Cloud Twist: A forward-looking, predictive signal. The twist of the future cloud often pinpoints the exact timing of a potential trend reversal.
The Multi-Cloud Strategy: This is the professional's view. By enabling 3 Cloud Layers, you can see the market's fractal nature.
Layer 1 (Standard): Your short-term operational trend.
Layer 2 (e.g., 2x Periods): Your medium-term structural trend.
Layer 3 (e.g., 3x Periods): Your long-term macro trend.
The Strategy: Wait for price to pull back into the space between the 2nd and 3rd cloud layers—the "macro support/resistance zone"—and then take a signal from the 1st layer in the direction of the overall trend. This is a high-probability institutional setup.
█ THE MASTER DASHBOARD: YOUR "AT-A-GLANCE" COMMAND CENTER
The dashboard provides a comprehensive, real-time summary of the entire Ichimoku system's state.
Engine & Periods: Instantly confirm which of the 50+ engines and period settings are active.
Status Readout: Get an immediate, color-coded verdict on the three core Ichimoku components: Price vs. Cloud, the TK Cross, and the Future Cloud bias.
Momentum & Strength Gauge: A proprietary score that quantifies the overall bullish or bearish momentum of the system, and a "Strength" bar that visualizes the conviction of the current alignment.
Performance Data: If enabled, the dashboard will display your strategy's key performance metrics, including Win Rate, Profit Factor, and Net P&L.
█ DEVELOPMENT PHILOSOPHY
The Ichimoku Cloud Laboratory was born from a deep respect for Goichi Hosoda's original work and a relentless desire to push it into the 21st century. We believe that in modern markets, static tools are obsolete. The future of trading lies in adaptation, customization, and multi-dimensional analysis. This tool is for the serious trader, the systems thinker, the architect—the individual who is not content with a black box, but who seeks to understand, test, and refine their edge with surgical precision.
The Ichimoku Laboratory is designed to be the ultimate tool for that reaction, providing a crystal-clear, multi-layered view of what the market is telling you—not just through price, but through the very fabric of its equilibrium.
█ DISCLAIMER AND BEST PRACTICES
THIS IS AN ADVANCED ANALYTICAL TOOL: This indicator provides a sophisticated market structure and signal framework. It must be integrated into a complete trading plan that includes your own analysis and risk management.
RISK MANAGEMENT IS PARAMOUNT: All trading involves substantial risk. Never risk more capital than you are prepared to lose.
START WITH A ROBUST BASE: Begin with the "Traditional" preset and the "Standard Donchian" engine to master the classic feel. Then, experiment with a low-lag engine like the "Hull Moving Average" to see the immediate benefit of a smoother, more responsive cloud.
USE CONFLUENCE: The highest probability signals come from confluence. A "TK Cross" buy signal that occurs above a bullish "Multi-Cloud" structure, confirmed by a "Perfect Order" and high volume, is an A++ setup.
"The essence of success in the market is not forecasting, but reacting to what the market is telling you right now."
— J. Welles Wilder Jr.
Taking you to school. - Dskyz, Trade with Anticipation. Trade with Strength. Trade with RSI: Evolved
Smart Money Structure FilterEnglish Description
Overview
Smart Money Structure Analyzer is a professional trading tool that implements Smart Money Concepts (SMC) to identify key market structure shifts, Break of Structure (BOS), and Change of Character (CHoCH) patterns. This indicator helps traders follow the "smart money" flow by detecting institutional order flow patterns on any timeframe.
Key Features
Swing Point Detection - Identifies significant highs and lows using fractal-based logic
Market Structure Analysis - Classifies market conditions as Uptrend, Downtrend, or Consolidation
Break of Structure (BOS) - Detects when price breaks key structural levels
Change of Character (CHoCH) - Identifies potential trend reversals
Mitigation Levels - Shows potential retracement targets after structure breaks
How It Works
The indicator analyzes price action through several layers:
Swing Detection Algorithm
Uses a configurable swing period (3-21 bars)
Identifies valid swing highs and lows that are confirmed by surrounding price action
Stores the last 20 swings for structure analysis
Structure Determination
Uptrend: Higher Highs (HH) + Higher Lows (HL)
Downtrend: Lower Lows (LL) + Lower Highs (LH)
Consolidation: Mixed structure or ranging market
Break of Structure (BOS) Logic
Bearish BOS: Price closes below the last confirmed Higher Low (HL)
Bullish BOS: Price closes above the last confirmed Lower High (LH)
Change of Character (CHoCH) Logic
Bearish CHoCH: After a bearish BOS, price forms a Lower Low (confirms trend reversal)
Bullish CHoCH: After a bullish BOS, price forms a Higher High (confirms trend reversal)
Mitigation Levels
Calculates potential retracement levels after BOS (typically ±0.2% from broken structure)
Visual Elements
Fractals: Swing points (optional display)
Structure Lines: Last Higher Low (blue) and Last Lower High (purple)
BOS Signals: Triangles marking structure breaks
CHoCH Signals: Circles confirming trend changes
Mitigation Levels: Dotted orange lines for potential retracements
Info Label: Real-time structure status and key levels
Alerts
The indicator provides alerts for:
Break of Structure (BOS) events
Change of Character (CHoCH) confirmations
Settings
Swing Period: Sensitivity of swing detection (default: 3)
Show Fractals: Toggle swing point markers
Show Structure Lines: Display key structure levels
Show Break of Structure: Display BOS signals
Show Change of Character: Display CHoCH signals
Show Mitigation Levels: Display retracement levels
Best Practices
Use on higher timeframes (1H+) for more reliable signals
Combine with volume analysis for confirmation
Wait for CHoCH confirmation before entering trades
Use mitigation levels as potential entry zones
Русское описание
Обзор
Smart Money Structure Analyzer - профессиональный торговый инструмент, реализующий концепции Smart Money (SMC) для определения ключевых сдвигов рыночной структуры, Break of Structure (BOS) и Change of Character (CHoCH). Индикатор помогает отслеживать поток "умных денег", выявляя паттерны институционального ордерного потока на любом таймфрейме.
Ключевые возможности
Определение свингов - Выявляет значимые максимумы и минимумы с помощью фрактальной логики
Анализ структуры рынка - Классифицирует состояние рынка: Восходящий тренд, Нисходящий тренд или Консолидация
Break of Structure (BOS) - Обнаружение пробития ключевых уровней структуры
Change of Character (CHoCH) - Определение потенциальных разворотов тренда
Уровни митигации - Показывает потенциальные цели отката после пробоя структуры
Принцип работы
Индикатор анализирует ценовое действие через несколько уровней:
Алгоритм определения свингов
Использует настраиваемый период свинга (3-21 свечи)
Определяет валидные максимумы и минимумы, подтвержденные окружающим движением цены
Сохраняет последние 20 свингов для анализа структуры
Определение структуры
Восходящий тренд: Higher Highs (HH) + Higher Lows (HL)
Нисходящий тренд: Lower Lows (LL) + Lower Highs (LH)
Консолидация: Смешанная структура или флет
Логика Break of Structure (BOS)
Медвежий BOS: Цена закрывается ниже последнего Higher Low (HL)
Бычий BOS: Цена закрывается выше последнего Lower High (LH)
Логика Change of Character (CHoCH)
Медвежий CHoCH: После медвежьего BOS формируется Lower Low (подтверждает разворот)
Бычий CHoCH: После бычьего BOS формируется Higher High (подтверждает разворот)
Уровни митигации
Расчет потенциальных уровней отката после BOS (обычно ±0.2% от сломанной структуры)
Визуальные элементы
Фракталы: Точки свингов (опционально)
Линии структуры: Последний Higher Low (синий) и последний Lower High (фиолетовый)
Сигналы BOS: Треугольники, отмечающие пробой структуры
Сигналы CHoCH: Круги, подтверждающие изменение тренда
Уровни митигации: Пунктирные оранжевые линии для потенциальных откатов
Инфо-метка: Статус структуры и ключевые уровни в реальном времени
Оповещения
Индикатор предоставляет алерты для:
Событий Break of Structure (BOS)
Подтверждений Change of Character (CHoCH)
Настройки
Период свинга: Чувствительность определения свингов (по умолчанию: 3)
Показывать фракталы: Включение/выключение маркеров свингов
Показывать линии структуры: Отображение ключевых уровней структуры
Показывать Break of Structure: Отображение сигналов BOS
Показывать Change of Character: Отображение сигналов CHoCH
Показывать уровни митигации: Отображение уровней отката
Рекомендации по использованию
Используйте на старших таймфреймах (1H+) для более надежных сигналов
Комбинируйте с анализом объема для подтверждения
Ждите подтверждения CHoCH перед входом в сделку
Используйте уровни митигации как потенциальные зоны входа
Технические особенности
Максимальное количество меток: 500
Работает на любых таймфреймах
Не перерисовывает прошлые сигналы
Эффективно использует ресурсы благодаря ограничению хранения свингов
Индикатор предназначен для трейдеров, работающих с Price Action и концепциями Smart Money, и помогает систематизировать анализ рыночной структуры в соответствии с подходами институциональных трейдеров.
EMA 200 Distance ATR Normalized Oscillator# 📊 EMA 200 Distance Oscillator
## What Does This Indicator Do?
This oscillator measures how far the price is from the **EMA 200** (Exponential Moving Average) and transforms it into a **normalized 0-100 scale** using mathematical sigmoid function.
### Core Formula
```
1. Calculate: Price - EMA(200)
2. Normalize: (Price - EMA) / ATR
3. Transform: Sigmoid(normalized_value) × 100
```
The sigmoid function smoothly maps any distance into a readable 0-100 range, making it easy to spot trends and extremes.
---
## 📈 Key Levels
- **50** = Neutral (price at EMA 200)
- **> 50** = Price above EMA (bullish territory)
- **< 50** = Price below EMA (bearish territory)
- **> 80** = Overbought zone
- **< 20** = Oversold zone
---
## 🎯 Trading Philosophy: Stay With The Trend
**The most important principle in trading is to stay with the trend.**
This oscillator helps you:
✅ **Identify the dominant trend** (above or below 50)
✅ **Avoid counter-trend trades** (don't fight the momentum)
✅ **Spot trend exhaustion** (overbought/oversold zones)
✅ **Time your entries** (wait for pullbacks in strong trends)
### Remember:
- Values consistently above 50 = **Stay bullish**
- Values consistently below 50 = **Stay bearish**
- Don't try to catch falling knives or short strong uptrends
- **The trend is your friend until it ends**
---
## 🎨 Visual Features
- **Color gradient line**: Transitions from red (0) to green (100)
- **Histogram bars**: Shows deviation from neutral (50)
- **Background zones**: Highlights overbought/oversold areas
- **Signal triangles**: Marks trend changes at 50 level
- **Live info table**: Displays real-time metrics with vibrant colors
---
## ⚙️ Customizable Parameters
- **EMA Length** (default: 200)
- **ATR Length** (default: 14)
- **Sigmoid Multiplier** (default: 1.0) - Controls sensitivity
---
## 🔔 Built-in Alerts
- Bullish signal (crosses above 50)
- Bearish signal (crosses below 50)
- Overbought alert (enters > 80)
- Oversold alert (enters < 20)
---
## ⚠️ Disclaimer
**This indicator is for educational and informational purposes only.**
- Not financial advice
- Past performance does not guarantee future results
- Always use proper risk management
- Combine with other analysis methods
- Trade at your own risk
---
## 💬 Feedback Welcome
If you found this indicator helpful, I'd appreciate:
- A **follow** to see more trading tools
- Your **comments** and suggestions for improvement
- Sharing your experience using it
Your feedback helps me create better indicators for the community!
---
**Happy Trading & Stay With The Trend! 📈**
MTF - OHLC - AMDPO3 Extension – Key Features
SMT
-Shows correlations between multiple instruments (e.g., Pair 2, Pair 3).
-Auto-matching of pairs to highlight synchronized movements.
-Does not include SMT with DXY.
HTF Projection (High Time Frame)
-Projects higher timeframe levels directly onto the current chart.
-Supports multiple HTFs (e.g., 1H, 4H, Daily, Weekly) with customizable number of candles.
-Shows mid lines and key candle levels for HTFs.
-Full visual customization: candle body, border, and spike colors for bull and bear.
-Options for labels above/below candles and PSP display.
-Manage offsets for candle distance and visual sizing.
Multi-Timeframe and Separators
-Displays levels and period separators across multiple timeframes: for example, on 1m chart,
you can see 15m and 4H references.
-Ideal for strategies combining MTF, HTF, and LTF.
Manipulation Detection (AMD)
-Identifies accumulation, manipulation, and distribution zones.
-Activates manipulation signal when a candle wipes out the previous High or Low and closes
back within the range.
-Highlights CISD zones related to manipulation or HTF SMT.
Advanced Level Analysis
-Tracks daily levels with minimum distance between them.
Visual for HTF - MTF - LTF
Mode 1
tf → TF1 → TF2 → TF3 → TF4
"1m → 15m → 30m → 1h → 4h"
"3m → 30m → 4h → D → W"
"5m → 1h → D → M → 3M"
"15m → 4h → W → M → 3M"
"30m → 4h → W → M → 3M"
"1h → D → M → 3M"
"4h → W → M"
"D → M"
"W → M"
Mode 2
tf → TF1 → TF2 → TF3 → TF4
"1m → 15m → 30m → 1h → 4h"
"3m → 30m → 1h → 4h → D"
"5m → 1h → 4h → D → W"
"15m → 1h → 4h → D → W"
"30m → 1h → 4h → D → W"
"1h → 4h → D → W → M"
"4h → D → W → M"
"D → W → M"
"W → M"
Model SMT: Same TF but Correlated Pairs
Model Manual: use the manually set TF (HTF 1 - HTF 2 - HTF 3 - HTF 4)"
With this indicator, you'll have a clearer view of what it can do to the price.
For example, if we're bullish and see manipulation on the highs in HTF and CISD confirmation in LTF, we can predict that the price will fall to the TP level.
Disclaimer
This script is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, or a recommendation to buy or sell any financial instrument. The author takes no responsibility for any losses or damages resulting from the use of this script. Trading involves risk, and you are solely responsible for your trading decisions.
Position Size RulerThis script is designed for day traders who need to visualize contract sizing based on stop loss size instantly without manual calculations. It bridges the gap between a trader's defined risk and the fast-moving price action of assets like NQ or MNQ.
The tool operates by creating a "position size ruler" that projects contract-specific zones based on a draggable Stop Loss anchor.
Draggable Stop Loss: In settings, you will first need to enter a value for the stop loss. This value should be near the current price value so that the ruler can be seen on your chart. Once that is done, you can click and drag the "blue dot" handle—anchored to the left edge of the stop loss—to align it with your anticipated stop loss location.
Bullish Market Structure HH HLThis indicator identifies bullish market structure by automatically marking Higher Highs (HH) and Higher Lows (HL) on the price chart using pivot-based logic.
It helps traders visually understand trend direction, structure strength, and key swing points without clutter or repainting.
🔧 How the Indicator Works
1️⃣ Pivot Lookback Input
The indicator uses a user-defined pivot lookback length
This value controls how many candles are required to confirm a swing high or swing low
2️⃣ Pivot High & Pivot Low Detection
Pivot High marks a confirmed swing high
Pivot Low marks a confirmed swing low
Pivots are confirmed only after price action completes, making the indicator non-repainting
📈 Market Structure Labels
🟢 Higher High (HH)
Displayed at confirmed swing highs
Indicates bullish momentum and trend continuation
Shown with a downward-pointing green label
🟢 Higher Low (HL)
Displayed at confirmed swing lows
Represents strong demand and trend support
Shown with an upward-pointing green label
✅ Key Features
Non-repainting pivot logic
Clean and minimal visual design
Works on all markets and timeframes
Beginner-friendly and professional-grade
📌 Trading Use Case
Identify bullish trends using HH–HL sequences
Confirm healthy pullbacks in an uptrend
Combine with support/resistance, trendlines, or higher-timeframe bias
⚠️ Disclaimer
This indicator is a market structure visualization tool, not a complete trading system.
Always use proper risk management and additional confirmation.
MACD/PPO ALMA EditionMACD – a trend-following indicator that "always too late" indicates what's happening on the chart.
To make this indicator traditionally considered "good but too late" based on the ALMA moving average:
The Arnaud Legoux Moving Average (ALMA) is a technical indicator designed to reduce lag and noise in price data by applying a Gaussian filter, offering a smoother and more responsive alternative to traditional SMAs and EMAs.
Key Aspects of ALMA:
Key Parameters: ALMA uses three main settings: Window Size (length), Offset (offsets focus on recent prices, typically 0.85), and Sigma (controls the smoothness of the curve, typically 6).
Reduced Latency: By shifting the Gaussian distribution toward the most recent data (offset to 1), ALMA responds faster to price changes, helping to avoid false signals in uncertain, low-volatility conditions.
Using ALMA instead of EMA/SMA in the code significantly improves the smoothness and speed of signal appearance, which facilitates decision-making.
The code features three significant changes compared to traditional methods:
1. The price is determined based on (open+close)/2 - why is this? - theoretically, the volume-weighted asset value is always between the opening and closing prices, so I considered averaging it to be a good value.
2. Additional coloring of the trend change after the curves intersect to indicate an increase or decrease in trend strength.
3. Using PPO normalization allows for comparison of the dynamics of different stocks, as its values are normalized percentages and not absolute MACD values.
I most often use Heikin Ashi – the chart is very smooth and does not significantly affect the quick identification of trend changes.
Sami_nuvem_emasThis cloud shows the EMAs; when it's a sell, it turns red, and when it's a buy, it turns green, showing buy and sell signals. Be careful, as the script is just an indicator; it will cause losses if used for automated trading."
FxShare - CC ReversalVery simple , but very grounded, strict and pure math+statistics -based algo:
Based on candle count and reverse .
You can set how many candles (and their body shape) you count in a row before the retracement and market overstretch happens. It also has an EMA filter if you wish for even stronger but more rare signals.
Use it, break it, improve it.
channeller proChanneller Pro - Statistical Price Channel Detection
What This Script Does
Channeller Pro identifies and draws price channels using pivot points, linear regression, and quality filters. It detects bullish and bearish channels and draws support/resistance lines with quality metrics.
Originality & Methodology
This script combines:
Pivot Point Detection: Uses TradingView's ta.pivothigh() and ta.pivotlow() with configurable left/right lookback to identify swing highs and lows.
Linear Regression Analysis: Fits a least-squares regression line through detected pivot points to determine channel slope and intercept.
R² Quality Scoring: Calculates the coefficient of determination (R²) to measure regression fit quality. R² values closer to 1.0 indicate stronger linear alignment of pivots. Channels below the minimum R² threshold are filtered out.
Pattern Validation:
Bullish channels require higher lows (ascending pivot lows)
Bearish channels require lower highs (descending pivot highs)
This ensures channels align with trend structure
ADX Trend Filter: Uses Average Directional Index (ADX) to show channels only when trend strength exceeds a threshold, reducing false signals in choppy markets.
Volume Confirmation (optional): Filters channels based on volume exceeding a moving average threshold.
Dynamic Channel Width: Calculates channel width by finding the maximum deviation from the regression line within the pivot range, then draws parallel support/resistance lines.
Channel Invalidation Logic: Tracks bounces and pierces. Channels are invalidated after multiple pierces through support/resistance, ensuring only active channels are displayed.
How It Works
Detection Process:
Identifies pivot highs/lows using the specified lookback periods
Stores recent pivots in arrays (configurable max count)
When minimum pivot count is reached, calculates linear regression through pivot points
Validates the channel by checking:
R² score meets minimum threshold (default 0.7)
Slope direction matches trend (positive for bullish, negative for bearish)
Pattern structure (higher lows for bullish, lower highs for bearish)
ADX exceeds threshold (if enabled)
Volume confirmation (if enabled)
If valid, draws support/resistance lines parallel to the regression line
Continuously monitors for channel breaks and invalidates when pierced multiple times
Mathematical Foundation:
Linear regression uses least squares: y = slope × x + intercept
R² calculation: R² = 1 - (SS_res / SS_tot) where SS_res is residual sum of squares and SS_tot is total sum of squares
Channel width = maximum price deviation from regression line within pivot range
How to Use
Basic Setup:
Apply the indicator to your chart
Adjust "Pivot Lookback Left/Right" to control pivot sensitivity (default 10 bars each)
Set "Min Pivots for Channel" (default 3) - higher values require more confirmation but reduce false signals
Configure "Min R² Score" (default 0.7) - higher values show only the best-fitting channels
Filter Configuration:
ADX Filter: Enable to show channels only during trending conditions (ADX > threshold)
Volume Filter: Enable to require volume confirmation for channel formation
HL/LH Pattern: Keep enabled to ensure channels follow proper trend structure
Trading Applications:
Support/Resistance: Use channel boundaries as dynamic support/resistance levels
Trend Following: Trade bounces off channel boundaries in the direction of the trend
Breakout Trading: Monitor for channel breaks as potential trend reversal signals
Channel Quality: Higher R² scores (displayed in labels) indicate stronger, more reliable channels
Display Options:
Toggle channel fills, mid-lines, pivot markers, and labels
Adjust projection length to extend channels into the future
Customize colors for bullish/bearish channels
Alerts:
The script includes alerts for:
New channel formation
Channel break/invalidation
New pivot detection
Important Notes
Channels are statistical constructs based on historical pivot points and do not guarantee future price action
R² scores indicate fit quality, not trading performance
Channels may be invalidated as market conditions change
Past channel performance does not predict future results
Always use proper risk management and combine with other analysis methods
Technical Details
Built-in Pine Script v6
Uses arrays for pivot storage and management
Implements custom linear regression calculation
Real-time channel validation and invalidation
Configurable quality thresholds and filters






















