Adaptive Trend Envelope [BackQuant]Adaptive Trend Envelope
Overview
Adaptive Trend Envelope is a volatility-aware trend-following overlay designed to stay responsive in fast markets while remaining stable during slower conditions. It builds a dynamic trend spine from two exponential moving averages and surrounds it with an adaptive envelope whose width expands and contracts based on realized return volatility. The result is a clean, self-adjusting trend structure that reacts to market conditions instead of relying on fixed parameters.
This indicator is built to answer three core questions directly on the chart:
Is the market trending or neutral?
If trending, in which direction is the dominant pressure?
Where is the dynamic trend boundary that price should respect?
Core trend spine
At the heart of the indicator is a blended trend spine:
A fast EMA captures short-term responsiveness.
A slow EMA captures structural direction.
A volatility-based blend weight dynamically shifts influence between the two.
When short-term volatility is low relative to long-term volatility, the fast EMA has more influence, keeping the trend responsive. When volatility rises, the blend shifts toward the slow EMA, reducing noise and preventing overreaction. This blended output is then smoothed again to form the final trend spine, which acts as the structural backbone of the system.
Volatility-adaptive envelope
The envelope surrounding the trend spine is not based on ATR or fixed percentages. Instead, it is derived from:
Log returns of price.
An exponentially weighted variance estimate.
A configurable multiplier that scales envelope width.
This creates bands that automatically widen during volatile expansions and tighten during compression. The envelope therefore reflects the true statistical behavior of price rather than an arbitrary distance.
Inner hysteresis band
Inside the main envelope, an inner band is constructed using a hysteresis fraction. This inner zone is used to stabilize regime transitions:
It prevents rapid flipping between bullish and bearish states.
It allows trends to persist unless price meaningfully invalidates them.
It reduces whipsaws in sideways conditions.
Trend regime logic
The indicator operates with three regime states:
Bullish
Bearish
Neutral
Regime changes are confirmed using a configurable number of bars outside the adaptive envelope:
A bullish regime is confirmed when price closes above the upper envelope for the required number of bars.
A bearish regime is confirmed when price closes below the lower envelope for the required number of bars.
A trend exits back to neutral when price reverts through the trend spine.
This structure ensures that trends are confirmed by sustained pressure rather than single-bar spikes.
Active trend line
Once a regime is active, the indicator plots a single dominant trend line:
In a bullish regime, the lower envelope becomes the active trend support.
In a bearish regime, the upper envelope becomes the active trend resistance.
In neutral conditions, price itself is used as a placeholder.
This creates a simple, actionable visual reference for trend-following decisions.
Directional energy visualization
The indicator uses layered fills to visualize directional pressure:
Bullish energy fills appear when price holds above the active trend line.
Bearish energy fills appear when price holds below the active trend line.
Opacity gradients communicate strength and persistence rather than binary states.
A subtle “rim” effect is added using ATR-based offsets to give depth and reinforce the active side of the trend without cluttering the chart.
Signals and trend starts
Discrete signals are generated only when a new trend regime begins:
Buy signals appear at the first confirmed transition into a bullish regime.
Sell signals appear at the first confirmed transition into a bearish regime.
Signals are intentionally sparse. They are designed to mark regime shifts, not every pullback or continuation, making them suitable for higher-quality trend entries rather than frequent trading.
Candle coloring
Optional candle coloring reinforces regime context:
Bullish regimes tint candles toward the bullish color.
Bearish regimes tint candles toward the bearish color.
Neutral states remain visually muted.
This allows the chart to communicate trend state even when the envelope itself is partially hidden or de-emphasized.
Alerts
Built-in alerts are provided for key trend events:
Bull trend start.
Bear trend start.
Transition from trend to neutral.
Price crossing the trend spine.
These alerts support hands-off trend monitoring across multiple instruments and timeframes.
How to use it for trend following
Trend identification
Only trade in the direction of the active regime.
Ignore counter-trend signals during confirmed trends.
Entry alignment
Use the first regime signal as a structural entry.
Use pullbacks toward the active trend line as continuation opportunities.
Trend management
As long as price respects the active envelope boundary, the trend remains valid.
A move back through the spine signals loss of trend structure.
Market filtering
Periods where the indicator remains neutral highlight non-trending environments.
This helps avoid forcing trades during chop or compression.
Adaptive Trend Envelope is designed to behave like a living trend structure. Instead of forcing price into static rules, it adapts to volatility, confirms direction through sustained pressure, and presents trend information in a clean, readable form that supports disciplined trend-following workflows.
Volatilidade
Percentile-Based BB% Trend - MattesOverview
The Percentile-Based BB% Trend is a robust momentum oscillator that reimagines the classic Bollinger %B indicator using percentile-based bands and median absolute deviation (MAD). Instead of relying on a simple moving average and standard deviation (which can be heavily influenced by outliers), this version builds dynamic bands from the 25th and 75th percentiles of price, creating a noise-resistant framework for measuring where the current price sits relative to its recent distribution.
How It’s Calculated
Percentile Smoothing : 25th percentile (lower boundary) and 75th percentile (upper boundary) of the selected source.
Basis Line : Midpoint between the 25th and 75th percentiles as a robust central measure.
Robust Volatility : Median Absolute Deviation (MAD) multiplied by a user-defined factor to set band width.
PBB% Value : (Price - Lower Band) / (Band Width), then shifted so the midline is at 0.
Trend Line : Light EMA smoothing applied to the raw value and displayed as colored columns.
How It Differs From Traditional %B
Uses 25th/75th percentiles + MAD instead of SMA + standard deviation → far less sensitive to outliers.
More adaptive to real-world skewed price distributions.
Stronger noise filtering while staying responsive to genuine momentum.
Why It’s Useful
Reduced false signals in choppy or spiky markets
Clear view of momentum strength and price extension
Persistent readings above/below 0 indicate sustained bullish/bearish control
Excellent as a trend-strength filter across all asset classes and timeframes
Application Examples
Trend Confirmation – Midline (0) crossovers confirm direction when paired with trend-following tools.
Overextension Warnings – Extreme readings signal potential exhaustion.
Momentum Filtering – Avoid entries when oscillator shows weak or overstretched conditions.
Divergence Hunting – Spot price making new highs/lows while oscillator fails to confirm.
Great inventions require greate care!
Not a Standalone Strategy: This indicator is designed as a complementary tool and should always be combined with other forms of analysis (price action, volume, higher-timeframe trend, or additional indicators).Potential Lags in Explosive Moves: The robust calculations and smoothing can slightly delay signals during very strong trends.Parameter Sensitivity: Optimal length and multiplier vary by market and timeframe — backtesting is essential.No indicator guarantees profits; past performance is not indicative of future results.
This indicator builds directly on the foundation of the Percentile-Based Bollinger Bands - Mattes, extending its robust methodology into oscillator form for deeper momentum analysis.Shoutout to all my Masterclass Brothers and L4 Gs!
ORB with Range Context📌 What This Indicator Does
This indicator plots the Opening Range (OR) — the high and low established during a user-defined session window at market open — and provides context on the range's significance by comparing it to recent volatility.
After the opening range session completes, the indicator displays:
• ORB High and Low as horizontal reference levels
• Optional Midline (often acts as intraday support/resistance)
• Target projections at customizable multiples when breakout occurs
• Range Quality classification (Narrow / Normal / Wide)
🔬 How It Works
Step 1: Opening Range Capture
During the session window (default: 09:15–09:20 IST for Indian markets), the indicator tracks the highest high and lowest low. These become the day's Opening Range boundaries.
Step 2: Range Quality Analysis
This is where this indicator differs from standard ORB tools. It compares today's range to the instrument's Average True Range (ATR) and classifies it:
• NARROW — Range is less than 0.5× ATR
Interpretation: Price compression. The market opened in a tight range relative to recent volatility. Compression often precedes expansion — breakouts from narrow ranges can be more directional.
• NORMAL — Range is between 0.5× and 1.2× ATR
Interpretation: Typical opening behavior. Standard breakout expectations apply.
• WIDE — Range is greater than 1.2× ATR
Interpretation: The market opened with unusual volatility — possibly due to gaps, news events, or overnight developments. Wide ranges may indicate that much of the day's move has already occurred.
Step 3: Breakout Detection
A breakout is confirmed when price closes beyond the ORB High or Low (not just wicks through). The indicator tracks the first breakout direction each day.
Step 4: Target Projection
On confirmed breakout, targets are calculated using the ORB range as the measurement unit:
• Target 1 = Breakout Level ± (Range × 1.0)
• Target 2 = Breakout Level ± (Range × 1.5)
• Target 3 = Breakout Level ± (Range × 2.0)
⚙️ Settings Guide
Opening Range Settings
• ORB Session Window — Time window for capturing the range. Default: 0915-0920 (first 5 min for NSE/BSE) or 0915-10:00(first 45 mins for NSE/BSE. US Markets: 0930-0935 or 0930-0945.
• Show Midline — Toggle the range midpoint display
Target Projection
• Target 1/2/3 (x Range) — Multipliers for profit targets. Default values (1.0, 1.5, 2.0) follow classical ORB methodology.
Range Quality Analysis
• ATR Period — Lookback for ATR calculation (default: 14)
• Narrow Threshold — Ranges below this ATR multiple are classified as narrow (default: 0.5)
• Wide Threshold — Ranges above this ATR multiple are classified as wide (default: 1.2)
📈 How to Use This Indicator
1. Apply to an intraday chart (1-min to 5-min recommended)
2. Wait for the ORB session to complete — levels appear after the time window ends
3. Check Range Quality in the info panel
4. Watch for breakout confirmation — price must close beyond ORB High or Low
5. Use projected targets for trade management
💡 Practical Tips
• Narrow Range Days: Often produce cleaner breakout trades. Tight opening suggests indecision that typically resolves directionally.
• Wide Range Days: If range exceeds 1.5× ATR, consider whether the instrument has already made its daily move.
• Midline Usage: After breakout, the midline often acts as a pullback level for re-entry or confirmation.
📊 Why Range Quality Matters
Most ORB indicators plot static levels without context. A 100-point range on NIFTY might be significant on a quiet day but trivial on a volatile day.
By normalizing against ATR, this indicator answers: "Is today's opening range tight or loose relative to what this instrument normally does?"
This helps traders:
• Calibrate profit expectations
• Assess risk appropriately
• Avoid mechanical trading without market context
🔔 Alerts Available
• ORB Bullish Breakout
• ORB Bearish Breakout
• Target 1 Hit
• Target 2 Hit
⚠️ Notes
• Works on intraday timeframes only
• Best suited for liquid instruments with defined opening sessions
• Range Quality is contextual guidance, not a standalone signal
• Always use appropriate risk management
Vdubus Momentum Lock (Overlay)The Top Indicator: "Vdubus Momentum Lock (Overlay)"
The Bottom Indicator: "Vdubus TrixStoch HMA"
Purpose: Precision timing. It shows you exactly when the pullbacks happen.
The Trigger Zones (48 / 52):
Buy Zone (Below 48): When the Blue line dips into this zone, the market is "reloading" for a buy.
Sell Zone (Above 52): When the Blue line pops into this zone, the market is "reloading" for a sell.
The Confluence Circles:
Green Dot ("Dip"): Appears only if HMA is Green AND Trix is Rising. This filters out bad buy signals during downtrends.
Red Dot ("Rally"): Appears only if HMA is Red AND Trix is Falling. This filters out bad sell signals during uptrends.
3. The Strategy:
A. Entry Logic (The Sniper)
Trend Check: Is HMA 100 Green or Red?
Momentum Check: Is TRIX 34 agreeing with the HMA?
Trigger:
Buy: Stoch K crosses under 48.
Sell: Stoch K crosses over 52.
Pulse Re-Entry: If Trix momentum was lost briefly but snaps back into alignment, re-enter immediately (even without a Stoch signal).
B. Exit Logic (The Safety)
Momentum Exit: If the TRIX slope flips against you (e.g., you are Long, but Trix turns down), CLOSE IMMEDIATELY.
Hard Deck (HMA Flip): If the HMA line changes color, CLOSE EVERYTHING. This is the emergency brake.
Vdubus TrixStoch + HMA FilterThe Bottom Indicator: "Vdubus TrixStoch HMA"
Purpose: Precision timing. It shows you exactly when the pullbacks happen.
The Top Indicator: "Vdubus Momentum Lock (Overlay)"
The Trigger Zones (48 / 52):
Buy Zone (Below 48): When the Blue line dips into this zone, the market is "reloading" for a buy.
Sell Zone (Above 52): When the Blue line pops into this zone, the market is "reloading" for a sell.
The Confluence Circles:
Green Dot ("Dip"): Appears only if HMA is Green AND Trix is Rising. This filters out bad buy signals during downtrends.
Red Dot ("Rally"): Appears only if HMA is Red AND Trix is Falling. This filters out bad sell signals during uptrends.
3. The Strategy:
A. Entry Logic (The Sniper)
Trend Check: Is HMA 100 Green or Red?
Momentum Check: Is TRIX 34 agreeing with the HMA?
Trigger:
Buy: Stoch K crosses under 48.
Sell: Stoch K crosses over 52.
Pulse Re-Entry: If Trix momentum was lost briefly but snaps back into alignment, re-enter immediately (even without a Stoch signal).
B. Exit Logic (The Safety)
Momentum Exit: If the TRIX slope flips against you (e.g., you are Long, but Trix turns down), CLOSE IMMEDIATELY.
Hard Deck (HMA Flip): If the HMA line changes color, CLOSE EVERYTHING. This is the emergency brake.
Asian and London Session High-Low (Auto UK DST) + PDH/PDLThis indicator automatically plots Asian session (7:00am–2:00pm MYT) and London session high/low using Malaysian time, with London adjusting automatically for UK Daylight Saving Time (4:00pm–9:00pm MYT in winter, 3:00pm–8:00pm MYT during DST).
It also shows Previous Day High/Low (PDH/PDL) and a 7:00am MYT daily reset line, while No-Trade zones are available but turned OFF by default and can be enabled when needed.
ATR Momentum StatusThis indicator measures whether volatility (ATR) is increasing or decreasing, and classifies momentum strength into four clear states:
- WEAK
- STRONG
- EXPANSION
- DECREASING
It helps traders avoid fake moves and only trade when real participation enters the market, especially when used together with FVG CE Acceptance (SMC).
ATR Momentum States (Very Important)
Status Meaning Market Condition
WEAK Small ATR increase Low participation
STRONG Healthy ATR increase Real buyers/sellers entering
EXPANSION Large ATR spike Aggressive momentum / breakout
DECREASING ATR falling Momentum dying / trap risk
What This Indicator Is NOT
❌ Not a buy/sell signal
❌ Not direction bias
❌ Not entry by itself
👉 It is a trade quality filter
✅ Best Use Case (SMC / FVG Traders)
This indicator shines when combined with:
- FVG
- CE (Consequent Encroachment)
- Liquidity Sweep
- Acceptance Candle
Important Risk Filter (Golden Rule):
ATR Status Trade Quality
EXPANSION + Acceptance ⭐⭐⭐⭐⭐ (Best)
STRONG + Acceptance ⭐⭐⭐⭐
WEAK + Acceptance ❌ Avoid
DECREASING ❌ No Trade
Why This Works (Conceptually):
- FVG CE acceptance = price is accepted
- ATR expansion = participation is real
- Together = institutional momentum, not retail noise
Hamazaki-Style Scalping SystemOverview: hmzk-Style Scalping System
This system is designed to identify high-probability entries in the 1-minute time frame while strictly filtering out low-efficiency market noise. It focuses on the concept of "Gensen" (Strict Selection)—only trading when volatility and trend alignment provide a clear statistical edge.
1. Visual Filtering (Background Colors)
The system uses background colors to provide instant environmental awareness:
Green Zone (High Probability):
Condition: ATR is above the 1.5-pip threshold and the price is diverging from the Kernel line.
Meaning: High volatility and momentum are present. This is the optimal "War Zone" for scalping.
Gray Zone (Avoidance):
Condition: Price is overlapping with the Kernel line.
Meaning: A "sideways" or "ranging" market. hmzk labels this as the "Death Point" where traders lose money due to spreads and lack of direction.
2. Technical Components
Calix Kernel Regression (h=21, r=34, x_0=55):
Serves as the primary trend filter. When the line is horizontal and price is tangled with it, stay out.
When the line slants and price moves away ("Gator opening"), follow the trend.
ATR Break-Out (1.5 Pips Threshold):
Ensures there is enough "meat" in the move to cover spreads and generate profit.
Fractal Arrows (▲/▼):
Indicates potential turning points or breakout levels. These are most effective when they appear in a Green Zone.
3. Execution & Discipline
The 40-Trade Rule: Limit yourself to roughly 40 high-quality trades per day to avoid overtrading and maintain focus.
0.4-Second Stop Loss: If the price action does not immediately follow your hypothesis, exit within a fraction of a second to minimize "expenses" (losses).
Pattern Over Instinct: Only enter when your predefined "form" or "pattern" appears. hmzk teaches that "waiting is the ultimate skill".
Market Context: Prioritize trades during high-liquidity windows like the London/NY open or specific time transitions (e.g., the 24:00 winter time shift).
Quantum RCI FusionDescription:
Overview: The Quantum Momentum Engine Quantum RCI Fusion is a sophisticated momentum oscillator designed to solve the #1 problem of classic indicators: false signals in sideways markets. At the core of this script is the Rank Correlation Index (RCI), a powerful statistical tool based on Spearman’s correlation. Unlike RSI or Stochastic which only look at price levels, the RCI evaluates the "quality" of a trend by measuring the temporal correlation of price ranks.
This script is not just a line drawing: it is a complete trading ecosystem that fuses three RCI timeframes, volatility filters, and a real-time Risk Management simulation.
🛠 How It Works: The "Fusion" Logic
The strength of this indicator lies in the synergy between its components. It is not a simple mashup, but a filtered logical system:
Triple RCI Engine (Fast, Mid, Slow):
Fast (13) & Mid (18): These generate the Crossover signal for precise entry timing.
Slow (30) - The "Trend Shield": The true innovation. It acts as a directional shield; if the baseline is bullish, the script protects Long positions by ignoring premature exit signals, allowing you to ride the full trend.
HMA Smoothing: Raw price data passes through a Hull Moving Average before the RCI calculation. This drastically reduces market "noise" without sacrificing the responsiveness typical of the RCI.
Intelligent Filters (Anti-Whipsaw):
ADX Integration: Signals are blocked if the ADX is below the threshold (default 20), preventing trading in flat/ranging markets.
Momentum Impulse: Requires a minimum variation (Delta) in the RCI to confirm that the move has real drive and is not just random fluctuation.
🛡 Risk Management & Simulation
Since timing is useless without risk management, Quantum RCI Fusion includes a Dashboard and sophisticated exit logic:
Multiple Exits:
Take Profit / Stop Loss: Based on dynamic ATR multipliers.
Shield Break: Safety exit if the underlying trend (Slow RCI) changes direction.
Emergency: Immediate close if momentum sharply reverses across the zero line.
Live Dashboard: Monitors Win Rate, virtual PnL, and Trade Status (Long/Short/Scanning) in real-time directly on the chart, removing the need for external backtesters.
🚀 How to Use It
Setup: Add the script to a separate pane below your price chart.
Entry Signals:
LONG (Green Triangle): RCI Fast crosses Mid upwards + Oversold Zone (< -80) + ADX > 20 + Bullish Shield.
SHORT (Red Triangle): RCI Fast crosses Mid downwards + Overbought Zone (> 80) + ADX > 20 + Bearish Shield.
Customization:
Scalping: Reduce RCI lengths (e.g., 8/12/20) and disable the "Trend Shield" for quick entries and exits.
Swing Trading: Keep defaults and use the ATR Trailing logic to manage positions on H4 or Daily timeframes.
⚖️ Notes & Credits
Originality: This script enhances the standard RCI by implementing Array-based calculations (optimized for Pine v6), proprietary HMA smoothing, and unique "Trend Shield" logic.
Open Source: The code is released under the MPL 2.0 license. Credits to the Pine community for the foundational mathematical formulas of Spearman's correlation.
Disclaimer: The statistics shown in the dashboard are simulations based on live data and do not guarantee future profits. You are responsible for your own trading decisions.
🖼 Instructions for the Publication Chart (Preview)
To ensure your script gets approved and attracts users, follow these steps for the cover image:
Symbol: Use a volatile and liquid asset, e.g., BTCUSD or XAUUSD (Gold), on a 1H or 4H timeframe.
Clean Layout: Remove all other indicators from the chart (no Moving Averages on price, no Bollinger Bands). The focus must be solely on your script in the bottom pane.
Visualization:
Ensure the Dashboard (stats table) is clearly visible and does not obscure the most recent candle.
The chart should show at least one clear BUY and one clear SELL signal, ideally with the exit icons (the "X" or flags) visible to demonstrate the exit logic.
Laguerre RSI (Fractals Energy) [v6]This write-up explores the **Laguerre RSI (LRSI)**, a sophisticated technical indicator pioneered by **John F. Ehlers**. Unlike the standard RSI, which often suffers from "lag" or excessive noise, the Laguerre RSI uses a four-pole filter to provide a smoother, more responsive curve that stays in overbought or oversold zones longer during strong trends.
The following analysis focuses on the interplay between the **Alpha (Gamma)** and the **Gamma Bandwidth**, specifically looking for "Alpha Exceeding" events to identify market coiling and exhaustion.
---
## 1. The Core Concept: Ehlers’ Laguerre Transform
Traditional indicators use a fixed look-back period (e.g., 14 periods). John Ehlers introduced the Laguerre Transform to allow for a more efficient way of filtering data using a very small amount of data.
In the provided code, the key variable is **Alpha** (derived from **Fractals Energy/Gamma**). This value determines the "speed" of the indicator.
* **Low Alpha:** High damping, smoother but slower.
* **High Alpha:** Low damping, faster and more reactive.
---
## 2. The Gamma Bandwidth: Coiling and Energy
The "Gamma Band" (the purple shaded area in your script, typically between and ) represents the "neutral" zone for market fractal energy.
### Market Coiling (Compression)
When the **Alpha (Gamma) line** climbs **above the Gamma Upper Bound** (e.g., ):
* This indicates the market is moving into a state of **high fractal efficiency** or "straight-line" movement.
* However, when Alpha is pinned high, it often signals **Coiling**. The market is burning through its energy efficiently, but it is reaching a state of "ordered" exhaustion.
* **The Interpretation:** The price is trending strongly, but the lack of "chaos" suggests a trend maturity is approaching.
### Alpha Exceeding the Bands (Exhaustion)
When the Alpha line spikes significantly outside the bands while the LRSI line (blue or pink) is pinned at the extremes (1.0 or 0.0), we observe **Exhaustion**.
* **Bullish Exhaustion:** LRSI is (Blue) and Alpha exceeds the upper band. The trend is so efficient that it has no room left to accelerate. A "reversion to the mean" or a period of "choppiness" (increasing fractal chaos) is likely.
* **Bearish Exhaustion:** LRSI is (Pink) and Alpha exceeds the upper band. This shows a vertical drop that is unsustainable in the long term.
---
## 3. Signal Mechanics: The "Hook"
The most potent signal occurs when the Alpha line begins to **descend back into the Gamma Bandwidth** while the LRSI line crosses the OB/OS levels.
| Signal Component | Market Condition | Actionable Insight |
| --- | --- | --- |
| **Alpha > 0.59** | High Efficiency / Coiling | Trend is strong, but watch for the "bend." |
| **Alpha < 0.41** | High Complexity / Choppiness | Market is trendless; energy is being stored for the next move. |
| **LRSI Cross < 0.8** | Bearish Reversal | Trend exhaustion confirmed; exit longs or enter shorts. |
| **LRSI Cross > 0.2** | Bullish Reversal | Mean reversion confirmed; exit shorts or enter longs. |
---
## 4. Summary of the Methodology
By integrating **Fractals Energy** (Gamma) directly into the Alpha of the Laguerre RSI, this version of Ehlers’ work allows the indicator to adapt its own speed based on the market’s complexity.
When Alpha exceeds the bands, it is a warning that the "clean" move is coming to an end. The market is "coiled" tight; the subsequent break back into the purple band signifies that the trend has lost its linear efficiency and is returning to a state of chaos—often resulting in a price reversal or significant consolidation.
> **Credit:** All mathematical foundations of the Laguerre Transform and the RSI implementation are credited to **John F. Ehlers**.
---
Would you like me to create a visual guide or table specifically for the **Fractal Energy** values and how they correlate to specific market phases?
DTS Momentum Dot Plot (Stoch / RSI) + AlertsThis comes from Treyding Stocks Famous Dot Plot, but for think or swim. When the green and red dots align, then it is a good opportunity for a buy or sell. It is the Fast Stochastic,the slow stochastic and the RSI, there is another version with the MACD but I liked this one!
You can also add alerts when all lines turn green or red!
Enjoy!
777 mean reversion engineA guy asked his librarian if they had any books on "paranoia." She leaned in and whispered, "They're right behind you." He hasn't been back to the library since.
BB6-MTF-OverlayBB6-MTF-Overlay (Multi-Bollinger Bands, MTF, Overlay)
BB6-MTF-Overlay is a Bollinger Bands overlay indicator that lets you display up to 6 independent BB sets on a single chart, with full MTF (higher timeframe) support.
It’s designed for fast multi-timeframe context—so you can see where price is relative to higher-timeframe BB levels (middle / ±1σ / ±2σ / ±3σ) while trading your current timeframe.
Key Features
Up to 6 Bollinger Band sets displayed simultaneously (overlay)
Per BB set: choose Local (current TF) or MTF (higher TF via security)
Per BB set: Gaps ON/OFF
ON: values may appear only at HTF update points (discontinuous)
OFF: HTF values are filled across lower TF bars (step-like)
Per BB set: Confirmed Bars Mode ON/OFF
ON: uses confirmed HTF values (minimizes repainting)
OFF: follows the in-progress HTF bar (useful for discretionary trading)
Per BB set: toggle visibility for Middle / ±σ1 / ±σ2 / ±σ3 independently
Custom sigma multipliers (e.g., 1.5σ, 0.6σ) for fine tuning
Separate switches for Calculation ON/OFF and Display ON/OFF
Turn off calculations to reduce load, or hide plots only
Typical Use Cases
Use higher timeframe (4H/D/W) BB middle and ±1σ as “structure walls” while executing on lower timeframe
Combine real-time tracking (e.g., 15m BB with Confirmed OFF) with stable HTF anchors (e.g., Daily/Weekly with Confirmed ON)
Keep ±2σ/±3σ OFF by default and enable them only when you need to check range expansion or extremes
Default Preset (Initial Settings)
BB1: 15m MTF (Confirmed Bars Mode OFF)
BB2: 4H MTF (Confirmed Bars Mode OFF)
BB3: Daily MTF (Confirmed Bars Mode ON)
BB4: Weekly MTF (Confirmed Bars Mode ON)
BB5: Monthly MTF (Confirmed Bars Mode ON)
BB6: Calculation OFF / Display OFF
For all active BB sets: σ1 ON by default, σ2 & σ3 OFF by default
Notes
With MTF + Confirmed OFF, band values will move until the higher timeframe bar closes (intended for discretionary use).
If the chart looks too busy, disable unused BB sets or turn off σ2/σ3.
📌 BB6-MTF-Overlay(ボリンジャーバンド6本・MTF対応・Overlay)
BB6-MTF-Overlay は、最大6セットのボリンジャーバンドを同時にチャート上へ重ねて表示できる、MTF(上位足参照)対応のBollinger Bandsインジケーターです。
🕒 15分/4時間/日足/週足/月足など、複数時間軸のボリンジャーを1つのチャートで確認できるため、環境認識(上位足の位置関係)+現在足の判断をスムーズに行えます。
✨ 主な特徴
📈 最大6本のボリンジャーバンドを同時表示(Overlay)
🔁 各BBごとに Local(現在足) / MTF(上位足) を選択可能
🧩 各BBごとに ギャップON/OFF(上位足更新点のみ表示/階段状に埋める表示)を切替
✅ 各BBごとに 確定足モードON/OFF
ON:上位足確定値(リペイント最小)
OFF:進行中の上位足にも追随(裁量補助向け)
🎚️ 各BBごとに ミドル/±σ1/±σ2/±σ3 を個別に表示ON/OFF
🔧 σ値は自由入力(例:1.5σ、0.6σ など微調整可)
⚙️ 計算ON/OFFと表示ON/OFFを分離
表示だけ消す/計算ごと止めて軽くする、の両方に対応
🧠 想定する使い方(例)
🧱 上位足(4H/日足/週足)のミドル・±1σを「壁」として見て、今の足(5分/15分)での反発・抜けを判断
🏃 「15分BB(確定足OFF)」でリアルタイム追随しつつ、「日足/週足(確定足ON)」で大局の位置を固定して確認
🔍 σ2・σ3は普段OFF、必要なときだけONにしてレンジ幅・伸び代を確認
🧾 デフォルト設定(初期状態)
1️⃣ BB1:15分MTF(確定足モードOFF)
2️⃣ BB2:4時間MTF(確定足モードOFF)
3️⃣ BB3:日足MTF(確定足モードON)
4️⃣ BB4:週足MTF(確定足モードON)
5️⃣ BB5:月足MTF(確定足モードON)
6️⃣ BB6:計算OFF/表示OFF
🎛️ 初期表示は全BB共通で「1σのみON(2σ・3σはOFF)」
⚠️ 注意事項
🔄 MTFで「確定足モードOFF(追随)」を使用する場合、上位足が確定するまで値が動くため、見え方が変化します(裁量補助向け)。
🧹 表示本数が増えるとチャートが混み合うため、必要なBBだけ表示ONにする運用がおすすめです。
ROC+ADX Trend & Momentum System### Code Analysis: ROC+ADX Trend & Momentum System (v5 Pine Script)
#### **Core Function**
This Pine Script indicator integrates **Rate of Change (ROC)** and **Average Directional Index (ADX)** to build a professional trend-momentum trading system, which identifies trend strength, momentum changes, price divergences and generates actionable long/short trading signals for financial markets (stocks, crypto, forex). It features coordinated visual display, adaptive volatility adjustment and a comprehensive scoring mechanism for trend evaluation.
#### **Key Features (Concise)**
1. **Hybrid Indicator Logic**
Combines **ROC (12/6-period, EMA-smoothed)** (measures price momentum) and **ADX (14-period)** (identifies trend strength/direction, with +DI/-DI for trend bias), forming a dual-dimension analysis of trend + momentum.
2. **Adaptive Dynamic Threshold**
Adjusts momentum thresholds in real time based on **14-period ATR volatility**; higher market volatility raises thresholds, lower volatility lowers them, ensuring signal accuracy across different market conditions.
3. **Multi-Category Trading Signals**
Generates 4 core signal types: trend breakout (long/short), momentum boost/drop, trend reversal, and price-ROC bullish/bearish divergence, all filtered by ADX trend validity.
4. **Comprehensive Trend Scoring System**
Calculates a **0-100 trend score** (integrates ADX strength, ROC momentum, direction consistency, momentum persistence) and classifies trend intensity into 5 levels (Extreme/Strong/Medium/Weak/None).
5. **Coordinated Visual Display**
Supports scalable unified display for ROC & ADX values (custom scale factors), with color-coded lines, momentum histograms, heatmap background and reference lines for intuitive trend judgment.
6. **Informative Dashboard & Alerts**
Embeds a top-right info panel showing real values (ROC, ADX, volatility), trend level and active signals; includes multi-tier alert conditions for all key signals (breakout, reversal, divergence).
7. **High Customizability**
Full input configurability for all core parameters (periods, thresholds, scale factors) and visual toggles (show/hide ROC/ADX, signals, heatmap, reference lines).
#### **Technical Highlights**
- Uses EMA smoothing for ROC/ADX to reduce false signals;
- Identifies ROC momentum & acceleration for precise trend phase judgment;
- ADX grading (strong/weak/oscillation) filters invalid signals in sideways markets;
- Color-coded elements (lines, histograms, heatmap) reflect real-time trend/momentum status;
- Non-overlay layout ensures clear separation from price charts, optimized for multi-screen analysis.
Breakout LevelsBreakout Levels - User Guide
Overview
The Breakout Levels indicator automatically detects and displays significant breakout candles across multiple timeframes. A breakout occurs when price makes a strong, decisive move - identified by candles with unusually large bodies relative to average volatility.
These breakout levels often act as future support/resistance zones, making them valuable reference points for trading decisions.
What is a Breakout?
A breakout is detected when a candle's body size (the distance between open and close) is significantly larger than normal. By default, the script looks for candles that are 2x the ATR (Average True Range) or larger.
Example:
If the 14-period ATR is $5, a candle with a $10+ body would qualify as a breakout
These represent strong, committed moves by the market
The script marks the high of bullish breakouts and the low of bearish breakouts
Settings Guide
Timeframes
Toggle which timeframes to monitor for breakouts:
Show Daily Breakouts - Green/Red levels from daily chart breakouts
Show 4H Breakouts - 4-hour timeframe breakouts
Show 1H Breakouts - 1-hour timeframe breakouts
Show 15M Breakouts - 15-minute timeframe breakouts
Tip: When running on a 15-minute chart, you can see breakouts from all higher timeframes simultaneously.
Lookback (How Far Back to Display)
Controls how many bars back to show levels for each timeframe:
TimeframeDefaultWhat it Means15M50 bars~12.5 hours of breakout history1H200 bars~8 days of breakout history4H250 bars~42 days of breakout historyDaily300 bars~300 days (nearly 1 year)
Why adjust this?
Increase to see more historical levels (may clutter chart)
Decrease to focus only on recent breakouts
Older levels are still stored, just not displayed
Detection Settings
Breakout Candle Size (x ATR)
Default: 2.0
Range: 1.0 to 5.0
What it does: Multiplier for what qualifies as a "big" candle
SettingSensitivityUse Case1.0-1.5Very sensitiveCatches more breakouts, but may include false moves2.0Balanced (default)Good mix of quality and quantity3.0-5.0Very selectiveOnly the most explosive moves
Recommendation: Start with 2.0 and adjust based on your market and trading style.
Visual Settings
Bullish Breakout Color
Default: Green with 60% transparency
Marks levels where price broke upward strongly
Bearish Breakout Color
Default: Red with 60% transparency
Marks levels where price broke downward strongly
Show Labels
Toggle labels on/off
Labels display: BO
Example: "4H BO 150.25"
Turn OFF for cleaner charts when you just want the lines
How to Use This Indicator
1. Identify Key Breakout Zones
Breakout levels often become magnets where price returns later:
Former resistance (where price broke up) becomes future support
Former support (where price broke down) becomes future resistance
2. Look for Confluence
When multiple timeframe breakouts cluster near the same price:
15M + 1H + 4H breakouts all near $150 = strong level
More confluence = more significant level
3. Watch for Retests
After a breakout, price often returns to test that level:
Bullish breakout retest from above = potential long entry
Bearish breakout retest from below = potential short entry
4. Combine with Other Analysis
Use breakout levels alongside:
Your own support/resistance analysis
Volume profiles
Fibonacci levels
Candlestick patterns at these levels
Practical Examples
Example 1: Clean Breakout and Retest
Daily candle closes up with a huge body (2.5x ATR)
Green line drawn at the high of that candle
Price pulls back 3 days later and bounces exactly off that green line
Trade opportunity: Long entry at the retest with stop below
Example 2: Failed Breakout
4H bearish breakout draws a red line at the low
Price immediately reverses back above the level
Signal: The breakout was false - consider this a stop hunt zone
Example 3: Multi-Timeframe Confluence
Daily breakout at $100
4H breakout at $100.50
1H breakout at $99.80
Strong cluster zone: $99.80-$100.50 becomes a major decision point
Best Practices
DO:
✅ Start with default settings (2.0x ATR, default lookbacks)
✅ Use on a 15-minute chart to see all timeframes
✅ Look for price reactions at these levels before trading
✅ Combine with volume - breakouts with high volume are more reliable
✅ Turn off labels when chart gets too busy
DON'T:
❌ Treat every line as guaranteed support/resistance
❌ Set breakout multiplier too low (<1.5) - creates noise
❌ Ignore the context - check what's happening in the broader market
❌ Trade blindly at these levels without confirmation
Troubleshooting
"Too many lines on my chart"
Reduce the lookback settings
Turn off some timeframes (maybe just show Daily + 4H)
Increase the breakout multiplier to 2.5 or 3.0
"Not showing any levels"
Lower the breakout multiplier to 1.5
Increase lookback settings
Check that at least one timeframe toggle is ON
Verify the market had actual volatility during the period
"Labels are cluttering the chart"
Turn off "Show Labels" in settings
Lines will remain, labels disappear
Technical Notes
ATR Period: 14 (industry standard, not adjustable in this version)
Max Lines: 500 (Pine Script limitation)
Duplicate Filter: Levels within 0.3% of ATR are considered duplicates and filtered
Chart Type: Works on any chart timeframe, optimized for 15-minute
Asset Type: Works on stocks, forex, crypto, futures
Summary
The Breakout Levels indicator gives you a systematic way to identify where strong, committed market moves occurred. These levels often act as future decision points. Use them as reference zones to watch for price reactions, not as automatic trade signals.
Quick Start:
Add indicator to a 15-minute chart
Leave default settings (2.0x ATR)
Watch how price interacts with the levels over the next few days
Adjust sensitivity based on your observations
Happy trading! 📈
Q# ML Logistic Regression Indicator [Lite]
Q TechLabs MLLR Lite — Machine Learning Logistic Regression Trading Indicator
© Q# Tech Labs 2025 Developed by Team Q TechLabs
Overview
Q# MLLR Lite is an open-source, lightweight TradingView indicator implementing a logistic regression model to generate buy/sell signals based on engineered price features. This “lite” version is designed for broad community access and serves as a foundation for the upcoming Pro version with advanced features and integration.
Features
Logistic Regression-based buy/sell signal generation
Customizable price source input (Open, High, Low, Close, HL2, HLC3, OHLC4)
Adjustable signal threshold and smoothing parameters
Signal confidence plotted in a separate pane
Alert conditions for buy and sell signals
Fully documented, clean Pine Script (v6) code for easy customization
Installation
Open TradingView and navigate to the Pine Script editor
Create a new script and paste the full content of the Q# MLLR Lite Pine Script
Save and add to chart
Configure inputs as needed for your trading style
Licensing
Q# MLLR Lite is provided under the MIT License, promoting open use, modification, and community collaboration with attributi
Q# MLLR Lite — Machine Learning Logistic Regression Trading Indicator
© Q# Tech Labs 2025 — Developed by Team Q#
Overview
Q# MLLR Lite is an open-source, lightweight TradingView indicator implementing a logistic regression model to generate buy/sell signals based on engineered price features. This “lite” version is designed for broad community access and serves as a foundation for the upcoming Pro version with advanced features and integration.
Features
Logistic Regression-based buy/sell signal generation
Customizable price source input (Open, High, Low, Close, HL2, HLC3, OHLC4)
Adjustable signal threshold and smoothing parameters
Signal confidence plotted in a separate pane
Alert conditions for buy and sell signals
Fully documented, clean Pine Script (v6) code for easy customization
Installation
Open TradingView and navigate to the Pine Script editor
Create a new script and paste the full content of the Q# MLLR Lite Pine Script
Save and add to chart
Configure inputs as needed for your trading style
Licensing
Q# MLLR Lite is provided under the MIT License, promoting open use, modification, and community collaboration with attribution.
Copyright (c) 2025 Q# Tech Labs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Momentum Color Classification System### Code Analysis: Momentum Color Classification System (Pine Script v5)
#### Core Function
This is a **non-overlay TradingView Pine Script v5 indicator** designed to quantify and categorize price momentum dynamics with extreme precision. It calculates core momentum from price Rate of Change (ROC) and second-derivative momentum change, then classifies market momentum into 9 distinct states (bullish variations, bearish variations, and neutral oscillation). The indicator visualizes momentum via color-coded histogram bars, and provides real-time status labels, a detailed info dashboard, and actionable trading suggestions — all to help traders accurately identify momentum strength, acceleration/deceleration trends, and guide long/short trading decisions.
#### Key Features (Concise & Clear)
1. **9-tier Precise Momentum Classification**
Divides momentum into **4 bullish states** (accelerating/decelerating/steady/weak up), **4 bearish states** (accelerating/decelerating/steady/weak down) and 1 neutral oscillation state, fully covering all momentum trend phases in the market.
2. **2-dimensional Momentum Calculation**
Combines **1st-order momentum** (price ROC-based core momentum) and **2nd-order momentum change** (momentum acceleration/deceleration), plus absolute momentum strength, to comprehensively judge momentum direction, speed and intensity.
3. **Color-Coded Visualization with Hierarchy**
Uses a gradient color system (vibrant-to-pale green for bullish, vivid-to-light red for bearish, gray for neutral) with transparency differentiation to reflect momentum strength; histogram style ensures intuitive observation, paired with a dotted zero reference line for clear bias judgment.
4. **Practical Trading Auxiliary Tools**
Supports toggleable status labels for extreme momentum (accelerating up/down); embeds a top-right dashboard displaying real-time momentum values, change rate, state, strength level and direct trading suggestions, enabling one-glance market judgment.
5. **High Customizability**
Allows adjustment of core parameters (momentum calculation period, smoothing factor) and toggling of label display, with reasonable parameter ranges to adapt to different trading assets and timeframes.
6. **Trade-Oriented Decision Guidance**
Maps each momentum state to corresponding strength levels and actionable operation advice (long/add position, short/add position, hold, reduce position, wait), directly linking technical analysis to actual trading behavior.
Cosmic Volume Analyzer [JOAT]
Cosmic Volume Analyzer - Astrophysics Edition
Overview
Cosmic Volume Analyzer is an open-source oscillator indicator that applies astrophysics-inspired concepts to volume analysis. It classifies volume into buy/sell categories, calculates volume flow, detects accumulation/distribution phases, identifies climax volume events, and uses gravitational and stellar mass analogies to visualize volume dynamics.
What This Indicator Does
The indicator calculates and displays:
Volume Classification - Categorizes each bar as CLIMAX_BUY, CLIMAX_SELL, HIGH_BUY, HIGH_SELL, NORMAL_BUY, or NORMAL_SELL
Volume Flow - Percentage showing buy vs sell pressure over a lookback period
Buy/Sell Volume - Separated volume based on candle direction
Accumulation/Distribution - Phase detection using Money Flow Multiplier
Volume Oscillator - Fast vs slow volume EMA comparison
Gravitational Pull - Volume-weighted price attraction metric
Stellar Mass Index - Volume ratio combined with price momentum
Black Hole Detection - Identifies extremely low volume periods (liquidity voids)
Supernova Events - Detects extreme volume with extreme price movement
Orbital Cycles - Sine-wave based cyclical visualization
How It Works
Volume classification uses volume ratio and candle direction:
classifyVolume(series float vol, series float close, series float open) =>
float avgVol = ta.sma(vol, 20)
float volRatio = avgVol > 0 ? vol / avgVol : 1.0
if volRatio > 1.5
if close > open
classification := "CLIMAX_BUY"
else
classification := "CLIMAX_SELL"
else if volRatio > 1.2
// HIGH_BUY or HIGH_SELL
else
// NORMAL_BUY or NORMAL_SELL
Volume flow separates buy and sell volume over a period:
calculateVolumeFlow(series float vol, series float close, simple int period) =>
float currentBuyVol = close > open ? vol : 0.0
float currentSellVol = close < open ? vol : 0.0
// Accumulate in buffers
float flow = (buyVolume - sellVolume) / totalVol * 100
Accumulation/Distribution uses the Money Flow Multiplier:
float mfm = ((close - low) - (high - close)) / (high - low)
float mfv = mfm * vol
float adLine = ta.cum(mfv)
if adLine > adEMA and ta.rising(adLine, 3)
phase := "ACCUMULATION"
else if adLine < adEMA and ta.falling(adLine, 3)
phase := "DISTRIBUTION"
Gravitational pull uses volume-weighted price distance:
gravitationalPull(series float vol, series float price, simple int period) =>
float massCenter = ta.vwma(price, period)
float distance = math.abs(price - massCenter)
float mass = vol / ta.sma(vol, period)
float gravity = distance > 0 ? mass / (distance * distance) : 0.0
Signal Generation
Signals are generated based on volume conditions:
Buy Climax: Volume exceeds 2 standard deviations above average on bullish candle
Sell Climax: Volume exceeds 2 standard deviations above average on bearish candle
Strong Buy Flow: Volume flow exceeds positive threshold (default 45%)
Strong Sell Flow: Volume flow exceeds negative threshold (default -45%)
Supernova: Volume 3x average AND price change 3x average
Black Hole: Volume 2 standard deviations below average
Dashboard Panel (Top-Right)
Volume Class - Current volume classification
Volume Flow - Buy/sell flow percentage
Buy Volume - Accumulated buy volume
Sell Volume - Accumulated sell volume
A/D Phase - ACCUMULATION/DISTRIBUTION/NEUTRAL
Volume Strength - Normalized volume strength
Gravity Pull - Current gravitational metric
Stellar Mass - Current stellar mass index
Cosmic Field - Combined cosmic field strength
Black Hole - Detection status and void strength
Signal - Current actionable status
Visual Elements
Volume Ratio Columns - Colored bars showing normalized volume
Volume Flow Line - Main oscillator showing flow direction
Flow EMA - Smoothed flow for trend reference
Volume Oscillator - Area plot showing fast/slow comparison
Gravity Field - Area plot showing gravitational pull
Orbital Cycle - Circle plots showing cyclical pattern
Stellar Mass Line - Line showing mass index
Climax Markers - Fire emoji for buy climax, snowflake for sell climax
Supernova Markers - Diamond shapes for extreme events
Black Hole Markers - X-cross for liquidity voids
A/D Phase Background - Subtle background color based on phase
Input Parameters
Volume Period (default: 20) - Period for volume calculations
Distribution Levels (default: 5) - Granularity of distribution analysis
Flow Threshold (default: 1.5) - Multiplier for flow significance
Accumulation Period (default: 14) - Period for A/D calculation
Gravitational Analysis (default: true) - Enable gravity metrics
Black Hole Detection (default: true) - Enable void detection
Stellar Mass Calculation (default: true) - Enable mass index
Orbital Cycles (default: true) - Enable cyclical visualization
Supernova Detection (default: true) - Enable extreme event detection
Suggested Use Cases
Identify accumulation phases for potential long entries
Watch for distribution phases as potential exit signals
Use climax volume as potential exhaustion indicators
Monitor volume flow for directional bias
Avoid trading during black hole (low liquidity) periods
Watch for supernova events as potential trend acceleration
Timeframe Recommendations
Best on 15m to Daily charts. Volume analysis requires sufficient trading activity for meaningful readings.
Limitations
Volume data quality varies by exchange and instrument
Buy/sell separation is based on candle direction, not actual order flow
Astrophysics concepts are analogies, not literal physics
A/D phase detection may lag during rapid transitions
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management.
- Made with passion by officialjackofalltrades
Session Anchored OIWAP [Arjo]The Session Anchored OIWAP (Open Interest Weighted Average Price) indicator shows you a weighted average price that uses Open Interest (OI) changes during different trading sessions . It divides the day into four clear sessions: Opening Hour , Morning Session , Mid-Day Session , and Closing Session .
For each session , it calculates a weighted average price using both market price and open interest data from futures . This line updates as the session progresses and resets when a new session starts .
You can also see optional deviation bands that you visually compare to how far the market price is moving away from the session’s weighted average. This indicator also helps you watch how Open Interest changes connect with price movements during specific market hours.
Concepts
This tool works on a few simple ideas:
Session anchoring
Each session starts fresh. The indicator resets and begins a new calculation when a new time block begins. This allows users to visually study each session independently.
Open-interest weighting
Instead of treating all price moves equally, price changes linked to higher open-interest activity have more influence on the OIWAP. This gives a weighted reflection of where the market has been trading during the session.
Averaging and smoothing
The OIWAP line blends many price data points into one smooth curve, making it easier to follow than raw price movement.
Volatility display with bands
The upper and lower bands are placed at ±0.5 standard deviation from the OIWAP line. These bands simply help you see when price stretches further away than usual from the session average.
Features
Four Independent Session Calculations: Shows separate OIWAP lines for Opening Hour (default: 09:15-10:15), Morning (10:15-11:30), Mid-Day (11:30-14:00), and Closing (14:00-15:30) sessions
Open Interest Weighting: Uses absolute OI change as the weight instead of traditional volume
Customizable Session Times: You can change the time ranges for each session to match your market or what you need
Optional Deviation Bands: You can turn ±0.5 standard deviation bands on or off around each OIWAP line
Color-Coded Sessions: Each session has its own color so you can tell them apart easily
Selective Display: You can turn individual sessions and bands on or off
Data Availability Check: Shows you a notification when Open Interest data isn't available for your symbol
Adjustable Position Timeframe: You can calculate OI changes on different timeframes (Chart, Daily, 15min, 30min, 60min, 120min)
How to use
Add this indicator to a chart of any symbol that has Open Interest data ( from futures or derivatives contracts). Once you add it, you'll see colored lines showing the OIWAP for each session you enable, along with optional deviation bands.
Adjusting Settings:
Turn individual sessions on or off using the checkboxes in the " Sessions " section
Change session colors to match your chart or what looks good to you
Turn deviation bands on or off using the " Show Bands " option in the Display settings
Change session time ranges in the " Session Times " section to match your market hours or what you want to analyze
Change the Position Timeframe if you want to see OI changes calculated on a different time period
Visual Interpretation:
Each OIWAP line shows you the OI-weighted average price for that session
The deviation bands show you how much prices spread out, weighted by OI changes
You can watch how price interacts with these levels to see where significant OI activity happened
Different sessions may show different OIWAP levels, showing you how the OI-price relationship changes throughout the trading day
Note:
This indicator needs Open Interest data to work. If OI data isn't available for your symbol, you'll see a message in the center of your chart. This indicator works only with derivatives markets like futures and options in the Indian Market where OI data is publicly available.
Conclusion
The Session Anchored OIWAP indicator is designed to support structured market observation by combining price, open interest, and session anchoring into a clear visual format. It helps users study market behavior during different parts of the day without generating trading instructions or outcomes.
Disclaimer
This indicator is for educational and visual-analysis purposes only. It does not provide trading signals , financial advice, or guaranteed outcomes . You should perform your own research and consult a licensed financial professional when needed. All trading decisions are solely the responsibility of the user.
Happy Trading
VWAP Institutional Trading Engine INDICATORVWAP Institutional Trading Engine
Adaptive Market Regime & Trading Model Indicator
🔍 Overview
The VWAP Institutional Trading Engine is an advanced, rule-based market analysis indicator designed to replicate institutional decision-making logic using VWAP, volatility, and session-based market behavior.
This indicator does not predict price.
Instead, it answers a more important question:
“What type of trading is appropriate right now – if any?”
The engine continuously evaluates:
Market regime (trend, range, dead market)
Volatility conditions
VWAP acceptance and deviation
Trading session (Asia / London / New York)
Based on this, it dynamically activates one of three trading models:
TREND
MEAN REVERSION
OFF (no trading)
This makes it ideal for:
Discretionary traders
Systematic traders
Risk-focused trading
Educational / portfolio-style trading approaches
🧠 Core Philosophy
Professional trading is not about finding more signals.
It is about knowing when not to trade.
This indicator is built around three institutional principles:
VWAP defines fair value
Volatility defines opportunity or danger
Different sessions require different behavior
⚙️ Indicator Components
1️⃣ VWAP & Statistical Deviation Bands
VWAP represents institutional fair price
±1σ bands indicate acceptance zones
±2σ bands represent statistical extremes
Used for:
Mean reversion zones
Trend acceptance confirmation
Go Score calculation
2️⃣ Volatility Engine
Volatility is measured using ATR relative to price
Compared against its own moving average
Classifications:
Low volatility → dead / untradable market
Normal volatility → structured behavior
High volatility → trend or liquidation events
3️⃣ Market Regime Detection
The engine classifies each moment into one regime:
Regime Meaning
TREND Price accepts above or below VWAP with volatility
RANGE Price rotates near VWAP
DEAD Low volatility, no opportunity
MIXED Unclear structure
4️⃣ Active Trading Model (Most Important)
Displayed in the dashboard as Model:
Model Interpretation
TREND Trade with momentum and continuation
MEAN_REVERT Trade extremes back to VWAP
OFF Do not trade
The Model tells you HOW you are allowed to trade right now.
5️⃣ Session Awareness (UTC)
The indicator adapts behavior based on session logic:
Session Preferred Behavior
Asia Mean Reversion
London Trend
New York Selective / adaptive
Trades are only allowed when model + session are aligned.
6️⃣ Go Score – Trade Quality Filter
Each potential setup receives a Go Score (0–100), based on:
Distance from VWAP
Market regime quality
Volatility penalties
Go Score Interpretation
≥ 80 High-quality (A+)
65–79 Acceptable
< 65 No trade
7️⃣ Risk Guidance (Informational)
The indicator outputs a Risk % suggestion, based on:
Go Score
Simulated drawdown logic
⚠️ This is guidance only, not position sizing.
📈 Visual Signals
The indicator plots contextual signals, not blind entries:
Mean Reversion Signals
▲ Long below −2σ
▼ Short above +2σ
Trend Signals
↑ Long after acceptance above +1σ
↓ Short after acceptance below −1σ
Signals appear only when trading is allowed by:
Model
Session
Go Score
🧩 Dashboard Explanation
The top-right dashboard displays real-time engine state:
Field Description
Session Current UTC session
Regime Detected market condition
Go Score Trade quality score
Risk % Suggested relative risk
Drawdown % Virtual defensive metric
Model Active trading model
If Model = OFF → do nothing.
🧭 Practical Trading Manual (Step-by-Step)
Step 1 – Check the Model
TREND → look for continuation
MEAN_REVERT → look for extremes
OFF → do not trade
Step 2 – Confirm Session Alignment
Asia + Mean Reversion ✔
London + Trend ✔
Misalignment = caution
Step 3 – Check Go Score
Below 65 → skip
65+ → proceed
Step 4 – Use Chart Structure
VWAP = anchor
σ bands = context
Signal = permission, not obligation
Step 5 – Manage Risk Manually
Use your own SL/TP rules
Follow the Risk % as guidance, not law
❌ What This Indicator Is NOT
Not a signal spam tool
Not a prediction system
Not a “holy grail”
It is a decision framework.
✅ Best Use Cases
Futures
Indices
Forex
Crypto
Intraday & swing trading
Recommended timeframes:
5m – 1H (intraday)
4H (contextual swing)
🏁 Final Notes
This indicator is intentionally transparent and rule-based.
It is designed to help traders:
Think in regimes
Trade with structure
Avoid overtrading
Protect capital
If you trade with the Model, not against it,
you will already be ahead of most market participants.
FX Rate Bias US vs EU 2YFX Rate Bias – US vs EU (2Y)
This indicator provides a macro bias framework for FX markets by tracking the 2-year government bond yield differential between the United States and Germany.
Rather than displaying the spread as a raw calculation, the script translates interest-rate expectations into a clear directional bias, helping traders understand which currency currently holds a rate advantage.
The 2Y segment of the yield curve is highly sensitive to:
Central bank expectations
Forward guidance
Shifts in short-term monetary policy outlook
How to use
Positive spread → USD rate advantage
Negative spread → EUR rate advantage
Designed to be used as a contextual macro tool, this indicator helps align technical setups with broader monetary conditions.
It is not intended as a standalone entry or signal generator.






















