DuoBlocks - ICT Order Block detectorDuoBlocks (ICT Order Block Detector)
(An ICT(Inner Circle Trading)-style Order Block(OB) tool that highlights only the most relevant and recent Demand/Supply zones using FVG and Engulfing based OB sources.)
Overview
DuoBlocks is an ICT-inspired Order Block detector that uses the mostly used two major order block types: FVG(Fair Value Gap) or Engulfing. There are many Order Block indicators out there, but I couldn’t find one that consistently highlights the most relevant, most recent OB relative to the current price without making the chart a mess and that's why so I built this script.
FVG-based OB (FVG-OB): OBs derived from 3-candle fair value gap logic.
Engulfing-based OB (Engulfing-OB): OBs derived from strong 2-candle reversal/displacement (engulf) logic.
Usage
FVG-OB (Fair Value Gap Order Blocks)
This script finds bullish/bearish FVGs and draws an Order Block zone from the candle that created the move. Think of these zones as your potential next support (bullish) and resistance (bearish) levels.
Engulfing-OB (Engulfing Order Blocks)
This script also finds strong bullish/bearish engulfing candles and draws an Order Block zone from the candle that got engulfed.
Same idea: treat them as potential next support (bullish) and resistance (bearish) levels.
**Use these zones like “next level” support/resistance areas. Don’t blindly buy/sell—wait for your own confirmation and manage risk properly.
Settings
Show FVG-OB
Toggle display of the selected FVG-based bullish/bearish OB (one per side).
Show Engulfing-OB
Toggle display of the selected Engulfing-based bullish/bearish OB (one per side).
Max Invalidation Attempts (FVG OB or Engulf OB)
Controls how many separate breach events a stored OB can absorb before it is marked invalid (discarded). The counting happens when either of below occurs.
Bullish OB: price prints a low below the OB bottom.
Bearish OB: price prints a high above the OB top.
Each time this happens, the OB’s invalidation counter increments by +1.
Once the counter reaches your Max Attempts, that OB is flagged as no longer live, so it will stop being eligible for selection. Then the script automatically falls through to the next best/next nearest valid OB in memory.
Right Extend (bars)
How far to extend the selected OB boxes to the right.
Lookback bars
Maximum historical bars scanned for detection. Lower values = faster/cleaner, higher values = more history retained.
Max stored OB per side
Maximum stored bullish and bearish OBs in memory (per source).
Bullish/Bearish OB Color
Controls border/midline coloring for bullish and bearish zones.
Disclaimer
This script is for educational and informational purposes only and does not constitute financial advice or investment recommendations. Trading cryptocurrencies and other financial instruments involves significant risk, and you are solely responsible for your own decisions based on your financial situation, objectives, and risk tolerance. The author assumes no liability for losses arising from the use of this indicator.
Indicatori e strategie
Dynamic ATR-based Renko Overlay - Non repaintingDaily ATR-Based Renko Overlay
Overview
This Pine Script v5 indicator creates a dynamic Renko overlay on your time-based charts (optimized for 1-minute timeframes), using the previous period's ATR from a user-specified higher timeframe (default: 1-hour) to determine brick sizes. Unlike traditional Renko charts, this is an overlay that draws Renko bricks directly on top of your existing candles, allowing you to combine the noise-filtering power of Renko with the full features of time-based charts.
It's designed for traders who want Renko's trend-clarity benefits without switching chart types, especially useful for intraday trading in volatile markets like forex, stocks, or crypto.
Key Features
- Adaptive Brick Sizing: Brick size is calculated as a percentage (default 40%) of the previous period's ATR (Average True Range, default length 14) from the selected higher timeframe (default: 1-hour). This makes bricks volatility-adjusted—larger in high-vol periods to reduce noise, smaller in low-vol for more detail.
- Periodic Recalculation: Resets brick size at the start of each new period based on the user-specified reset timeframe (default: daily), using the prior period's ATR from the chosen timeframe. This ensures relevance without unwanted disruptions.
- Traditional Renko Logic: Uses 1-box reversal (a full brick against the trend to reverse). Bricks form based on closing prices, ignoring time and minor fluctuations.
- Visual Style: Stepped lines with green (up) and red (down) fills for a box-like appearance. Semi-transparent for easy overlay on candles.
- Customizable Inputs:
- ATR Length: Adjust the ATR period (default: 14).
- Percentage of ATR: Fine-tune brick sensitivity (default: 0.4 or 40%; range 0-1).
- ATR Timeframe: Specify the timeframe for ATR calculation (default: "60" for 1-hour; enter as a string like "240" for 4-hour, "D" for daily, etc.).
- Reset Timeframe: Specify the period for recalculating the brick size (default: "D" for daily; enter as a string like "W" for weekly, "M" for monthly, etc.).
How It Works
1. Fetches ATR from the user-specified timeframe via `request.security` for higher-timeframe volatility data.
2. On new periods based on the reset timeframe (or first load), sets brick size to `percent * ATR_HTF`.
3. Tracks Renko "close" and "previous close" to calculate bricks:
- Upward moves add green bricks in multiples of the size.
- Downward moves add red bricks.
- Reversals require a full brick against the direction.
4. Plots and fills create the overlay, updating on each 1-min bar close.
Add it to a 1-minute chart for best results—bricks will adapt periodically while you retain full candle visibility.
Why This Indicator is Helpful
TradingView's native Renko charts are powerful but come with limitations that can frustrate serious traders:
- No Bar Replay: Native Renko doesn't support TradingView's bar replay feature, making it hard to simulate historical trading sessions.
- Inaccurate/Repainting Strategy Testing: Strategies on native Renko can repaint or lack precision due to the non-time-based nature, leading to unreliable backtests.
- Limited Data History: Fast Renko timeframes (e.g., small bricks) often load very little historical data, restricting long-term analysis.
This overlay solves these by building Renko on a time-based chart:
- Full Bar Replay Support: Replay sessions as usual on your 1-min chart—the Renko follows along.
- Accurate, Non-Repainting Testing: Test strategies on the underlying time chart without repainting issues, as Renko is derived from closes.
- Unlimited Data Depth: Access TradingView's full historical data for 1-min charts (up to years of bars), not limited by Renko's data constraints.
- Hybrid Analysis: Overlay Renko on candles to spot trends while using volume, indicators (e.g., RSI, MAs), or drawing tools that don't work well on native Renko.
It's a game-changer for trend-following, breakout strategies, or filtering noise in short-term trades. No more switching charts—get the best of both worlds!
Usage Tips
- Best on 1-min charts for intraday precision, but experiment with others.
- Tune the percentage lower (e.g., 0.3) for more bricks/sensitivity, higher (e.g., 0.5) for fewer/false-signal reduction.
- Adjust the ATR timeframe to match your strategy—e.g., "240" for longer-term volatility or "15" for shorter.
- Customize the reset timeframe for different recalculation frequencies—e.g., "W" for weekly resets to capture broader market shifts, or "240" for every 4 hours.
- Combine with alerts: right now I am experimenting with 90 period EMA and the Renko brick pullbacks to find some EDGE
If you find this useful, give it a thumbs up or share your tweaks in the comments. Feedback welcome—happy trading! 🚀
Demand Index - Metastock VersionThis script implements the Demand Index, a complex technical indicator originally developed by James Sibbet. This specific version is adapted from the classic MetaStock formula to ensure accuracy and consistency with the original methodology.
The Demand Index combines price and volume data to relate price pressure to volume intensity. It is often used as a leading indicator to predict price trends by assessing the balance between buying pressure (Demand) and selling pressure (Supply).
How It Works
The calculation involves several steps to normalize volume and price changes:
Weighted Close: It calculates a weighted close price giving extra weight to the closing price (High + Low + 2*Close) / 4.
Volatility & Volume Averages: It computes the Average True Range (ATR) proxy and an Exponential Moving Average (EMA) of the volume to establish a baseline.
Buying & Selling Pressure: The core logic compares the current weighted close to the previous one.
If prices rise, the volume is assigned to Buying Pressure.
If prices fall, the volume is assigned to Selling Pressure.
A decay factor (Constant) is applied based on volatility to smooth the reaction to extreme price moves.
The Index: The final oscillator is derived from the ratio of smoothed Buying Pressure to Selling Pressure.
How to Use It
The Demand Index oscillates around a zero line. Traders typically look for the following signals:
Divergence: This is the most common use.
Bullish Divergence: Prices are making new lows, but the Demand Index is making higher lows. This suggests selling pressure is waning and a reversal may be imminent.
Bearish Divergence: Prices are making new highs, but the Demand Index is making lower highs. This suggests buying pressure is drying up.
Zero Line Crossovers:
A cross above zero indicates that Buying Pressure has overtaken Selling Pressure (Bullish).
A cross below zero indicates that Selling Pressure has overtaken Buying Pressure (Bearish).
Trend Confirmation: In a strong trend, the Demand Index should generally move in the same direction as the price.
Settings
Length: The lookback period for the moving averages (Default is 19, consistent with the standard MetaStock setting).
Originality & Credits
This script is a direct translation of the mathematical formula used in MetaStock software. While the Demand Index concept belongs to James Sibbet, this specific Pine Script implementation is provided as open source for the community to study and utilize.
Disclaimer:
This script is for educational and informational purposes only. It DOES NOT constitute financial advice. Trading involves significant risk, and past performance is not indicative of future results. Always do your own research before making investment decisions.
Candle Anatomy (feat. Dr. Rupward)# Candle Anatomy (feat. Dr. Rupward)
## Overview
This indicator dissects a single Higher Timeframe (HTF) candle and displays it separately on the right side of your chart with detailed anatomical analysis. Instead of cluttering your entire chart with analysis on every candle, this tool focuses on what matters most: understanding the structure and strength of the most recent HTF candle.
---
## Why I Built This
When analyzing price action, I often found myself manually calculating wick-to-body ratios, estimating retracement levels, and trying to gauge candle strength. This indicator automates that process and presents it in a clean, visual format.
The "Dr. Rupward" theme is just for fun – a lighthearted way to present technical analysis. Think of it as your chart's "health checkup." Don't take it too seriously, but do take the data seriously!
---
## How It Works
### 1. Candle Decomposition
The indicator breaks down the HTF candle into three components:
- **Upper Wick %** = (High - max(Open, Close)) / Range × 100
- **Body %** = |Close - Open| / Range × 100
- **Lower Wick %** = (min(Open, Close) - Low) / Range × 100
Where Range = High - Low
### 2. Strength Assessment
Based on body percentage:
- **Strong** (≥70%): High conviction move, trend likely to continue
- **Moderate** (40-69%): Normal price action
- **Weak** (<40%): Indecision, potential reversal or consolidation
### 3. Pressure Analysis
- **Upper Wick** indicates selling pressure (bulls pushed up, but sellers rejected)
- **Lower Wick** indicates buying pressure (bears pushed down, but buyers rejected)
Thresholds:
- ≥30%: Strong pressure
- 15-29%: Moderate pressure
- <15%: Weak pressure
### 4. Pattern Recognition
The indicator automatically detects:
| Pattern | Condition |
|---------|-----------|
| Doji | Body < 10% |
| Hammer | Lower wick ≥ 60%, Upper wick < 10%, Body < 35% |
| Shooting Star | Upper wick ≥ 60%, Lower wick < 10%, Body < 35% |
| Marubozu | Body ≥ 90% |
| Spinning Top | Body < 30%, Both wicks > 25% |
### 5. Fibonacci Levels
Displays key Fibonacci retracement and extension levels based on the candle's range:
**Retracement:** 0, 0.236, 0.382, 0.5, 0.618, 0.786, 1.0
**Extension:** 1.272, 1.618, 2.0, 2.618
**Negative Extension:** -0.272, -0.618, -1.0
These levels help identify potential support/resistance if price retraces into or extends beyond the analyzed candle.
### 6. Comparison with Previous Candle
When enabled, displays the previous HTF candle (semi-transparent) alongside the current one. This allows you to:
- Compare range expansion/contraction
- Observe momentum shifts
- Identify continuation or reversal setups
---
## Settings Explained
### Display Settings
- **Analysis Timeframe**: The HTF candle to analyze (default: Daily)
- **Offset from Chart**: Distance from the last bar (default: 15)
- **Candle Width**: Visual width of the anatomy candle
- **Show Previous Candle**: Toggle comparison view
### Fibonacci Levels
- Toggle individual levels on/off based on your preference
- Retracement levels for pullback analysis
- Extension levels for target projection
### Diagnosis Panel
- Shows pattern name, strength assessment, and expected behavior
- Can be toggled off if you prefer minimal display
---
## Use Cases
1. **Swing Trading**: Analyze daily candle structure before entering on lower timeframes
2. **Trend Confirmation**: Strong body % with minimal upper wick = healthy trend
3. **Reversal Detection**: Hammer/Shooting Star patterns with high wick %
4. **Target Setting**: Use Fibonacci extensions for take-profit levels
---
## Notes
- This indicator is designed for analysis, not for generating buy/sell signals
- Works best on liquid markets with clean price action
- The "diagnosis" is algorithmic interpretation, not financial advice
- Combine with your own analysis and risk management
---
## About the Name
"Dr. Rupward" is a playful persona I created – combining "Right" + "Upward" (my trading philosophy) with a doctor theme because we're "diagnosing" candle health. It's meant to make technical analysis a bit more fun and approachable. Enjoy!
---
## Feedback Welcome
If you find this useful or have suggestions for improvement, feel free to leave a comment. Happy trading!
Daily ATR (Shown on All Timeframes)Daily ATR (Shown on All Timeframes) displays the Daily timeframe ATR on any chart you’re viewing, so you always know the current day’s average range without switching timeframes.
True Daily ATR (not chart ATR): The script pulls ATR from the Daily chart using request.security() and shows that value on every timeframe.
On-chart table (top-right): A clean 2-row table shows:
The label: Daily ATR (Length)
The ATR value, with an optional ATR-as-% of price readout.
Custom display controls:
ATR Length input (default 14)
Toggle to show ATR % of current price
Toggle to show/hide the table
Choose table text color
Choose table text size (Tiny → Huge)
Data Window output: The Daily ATR value is also plotted invisibly so it appears in TradingView’s Data Window for quick reference.
This is useful for gauging daily volatility, setting risk/position sizing, and comparing intraday movement to the stock’s typical daily range.
Intrabar Volume Flow IntelligenceIntrabar Volume Flow Intelligence: A Comprehensive Analysis:
The Intrabar Volume Flow Intelligence indicator represents a sophisticated approach to understanding market dynamics through the lens of volume analysis at a granular, intrabar level. This Pine Script version 5 indicator transcends traditional volume analysis by dissecting price action within individual bars to reveal the true nature of buying and selling pressure that often remains hidden when examining only the external characteristics of completed candlesticks. At its core, this indicator operates on the principle that volume is the fuel that drives price movement, and by understanding where volume is being applied within each bar—whether at higher prices indicating buying pressure or at lower prices indicating selling pressure—traders can gain a significant edge in anticipating future price movements before they become obvious to the broader market.
The foundational innovation of this indicator lies in its use of lower timeframe data to analyze what happens inside each bar on your chart timeframe. While most traders see only the open, high, low, and close of a five-minute candle, for example, this indicator requests data from a one-minute timeframe by default to see all the individual one-minute candles that comprise that five-minute bar. This intrabar analysis allows the indicator to calculate a weighted intensity score based on where the price closed within each sub-bar's range. If the close is near the high, that volume is attributed more heavily to buying pressure; if near the low, to selling pressure. This methodology is far more nuanced than simple tick volume analysis or even traditional volume delta calculations because it accounts for the actual price behavior and distribution of volume throughout the formation of each bar, providing a three-dimensional view of market participation.
The intensity calculation itself demonstrates the coding sophistication embedded in this indicator. For each intrabar segment, the indicator calculates a base intensity using the formula of close minus low divided by the range between high and low. This gives a value between zero and one, where values approaching one indicate closes near the high and values approaching zero indicate closes near the low. However, the indicator doesn't stop there—it applies an open adjustment factor that considers the relationship between the close and open positions within the overall range, adding up to twenty percent additional weighting based on directional movement. This adjustment ensures that strongly directional intrabar movement receives appropriate emphasis in the final volume allocation. The adjusted intensity is then bounded between zero and one to prevent extreme outliers from distorting the analysis, demonstrating careful consideration of edge cases and data integrity.
The volume flow calculation multiplies this intensity by the actual volume transacted in each intrabar segment, creating buy volume and sell volume figures that represent not just quantity but quality of market participation. These figures are accumulated across all intrabar segments within the parent bar, and simultaneously, a volume-weighted average price is calculated for the entire bar using the typical price of each segment multiplied by its volume. This intrabar VWAP becomes a critical reference point for understanding whether the overall bar is trading above or below its fair value as determined by actual transaction levels. The deviation from this intrabar VWAP is then used as a weighting mechanism—when the close is significantly above the intrabar VWAP, buying volume receives additional weight; when below, selling volume is emphasized. This creates a feedback loop where volume that moves price away from equilibrium is recognized as more significant than volume that keeps price near balance.
The imbalance filter represents another layer of analytical sophistication that separates meaningful volume flows from normal market noise. The indicator calculates the absolute difference between buy and sell volume as a percentage of total volume, and this imbalance must exceed a user-defined threshold—defaulted to twenty-five percent but adjustable from five to eighty percent—before the volume flow is considered significant enough to register on the indicator. This filtering mechanism ensures that only bars with clear directional conviction contribute to the cumulative flow measurements, while bars with balanced buying and selling are essentially ignored. This is crucial because markets spend considerable time in equilibrium states where volume is simply facilitating position exchanges without directional intent. By filtering out these neutral periods, the indicator focuses trader attention exclusively on moments when one side of the market is demonstrating clear dominance.
The decay factor implementation showcases advanced state management in Pine Script coding. Rather than allowing imbalanced volume to simply disappear after one bar, the indicator maintains decayed values using variable state that persists across bars. When a new significant imbalance occurs, it replaces the decayed value; when no significant imbalance is present, the previous value is multiplied by the decay factor, which defaults to zero point eight-five. This means that a large volume imbalance continues to influence the indicator for several bars afterward, gradually diminishing in impact unless reinforced by new imbalances. This decay mechanism creates persistence in the flow measurements, acknowledging that large institutional volume accumulation or distribution campaigns don't execute in single bars but rather unfold across multiple bars. The cumulative flow calculation then sums these decayed values over a lookback period, creating a running total that represents sustained directional pressure rather than momentary spikes.
The dual moving average crossover system applied to these volume flows creates actionable trading signals from the underlying data. The indicator calculates both a fast exponential moving average and a slower simple moving average of the buy flow, sell flow, and net flow values. The use of EMA for the fast line provides responsiveness to recent changes while the SMA for the slow line provides a more stable baseline, and the divergence or convergence between these averages signals shifts in volume flow momentum. When the buy flow EMA crosses above its SMA while volume is elevated, this indicates that buying pressure is not only present but accelerating, which is the foundation for the strong buy signal generation. The same logic applies inversely for selling pressure, creating a symmetrical approach to detecting both upside and downside momentum shifts based on volume characteristics rather than price characteristics.
The volume threshold filtering ensures that signals only generate during periods of statistically significant market participation. The indicator calculates a simple moving average of total volume over a user-defined period, defaulted to twenty bars, and then requires that current volume exceed this average by a multiplier, defaulted to one point two times. This ensures that signals occur during periods when the market is actively engaged rather than during quiet periods when a few large orders can create misleading volume patterns. The indicator even distinguishes between high volume—exceeding the threshold—and very high volume—exceeding one point five times the threshold—with the latter triggering background color changes to alert traders to exceptional participation levels. This tiered volume classification allows traders to calibrate their position sizing and conviction levels based on the strength of market participation supporting the signal.
The flow momentum calculation adds a velocity dimension to the volume analysis. By calculating the rate of change of the net flow EMA over a user-defined momentum length—defaulted to five bars—the indicator measures not just the direction of volume flow but the acceleration or deceleration of that flow. A positive and increasing flow momentum indicates that buying pressure is not only dominant but intensifying, which typically precedes significant upward price movements. Conversely, negative and decreasing flow momentum suggests selling pressure is building upon itself, often preceding breakdowns. The indicator even calculates a second derivative—the momentum of momentum, termed flow acceleration—which can identify very early turning points when the rate of change itself begins to shift, providing the most forward-looking signal available from this methodology.
The divergence detection system represents one of the most powerful features for identifying potential trend reversals and continuations. The indicator maintains separate tracking of price extremes and flow extremes over a lookback period defaulted to fourteen bars. A bearish divergence is identified when price makes a new high or equals the recent high, but the net flow EMA is significantly below its recent high—specifically less than eighty percent of that high—and is declining compared to its value at the divergence lookback distance. This pattern indicates that while price is pushing higher, the volume support for that movement is deteriorating, which frequently precedes reversals. Bullish divergences work inversely, identifying situations where price makes new lows without corresponding weakness in volume flow, suggesting that selling pressure is exhausted and a reversal higher is probable. These divergence signals are plotted as distinct diamond shapes on the indicator, making them visually prominent for trader attention.
The accumulation and distribution zone detection provides a longer-term context for understanding institutional positioning. The indicator uses the bars-since function to track consecutive periods where the net flow EMA has remained positive or negative. When buying pressure has persisted for at least five consecutive bars, average intensity exceeds zero point six indicating strong closes within bar ranges, and volume is elevated above the threshold, the indicator identifies an accumulation zone. These zones suggest that smart money is systematically building long positions across multiple bars despite potentially choppy or sideways price action. Distribution zones are identified through the inverse criteria, revealing periods when institutions are systematically exiting or building short positions. These zones are visualized through colored fills on the indicator pane, creating a backdrop that helps traders understand the broader volume flow context beyond individual bar signals.
The signal strength scoring system provides a quantitative measure of conviction for each buy or sell signal. Rather than treating all signals as equal, the indicator assigns point values to different signal components: twenty-five points for the buy flow EMA-SMA crossover, twenty-five points for the net flow EMA-SMA crossover, twenty points for high volume presence, fifteen points for positive flow momentum, and fifteen points for bullish divergence presence. These points are summed to create a buy score that can range from zero to one hundred percent, with higher scores indicating that multiple independent confirmation factors are aligned. The same methodology creates a sell score, and these scores are displayed in the information table, allowing traders to quickly assess whether a signal represents a tentative suggestion or a high-conviction setup. This scoring approach transforms the indicator from a binary signal generator into a nuanced probability assessment tool.
The visual presentation of the indicator demonstrates exceptional attention to user experience and information density. The primary display shows the net flow EMA as a thick colored line that transitions between green when above zero and above its SMA, indicating strong buying, to a lighter green when above zero but below the SMA, indicating weakening buying, to red when below zero and below the SMA, indicating strong selling, to a lighter red when below zero but above the SMA, indicating weakening selling. This color gradient provides immediate visual feedback about both direction and momentum of volume flows. The net flow SMA is overlaid in orange as a reference line, and a zero line is drawn to clearly delineate positive from negative territory. Behind these lines, a histogram representation of the raw net flow—scaled down by thirty percent for visibility—shows bar-by-bar flow with color intensity reflecting whether flow is strengthening or weakening compared to the previous bar. This layered visualization allows traders to simultaneously see the raw data, the smoothed trend, and the trend of the trend, accommodating both short-term and longer-term trading perspectives.
The cumulative delta line adds a macro perspective by maintaining a running sum of all volume deltas divided by one million for scale, plotted in purple as a separate series. This cumulative measure acts similar to an on-balance volume calculation but with the sophisticated volume attribution methodology of this indicator, creating a long-term sentiment gauge that can reveal whether an asset is under sustained accumulation or distribution across days, weeks, or months. Divergences between this cumulative delta and price can identify major trend exhaustion or reversal points that might not be visible in the shorter-term flow measurements.
The signal plotting uses shape-based markers rather than background colors or arrows to maximize clarity while preserving chart space. Strong buy signals—meeting multiple criteria including EMA-SMA crossover, high volume, and positive momentum—appear as full-size green triangle-up shapes at the bottom of the indicator pane. Strong sell signals appear as full-size red triangle-down shapes at the top. Regular buy and sell signals that meet fewer criteria appear as smaller, semi-transparent circles, indicating they warrant attention but lack the full confirmation of strong signals. Divergence-based signals appear as distinct diamond shapes in cyan for bullish divergences and orange for bearish divergences, ensuring these critical reversal indicators are immediately recognizable and don't get confused with momentum-based signals. This multi-tiered signal hierarchy helps traders prioritize their analysis and avoid signal overload.
The information table in the top-right corner of the indicator pane provides real-time quantitative feedback on all major calculation components. It displays the current bar's buy volume and sell volume in millions with appropriate color coding, the imbalance percentage with color indicating whether it exceeds the threshold, the average intensity score showing whether closes are generally near highs or lows, the flow momentum value, and the current buy and sell scores. This table transforms the indicator from a purely graphical tool into a quantitative dashboard, allowing discretionary traders to incorporate specific numerical thresholds into their decision frameworks. For example, a trader might require that buy score exceed seventy percent and intensity exceed zero point six-five before taking a long position, creating objective entry criteria from subjective chart reading.
The background shading that occurs during very high volume periods provides an ambient alert system that doesn't require focused attention on the indicator pane. When volume spikes to one point five times the threshold and net flow EMA is positive, a very light green background appears across the entire indicator pane; when volume spikes with negative net flow, a light red background appears. These backgrounds create a subliminal awareness of exceptional market participation moments, ensuring traders notice when the market is making important decisions even if they're focused on price action or other indicators at that moment.
The alert system built into the indicator allows traders to receive notifications for strong buy signals, strong sell signals, bullish divergences, bearish divergences, and very high volume events. These alerts can be configured in TradingView to send push notifications to mobile devices, emails, or webhook calls to automated trading systems. This functionality transforms the indicator from a passive analysis tool into an active monitoring system that can watch markets continuously and notify the trader only when significant volume flow developments occur. For traders monitoring multiple instruments, this alert capability is invaluable for efficient time allocation, allowing them to analyze other opportunities while being instantly notified when this indicator identifies high-probability setups on their watch list.
The coding implementation demonstrates advanced Pine Script techniques including the use of request.security_lower_tf to access intrabar data, array manipulation to process variable-length intrabar arrays, proper variable scoping with var keyword for persistent state management across bars, and efficient conditional logic that prevents unnecessary calculations. The code structure with clearly delineated sections for inputs, calculations, signal generation, plotting, and alerts makes it maintainable and educational for those studying Pine Script development. The use of input groups with custom headers creates an organized settings panel that doesn't overwhelm users with dozens of ungrouped parameters, while still providing substantial customization capability for advanced users who want to optimize the indicator for specific instruments or timeframes.
For practical trading application, this indicator excels in several specific use cases. Scalpers and day traders can use the intrabar analysis to identify accumulation or distribution happening within the bars of their entry timeframe, providing early entry signals before momentum indicators or price patterns complete. Swing traders can use the cumulative delta and accumulation-distribution zones to understand whether short-term pullbacks in an uptrend are being bought or sold, helping distinguish between healthy retracements and trend reversals. Position traders can use the divergence detection to identify major turning points where price extremes are not supported by volume, providing low-risk entry points for counter-trend positions or warnings to exit with-trend positions before significant reversals.
The indicator is particularly valuable in ranging markets where price-based indicators produce numerous false breakout signals. By requiring that breakouts be accompanied by volume flow imbalances, the indicator filters out failed breakouts driven by low participation. When price breaks a range boundary accompanied by a strong buy or sell signal with high buy or sell score and very high volume, the probability of successful breakout follow-through increases dramatically. Conversely, when price breaks a range but the indicator shows low imbalance, opposing flow direction, or low volume, traders can fade the breakout or at minimum avoid chasing it.
During trending markets, the indicator helps traders identify the healthiest entry points by revealing where pullbacks are being accumulated by smart money. A trending market will show the cumulative delta continuing in the trend direction even as price pulls back, and accumulation zones will form during these pullbacks. When price resumes the trend, the indicator will generate strong buy or sell signals with high scores, providing objective entry points with clear invalidation levels. The flow momentum component helps traders stay with trends longer by distinguishing between healthy momentum pauses—where momentum goes to zero but doesn't reverse—and actual momentum reversals where opposing pressure is building.
The VWAP deviation weighting adds particular value for traders of liquid instruments like major forex pairs, stock indices, and high-volume stocks where VWAP is widely watched by institutional participants. When price deviates significantly from the intrabar VWAP and volume flows in the direction of that deviation with elevated weighting, it indicates that the move away from fair value is being driven by conviction rather than mechanical order flow. This suggests the deviation will likely extend further, creating continuation trading opportunities. Conversely, when price deviates from intrabar VWAP but volume flow shows reduced intensity or opposing direction despite the weighting, it suggests the deviation will revert to VWAP, creating mean reversion opportunities.
The ATR normalization option makes the indicator values comparable across different volatility regimes and different instruments. Without normalization, a one-million share buy-sell imbalance might be significant for a low-volatility stock but trivial for a high-volatility cryptocurrency. By normalizing the delta by ATR, the indicator accounts for the typical price movement capacity of the instrument, making signal thresholds and comparison values meaningful across different trading contexts. This is particularly valuable for traders running the indicator on multiple instruments who want consistent signal quality regardless of the underlying instrument characteristics.
The configurable decay factor allows traders to adjust how persistent they want volume flows to remain influential. For very short-term scalping, a lower decay factor like zero point five will cause volume imbalances to dissipate quickly, keeping the indicator focused only on very recent flows. For longer-term position trading, a higher decay factor like zero point nine-five will allow significant volume events to influence the indicator for many bars, revealing longer-term accumulation and distribution patterns. This flexibility makes the single indicator adaptable to trading styles ranging from one-minute scalping to daily chart position trading simply by adjusting the decay parameter and the lookback bars.
The minimum imbalance percentage setting provides crucial noise filtering that can be optimized per instrument. Highly liquid instruments with tight spreads might show numerous small imbalances that are meaningless, requiring a higher threshold like thirty-five or forty percent to filter noise effectively. Thinly traded instruments might rarely show extreme imbalances, requiring a lower threshold like fifteen or twenty percent to generate adequate signals. By making this threshold user-configurable with a wide range, the indicator accommodates the full spectrum of market microstructure characteristics across different instruments and timeframes.
In conclusion, the Intrabar Volume Flow Intelligence indicator represents a comprehensive volume analysis system that combines intrabar data access, sophisticated volume attribution algorithms, multi-timeframe smoothing, statistical filtering, divergence detection, zone identification, and intelligent signal scoring into a cohesive analytical framework. It provides traders with visibility into market dynamics that are invisible to price-only analysis and even to conventional volume analysis, revealing the true intentions of market participants through their actual transaction behavior within each bar. The indicator's strength lies not in any single feature but in the integration of multiple analytical layers that confirm and validate each other, creating high-probability signal generation that can form the foundation of complete trading systems or provide powerful confirmation for discretionary analysis. For traders willing to invest time in understanding its components and optimizing its parameters for their specific instruments and timeframes, this indicator offers a significant informational advantage in increasingly competitive markets where edge is derived from seeing what others miss and acting on that information before it becomes consensus.
Daily ATR (Shown on All Timeframes)Daily ATR (Shown on All Timeframes) displays the Daily timeframe ATR on any chart you’re viewing, so you always know the current day’s average range without switching timeframes.
True Daily ATR (not chart ATR): The script pulls ATR from the Daily chart using request.security() and shows that value on every timeframe.
On-chart table (top-right): A clean 2-row table shows:
The label: Daily ATR (Length)
The ATR value, with an optional ATR-as-% of price readout.
Custom display controls:
ATR Length input (default 14)
Toggle to show ATR % of current price
Toggle to show/hide the table
Choose table text color
Choose table text size (Tiny → Huge)
Data Window output: The Daily ATR value is also plotted invisibly so it appears in TradingView’s Data Window for quick reference.
This is useful for gauging daily volatility, setting risk/position sizing, and comparing intraday movement to the stock’s typical daily range.
Intermarket Divergence (Futures vs Equity)Intermarket Divergence (Futures vs Equity)
This indicator detects intermarket divergence between a traded instrument (futures, CFD, or spot) and a related equity or ETF.
It highlights moments where price and its underlying market drivers disagree, often appearing before reversals or expansions.
🎯 What It Shows
Bullish divergence:
Price makes a lower low while the equity makes a higher low
Bearish divergence:
Price makes a higher high while the equity makes a lower high
Based on swing pivots, not candle noise
Designed for intraday context, not mechanical entries
✅ Recommended Use
XAUUSD (Gold) → GDX (default)
XAGUSD (Silver) → SIL
USOIL / WTI → XLE
(These guidelines are included directly in the indicator settings.)
🧭 How to Use
Apply on 15m–30m
Look for signals near key levels (PDH/PDL, Asia high/low, HTF structure)
Use price action for entries
Divergence is context, not a signal.
⚠️ Notes
Non-repainting
Signals are selective by design
Best during London & New York sessions
Overlay MACD + EMA 12/26A price-overlay indicator that plots EMA 12 and EMA 26 on the chart and displays a normalized MACD and signal line slightly offset from price to visualize momentum directly on the main chart without using a separate pane.
VSA Effort Result v1.0VSA Effort vs Result by StupidRich
Detects volume-spread divergence:
- "Er": High volume, narrow spread (absorption)
- "eR": Low volume, wide spread (momentum)
Features:
• Clean text labels (customizable size)
• Wide vertical lines matching candle range
• Adjustable thresholds & volume SMA
• Works on all timeframes/assets
Perfect for spotting institutional absorption at key levels.
if u wanna buy me a coffee, just dm @stupidrichboy on Telegram
hope it help
Premarket High/Low (Today + Yesterday)Plots Premarket High and Low (04:00–09:30 ET) for the current day and previous day.
Designed for intraday traders who use premarket structure as key levels.
Stochastic RSI with DivergencesStochastic RSI with Divergences - Enhanced Edition
DESCRIPTION
- This is an enhanced version of the classic Stochastic RSI indicator with divergence detection, originally created by @fskrypt (Log RSI), @RicardoSantos (Divergences), @JustUncleL (edits), and @NeoButane (2018 modifications). Full credit to these talented developers for the foundational work.
ENHANCEMENTS & MODIFICATIONS
- This version adds several user-requested features for improved customization and clarity:
- Divergence Signal Labels: Regular divergence signals now display "Buy" (green) and "Sell" (red) instead of generic "R" markers. Hidden divergences show "H-Buy" and "H-Sell" for clearer identification.
- Customizable Colors: User-adjustable colors for both K line (default: blue) and D line (default: orange) allow traders to match their chart themes.
- Adjustable Transparency: Separate opacity controls for the K/D fill shading (default: 70%) and background zones (default: 98%) provide precise visual customization without overwhelming the chart.
- Optional Divergence Lines: Toggle the green and red divergence connecting lines on/off while keeping the Buy/Sell labels visible, reducing visual clutter when desired.
- Organized Settings: All inputs are logically grouped (StochRSI Settings, Divergence Settings, Colors, Opacity) for easier navigation and configuration.
HOW IT WORKS
- The indicator identifies regular and hidden divergences between price action and the Stochastic RSI oscillator:
- Regular Bullish Divergence (Buy): Price makes lower lows while StochRSI makes higher lows - potential reversal signal
- Regular Bearish Divergence (Sell): Price makes higher highs while StochRSI makes lower highs - potential reversal signal
- Hidden Bullish Divergence (H-Buy): Price makes higher lows while StochRSI makes lower lows - trend continuation signal
- Hidden Bearish Divergence (H-Sell): Price makes lower highs while StochRSI makes higher highs - trend continuation signal
- The Stochastic RSI oscillates between 0-100, with readings above 80 indicating overbought conditions and below 20 indicating oversold conditions.
SETTINGS
StochRSI Settings
RSI Length: 14 (default)
Stoch Length: 14 (default)
K Smoothing: 3 (default)
D Smoothing: 3 (default)
Log Scale: Optional logarithmic transformation
Average K & D: Optional blending of both lines
Divergence Settings
Show Divergences: Toggle all divergence signals
Show Hidden Divergences: Toggle H-Buy/H-Sell signals
Show Divergence Lines: Toggle connecting lines between divergence points
Show Divergences Channel: Display fractal channels
Colors
K Line Color: Customize the fast line
D Line Color: Customize the slow line
Opacity
- Background Opacity: Control 20-80 zone shading (0-100)
K/D Fill Opacity: Control area between K and D lines (0-100)
USE CASES
- Momentum trading: Identify overbought/oversold conditions
Divergence trading: Spot potential reversals and trend continuations
Multi-timeframe analysis: Confirm signals across different timeframes
Trend confirmation: Use with other indicators for confluence
CREDITS
- Original concept and code: @fskrypt (Log RSI), @RicardoSantos (Divergence detection), @JustUncleL (modifications), @NeoButane (2018 updates)
Enhanced by: NPR21 (User interface improvements, label modifications, transparency controls)
BB37BB37
WHAT IS SUPPORT AND RESISTANT ?
Support and resistance are fundamental concepts in technical analysis used to identify price levels on charts that are likely to act as barriers, preventing the price from moving in a certain direction.
Support:
Definition: Support refers to a price level at which an asset tends to stop falling because demand is strong enough to prevent further declines. It acts as a "floor" for the price, where buyers step in to buy the asset, causing the price to rebound or stabilize.
Example: If a stock is trading at $50 and repeatedly fails to drop below that level, $50 would be considered a support level.
Resistance:
Definition: Resistance is the opposite of support. It refers to a price level at which selling pressure is strong enough to prevent the price from rising further. It acts as a "ceiling," where sellers are more willing to sell, causing the price to reverse or consolidate.
Example: If the price of an asset repeatedly fails to rise above $100, $100 would be considered a resistance level.
In Practice:
Support and resistance levels are used by traders to make decisions about buying and selling. If the price approaches support, traders may see it as a potential buying opportunity. If the price approaches resistance, they may consider selling or shorting the asset.
If price breaks through a support or resistance level, it can signal a significant price movement. For example, a price moving above resistance may indicate an uptrend, while a price falling below support could indicate a downtrend.
These levels are not always exact and may vary slightly, often being identified as areas rather than precise lines on a chart. They are key tools for understanding market psychology and price behavior.
HTR Reclaim Hunter
🏹 HTR Reclaim Hunter
(1H Execution + Zones + 4H Bias)
HTR Reclaim Hunter is a trend-continuation indicator designed to identify high-probability pullback & reclaim entries using multi-timeframe bias, EMA structure, and dynamic reclaim zones.
This indicator is best suited for swing trading and intraday continuation setups, especially in trending markets.
🔑 CORE CONCEPT
Trade WITH the higher-timeframe trend.
Enter on pullbacks.
Confirm strength on reclaim.
HTR Reclaim Hunter combines:
4H trend bias
1H execution logic
EMA reclaim structure
Supply & demand reclaim zones
Built-in SL / TP visualization
🧭 RECOMMENDED SETTINGS
Best timeframe: 1H (designed for this)
Markets: Stocks, Crypto, Futures, Forex
Works best in: Trending markets (not chop)
📊 WHAT YOU SEE ON THE CHART
🔹 EMA Structure
EMA 50 (green): Trend filter
EMA 9 (colored): Momentum & pullback guide
🔹 Reclaim Zones
Green boxes: Support / demand zones
Red boxes: Resistance / supply zones
These zones highlight areas where price previously reacted and may reclaim.
🔹 Trade Signals
LONG label: Bullish reclaim setup
SHORT label: Bearish reclaim setup
🔹 Risk Levels (Optional)
Stop Loss (Red)
TP1 (Orange)
TP2 (Green)
🟢 LONG TRADE RULES
A LONG signal appears when ALL of the following are true:
4H trend is bullish
Price above 4H EMA 50
EMA 50 is rising
1H trend is bullish
Price above EMA 50
EMA 9 above EMA 50
Pullback occurs
Price pulls back below EMA 9
Reaches or taps EMA 50
Reclaim confirmation
Strong bullish candle closes back above EMA 9
Candle is not a doji
Signal prints
A green LONG label appears
👉 This indicates a trend continuation entry, not a reversal.
🔴 SHORT TRADE RULES
A SHORT signal appears when ALL of the following are true:
4H trend is bearish
Price below 4H EMA 50
EMA 50 is falling
1H trend is bearish
Price below EMA 50
EMA 9 below EMA 50
Pullback occurs
Price pulls back above EMA 9
Reaches or taps EMA 50
Reclaim confirmation
Strong bearish candle closes back below EMA 9
Candle is not a doji
Signal prints
A red SHORT label appears
🛑 STOP LOSS & TAKE PROFIT
When enabled, the indicator automatically plots:
Stop Loss
Based on recent swing high / low
TP1
1R (1× risk)
TP2
Configurable runner target (default 2R)
These are visual guides only — always manage risk according to your plan.
⚠️ IMPORTANT NOTES
This indicator is not meant for ranging or choppy markets
Best results occur when:
EMA 50 is clearly sloped
Price respects reclaim zones
Always confirm with:
Market structure
Volume
Higher-timeframe context
🔔 ALERTS
Alerts are available for:
HRH LONG
HRH SHORT
Alerts trigger on confirmed reclaim signals, not on every pullback.
❗ DISCLAIMER
This indicator is for educational purposes only.
It does not provide financial advice.
Always test and manage risk appropriately.
🏹 FINAL TIP
HTR Reclaim Hunter works best when you are patient.
Skip chop.
Wait for clean trends.
Hunt only high-quality reclaims.
If you want, I can also:
Write a short description version
Create a “Quick Start” section
Add example captions for screenshots
Help you choose TradingView tags & category
trend-following
ema reclaim
pullback strategy
multi-timeframe
price action
Order Blocks Volume Delta 3D | Flux ChartsGENERAL OVERVIEW:
Order Blocks Volume Delta 3D by Flux Charts is a rule-based order block and volume delta visualization tool. It detects bullish and bearish order blocks using a profile-of-price approach: the indicator finds the most actively traded price area (Point of Control, or POC) between a swing high/low and the Break of Structure (BOS), then anchors the order block to the earliest still-valid candle that traded through that POC band. From there, it tracks all candles that continue to interact with that zone and overlays both 2D and 3D volume delta views directly inside the order block.
Unlike traditional order block tools that simply use candle bodies or wicks, this indicator is volume-aware. It lets you optionally pull volume from a lower timeframe feed (for example, using 1-minute data while watching a 5-minute chart) to build a much more accurate picture of how buyers and sellers actually traded inside the zone. This makes every block not just a price box, but a volume story: which side dominated, where, and by how much.
All order blocks printed by this indicator are confirmed: BOS and retests are evaluated strictly on closed candles. Nothing is drawn or alerted on partially formed bars, which helps avoid repaint-style flicker and keeps the signals clean and stable.
What is the theory behind the indicator?:
The core idea behind Order Blocks Volume Delta 3D is that not all price levels inside an order block are equal. Some prices are barely touched, while others act like magnets where candles repeatedly trade and heavy volume passes through.
The indicator first finds a swing high or swing low, waits for a clear Break of Structure (BOS), then scans the candles between the swing point and the BOS to find the price level that was touched the most. That level is treated as the POC.
From all candles in the swing-to-BOS range that interact with this POC band, the indicator looks for the earliest candle that is not already mitigated and uses that as the anchor candle for the order block:
The top of the block equals the anchor candle’s high (for a bearish OB) or the top of its wick zone.
The bottom equals the anchor candle’s low (for a bullish OB) or the bottom of its wick zone.
This “earliest valid POC-touching candle” rule makes it easier to visualize how price and volume developed from the very start of a meaningful zone, while ignoring POC touches that are already fully mitigated by the time the structure is confirmed. On top of that, each candle is split into bullish and bearish volume. If you choose a lower timeframe volume input, the tool aggregates lower timeframe candles into your chart timeframe, giving a more granular bull-versus-bear breakdown for each bar. The result is
an order block that not only shows where price moved but also which side pushed it, how aggressively, and how that balance shifted over time.
ORDER BLOCKS VOLUME DELTA 3D FEATURES:
The Order Blocks Volume Delta 3D indicator includes 4 main features:
1. Order Blocks
2. Volume Delta
3. 3D Visualization
4. Alerts
ORDER BLOCKS:
🔹What is an Order Block
An order block is a price zone where a clear displacement move began after liquidity was taken. It usually forms around the last consolidation or cluster of candles before price breaks structure with a strong move.
In this indicator, order blocks are defined as structured zones that:
Begin at the earliest unmitigated candle that interacted with the most-touched price level (POC) between swing and BOS.
Extend through the full wick range of that anchor candle.
Stretch forward in time, tracking how price continues to trade through, respect, retest, or invalidate the zone.
Are only printed once the BOS is fully confirmed on closed candles (confirmed order blocks only).
Example of bullish and bearish order blocks anchored at the earliest unmitigated candle in the POC zone:
🔹How are Order Blocks detected
The indicator uses a step-by-step, rules-based process to detect bullish and bearish order blocks. The logic is designed to match discretionary Smart Money concepts but with strict, repeatable rules.
Step 1: Detect swing highs and swing lows
Swing High: a candle whose high is higher than the highs of surrounding candles.
Swing Low: a candle whose low is lower than the lows of surrounding candles.
The Swing Length input controls how many candles are checked to the left and right.
Example of swing high and swing low detection:
Step 2: Confirm Break of Structure (BOS)
Once a swing is confirmed, the indicator waits for price to break past that swing:
Bullish BOS: price closes above a previous swing high.
Bearish BOS: price closes below a previous swing low.
To avoid “live” flicker, BOS logic is evaluated based on the previous closed candle. The order block is only confirmed once the BOS candle has fully closed and the next bar has opened. This is one of the reasons the script only shows confirmed, non-repainting order blocks.
Example of bullish BOS and bearish BOS:
Step 3: Build the POC range between swing and BOS
Between the swing candle and the BOS candle, the indicator:
Scans all candles in that range.
Tracks every price level touched using binning (POC bins).
Counts how many times each price band was touched by candle wicks.
The bin with the highest touch count becomes the POC band. This is where price traded most often, not necessarily where volume was highest.
Example of the POC band between swing and BOS.
Step 4 – Anchor the order block to the earliest valid POC candle
From all candles in the swing-to-BOS range, the indicator finds the earliest candle whose high/low overlaps the POC band and whose zone is not already mitigated. That candle becomes the anchor candle for the order block:
For a bearish OB, the block spans the anchor candle’s full wick range, with its top at the high.
For a bullish OB, the block spans the anchor candle’s full wick range, with its bottom at the low.
By requiring the anchor to be the earliest unmitigated interaction with POC, the script avoids building blocks from price action that has already been fully traded through and is less relevant.
Step 5: Extend and manage the order block
Once created, the block:
Extends to the right by a configurable number of candles (Extend Zones).
Continues until it is invalidated by wick or close, depending on the chosen method.
Can show retest labels when price revisits the zone after creation.
Is included or excluded from display depending on the Show Nearest and Hide Invalidated Zones settings.
Example of active and invalidated OB.
🔹Order Block Settings
◇ Swing Length
Swing Length controls how sensitive swing highs and lows are.
Lower Swing Length: Swings form more frequently, which leads to more frequent BOS events and order block formations.
Higher Swing Length: Only larger, more meaningful swings are detected, which leads to less frequent BOS events and less order block formations.
◇ Invalidation
Invalidation determines how an order block is considered “mitigated” or no longer valid.
Wick: For bullish OBs, if price wicks completely through the bottom of the zone, the order block is invalidated. For bearish OBs, if price wicks completely through the top, the order block is invalidated.
Close: For bullish OBs, the block is invalidated only when a candle closes below the bottom. For bearish OBs, it is invalidated only when a candle closes above the top.
Example of wick invalidation:
Example of close invalidation:
◇ Show Nearest
Show Nearest limits how many active order blocks are displayed based on proximity to current price. For example, a value of 2 will display only the two nearest bullish order blocks and two nearest bearish order blocks.
Chart with Show Nearest set to 3:
◇ Extend Zones
Extend Zones define how many candles forward each order block should project beyond the right most candle on the chart.
Chart with Extend Zones set to 10:
◇ Retest Labels
When enabled, the indicator prints labels on every clean retest of an active order block, as long as that block remains valid. Key points:
A retest label is only printed once the retest candle has fully closed – you always see confirmed retests, not intrabar tests.
Retest labels are positioned on the actual retest candle so you can visually see which bar interacted with the zone.
In addition, if multiple retests occur in quick succession, the indicator applies a built-in three-candle buffer between retests. That means only the first valid retest within each three-bar window is labeled (and can trigger an alert), helping to reduce clutter while still highlighting meaningful interactions with the zone.
Example of retest labels on bullish and bearish order blocks.
◇ Hide Invalidated Zones
Hide Invalidated Zones controls whether mitigated/invalidated blocks stay drawn.
Enabled: Only currently valid, unmitigated order blocks are shown (subject to Show Nearest)
Disabled: Both active and invalidated order blocks are displayed.
VOLUME DELTA:
🔹What is Volume Delta
Volume delta measures the difference between buying and selling volume. Instead of only showing “how much volume traded”, it separates volume into bullish and bearish components.
In this indicator:
Bullish volume = volume from candles (or lower timeframe candles) that closed higher.
Bearish volume = volume from candles that closed lower.
Delta % shows how dominant one side was compared to the total.
Example of bullish and bearish order blocks with volume delta and total volume.
🔹How is Volume Delta calculated?
The indicator uses a flexible, timeframe-aware volume engine.
1. Choose a Volume Delta Timeframe.
If the selected timeframe is equal to or higher than the chart timeframe, the indicator simply uses chart-volume per candle.
If the selected timeframe is lower than the chart timeframe (for example, 1‑minute volume on a 5‑minute chart), the indicator pulls all lower timeframe candles for each chart bar and sums them.
2. Split each bar into bull and bear volume.
For each contributing candle:
If close > open → its volume is added to bullish volume.
If close < open → its volume is added to bearish volume.
If close == open → its volume is split evenly between bullish and bearish.
3. Aggregate for each order block.
For each order block:
The indicator loops once from the swing candle to the BOS candle.
It records every candle that touches the POC band.
For each touching candle, it adds its bull and bear volumes (either directly from chart candles or from aggregated lower timeframe candles).
Total volume = bullish volume + bearish volume
Delta % = (bullish volume or bearish volume / total volume ) * 100, depending on which side is dominant.
🔹Volume Delta Settings:
◇ Display Style
Display Style controls how the volume delta is drawn inside each order block:
Horizontal:
Bullish and bearish fills extend horizontally from left to right.
The filled strip sits along the base of the block, with a bull vs bear gradient.
Vertical:
Bullish and bearish fills stretch vertically inside the zone.
The bullish percentage controls how much of the block is filled with the “dominant” color.
Example of Horizontal display style.
Example of Vertical display style.
◇ Volume Delta Timeframe
Volume Delta Timeframe tells the indicator whether to use chart volume or lower timeframe volume. When set to a lower timeframe, the indicator aggregates all lower timeframe candles that fall inside each chart bar, splitting their volume into bullish and bearish components before summing.
Using a lower timeframe:
Increases precision for how volume truly behaved inside each bar.
Helps reveal hidden absorption and aggressive flows that a higher timeframe candle might hide.
Example of volume delta based on chart timeframe.
Example of volume delta based on lower timeframe than chart(same OB as above)
◇ Display Total Volume
When enabled, the indicator prints the total volume for each order block as a label positioned inside the zone, near the bottom-right corner. This total is the sum of bullish and bearish volume used in the delta calculation and gives you a quick sense of how “heavy” the trading was in that block compared to others.
Example of total volume label inside multiple order blocks.
◇ Show Delta %
Show Delta % draws a small text label on the strip of the block that displays the dominant side’s percentage. For example, a bullish block might show “72%” if 72% of all volume inside that POC band came from bullish volume.
Example of Delta %:
3D VISUALIZATION:
The 3D Visualization feature turns each order block into a 3D plot.
🔹What the 3D Visualization does:
Wraps the order block with side faces and a top face to create a 3D bar effect.
Uses delta percentages to tilt the top face toward the dominant side.
Projects blocks into the future using Extend Zones, making the 3D blocks visually stand out.
🔹How it works:
The front face of the OB shows the standard 2D zone.
The side face extends forward in time based on the 3D depth setting.
The top face is angled depending on the Display Style and bull vs bear delta, making strong bullish blocks “rise” and strong bearish blocks “sink”.
🔹How the 3D depth setting affects visuals
Lower 3D depth:
Shorter side faces.
Subtle 3D effect.
Higher 3D depth:
Longer side faces projecting further into the future.
Stronger 3D effect that visually highlights key zones.
Example of lower 3D depth:
Example of higher 3D depth:
ALERTS:
The indicator supports alert conditions through TradingView’s AnyAlert() engine, allowing you to set alerts for the following:
New Bullish Order Block formed
New Bearish Order Block formed
Bullish OB Retest
Bearish OB Retest
Important alert behavior:
Order block alerts only fire when a new block is confirmed (after BOS closes and the next bar opens).
Retest alerts only fire when a retest candle has completely finished, matching the behavior of the visual retest labels.
IMPORTANT NOTES:
3D faces for order blocks are built using polylines. In some situations, especially when an order block’s starting point (its left edge) is beyond the chart’s left-most visible bar, the top 3D face may appear slightly irregular, skewed, or incomplete. This is purely a drawing limitation related to how the chart engine handles off-screen polyline points. Once the starting point of that order block comes into view (by zooming out or scrolling back), the 3D top face corrects itself and the visual becomes fully consistent. This issue affects only the 3D top face drawing, not the actual order-block box itself. The underlying zone, prices, and volume calculations remain accurate at all times.
If all conditions are met to create a new order block but the resulting zone would overlap an existing active order block, the new block is intentionally not created. A built-in guard prevents overlapping active zones to keep the structure clean and easier to interpret.
3D face drawing is implemented using an adaptive polyline method, which can be relatively calculation-heavy on certain symbols, timeframes, or chart histories. In some cases this may lead to calculation timeout error from TradingView.
UNIQUENESS:
This indicator is unique because it:
Anchors each order block to the earliest unmitigated candle that traded through the most-touched POC band between swing and BOS, rather than a generic “last up/down candle” or a random volume spike.
Builds a dedicated volume engine that can pull either chart timeframe volume or aggregated lower timeframe volume, then splits it into bull and bear components.
Adds 3D visualization on top of standard zones, turning each OB into a visually weighted slab rather than a flat rectangle.
Provides clean toggles (Show Nearest, Hide Invalidated Zones, Extend Zones, Display Style, Delta %, and total volume labels) so you can dial the indicator from extremely minimal to fully detailed, depending on your trading workflow.
Combined, these features make the indicator not just an order block plotter, but a complete volume‑informed structure tool tailored for traders who want to see where price actually traded and whether bulls or bears truly controlled the move inside each order block.
TBSTurtle Soup Body Pattern
The Turtle Soup Body is a price action pattern derived from the classic Turtle Soup setup, designed to identify false breakouts beyond recent highs or lows, with a strong emphasis on the candle body close.
This pattern occurs when price briefly breaks above a recent swing high (or below a recent swing low), triggering breakout traders, but then fails to sustain the move. Instead of focusing only on wicks, the Turtle Soup Body setup requires the candle body to close back inside the previous range, signaling rejection and loss of breakout momentum.
Key characteristics of the Turtle Soup Body pattern include:
A clearly defined recent high or low (typically a 20-period high/low)
Price breaks the level intraday, creating a false breakout
The candle body closes back below the high (for short setups) or above the low (for long setups)
Confirmation that market participants are trapped on the wrong side of the move
The Turtle Soup Body pattern is commonly used as a mean-reversion or reversal setup, offering tight stop-loss placement and favorable risk–reward ratios. It is especially effective in ranging or overextended market conditions and can be applied across multiple timeframes in the Forex market.
NSDT LatticeThis script automatically detects the Open price once the Futures markets open (6PM Eastern Time) and plots Support/Resistance levels based on the "Ticks Between Levels" that the trader enters in the settings.
The trader can also chose to set their own Custom Start Price should they wish to. For example: If they want to use the New York session Open price (for RTH) instead of the Asia session Open price (ETH).
You can change the colors and thickness of the lines, as well as the numbers of levels plotted.
Laguerre Timeframe OscillatorLaguerre Timeframe Breadth Oscillator
Multi-timeframe × multi-gamma Laguerre breadth model
────────────────────────
Usage Notes
────────────────────────
• This is a regime & consensus indicator, not a trigger
• Best used for trend validation and risk filtering
• Extreme values tend to persist during strong regimes
This indicator answers a single question:
“Out of 198 independent Laguerre filters, how many are currently rising?”
────────────────────────
Concept
────────────────────────
Using Laguerre polynomials, we aggregate price behavior across:
• 11 explicit timeframes (1-minute → 1-day)
• 18 gamma responsiveness levels (0.10 → 0.95)
This produces 198 independent Laguerre curves.
The final oscillator is NOT price.
It represents a directional consensus across timescales and smoothing sensitivities.
────────────────────────
Laguerre Filter Mathematics
────────────────────────
For each Laguerre line i:
L0ᵢ(t) = (1 − γᵢ) · x(t) + γᵢ · L0ᵢ(t−1)
L1ᵢ(t) = −γᵢ · L0ᵢ(t) + L0ᵢ(t−1) + γᵢ · L1ᵢ(t−1)
L2ᵢ(t) = −γᵢ · L1ᵢ(t) + L1ᵢ(t−1) + γᵢ · L2ᵢ(t−1)
L3ᵢ(t) = −γᵢ · L2ᵢ(t) + L2ᵢ(t−1) + γᵢ · L3ᵢ(t−1)
Smoothed output:
Yᵢ(t) = ( L0ᵢ + 2·L1ᵢ + 2·L2ᵢ + L3ᵢ ) / 6
This weighted sum smooths noise while preserving phase better than a traditional EMA.
────────────────────────
Gamma Responsiveness
────────────────────────
Gamma controls responsiveness vs stability:
0.10 — Very fast, noisy
0.40 — Momentum-sensitive
0.70 — Trend-stable
0.95 — Very slow, structural
Each timeframe is evaluated across all gamma levels.
────────────────────────
Timeframes Used (11)
────────────────────────
Minutes: 1, 3, 5, 10, 15, 30, 45
Hours: 1, 2, 4
Days: 1
────────────────────────
Direction Test
────────────────────────
Each Laguerre line votes “up” or “down”:
Iᵢ(t) = 1 if Yᵢ(t) > Yᵢ(t−1)
Iᵢ(t) = 0 otherwise
────────────────────────
Breadth Calculation
────────────────────────
greenCount(t) =
I₁(t) + I₂(t) + I₃(t) + … + I₁₉₈(t)
Total number of rising Laguerre filters.
────────────────────────
Centered Breadth Oscillator
────────────────────────
oscRaw(t) = greenCount(t) − 99
(99 = half of 198; zero represents balanced breadth)
────────────────────────
Smoothing & Amplification
────────────────────────
EMA smoothing:
oscSmooth(t) = EMA₁₀₀(oscRaw)
Extreme emphasis:
oscExtreme(t) = 2 · oscSmooth(t)
────────────────────────
Clamped Final Output
────────────────────────
osc(t) = max( −99 , min( 99 , oscExtreme(t) ) )
Range:
• −99 → all filters falling
• 0 → mixed / neutral
• +99 → all filters rising
────────────────────────
Optional Probabilistic Interpretation
────────────────────────
p(t) = greenCount(t) / 198
Interpretable as the probability of upward directional alignment.
Reach out on Discord if you need further guidance. - Coño Vista
RSI Trend Authority [JOAT]RSI Trend Authority - VAR-RSI with OTT Trend Detection System
Introduction
RSI Trend Authority is an open-source overlay indicator that combines Variable Index Dynamic Average (VAR) smoothed RSI with the Optimized Trend Tracker (OTT) to create a complete trend detection and signal generation system. Unlike traditional RSI which oscillates in a separate pane, this indicator scales the RSI to price and overlays it directly on your chart, making trend analysis more intuitive.
The indicator generates clear BUY and SELL signals when the smoothed RSI crosses the OTT trailing stop line, providing actionable entry points with trend confirmation.
Originality and Purpose
This indicator is NOT a simple mashup of RSI and moving averages. It is an original implementation that transforms RSI into a trend-following overlay system:
Why VAR Smoothing? Traditional RSI is noisy and produces many false signals. The Variable Index Dynamic Average (VAR) is an adaptive smoothing algorithm based on the Chande Momentum Oscillator principle. It adjusts its smoothing factor based on market conditions - responding quickly during trends and smoothing out during choppy markets. This creates an RSI that filters noise while preserving genuine momentum shifts.
Why OTT Trailing Stop? The Optimized Trend Tracker (OTT) is a percentage-based trailing stop mechanism that only moves in the direction of the trend. When VAR-RSI crosses above OTT, a bullish trend is confirmed; when it crosses below, a bearish trend is confirmed. This provides clear, actionable signals rather than subjective interpretation.
Price Scaling Innovation: By scaling RSI (0-100) to price using the formula (RSI * close / 50), the indicator overlays directly on the price chart. This allows traders to see how momentum relates to actual price levels, making trend analysis more intuitive than a separate oscillator pane.
ATR Boundaries: Optional volatility-based boundaries show when price is extended relative to its normal range, helping identify potential reversal zones.
How the components work together:
VAR smoothing removes RSI noise while preserving trend information
OTT provides a dynamic trailing stop that generates clear crossover signals
Price scaling allows direct overlay on the chart for intuitive analysis
ATR boundaries add volatility context for profit target estimation
Core Components
1. VAR-RSI (Variable Index Dynamic Average RSI)
The foundation of this indicator is the VAR smoothing algorithm applied to RSI. VAR is an adaptive moving average that adjusts its smoothing factor based on the Chande Momentum Oscillator principle:
f_var_calc(float data, int length) =>
int a = 9
float b = data > nz(data ) ? data - nz(data ) : 0.0
float c = data < nz(data ) ? nz(data ) - data : 0.0
float d = math.sum(b, a)
float e = math.sum(c, a)
float f = nz((d - e) / (d + e))
float g = math.abs(f)
float h = 2.0 / (length + 1)
float x = ta.sma(data, length)
This creates an RSI that:
Responds quickly during trending conditions
Smooths out during choppy, sideways markets
Reduces false signals compared to raw RSI
2. OTT (Optimized Trend Tracker)
The OTT acts as a dynamic trailing stop that follows the VAR-RSI:
In uptrends, OTT trails below the VAR-RSI line
In downtrends, OTT trails above the VAR-RSI line
The OTT Percent parameter controls how closely it follows
When VAR-RSI crosses above OTT, a bullish trend is confirmed. When VAR-RSI crosses below OTT, a bearish trend is confirmed.
3. Price Scaling
The RSI (0-100 scale) is converted to price scale using:
float scaleFactor = close / 50.0
float varRSIScaled = varRSI * scaleFactor
This allows the indicator to overlay directly on price, showing how momentum relates to actual price levels.
Visual Components
VAR-RSI Line (Cyan/Magenta)
The main indicator line with gradient coloring:
Cyan gradient when RSI is above 50 (bullish)
Magenta gradient when RSI is below 50 (bearish)
Line thickness of 3 for clear visibility
OTT Line (Yellow Circles)
The trailing stop line displayed as circles:
Acts as dynamic support in uptrends
Acts as dynamic resistance in downtrends
Crossovers generate trading signals
Trend Fill
The area between VAR-RSI and OTT is filled:
Cyan fill during bullish trends
Magenta fill during bearish trends
Fill transparency allows price visibility
Buy position and LONG on Dashboard with a Uptrend:
ATR Boundaries (Optional)
Dotted lines showing volatility-based price boundaries:
Upper band: Close + (ATR x Multiplier)
Lower band: Close - (ATR x Multiplier)
Color matches current trend direction
Buy/Sell Signals
Clear labels appear at signal points:
BUY label below bar when VAR-RSI crosses above OTT
SELL label above bar when VAR-RSI crosses below OTT
Additional glow circles highlight signal bars
Bar Coloring
Optional feature that colors price bars:
Cyan bars during bullish trend
Magenta bars during bearish trend
Dashboard Panel
The 8-row dashboard provides comprehensive status information:
Signal: Current position - LONG or SHORT (large text)
VAR-RSI: Current smoothed RSI value (large text)
RSI State: OVERBOUGHT, OVERSOLD, BULLISH, or BEARISH
OTT Trend: UPTREND or DOWNTREND based on OTT direction
Bars Since: Number of bars since last signal
Price: Current close price (large text)
OTT Level: Current OTT trailing stop value
Input Parameters
RSI Settings:
RSI Length: Period for RSI calculation (default: 100)
Source: Price source (default: close)
VAR Settings:
VAR Length: Adaptive smoothing period (default: 50)
OTT Settings:
OTT Period: Trailing stop calculation period (default: 30)
OTT Percent: Distance percentage for trailing stop (default: 0.2)
ATR Trend Boundaries:
Show ATR Boundaries: Toggle visibility (default: enabled)
ATR Length: Period for ATR calculation (default: 14)
ATR Multiplier: Distance multiplier (default: 2.0)
Display Options:
Show Buy/Sell Signals: Toggle signal labels (default: enabled)
Show Status Table: Toggle dashboard (default: enabled)
Table Position: Choose corner placement
Color Bars by Trend: Toggle bar coloring (default: enabled)
Color Scheme:
Bullish Color: Main bullish color (default: cyan)
Bearish Color: Main bearish color (default: magenta)
OTT Line: Trailing stop color (default: yellow)
VAR-RSI Line: Main line color (default: teal)
ATR colors for boundaries
How to Use RSI Trend Authority
Signal-Based Trading:
Enter LONG when BUY signal appears (VAR-RSI crosses above OTT)
Enter SHORT when SELL signal appears (VAR-RSI crosses below OTT)
Use the OTT line as a trailing stop reference
Trend Confirmation:
Cyan fill indicates bullish trend - favor long positions
Magenta fill indicates bearish trend - favor short positions
Check RSI State in dashboard for momentum context
Using the Dashboard:
Monitor "Bars Since" to assess signal freshness
Check RSI State for overbought/oversold warnings
Use OTT Level as a reference for stop placement
ATR Boundaries:
Price near upper ATR band in uptrend suggests extension
Price near lower ATR band in downtrend suggests extension
Boundaries help identify potential reversal zones
Parameter Optimization
For Faster Signals:
Decrease RSI Length (try 50-80)
Decrease VAR Length (try 30-40)
Decrease OTT Period (try 15-25)
For Smoother Signals:
Increase RSI Length (try 120-150)
Increase VAR Length (try 60-80)
Increase OTT Period (try 40-50)
For Tighter Stops:
Decrease OTT Percent (try 0.1-0.15)
For Wider Stops:
Increase OTT Percent (try 0.3-0.5)
Alert Conditions
Three alert conditions are available:
Buy Signal: VAR-RSI crosses above OTT
Sell Signal: VAR-RSI crosses below OTT
Trend Change: OTT direction changes
Understanding the OTT Calculation
The OTT uses a percentage-based trailing mechanism:
float farkOTT = mavgOTT * ottPercent * 0.01
float longStopCalc = mavgOTT - farkOTT
float shortStopCalc = mavgOTT + farkOTT
longStop := mavgOTT > nz(longStop ) ? math.max(longStopCalc, nz(longStop )) : longStopCalc
shortStop := mavgOTT < nz(shortStop ) ? math.min(shortStopCalc, nz(shortStop )) : shortStopCalc
This ensures the trailing stop only moves in the direction of the trend, never against it.
Best Practices
Use on 1H timeframe or higher for more reliable signals
Wait for signal confirmation before entering trades
Consider RSI State when evaluating signal quality
Use ATR boundaries for profit target estimation
The longer RSI length (100) provides smoother trend detection
Combine with support/resistance analysis for better entries
Limitations
Signals may lag during rapid price movements due to smoothing
Works best in trending markets; may whipsaw in ranges
The overlay nature means RSI values are scaled, not absolute
Default parameters are optimized for crypto and forex; adjust for other markets
Technical Notes
This indicator is written in Pine Script v6 and uses:
VAR (Variable Index Dynamic Average) for adaptive smoothing
OTT (Optimized Trend Tracker) for trailing stop calculation
ATR for volatility-based boundaries
Gradient coloring for intuitive trend visualization
The source code is open and available for review and modification.
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice. Trading involves substantial risk of loss. Past performance does not guarantee future results. Always conduct your own analysis and use proper risk management.
-Made with passion by officialjackofalltrades
CISD Projections [LuxAlgo]The CISD Projections tool automatically plots mechanical price projection targets based on fractal market structure and swing manipulation legs. These projections offer dynamic, statistically informed targets that align with how prices tend to expand after a reversal point is confirmed.
🔶 USAGE
Projections are mechanical target levels derived from the manipulation leg following a confirmed change in state of delivery (CISD). They estimate where price is most likely to travel next by applying extended Fibonacci projection levels off the swing that initiated the move.
The tool works in the following way:
1. Detect the reversal bar that signals a shift in delivery.
2. Identify the manipulation leg: the swing that caused the reversal.
3. Anchor projections from this leg using customized Fibonacci levels such as 1, 2, 2.5, 4, 4.5 — each representing a potential target based on leg size and market expansion expectation.
For a correct target interpretation:
Average-sized legs often target between 2 and 2.5 levels.
Expanding legs may reach 4 to 4.5.
Large manipulation legs may warrant conservative expectations, focusing on 1 target.
As we can see in the image, traders must be aware of current market conditions and manipulation leg size in order to decide which levels to target and ask the right questions: Is volatility contracting or expanding? Is this manipulation leg smaller or larger than the previous ones?
Ultimately, projections provide objective, mechanical targets rather than subjective guesswork. They can be used on their own or in conjunction with liquidity zones, CISDs, and structural levels. They also help identify realistic price targets based on measured swing magnitude.
🔹 Filtering Setups
The chart shows how the output is affected by different filtering options:
Bars Threshold: show setups with a minimum number of bars in the manipulation leg.
CISD Filter: show setups only at the top or bottom of the range for the last X bars.
Invalidate CISDs on CHoCH: setups stop expanding after the first close beyond the manipulation leg.
We can obtain more meaningful setups with larger filter values by filtering the setups, or we can zoom in on details at the trader's discretion by disabling all filters.
🔶 SETTINGS
Bars Threshold: Minimum number of bars of each setup.
CISD Filter: Enable or disable the filter and select the length. This filter identifies setups at the top or bottom of the range over the last X bars.
Invalidate CISDs on CHoCH: Stop the level extension on ChoCH against CISD. This occurs when there is a close below the bottom on bullish setups and a close above the top on bearish setups.
🔹 Projections
Enable or disable each projection, select the projection level, and choose a style.
🔹 Style
CISD Level: Enable or disable CISD price level and select style.
Labels size: Select the size of the labels.
Bullish Color: Select a color for bullish setups.
Bearish Color: Select a color for bearish setups.
Background Fill: Enable or disable the background fill between the price and the extreme projection.
[CT] Smart Supertrend Smart Supertrend is an overlay trend and context indicator that combines three different ideas into one visual: a dynamic “cloud” that adapts to market cycle speed, a pivot-point anchored trailing line that behaves like a smarter Supertrend, and an ADX strength filter that helps separate real trends from noisy sideways movement. It is designed to keep you aligned with the dominant direction while giving you a clean framework for entries, pullbacks, and exits.
The “cloud” is the heart of the script’s regime read. Internally, it builds an adaptive smoothing engine that reacts to how efficiently the price is moving. When the price is moving in a clean, directional way, the cloud becomes more responsive. When the price is choppy and overlapping, the cloud becomes slower and steadier. The cloud itself is drawn as two lines, Cloud A and Cloud B, and the filled area between them. When the adaptive KAMA slope is rising, the cloud is treated as bullish and uses your Up color. When it is falling, the cloud is treated as bearish and uses your Down color. This creates a quick visual of whether the market is behaving like an uptrend regime or a downtrend regime without relying on one fixed moving average length that can be too fast in chop or too slow in trend.
The PP line is the trade management spine. It is built from pivot logic that detects meaningful swing highs and swing lows using your PP Period. Those pivots are blended into a centerline, and then an ATR band is applied around that center using your ATR Period and ATR Factor. That band is turned into a trailing line that “ratchets” in the direction of the current trend. When the price is above the trailing logic, the script considers the trend state to be long. When the price is below, it considers the trend state to be short. The reason this feels different from a basic Supertrend is that the anchor comes from pivots and smoothing rather than only a direct ATR band around price, so it tends to track structure more naturally and reduce some of the fast flipping you see in choppy sections.
The ADX filter is the quality control layer. It computes plus DI, minus DI, and ADX over your ADX Length, and then checks whether ADX is above your threshold. When ADX is above the threshold, it suggests the market is trending enough for trend signals to matter. When ADX is below the threshold, the script is telling you the environment is more sideways, which is where most trend systems get chopped up. In the original logic, the “best” conditions occur when the cloud direction agrees with the DI direction, and ADX is strong, because that means direction and strength are aligned.
How you trade it starts with using the cloud as your directional bias. When the cloud is bullish, you prioritize longs and you treat shorts as lower quality or countertrend. When the cloud is bearish, you prioritize shorts and you treat longs as lower quality. Next, you use the PP line as the “line in the sand” for trend state and risk placement. In a bullish environment, price holding above the PP line is your confirmation that the structure-anchored trailing level is supporting the move. In a bearish environment, price holding below the PP line is your confirmation that the trailing level is capping rallies.
A clean, practical entry approach is to wait for agreement between the cloud and the PP line, then take pullbacks into that framework. For long trades, the highest quality setups occur when the cloud is bullish, the PP line is below price, and ADX is above the threshold with plus DI leading minus DI. In that state, you can look for pullbacks that dip toward the PP line or into the cloud region and then reject back upward, because you’re buying a retracement inside a confirmed trend regime rather than chasing extension. For short trades, the mirror applies: the cloud is bearish, the PP line is above price, ADX is above the threshold with minus DI leading, and you sell rallies back into the PP line or cloud that fail and rotate down.
Stops and exits can be built around the PP line because it is already an ATR-based trailing structure level. For a long, a conservative stop is placed just below the PP line with a buffer related to ATR, because if price closes and holds below that line you are likely seeing a trend condition break. For a short, the stop goes just above the PP line with a similar buffer. For profit taking, many traders scale out when price stretches far away from the PP line or when the cloud begins to lose slope and compress, because that often signals trend momentum is slowing. Another simple exit rule is to reduce or close when the PP line flips trend state against your position, or when the ADX falls back under the threshold after a run, because that frequently marks a transition into consolidation where trailing systems can give back gains.
If you enable signals in versions that plot them, the logic is meant to highlight moments when the PP line flips trend and the cloud is not contradicting that flip, then further filters those into “higher quality” conditions when cloud direction and ADX trend strength agree. In practice, you should still treat signals as prompts, not automatic trades. The best results come from using the signal as a timing cue while you still enforce the bigger rule of alignment: cloud direction, PP line trend state, and ADX strength all pointing the same way, with entries taken on pullbacks rather than on late breakout candles.
Finally, be aware that all adaptive smoothing systems will look different across markets and timeframes, so the main tuning knobs are your Cloud Length, PP Period, ATR Factor, and ADX Threshold. If you want fewer flips and more “position trading” behavior, increase the ATR Factor and consider a higher ADX threshold. If you want earlier entries and more sensitivity, lower ATR Factor and lower the threshold, but expect more chop. The indicator is at its best when you treat it as a regime and structure tool: let the cloud tell you the side, let the PP line define where you are wrong, and let ADX decide whether it’s a trend day or a chop day before you commit size.
[Greeny] RTH Only Naked VPOCWhat it does
Calculates and displays daily Volume Point of Control (VPOC) levels based on RTH (Regular Trading Hours) session only. Tracks which VPOCs remain "naked" (untouched) and which have been hit - but only counts hits during RTH hours, ignoring overnight/globex touches.
Key Features
One VPOC per trading day calculated from entire RTH session volume profile
RTH-only hit detection - levels only marked as hit when touched during RTH, not overnight
Works on all timeframes - daily, hourly, or any chart timeframe
Volume-based filtering - automatically skips low-liquidity sessions (pre-front-month contract data)
Visual markers - small dash on origin bar shows where each VPOC was, even after being hit
Visual Guide
Yellow dashed line - Naked VPOC (not yet touched during RTH)
White dashed line - Hit VPOC (was touched during RTH)
Small dash on candle - POC origin marker
Settings
Display options: Toggle to show only naked POCs, customize hit/naked colors, adjust line width and style (solid/dashed/dotted), enable/disable line extension and origin markers.
RTH Session: Configure start and end time in NY timezone. Default is 9:30-16:00 (US equity market hours), which equals 15:30-22:00 Budapest time.
Advanced: Adjust volume profile resolution (default 250 bins), data source timeframe for calculations (5min recommended for daily charts), and minimum volume threshold to filter out low-liquidity sessions like pre-rollover contract data (default 10% of average).
Best For
ES/MES, NQ/MNQ futures traders
Mean reversion strategies using VPOC as support/resistance
Auction Market Theory practitioners
Anyone wanting clean RTH-only volume profile levels
Note on Contract Rollovers
When using specific contract symbols (e.g., ESH2026 instead of ES1!), the script may show many naked VPOCs from months before the contract became active. This happens because futures contracts have very low liquidity before becoming the front-month, creating unreliable VPOCs with gaps that never get hit. The volume filter helps reduce this, but you may need to increase the "Min Volume % of Average" setting or simply ignore older levels when viewing back-month data.
Extreme Reversion Flag - EMA Spread + ATR Threshold (15s)Short Description
Visual indicator that flags extreme EMA divergence on the 15s chart. It plots the EMA20 − EMA4 spread, overlays a multiplied ATR threshold, and highlights bars where 20 > 9 > 4 (bear extreme) or 4 > 9 > 20 (bull extreme) and the spread ≥ mult × ATR.
Features
- Pane plot of the EMA20−EMA4 spread and the ATR‑based threshold.
- Histogram showing spread/ATR ratio for numeric tuning.
- Visual fill between spread and threshold when the extreme condition is met.
- Top/bottom markers for exact bars that meet the rule.
- Alert conditions for bull and bear extremes.
- User inputs for EMA lengths, ATR length, and multiplier for sensitivity.






















