Regression Flux Candles [JOAT]Regression Flux Candles
Overview
Regression Flux Candles renders a parallel candle series on top of price using linear regression applied independently to each of the four OHLC components. The result is a noise-filtered "flux candle" — a linearised representation of current price action that removes the erratic intrabar variation of raw candles and reveals the underlying trend direction with far greater clarity. A signal line (SMA of regression close) produces crossover buy/sell signals. Pivot-anchored support/resistance zones mark structural confluence areas. A six-timeframe MTF trend table provides session bias context.
The Linear Regression Candle Concept
Standard Japanese candlesticks display the raw open, high, low, and close of each bar — capturing every tick-driven fluctuation including news spikes, stop hunts, and market-maker manipulation. Linear regression candles replace each OHLC component with the endpoint of a linear regression line fitted over the last N bars:
- LR Open = ta.linreg(open, length, 0)
- LR High = ta.linreg(high, length, 0)
- LR Low = ta.linreg(low, length, 0)
- LR Close = ta.linreg(close, length, 0)
The regression fits a straight line through the last N values of each component and returns the value of that line at the current bar. The resulting candle series is significantly smoother than raw price and acts like a weighted moving average of price structure without introducing the directional lag of traditional MAs. Bullish flux candles (LR close >= LR open) render in teal; bearish in purple.
Signal Line and Crossover Logic
A simple moving average of the LR close (default 7-bar SMA) acts as a signal line. When the LR close crosses above the signal line, a potential buy signal is generated. When it crosses below, a potential sell signal is generated. Crossovers are filtered by:
- Volume filter: Volume must exceed the 20-bar volume SMA (configurable). This ensures signals occur during genuine participation, not thin-market noise.
- RSI filter: Buy signals are blocked when RSI(14) >= 70 (overbought); sell signals are blocked when RSI(14) <= 30 (oversold). This prevents buying into extended moves and selling into oversold conditions.
- Warmup gate: All signals are suppressed until max(LR_length * 3, EMA_length + 5) bars have elapsed. This prevents the statistical noise of early LR calculations from generating false signals.
- Confirmed-bar gate: Signals only fire on barstate.isconfirmed — the final tick of a closed bar — preventing any repainting.
Trend EMA
A 200-period EMA (configurable length) is plotted as a gold line representing the macro trend bias. Position of price relative to the 200 EMA serves as a context filter that traders can apply manually: long signals above the EMA are higher quality, short signals below it are higher quality.
Pivot S/R Zones
Swing pivot highs and lows (configurable left/right bars) generate semi-transparent S/R boxes:
- Resistance zones (from pivot highs): drawn in the bear colour with 89% transparency
- Support zones (from pivot lows): drawn in the bull colour with 89% transparency
Each zone extends forward by a configurable width in bars (default 40) from the pivot bar, or can be extended infinitely to the right. A maximum of 6 zones (configurable) are maintained; older zones are deleted as new ones form.
Daily Signal Counter
The dashboard tracks how many buy and sell signals have fired on the current trading day, resetting at each new daily session (detected via ta.change(time("D"))). This provides a quick intraday reference for signal frequency — useful for understanding whether a session is particularly active or quiet.
Multi-Timeframe Trend Table
Six independently configurable timeframes are assessed using the same linear regression logic: LR close >= LR open on each HTF = bullish; below = bearish. Each cell displays BULL or BEAR in its directional colour. An alignment counter shows how many of the six timeframes agree with the current LR direction. 5+ aligned = strong directional bias (teal); 1 or fewer = strong counter-trend warning (red); middle values show gold.
Inputs Reference
Regression Engine
- LR Length (11) — lookback for all four linear regression calculations
- Signal SMA Length (7) — SMA applied to LR close for crossover signal line
- Trend EMA Length (200) — macro bias reference line
Filters & Signals
- Volume Filter on Signals — require volume > volume SMA
- Volume SMA Length (20)
- RSI Filter on Signals — block overbought/oversold crossovers
- RSI Length (14)
S/R Zones
- Pivot Left/Right Bars (15/10) — pivot detection sensitivity
- Show S/R Zones
- Extend Zones to Right — infinite extension toggle
- Zone Width (40 bars) — forward extension length when not extending to right
- Max Zones to Show (6)
MTF Dashboard
- Show MTF Table
- TF 1–6 — six configurable timeframes (default: 1, 5, 15, 60, 240, D)
Visual
- Bull / Bear Candle Color — OHLC candle colours for flux candles
- Signal Line Color — signal SMA line colour
- EMA Color — trend EMA line colour
- Show Dashboard
How to Use
1. Apply to any liquid market. Use LR length of 9–15 for intraday charts; 20–30 for swing trading.
2. Watch for flux candle colour transitions: a sustained sequence of teal candles above the signal line confirms an uptrend; purple candles below confirm a downtrend.
3. BUY labels appear below the bar when LR close crosses above the signal line with volume and RSI conditions met. SELL labels appear above the bar on crossunders.
4. Prefer signals where the flux candle direction (teal/purple) aligns with the EMA bias AND the MTF table shows 4+ timeframes in agreement.
5. S/R zones from prior pivots serve as target levels and potential reversal points — align entries near these zones for improved risk/reward.
Non-Repainting Design
All signals require barstate.isconfirmed. MTF data uses lookahead_off. LR calculations use only confirmed historical bars (offset 0 is the current bar's regression endpoint based on past data). Signal labels never move after being stamped on a closed bar.
Limitations
- Linear regression candles reduce volatility information. In sharp, impulsive markets, the flux candle series will understate the actual price range. Raw candles should be viewed alongside the indicator for context.
- Short LR lengths (< 7) make the flux candles nearly identical to raw candles; very long lengths (> 30) introduce significant lag into the signal line crossovers.
- The volume and RSI filters may suppress signals during thin trading hours on forex pairs (e.g., Asian session on EUR/USD pairs). Disabling filters during these sessions is a valid adjustment.
- S/R zones are drawn from the pivot confirmation bar, not the pivot bar itself (due to the right-bar confirmation delay). Zone left edges are placed correctly but appear N bars after the actual pivot.
Disclaimer
This indicator is for educational and informational purposes only. Linear regression candles and crossover signals are technical analysis tools and do not predict future price movement. Always use proper risk management and conduct your own analysis.
Made with passion by officialjackofalltrades
Indicator

Temporal Candle Grid [JOAT]Temporal Candle Grid
Overview
Temporal Candle Grid is a multi-timeframe structural confluence indicator that automatically pairs the current chart timeframe with a logical higher timeframe (HTF), fetches the HTF's open, high, low, and close series using non-repainting request.security() calls, and renders the resulting HTF candle geometry as a precision box overlay on the lower timeframe chart. Confirmation counters, buy-side/sell-side liquidity labels, and Fair Value Gap detection operate on confirmed bars only, giving traders a clean, lag-aware view of where HTF price structure begins and ends.
Intelligent Auto-Pairing
The indicator contains a timeframe pairing table that maps the current chart to a contextually appropriate higher timeframe without any manual configuration:
- 1m chart → 15m HTF
- 5m chart → 1H HTF
- 15m chart → 4H HTF
- 1H chart → Daily HTF
- 4H chart → Weekly HTF
- Daily chart → Monthly HTF
This auto-pairing logic ensures the HTF candle shown is always meaningfully larger than the current view — avoiding the degenerate case of pairing a 5m chart with a 10m HTF, which provides almost no additional information.
Users may override the auto-pair by specifying a custom HTF via input.
Non-Repainting HTF Data
Four separate request.security() calls retrieve HTF open, high, low, and close using:
- close offset on the HTF series (current-bar data from the HTF is never used)
- barmerge.lookahead_off
This combination guarantees that the HTF values shown were already fixed before the current bar opened — making the indicator safe for signal generation and alert use without lookahead contamination.
HTF Candle Box Rendering
The HTF candle is rendered as a transparent box spanning the full high-to-low range, with an inner body box (open-to-close) rendered in the candle direction colour (teal for bullish, red for bearish). At each HTF boundary (detected via ta.change() on the HTF open), the previous candle's boxes are finalised and new boxes begin drawing. This creates a visual grid of HTF candles overlaid on the lower timeframe, making the internal structure of each HTF bar immediately visible.
Confirmation Counter for HTF Range Breaks
Rather than signalling the moment price crosses an HTF boundary, the engine counts consecutive closes above the HTF high (for bullish breaks) or below the HTF low (for bearish breaks). A break is only confirmed after the count reaches a configurable threshold (default 2 consecutive closes). This eliminates wick-driven false breaks that resolve within the same HTF session.
Buy-Side / Sell-Side Liquidity Labels (BSL / SSL)
When a confirmed HTF high break occurs, the BSL (buy-side liquidity) level is marked with an upward label at the HTF high. When a confirmed HTF low break occurs, an SSL (sell-side liquidity) label is stamped at the HTF low. These labels persist and serve as reference levels for future pullbacks — common targets in institutional liquidity analysis.
Fair Value Gap Detection
Running on the current timeframe, the FVG engine identifies three-bar price gaps:
- Bullish FVG: Current bar's low is above the high from two bars ago — a gap in downside coverage indicating aggressive buying
- Bearish FVG: Current bar's high is below the low from two bars ago — a gap in upside coverage indicating aggressive selling
FVG boxes are drawn spanning the gap range and extend forward for 30 bars, rendering as reference zones for expected price return.
HTF Candle Projection
On the last bar (barstate.islast), the current in-progress HTF candle is projected forward as a semi-transparent dashed box, giving traders a visual reference for the current HTF session's range as it develops in real time.
Dashboard
A compact table at the bottom right displays:
- Current chart TF and detected HTF
- HTF candle direction (BULL / BEAR)
- Current break confirmation count
- Number of active BSL / SSL levels
- FVG status (open / filled) for the most recent gap
Inputs Reference
- Custom HTF Override — leave blank for auto-pair, enter a TF string (e.g., "60") to override
- Confirmation Bars Required (2) — consecutive closes beyond HTF range before break is confirmed
- Show HTF Candle Boxes — toggles the HTF overlay
- Show BSL / SSL Labels — toggles liquidity sweep labels
- Show FVG Boxes — toggles fair value gap boxes
- FVG Lookback (50) — how many bars back to scan for active FVGs
- Max BSL / SSL Labels (10) — prevents label accumulation over long sessions
- Theme: Dark, Light, Auto
How to Use
1. Apply on a 5m, 15m, or 1H chart. The indicator auto-detects the appropriate HTF.
2. The HTF candle boxes show the full range of each higher-timeframe session. Price tends to respect the HTF open, high, and low as decision levels.
3. Wait for the confirmation counter to reach the threshold before treating a HTF range break as confirmed.
4. BSL labels above prior HTF highs and SSL labels below prior HTF lows indicate pools of resting orders — common institutional sweep targets.
5. FVG boxes within the current HTF candle body often act as intra-session return targets.
Non-Repainting Design
All HTF data uses close with lookahead_off. Break signals require barstate.isconfirmed. FVG detection is based entirely on confirmed historical bars. The projection box at barstate.islast is explicitly marked as in-progress and does not generate signals.
Limitations
- Auto-pairing is based on standard timeframe relationships. Non-standard chart intervals (e.g., 3m, 7m) default to the nearest logical pair.
- The confirmation counter approach adds 1–2 bars of lag to break signals. This is intentional and necessary for non-repainting accuracy.
- On very fast-moving instruments, HTF candle boxes may be violated frequently, limiting their utility as structural references.
- FVG relevance degrades significantly on very high timeframes (Daily+) where gaps are rare and may take weeks to fill.
Disclaimer
This indicator is for educational and informational purposes only. Multi-timeframe structure analysis describes historical price behaviour and does not guarantee any specific future market outcome. Conduct your own analysis and use proper risk management at all times.
Made with passion by officialjackofalltrades
Indicator

Minicharts Pro+ [Herman]Minicharts Pro+
Minicharts Pro+ is a multi-timeframe visualization tool designed to display higher timeframe price action directly on your current chart.
The script renders multiple compact “mini charts” representing selected timeframes, allowing users to observe structure, candle behavior, and relative positioning without switching between charts.
It is intended for traders who want to maintain awareness of higher timeframe context while working on a lower timeframe, without interrupting their workflow.
Purpose
The main purpose of this tool is to improve chart workflow and situational awareness by:
Providing a clear overview of multiple timeframes in one place
Reducing the need to switch between charts
Helping users visually align lower timeframe activity with higher timeframe structure
This script is designed as a visual analysis aid and can be used alongside any trading methodology.
How it works
The indicator uses request.security() to retrieve OHLC data from selected timeframes and reconstructs them as miniature charts displayed on the right side of the screen.
Each mini chart:
Displays historical candles from the selected timeframe
Is scaled dynamically based on recent price range and volatility
Is rendered independently to preserve clarity of structure
The layout is organized in a grid format, where each panel represents a different timeframe.
Users can adjust positioning, spacing, and sizing to fit their chart preferences.
Moving Averages & VWAP
Each mini chart includes optional overlays for additional visual context:
EMA (Exponential Moving Average)
VWAP (Volume Weighted Average Price)
These can be enabled or disabled individually for each mini chart, allowing flexible customization depending on user preference.
Both EMA and VWAP are calculated using standard methods based on the selected timeframe data and are displayed purely for reference.
SMT (Intermarket Comparison)
The script includes an optional SMT-style comparison feature between correlated instruments.
By default, the script automatically selects a related symbol (e.g., NQ ↔ ES, GC ↔ SI)
Users can manually override the symbol if needed
Pivot-based comparisons are used to highlight differences in swing highs and lows between instruments
This feature provides a visual way to compare price behavior between instruments and is based solely on historical price data.
HTF FVG Visualization
Optional higher timeframe imbalance (FVG) zones can be displayed within each mini chart.
Both standard and inverted FVG structures are supported
Users can choose between extended zones or next-bar-only display
Only the most recent inverted FVG is highlighted to reduce visual clutter
These zones are derived from candle relationships within the selected timeframe and are provided for visual reference only.
Inputs & Customization
The script provides multiple configuration options to adapt to different workflows:
Minicharts Setup
Up to 6 independent timeframes
Enable/disable each mini chart
Optional SMT overlay per timeframe
Individual EMA and VWAP toggles per mini chart
SMT Configuration
Automatic or manual symbol selection
Pivot lookback setting
Custom colors for high/low comparisons
HTF FVG Configuration
Enable/disable FVG display
Extension mode selection
Custom colors for bullish, bearish, and inverted zones
Style & Layout
Number of candles displayed per mini chart
Spacing and positioning
Chart size and grid layout
Candle colors and background frames
Timeframe label visibility
Notes
This script is designed for visualization purposes only
It does not generate trading signals, alerts, or recommendations
All calculations are based on historical price data
The tool is intended to support chart analysis, not replace independent decision-making Indicator

Reliable SuperTrend + VWAP + BOS + MTF | Intraday Pro Indicator# 🚀Reliable SuperTrend + VWAP + BOS + MTF | Intraday Pro Indicator
## 🔍 Overview
This indicator is a **professional-grade intraday trading system** built to align with **market structure, volatility, and institutional flow**.
By combining **Pivot-based SuperTrend**, **VWAP positioning**, and **Break of Structure (BOS)** logic, it filters out low-quality trades and highlights only high-probability opportunities.
---
## 🧠 What Makes It Different?
Unlike traditional indicators that rely on lagging signals, this system focuses on:
* ✔ Real market structure (pivot-based trend logic)
* ✔ Institutional bias (VWAP positioning)
* ✔ Smart entries (pullbacks instead of chasing)
* ✔ Early exits (structure-based, not reactive)
👉 Result: **Cleaner signals, better timing, and improved consistency**
---
## ⚙️ Core Features
### 📈 Pivot-Based SuperTrend
* Uses adaptive pivot levels instead of fixed ATR bands
* Tracks real support/resistance zones
* Provides dynamic trailing stop
---
### ⚖️ VWAP Smart Filter
* Trades only when price is decisively above/below VWAP
* Includes ATR-based buffer to avoid noise
* Helps align with institutional trading zones
---
### 🎯 Clean Trend Signals
* One signal per trend → avoids overtrading
* Filters out choppy market conditions
* Focuses on high-quality setups
---
### 🔁 Pullback Entry Engine
* Identifies retracements near VWAP
* Confirms entries using strong momentum candles
* Improves risk-to-reward ratio significantly
---
### 💥 Break of Structure (BOS)
* Tracks recent swing highs/lows
* Detects true structure breaks
* Automatically resets levels to prevent repainting
---
### 🚨 Early Exit System
* Exits trades when structure breaks against position
* Helps protect profits before reversals
* Reduces dependency on stop-loss
---
### 🔍 Advanced Filters
* Volume Filter → avoids weak participation
* Volatility Filter → avoids sideways markets
* Higher Timeframe (HTF) Filter → trade with dominant trend
---
## 📊 Signal Types
* 🟢 **BUY** → Strong bullish trend with VWAP confirmation
* 🔴 **SELL** → Strong bearish trend with VWAP confirmation
* 🔵 **Pullback Buy** → Retracement + bullish momentum
* 🟠 **Pullback Sell** → Rally + bearish rejection
* ❌ **EXIT** → Structure break → exit early
---
## 🎯 How to Use (Simple Workflow)
1. Identify overall trend (optional HTF filter)
2. Wait for main BUY/SELL signals in trending markets
3. Use pullback signals for refined entries
4. Exit early on structure break signals
---
## ⚡ Best Use Cases
* Intraday trading (3m / 5m / 15m)
* Index trading (Nifty / BankNifty)
* Futures and liquid stocks
---
## 💡 Pro Tip
> Trade in the direction of the higher timeframe,
> enter on pullbacks near VWAP,
> and exit on structure break.
> Remove Pullback Buy/Sell for clear chart
---
## ⚠️ Disclaimer
This indicator is for educational purposes only and does not guarantee profits. Always use proper risk management.
---
## 👨💻 Author Note
This system is designed for traders who want **clarity over clutter** — fewer signals, better quality, and structured decision-making.
---
Indicator

Daily Trade Plan Generator [AGPro Series]Daily Trade Plan Generator
Daily Trade Plan Generator — complete morning briefing tool that generates a structured, rules-based trade plan for every new trading day. Combines key levels, multi-timeframe bias, projected volatility range, and adaptive Plan A/B/C playbooks into one premium dashboard.
🔷 OVERVIEW
Most traders start their day scattered — flipping through charts, trying to remember yesterday's highs and lows, guessing where the market might move. Daily Trade Plan Generator replaces that chaos with a single structured briefing. Every new trading day (either at UTC midnight for crypto or at a configurable exchange session open), the script automatically generates a complete plan: where the key levels are, which direction has the stronger multi-timeframe bias, how wide the day is likely to trade, and what the Plan A, Plan B, and Plan C playbooks look like. It is the first tool to open every morning — and it is self-updating, so you never have to reset it.
This is not a signal generator and not a strategy. It is a briefing tool, designed for traders who want to start every session with the same structured preparation a professional desk would do — without spending 30 minutes on it manually.
🎯 UNIQUE EDGE
What separates this script from generic level indicators and daily-high-low plotters:
• All-in-one daily briefing — levels, bias, volatility, and Plan A/B/C in one dashboard, not four separate indicators cluttering the chart.
• Multi-timeframe bias score (0 to 100) blending 1H, 4H, Daily, and Weekly EMA structure with three configurable weighting modes (Fast, Balanced, Conservative) so the bias matches your trading style.
• Asset-class-aware round numbers — the script auto-detects price magnitude and picks sensible round-number intervals (1000 for BTC-scale assets, 0.01 for forex majors, and so on) without manual setup.
• Projected daily range as a visual zone — ATR-based expected high and low rendered either as a semi-transparent rectangle, dashed lines, or both, giving you an immediate read on where price is likely to operate.
• Plan A / Plan B / Plan C structure (user-configurable 1 to 3) — deliberate "Plan" terminology to avoid confusion with pivot S/R notation. Plan language uses historical-pattern framing with no forecasting claims.
• Two refresh anchors plus a "both visible" option — crypto traders get UTC midnight, equities/futures traders get configurable session open, swing traders can see both markers.
• Timeframe-adaptive behavior — on weekly and higher timeframes, PDH/PDL automatically hide (since "previous day" is not meaningful there), and Plan A/B references shift to PWH/PWL for consistency.
• Smart label collision avoidance — PROJ HI/LO, PDH/PDL, and PWH/PWL labels intelligently reposition when too close together, keeping every chart readable at any scale.
• Volatility regime classification (Low / Normal / High) with a context-aware risk note that adapts to market conditions.
🧩 METHODOLOGY
LEVELS. Previous Day High/Low and Previous Week High/Low are pulled via higher-timeframe requests and rendered as persistent lines extending from today's session open to the right. The nearest round number is drawn as a single dotted line on the chart; the full list of nearby round numbers is shown in the dashboard panel to keep the chart clean.
BIAS SCORE. For each timeframe (1H, 4H, 1D, 1W), three components are evaluated: fast EMA versus slow EMA relationship, close versus fast EMA position, and fast EMA slope direction. Each component contributes plus or minus one, averaged to a per-timeframe score between -1 and +1. The four timeframe scores are then combined using the selected weighting mode and normalized to a 0-100 scale. Scores above 65 are labeled Bull, below 35 Bear, and in between Neutral.
VOLATILITY. Daily ATR over the configurable length (default 14) determines the expected range. The range is centered on today's session open and expanded by the Range Multiplier input. ATR as a percentage of open price classifies the regime: below 1% is Low, above 4% is High, in between is Normal.
PLANS. The script composes Plan A (primary, aligned with bias), optionally Plan B (alternative, opposite-side rejection path), and optionally Plan C (range / mean-reversion, activated when volatility is low or bias is neutral). Plan references adapt automatically to chart timeframe — intraday and daily charts use PDH/PDL, weekly and higher charts use PWH/PWL. The language is deliberately conditional and references historical patterns rather than predicting future prices.
🔔 SIGNALS & ALERTS
The script includes five built-in alert conditions:
• New Daily Plan Generated — fires when the daily refresh anchor triggers.
• Price Broke PDH — crossover above Previous Day High.
• Price Broke PDL — crossunder below Previous Day Low.
• Price Exceeded Projected High — crossover above ATR-projected high (volatility expansion).
• Price Exceeded Projected Low — crossunder below ATR-projected low (volatility expansion).
Each alert includes the ticker and relevant price in the message payload, ready to route into any alert handler.
⚙️ KEY INPUTS
• Daily Refresh Anchor — UTC Midnight, Exchange Session, or Both Visible.
• Exchange Session Open Hour — 0 to 23, used when Exchange or Both is selected.
• Key Levels toggles — PDH/PDL, PWH/PWL, Round Numbers individually toggleable.
• Round Numbers in panel — 1 to 5 levels above and below the current price.
• Bias Calculation Mode — Fast (HTF-weighted), Balanced, or Conservative (MTF-weighted).
• EMA Fast / Slow periods — defaults 20 and 50.
• ATR Length and Range Multiplier — control the width of the projected daily range.
• Expected Range Visualization — Zone (Box), Dashed Lines, or Both.
• Number of Plans — A, A+B, or A+B+C.
• Panel Location — six corner/middle positions.
• Panel and Label font sizes — Tiny through Huge, default Normal.
• Panel Theme — Dark or Light, adapts to chart background.
🛠️ HOW TO USE
1. Add the script to your chart at the start of each trading day (or leave it on permanently — it refreshes automatically).
2. Read the dashboard panel top to bottom: LEVELS tell you where the battle lines are, BIAS tells you the dominant direction, VOLATILITY tells you how much room the market has, PLANS give you conditional playbooks for the day.
3. Check the "Risk Note" line — it adapts to the volatility regime and bias. Low volatility suggests patience, high volatility suggests reducing size, neutral bias suggests waiting for a clean break.
4. Use the plotted levels as structural references for your own entries and exits. The projected range box highlights where mean-reversion trades are statistically more likely to work.
5. Set alerts on PDH/PDL breaks and projected-range expansion events to get notified when your Plan A or Plan B is being tested.
6. Adjust the bias mode to match your style: intraday scalpers benefit from Fast (HTF-weighted), position traders often prefer Conservative (MTF-weighted).
⚠️ LIMITATIONS & TRANSPARENCY
• This is a briefing tool, not a strategy or signal generator. It does not open, close, or manage trades.
• All levels and plans are derived from historical data (previous day/week highs and lows, ATR, EMA structure). Past structure does not guarantee future behavior.
• Projected ranges are statistical estimates based on ATR — actual daily ranges can and do exceed them, especially during news events or regime shifts.
• The multi-timeframe bias score is a momentum/trend structure measurement, not a prediction. Markets can reverse at any time regardless of bias.
• Plan language uses historical-pattern framing deliberately. No plan is a forecast; it is a conditional reference for discretionary decision-making.
• On weekly and higher timeframes, PDH/PDL are hidden by design because "previous day" is not a meaningful unit for weekly-horizon decisions. Plan A and Plan B use PWH/PWL as reference in those cases.
• The script does not repaint on closed higher-timeframe bars. The daily open, PDH, PDL, PWH, PWL are locked once the respective higher-timeframe bar closes.
• Round-number auto-detection uses price magnitude; for unusual instruments (very high or very low priced), review the levels manually.
🛡️ RISK DISCLOSURE
Trading involves substantial risk of loss. This script is a technical analysis tool provided for informational and educational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to trade any instrument. Past performance of any pattern, level, or methodology shown is not indicative of future results. Always conduct your own analysis, manage your position size according to your risk tolerance, and consider consulting a qualified financial professional before making trading decisions. The author and AGProLabs assume no liability for any trading outcomes resulting from the use of this tool.
Indicator

8AM ORB Master Strategy8AM ORB Master Strategy
This indicator automates the full 8AM Opening Range Breakout (ORB) strategy, built around a midpoint bounce and reversal setup. The opening range is defined by the 8:00–8:15 AM Eastern session, and the indicator handles everything from range detection to trade management levels — all plotted automatically on your chart.
How it works:
The indicator builds the ORB High, Low, and Midpoint from the first three 5-minute candles of the session. It then monitors for price to interact with the midpoint level and confirm a reversal in either direction. When a valid setup forms, it fires a Long or Short signal and marks all relevant levels instantly.
What gets plotted automatically:
ORB build box (8:00–8:15 window)
ORB High, Low, and Midpoint lines with price labels
Entry arrow with entry price
Stop loss line (ORB Low for longs / ORB High for shorts)
TP1, TP2, and TP3 at 1:1, 1:2, and 1:3 risk/reward
Live entry checklist panel (top-right corner)
Checklist panel includes:
ORB built confirmation, news filter status, midpoint bounce detection, reversal candle confirmation, direction clarity, and a manual reminder to confirm on the 1-minute and 3-minute charts.
Settings:
🚫 News filter toggle — manually disable all signals around high-impact news events
Adjustable bounce zone sensitivity
Toggle TP1/TP2/TP3 individually
Customizable line length and colors
Recommended use: Apply to a 5-minute chart with New York timezone. Use the 1-minute and 3-minute charts alongside this indicator for entry confirmation. Indicator

Strategy

Buy/Sell Volume PressureFX:GBPJPY 1. Overview
The Buy/Sell Volume Pressure indicator is a sophisticated volume-analysis tool designed to reveal the hidden tug-of-war between buyers and sellers. Unlike standard volume bars that only show total activity, this indicator decomposes every candle into its constituent buying and selling components based on price action within the bar (wick-to-body ratio). It provides a smoothed, oscillator-style histogram that identifies trend strength, exhaustion points, and high-probability reversals.
2. Key Features & Calculations
Wick-Based Pressure Estimation: Uses a precise calculation to determine volume distribution. It analyzes where the close sits relative to the high and low. A close near the high attributes more volume to "Buying Pressure," while a close near the low attributes it to "Selling Pressure."
Non-Repainting Multi-Timeframe (HTF) Support: Includes a built-in HTF toggle that allows you to view volume pressure from higher timeframes (e.g., Daily pressure on a 15m chart). Uses the industry-standard offset to ensure data is confirmed and never repaints.
Volume Filter for Accuracy: An optional filter that only validates signals when volume is above its 20-period moving average, ensuring you aren't misled by "low-liquidity noise."
Extreme Zone Detection: Dynamically calculates overbought and oversold "Extreme Zones" based on recent historical ranges, highlighting areas where the trend may be overextended.
WMA Smoothing: Incorporates a Weighted Moving Average (WMA) to provide a clearer trend direction and reduce histogram volatility.
Price-Confirmed Divergences: Automatically detects Bullish and Bearish divergences between price and volume pressure, filtered by swing-point confirmation for higher reliability.
3. How to Use for Trading
Signal Interpretation
Teal Histogram Rising Buyers in control — trend confirmation
Maroon Histogram Falling Sellers dominating — trend confirmation
Zero-Line Cross (→ Positive) Momentum shift — potential long entry
Bullish Divergence (🟢) Price lower low + Pressure higher low = Selling exhaustion
Bearish Divergence (🔴) Price higher high + Pressure lower high = Buying exhaustion
Extreme Zone Highlight Market overextended — watch for reversal patterns
4. Input Parameters
Core Settings
Lookback Period: SMA length to smooth the raw buy/sell difference
Divergence Swing Lookback: Sensitivity of pivot points for divergence detection
Higher Timeframe: Overlay higher-level volume trends (1H, 4H, D, etc.)
Accuracy Improvements
Volume Filter: Only validate signals above average volume
Avg Volume Length: Period for calculating average volume
Visual & Smoothing
WMA Smoothing: Toggle the yellow Weighted Moving Average line
Threshold %: Adjusts how "extreme" the zones must be (top/bottom % of recent range)
5. Alerts Available
Zero-Line Crosses — Momentum shift notifications
Divergence Detections — Bullish/Bearish divergence alerts
Extreme Zone Entry/Exit — When pressure enters/leaves overbought/oversold zones
Indicator

Key Levels Pro [AGPro Series]Key Levels Pro
🔑 Overview
Key Levels Pro is a comprehensive, non-repainting level tracker that consolidates every institutionally significant price reference into one clean overlay. Previous day, week, and month highs/lows (PDH, PDL, PWH, PWL, PMH, PML) are plotted alongside Asian, London, and New York session highs and lows. Every level is actively monitored — touch count, break count, and respect rate update in real time, giving you a live quality score for each price zone.
Most level scripts stop at drawing lines. Key Levels Pro goes further: lines automatically thicken on repeated touches, switch to dashed style when broken, and fade to muted color to signal invalidation. Zone rectangles extend back to the formation bar of each level, making historical respect visible at a glance. An ATR-aware label collision system keeps the chart readable on every timeframe, and same-price levels are intelligently deduplicated so you never see four overlapping labels at the same price.
───────────────────────────────────────────────────────
📐 Unique Edge
Unlike generic pivot or S/R scripts, Key Levels Pro tracks the behavioral quality of each level — not just its existence. A level that has been tested five times without breaking carries a different weight than a fresh, untested one. Key Levels Pro surfaces that difference automatically through line width, style, and panel data.
What makes it distinct:
🔹 Complete previous-period coverage (PDH/PDL, PWH/PWL, PMH/PML) in one overlay, without redundant current-period duplicates.
🔹 Live session tracking for Asian, London, and New York simultaneously, with automatic hiding on Daily and higher timeframes.
🔹 Per-level touch count, break count, and respect rate computed from actual historical price interaction.
🔹 Dynamic line thickening on repeated touches (width 1 → 2 → 3).
🔹 Auto-broken state with dashed style + muted color — no distracting flags or banners.
🔹 Historical zone boxes extending back to the formation bar of each level.
🔹 ATR-aware label collision resolution that stacks overlapping labels vertically.
🔹 Price-based deduplication: when two levels share the same price, the higher-priority one wins (Monthly > Weekly > Daily > Session).
🔹 ATR-normalized proximity to the nearest level above and below the current price.
───────────────────────────────────────────────────────
🔬 Methodology
Previous-period levels are pulled from the daily, weekly, and monthly timeframes using request.security() with lookahead enabled for the completed-period values. This approach is standard, transparent, and non-repainting — historical data does not change.
Session levels are tracked bar by bar using customizable session time inputs. Each session resets at its start time and tracks the running high and low until the session closes. The Asian, London, and New York sessions can each be configured independently.
Touch detection uses an ATR-based tolerance band (default 10% of ATR). When price closes within that tolerance of a level, the touch counter increments. A break is registered when price closes on the opposite side of a level compared to the prior bar. Respect rate is calculated as touches / (touches + breaks) × 100.
Line width scales with touch count: 1 touch = width 1, 2–4 touches = width 2, 5+ touches = width 3. Broken levels switch to dashed style and a muted color.
The label collision system operates in three stages: first, all enabled levels are collected into a sorted array; second, same-price levels are deduplicated based on priority (Monthly highest, Session lowest); third, an upward sweep enforces minimum vertical spacing using a blend of ATR and chart-range heuristics, ensuring labels never overlap regardless of market volatility.
───────────────────────────────────────────────────────
📊 Signals & States
This script is a visualization and data tool — it does not generate buy or sell signals.
Level states are communicated visually:
🔹 Active (solid line, full color): level has not been broken.
🔹 Touched (thicker line, 2–3px): level has been tested one or more times.
🔹 Broken (dashed line, muted slate color): level has been decisively closed through.
Info panel states:
🔹 Session: active market session (Asian / London / New York / Off-Hours / N/A on Daily+).
🔹 Near Above / Near Below: price of the closest active level on each side of the current close.
🔹 Dist Above / Below ATR: distance expressed as a multiple of ATR(14).
🔹 Touch and respect rate data for PDH, PDL, PWH, PWL.
───────────────────────────────────────────────────────
⚙️ Key Inputs
Level Groups: Toggle previous day, week, month, and session levels independently.
Session Times: Fully customizable start/end times for Asian, London, and New York sessions in exchange timezone.
Zone Style: Enable/disable S/R zones and adjust zone transparency.
Lines & Labels: Set line extension length, toggle labels, choose label density (All / Reduced / Minimal), set font size, and enable or disable same-price deduplication.
Info Panel: Toggle panel, set location (six positions), and choose theme (Dark / Light).
ATR Settings: Set ATR period and touch tolerance as an ATR multiple (0.02 to 0.50).
───────────────────────────────────────────────────────
📖 How to Use
1. Add the script to a chart — all major levels appear immediately.
2. Adjust session times if trading non-crypto markets.
3. Watch line thickness: thicker = more tested = stronger historical reaction zone.
4. Dashed + muted color = broken. Treat broken levels as potential new S/R from the opposite side (role reversal).
5. Use the panel's Near Above and Near Below fields to gauge proximity before entry or exit decisions.
6. Use "Reduced" density (default) for cleaner charts, or switch to "All" when you need session context.
7. Works on all asset classes: crypto, forex, equities, indices, commodities.
Recommended timeframes: 15m–4H for session levels; 1H–1D for previous-period levels.
───────────────────────────────────────────────────────
⚠️ Limitations & Transparency
🔹 Session tracking is session-relative and resets each new session.
🔹 Touch tolerance is an ATR-based heuristic and may need adjustment on extremely low-volatility instruments.
🔹 All data is historical. Touch count and respect rate describe past price behavior, not future outcomes.
🔹 This script is not a trading strategy, does not issue trade signals, and cannot predict market direction.
🔹 On exotic or illiquid instruments with large gaps, formation-bar zone boxes may appear truncated if the level formed outside the chart's visible range.
───────────────────────────────────────────────────────
🛡️ Risk Disclosure
This script is provided for informational and educational purposes only. It does not constitute financial advice, investment advice, or a recommendation to buy or sell any financial instrument. All trading involves risk. Past level behavior does not guarantee future results. Always use proper risk management and test any approach in a demo environment before committing real capital. Indicator

Indicator

Indicator

Adaptive Volume-Delta Score (VDS) | Order-Flow & DivergenceThe Adaptive Volume-Delta Score (VDS) is a technical analysis tool for the statistical classification of volume-delta activity. It utilizes an Adaptive-Switch Logic that toggles between historical bar reconstruction (request.security_lower_tf) and a real-time Rolling-Window Live-Tracker.
🛠 Core Functionality
1. The VDS Engine (Statistical Mapping)
Wick-Weighted Delta: The calculation is based on wick-weighting: (close-open)/range * volume. This weights the delta according to price displacement within the bar.
Symmetrical Mapping (-4.5 to 4.5): Raw values are statistically categorized via ta.percentrank and mapped onto a fixed scale.
+4.5 (100% Rank): The absolute maximum within the chosen lookback period.
+2.25 (75% Rank): Significant activity relative to the period.
0 (Median): The statistical midpoint (50% Rank).
-4.5 (0% Rank / Min.): The absolute floor of activity for the period.
Visualization Logic: This mapping is primarily used to plot volume activity and delta aggression within the same visual space, providing a consistent reference frame for comparing relative dominance.
Context Dependency: Signals are not absolute recommendations. The significance depends heavily on the Lookback Period, Thresholds, and the specific market environment.
2. Adaptive Logic & Data Integrity
Signal-Bridge: On lower timeframes (LTF), the indicator simulates the behavior of the Main Timeframe (Main-TF) using a rolling window. This allows for the observation of delta development while the bar is still forming.
🛡️ Integrity Dashboard: Visualizes the statistical consistency between live data and the historical baseline. Deviations (e.g., due to Pine Script's 5000-bar limit) are displayed transparently as warnings.
3. Dynamic Alert System
Automation: Alerts utilize the alert() function with the "Any function call" setting.
Intelligence: Messages are fully dynamic, reporting the mode (Live vs. History), signal type, safeguard status, and data integrity.
🚀 Quick Calibration Guide
Sensitivity: A longer Lookback Period stabilizes the statistics; a shorter period makes the score more reactive to short-term volume spikes.
Threshold Setup: Calibrate the Dominance Threshold (default 3.0) to isolate extreme aggression. Use the Volume Threshold to ensure a minimum level of market participation.
Visual Match: Activate the Price Chart Overlays and adjust your thresholds until the markers (Diamonds) correspond with your individual market interpretation.
Dashboard Check: Monitor the Confidence Score. If red warning values appear, consider adjusting your Lookback or Timeframe to maintain a stable statistical foundation.
🎨 Visual Guide: Understanding the Scale
Navy/Blue Columns: Standard activity within the selected statistical window.
Gray Columns: Phases below the Low Volume Threshold, indicating low relative market participation.
Lime/Fuchsia (Dominance): Occurs when volume and delta simultaneously exceed the defined thresholds (Aggression).
Olive/Maroon (Divergence): Period delta is positive/negative while price action is opposite (Decoupling/Absorption).
Diamonds: Optional projection of oscillator signals directly onto the candles in the price chart.
⚠️ Important Technical Notifications
The "Signal Bridge" (Rolling vs. Fixed Window):
HTF-Request Mode (Fixed): Measures delta starting from the candle open (e.g., 12:00 PM).
Live-Transfer Mode (Rolling): Analyzes a sliding window (e.g., the last 120 minutes). This provides a Lead-Time Advantage, detecting aggression as it happens regardless of the HTF clock. Both modes converge at the HTF bar close.
Data Integrity & Anomalies:
Session Gaps: High Main-TFs (like D1) can be affected by irregular session hours (e.g., Forex Sunday). Always monitor the Confidence Score (🛡️).
Replay Mode:
Displays "No Stat. Control" if historical LTF data is unavailable. We prioritize data honesty over estimated data.
🔔 How to set Alerts (Smart Signals)
Preparation: Open the VDS settings. Under "Alert Settings", choose which signals should trigger: Dominance, Divergence, or both.
Condition: Select "Adaptive Volume-Delta Score...".
Trigger Logic: Change setting to "Any alert() function call".
Frequency: Managed by the script (once_per_bar_close) to ensure statistical honesty.
Timeframe Choice: Use the Main-TF for final confirmed signals, or a Lower-Timeframe for Live-Tracker early warnings.
📊 Statistical Transparency (Data Window)
Raw metrics are displayed exclusively in the PulseWire Data Window to keep the chart clean:
Runtime-Safe LTF: The analysis interval currently in use.
Max Safe Lookback: The mathematical limit for your current setup (5,000-bar ceiling).
Active Bar Limit: The actual usable data foundation.
Converted Sum of LTF Request Bars: The historical baseline used as an anchor for the Live-Tracker.
Relative Live-Data Size: Numerical basis of the Confidence Score (100% = Perfect Integrity).
Overall Requested Bars: Total data points analyzed within your Lookback Period. Indicator

Indicator

Adaptive Confluence Engine [CLEVER]📌 Overview
Adaptive Confluence Engine is a structured, multi-layer technical analysis framework built to evaluate market conditions through weighted confluence rather than single-indicator signals.
The script integrates trend alignment, momentum structure, volatility conditions, participation metrics, and higher timeframe context into a unified scoring model. Instead of treating indicators as isolated tools, each component contributes a defined weight toward an overall directional bias. A signal is generated only when multiple independent conditions align and a structural trigger confirms participation.
This design reduces reliance on any one variable and emphasizes contextual agreement across:
Long-term trend positioning
Medium-term directional structure
Momentum continuation or exhaustion zones
Volatility expansion conditions
Volume confirmation
Higher timeframe bias alignment
Basic price action structure (engulfing behavior)
The engine uses a transparent scoring system where each condition adds measurable value to either bullish or bearish pressure. When the total score exceeds a defined threshold (based on selected signal mode), and a structural EMA crossover occurs, a trade signal is produced.
Importantly, all calculations are performed using confirmed bar data with no forward-looking references. Higher timeframe values are requested with lookahead_off, ensuring non-repainting behavior.
The system does not attempt to forecast price direction. Instead, it identifies moments where market structure, momentum, and volatility conditions are statistically aligned within the current chart environment. The goal is to provide a structured decision-support framework that helps traders evaluate confluence strength and manage risk using adaptive ATR-based projections.
Additionally, the script includes:
Dynamic ATR-based stop loss and multi-target mapping
Optional higher timeframe trend filter
Fair Value Gap (3-candle imbalance) visualization with mitigation tracking
Real-time performance tracking dashboard
Clean visual presentation with minimal chart clutter
This framework is designed as a modular confluence model, allowing traders to adjust signal sensitivity while maintaining consistent internal logic.
📐 Core Concepts
1️⃣ Multi-Factor Confluence Framework
This script is built on the principle of multi-factor condition alignment rather than single-indicator triggering. Instead of generating signals from isolated crossovers or oscillator thresholds, the system evaluates multiple independent analytical dimensions simultaneously. These dimensions include trend structure, momentum state, volatility expansion, participation behavior, directional strength, and higher timeframe alignment. The objective is not to predict price movement, but to measure how many independent technical conditions agree at the same time and quantify that agreement through a structured framework.
2️⃣ Weighted Scoring Architecture
At the core of the engine is a weighted scoring system. Each validated technical condition contributes a predefined numerical value toward a directional bias. When multiple components align in the same direction, their weights accumulate into a total score. That score is then compared against a configurable threshold. Only when the required level of alignment is reached does the system recognize directional bias as structurally valid. This transforms qualitative confluence into a measurable and rule-based evaluation model.
3️⃣ Trend Structure Evaluation
Trend structure within the script is evaluated through moving average positioning and relational hierarchy. Instead of defining trend purely from price direction, the system analyzes the relationship between short-, mid-, and long-term exponential moving averages. It evaluates their order, spacing, and crossover behavior to determine whether the market is in expansion, compression, or transition. This approach treats trend as a dynamic structural condition rather than a fixed directional assumption.
4️⃣ Momentum Confirmation Logic
Momentum is used as a confirmation layer rather than a standalone trigger. Oscillator behavior and crossover states are analyzed in relation to the broader trend structure. Instead of interpreting extreme values as reversal signals, the system evaluates whether momentum supports the existing structural direction. This ensures momentum acts as reinforcement of trend alignment rather than an independent signal source.
5️⃣ Volatility State Measurement
Volatility is measured using the relationship between current Average True Range (ATR) values and their historical average. This allows the system to identify whether the market is in a compression phase or an expansion phase. The measurement does not attempt to predict directional outcomes; it simply classifies the current volatility environment to provide context for price behavior.
6️⃣ Volume Participation Context
Volume is evaluated relative to its moving average baseline to determine whether current participation is above or below recent norms. Instead of assigning directional meaning to volume changes, the system uses it as a contextual filter. It helps identify whether price movement is occurring under increased or reduced market participation conditions.
7️⃣ Higher Timeframe Alignment
The system optionally incorporates higher timeframe trend context by comparing price with higher timeframe EMA structure. This allows lower timeframe signals to be filtered based on broader directional alignment. Higher timeframe data is retrieved using non-forward-looking methods to ensure historical consistency and avoid repainting behavior.
8️⃣ Structural Trigger Dependency
Signal generation requires both scoring alignment and a structural trigger condition. Even when the weighted score meets the required threshold, a structural event such as a moving average crossover is needed for activation. This separation ensures that signals only appear when both internal agreement and structural transition occur simultaneously.
9️⃣ Volatility-Adjusted Risk Projection
Risk levels, including stop loss and target projections, are calculated using ATR-based multipliers. This allows all distance measurements to adapt dynamically to current market volatility. Instead of using fixed values, the system scales projections according to changing market conditions, ensuring consistency across different volatility regimes.
🔒 Data Integrity Principle
All calculations are based on confirmed historical bar data. No future price references are used, and higher timeframe requests are configured without lookahead. Signal generation occurs only after all conditions are fully confirmed, ensuring consistent and non-repainting behavior.
🎯 Key Features
1️⃣ Multi-Condition Confluence Engine
This script is designed around a multi-condition evaluation system where multiple technical components are assessed simultaneously. Instead of relying on a single indicator signal, it combines trend, momentum, volatility, volume, and structural behavior into one unified framework. Each condition contributes independently to the overall directional assessment, allowing the system to evaluate market context through layered confirmation rather than isolated signals.
2️⃣ Weighted Scoring-Based Signal Logic
Signal generation is driven by a weighted scoring model. Each technical condition is assigned a predefined contribution value based on its role in market structure interpretation. These values are accumulated into a total score for both bullish and bearish scenarios. A signal is only considered valid when the accumulated score exceeds a defined threshold, ensuring that multiple independent confirmations are required before any directional output is produced.
3️⃣ Structural Trend Identification
Trend direction is determined through a structured evaluation of exponential moving averages and Supertrend positioning. The relationship between short-term, mid-term, and long-term averages is analyzed to classify market direction and structure. This approach focuses on relative alignment between trend components rather than relying on price alone, allowing clearer identification of directional bias conditions.
4️⃣ Momentum Alignment Layer
Momentum is incorporated as a supporting confirmation layer rather than a standalone signal source. Indicators such as MACD, RSI, and stochastic behavior are evaluated in relation to trend direction. The purpose of this layer is to verify whether internal market momentum aligns with the broader structural direction, helping filter conditions where trend and momentum are inconsistent.
5️⃣ Volatility-Based Dynamic Risk Levels
Risk parameters are calculated using Average True Range (ATR) to adapt to current market volatility. Stop loss and take profit levels are derived using ATR multipliers, allowing distance levels to adjust automatically according to market conditions. This ensures that risk and reward projections remain consistent across both high and low volatility environments.
6️⃣ Higher Timeframe Context Filtering
The system includes an optional higher timeframe filter that evaluates broader market direction using EMA-based structure. This filter helps ensure that lower timeframe signals are aligned with higher timeframe bias when enabled. The higher timeframe data is requested in a non-repainting manner to preserve historical consistency and prevent future data influence.
7️⃣ Structural Signal Trigger Mechanism
Signals are not generated solely from score conditions. A structural trigger, such as an EMA crossover, is required to activate a trade signal. This separation between “condition agreement” and “execution trigger” ensures that signals only appear when both momentum alignment and structural transition occur together.
8️⃣ Fair Value Gap (FVG) Detection & Tracking
The script identifies Fair Value Gaps based on three-candle price imbalance structures. These zones are visualized on the chart and extended dynamically until price interacts with them. Once a gap is fully mitigated by price movement, it is automatically removed. This feature provides structural imbalance visualization without making predictive assumptions.
9️⃣ Trade Level Mapping System
Upon signal generation, the system automatically maps entry, stop loss, and three target levels based on ATR multiples. These levels are plotted on the chart and updated dynamically according to the active trade direction. This creates a structured visual framework for risk and reward reference points.
🔒 Non-Repainting Data Processing
All calculations are based strictly on confirmed bar data. The script does not use future values in any calculation or signal generation. Higher timeframe requests are configured with lookahead disabled to maintain historical accuracy and ensure consistent behavior across all timeframes.
⚙️ How It Works
1️⃣ Data Collection Layer
The script begins by collecting real-time market data from price, volume, and higher timeframe sources. It calculates multiple foundational indicators including exponential moving averages, RSI, MACD, stochastic values, ATR, ADX, Supertrend, and volume averages. Each of these components represents a different aspect of market behavior such as trend direction, momentum strength, volatility state, and participation level. Higher timeframe data is also optionally retrieved to provide broader market context.
2️⃣ Independent Condition Evaluation
After data collection, each technical component is evaluated independently against predefined conditions. For example, moving averages are checked for alignment, momentum indicators are analyzed for directional bias, volatility is compared against its historical average, and volume is assessed relative to its moving average. Each condition produces a logical outcome that contributes to either bullish or bearish interpretation.
3️⃣ Confluence Scoring Process
All evaluated conditions are then passed into a weighted scoring system. Each valid condition adds a specific numerical value to either the bullish or bearish score. These values are accumulated separately for both directions. The system does not rely on a single dominant indicator; instead, it measures the combined agreement of multiple conditions. The final score represents the overall strength of directional alignment at that moment.
4️⃣ Threshold Validation System
Once scoring is completed, the total values are compared against a configurable threshold. The threshold is based on the selected signal mode (Aggressive, Balanced, or Conservative). Only when the accumulated score meets or exceeds the required threshold does the system consider the market condition strong enough for potential signal activation. This step ensures that weak or partial alignment conditions are filtered out.
5️⃣ Structural Trigger Confirmation
Even after passing the scoring threshold, a signal is not generated immediately. The system requires a structural trigger, such as an EMA 21 and EMA 50 crossover or crossunder, to confirm directional transition. This step ensures that signals are only activated when both internal strength (score) and structural movement (trend shift) occur together.
6️⃣ Higher Timeframe Validation (Optional)
If enabled, the system checks higher timeframe trend alignment using EMA-based structure. This step ensures that lower timeframe signals are aligned with broader market direction. If the higher timeframe filter does not support the current direction, signal generation is restricted. This layer acts as a contextual filter rather than a primary trigger.
7️⃣ Risk Level Calculation
Once a valid signal is confirmed, the script calculates entry, stop loss, and take profit levels using Average True Range (ATR). ATR acts as a volatility measurement, allowing risk levels to adjust dynamically based on current market conditions. This ensures that distance between entry and risk/reward levels expands or contracts according to market volatility.
8️⃣ Trade State Management
After signal generation, the system tracks active trade state internally. It records entry price, stop loss level, and three separate target levels. As price moves, the system monitors whether each target or stop level has been reached. This tracking allows structured visualization of trade progression without manual intervention.
9️⃣ Fair Value Gap Monitoring
In parallel with signal logic, the system continuously scans for Fair Value Gaps using three-candle imbalance structures. When such gaps are detected, they are plotted and extended until price revisits the zone. Once price fully interacts with the imbalance area, the gap is removed from the chart. This process runs independently of the main signal system.
🔒 Execution Principle Summary
Overall, the system operates in a sequential flow:
data collection → condition evaluation → score aggregation → threshold validation → structural confirmation → risk mapping → trade tracking.
Each layer functions independently but contributes to a unified decision framework. The design ensures that signals are only generated when multiple analytical conditions align and are confirmed through structural market behavior.
🧭 How to Use This Script
1️⃣ Chart Setup and Activation
To use this script, it should be added directly to a PulseWire chart as an overlay indicator. Once applied, it automatically begins analyzing live market data based on the selected symbol and timeframe. The system does not require manual calculation inputs, as all indicators, scoring logic, and structural conditions are computed internally.
After activation, users can optionally enable or disable visual components such as moving averages, Supertrend, and candle coloring. These settings are designed to allow customization of visual clarity without affecting the underlying logic of signal generation.
2️⃣ Selecting Signal Mode
The script provides three signal sensitivity modes: Aggressive, Balanced, and Conservative. These modes control the minimum score required for signal consideration.
Aggressive mode requires lower confirmation levels and produces more frequent signals
Balanced mode uses a moderate confirmation threshold
Conservative mode requires stronger multi-condition alignment before a signal is displayed
This setting does not change indicator behavior; it only adjusts how strict the confirmation requirement is before signal activation.
3️⃣ Understanding Signal Conditions
Signals are generated only when two conditions are met simultaneously: a structural trend change and sufficient multi-factor score alignment. A trend change is identified through EMA crossover logic, while the score represents the combined strength of multiple technical conditions such as momentum, trend alignment, volatility state, and volume behavior.
Users should understand that signals are not based on a single indicator but on the combined agreement of multiple analytical layers. Therefore, signals appear only when multiple conditions align in the same directional bias.
4️⃣ Reading Buy and Sell Signals
Buy signals appear when bullish conditions align and are confirmed by structural crossover logic. Sell signals appear under the opposite conditions. These signals are displayed directly on the chart using labeled markers.
Each signal represents a point where multiple conditions agree on directional bias and structural confirmation has occurred. Signals should be interpreted as analytical outputs rather than automatic trade instructions.
5️⃣ Using Entry, Stop Loss, and Targets
After a signal is generated, the system automatically plots an entry reference level along with stop loss and three take profit levels. These levels are calculated using ATR-based multipliers, which means they adjust dynamically according to market volatility.
Entry represents the reference price level at signal activation
Stop loss is calculated below or above entry depending on direction
TP1, TP2, and TP3 represent staged target levels based on volatility expansion
These levels are visual guides for structured risk and reward planning and are not fixed price predictions.
6️⃣ Monitoring Trade Progress
Once a signal is active, the system tracks price movement relative to defined levels. If price reaches any target or stop level, it is recorded internally and displayed on the chart. This allows users to observe how price interacts with predefined structure over time.
The system does not automatically execute trades; it only tracks conditions and displays outcomes based on price interaction with levels.
7️⃣ Using Higher Timeframe Filter
If enabled, the higher timeframe filter adds an additional layer of confirmation by checking broader market direction. When this filter is active, signals that conflict with higher timeframe trend are restricted.
This feature is useful for aligning lower timeframe signals with overall market structure, reducing conflicting directional bias across timeframes.
8️⃣ Interpreting Fair Value Gaps
The script also highlights Fair Value Gaps (FVGs), which represent price imbalance areas formed between candles. These zones are displayed on the chart and extended forward until price revisits them.
When price fully interacts with a gap zone, it is automatically removed. These zones are used for structural context only and do not represent guaranteed reversal or continuation areas.
🔒 Practical Usage Summary
In practical use, the workflow is simple:
apply indicator → select signal mode → observe signals → monitor risk/target levels → use higher timeframe filter for context → reference FVG zones for structure.
The system is designed to provide structured technical analysis by combining multiple market factors into a single visual and rule-based framework, without requiring manual calculations.
⚙️ Settings & Customization
1️⃣ Signal Mode Customization
The script provides a Signal Mode option that controls how strict the confirmation logic is before a signal is displayed. This setting adjusts the internal score threshold required for signal validation, without changing the underlying calculations.
Aggressive Mode lowers the confirmation requirement, allowing signals to appear with fewer aligned conditions.
Balanced Mode applies a moderate threshold and represents a middle-ground filtering approach.
Conservative Mode increases the confirmation requirement, meaning more conditions must align before a signal is generated.
This setting is used to control signal sensitivity based on user preference and market style.
2️⃣ Moving Average Visibility Settings
Users can enable or disable different moving averages to customize chart clarity.
EMA 200 represents broader structural trend and can be enabled for long-term context
EMA 50 provides mid-term trend structure reference
EMA 21 is used internally for signal logic and crossover detection
These options are visual only and do not affect internal calculations or signal generation logic.
3️⃣ Supertrend Display Control
The Supertrend line can be toggled on or off depending on user preference. When enabled, it provides an additional visual representation of directional trend structure. This setting is designed purely for chart visualization and does not modify the scoring or signal logic.
4️⃣ Candle Coloring Option
The script includes an optional candle coloring feature based on trend direction relative to EMA 200. When enabled, candles are visually colored to reflect broader market bias.
This feature is only for visual assistance and does not influence signal generation or internal decision-making.
5️⃣ Risk and Reward Configuration (ATR Multipliers)
The script allows full customization of risk and reward structure using ATR-based multipliers:
Stop Loss multiplier controls how far stop levels are placed relative to entry
TP1, TP2, and TP3 multipliers define progressive target distances
Higher values increase distance between entry and levels, while lower values reduce spacing. These settings adapt automatically to volatility because they are based on ATR rather than fixed price points.
6️⃣ Higher Timeframe Filter Settings
Users can enable or disable higher timeframe confirmation. When enabled, the script compares current price structure with a higher timeframe EMA 200 trend.
If enabled, signals are filtered based on broader directional alignment
If disabled, only current timeframe conditions are used
The timeframe itself can also be adjusted, allowing flexibility in how broader market structure is evaluated.
7️⃣ Fair Value Gap (FVG) Settings
The FVG module includes customization options for imbalance detection and visualization.
Bullish and bearish FVG colors can be adjusted for clarity
Maximum active FVG limit controls how many zones remain visible on the chart
This ensures chart performance remains stable even during high activity conditions.
8️⃣ Dashboard Position Customization
The analytics dashboard can be placed in different chart areas:
Top Left
Top Right
Bottom Left
Bottom Right
This allows users to adjust layout based on chart space and personal preference. The dashboard itself displays live system data and does not affect calculations.
🔒 Customization Principle Summary
All settings in the script are designed to control visual appearance, signal sensitivity, and risk structure, without modifying the core analytical engine.
The internal logic always remains consistent, while customization options allow users to adjust how signals are filtered, displayed, and interpreted.
⚙️ Mashup Design Justification (House Rules Safe Explanation)
This script combines multiple technical components, but it is not a simple “indicator stacking” or random merge. It is structured as a single analytical framework where each component has a defined role inside a unified decision model. The purpose of combining these tools is to evaluate different dimensions of market behavior in a controlled and rule-based manner.
1️⃣ Why the Scoring Model Exists
The scoring model exists to convert multiple independent market conditions into a single structured evaluation output. In traditional single-indicator systems, signals are generated when one condition is met, which can lead to inconsistent behavior across different market environments.
In this framework, each indicator does not act as a standalone signal generator. Instead, each one contributes a weighted value representing a specific market dimension such as trend alignment, momentum strength, volatility state, or participation level. These values are accumulated into a total score.
The purpose of this design is to measure confluence strength, meaning how many independent technical conditions are aligned at the same time. A signal is only considered valid when enough conditions agree, which is why scoring is used instead of binary logic.
2️⃣ Why EMA Crossover is Used as a Trigger
The EMA 21 and EMA 50 crossover is used as a structural trigger mechanism, not as a standalone trading signal.
The scoring model identifies whether market conditions are aligned, but it does not define when the market is actually transitioning. The EMA crossover is used to detect this transition point in structure.
This separation is important:
Scoring = evaluates market condition strength
EMA crossover = confirms directional structural change
A signal is only generated when both conditions occur together. This prevents signals from appearing during weak or sideways alignment where no structural shift has occurred.
3️⃣ Why Higher Timeframe (HTF) Filter is Used
The higher timeframe filter is included to provide multi-layer market context. Markets behave differently across timeframes, and lower timeframe signals can sometimes conflict with broader directional structure.
The HTF filter compares current price structure with higher timeframe EMA-based trend direction. When enabled, it ensures that lower timeframe signals are only considered when they are not opposing the broader trend environment.
The purpose of this filter is not prediction, but context alignment, ensuring that signals are consistent across multiple timeframes instead of being isolated to a single chart view.
4️⃣ Why ATR-Based Risk Model is Used
ATR (Average True Range) is used to define dynamic risk levels because market volatility is not constant. Fixed stop loss and target values do not adapt to changing market conditions, which can lead to inconsistent risk structure across different volatility phases.
In this script, ATR is used to calculate:
Stop loss distance
Take profit levels (TP1, TP2, TP3)
This ensures that all risk and reward levels automatically adjust based on current market volatility. During high volatility, levels expand; during low volatility, they contract.
The purpose of this design is to maintain volatility-adjusted consistency, not to predict price movement.
5️⃣ Why Multiple Indicators Are Combined
Each included indicator serves a different analytical function:
EMA system → trend structure
Supertrend → directional confirmation
MACD → momentum alignment
RSI → relative strength positioning
Stochastic → short-term momentum shifts
ADX → trend strength measurement
Volume filter → participation context
ATR → volatility scaling
HTF filter → higher timeframe structure
FVG detection → imbalance visualization
These are not combined to create multiple signals. Instead, they are used to evaluate different dimensions of the same market condition.
The system only generates output when multiple independent conditions agree, which is why it is structured as a confluence-based analytical model, not a simple indicator mashup.
🔒 Final Compliance Summary
This script is designed as a unified decision framework where:
Indicators do not function independently as signal generators
Scoring system evaluates confluence strength
EMA crossover defines structural transition
HTF filter ensures contextual alignment
ATR ensures volatility-adjusted risk mapping
The combination is structured to represent a single rule-based system for market condition evaluation rather than multiple disconnected indicators.
📝 Final Notes (House Rules Safe)
This script is designed as a structured analytical framework that combines multiple technical components into a single unified evaluation system. Each included element serves a specific role within the overall logic, such as trend identification, momentum evaluation, volatility measurement, structural confirmation, and contextual filtering.
The system does not rely on any single indicator to generate signals. Instead, it uses a rule-based confluence approach where multiple independent conditions must align before a signal is considered valid. This reduces dependence on isolated market readings and ensures that outputs are generated only when broader technical agreement is present.
All indicators used in the script are applied in a supporting role within a scoring and confirmation structure. They are not interpreted individually as standalone buy or sell signals. The scoring model ensures that each condition contributes proportionally to a combined directional assessment.
Signal generation is further controlled through a structural trigger mechanism, such as moving average crossover logic. This ensures that signals only appear when both condition alignment and structural transition occur together, rather than from static or partial alignment.
Risk and target levels are calculated using ATR-based volatility measurement, allowing all distance-based projections to adjust dynamically according to current market conditions. This ensures consistency across different volatility environments without relying on fixed values.
Higher timeframe filtering is optionally included to provide broader market context and ensure alignment with larger structural direction when enabled. This helps maintain consistency between lower timeframe signals and overall trend environment.
Fair Value Gap detection is used as a structural visualization tool to highlight price imbalance areas. These zones are tracked dynamically and removed when mitigated by price interaction, providing additional context without influencing signal logic.
Overall, the system operates as a rule-based confluence engine where multiple market dimensions are evaluated together. The goal is to present structured, condition-based analysis rather than isolated indicator outputs, while maintaining consistent, non-repainting behavior based on confirmed data only.
⚠️ Final Notes
This indicator is designed as a multi-layer confluence engine that combines trend, momentum, volatility, and market structure into a single scoring-based decision system. It is important to understand that no trading system guarantees accuracy in all market conditions, and this tool should be treated as a decision-support framework, not a standalone trading guarantee.
The strength of this model comes from its confluence logic, where multiple independent signals (trend direction, momentum strength, volume activity, and higher timeframe bias) must align before a valid trade signal is generated. This reduces random entries and focuses only on structured market conditions where probability is higher.
The built-in ATR-based risk system (SL/TP) ensures that trade management adapts dynamically to volatility rather than using fixed pip values. However, risk levels should always be adjusted according to account size and personal risk tolerance.
The dashboard and scoring system are intended to provide transparency, helping traders understand why a signal is generated rather than blindly following entries. Users are encouraged to test and optimize settings based on their own trading style and market conditions.
⚠️ Disclaimer
This script is developed for educational and informational purposes only. It does not provide financial advice, investment recommendations, or guaranteed trading outcomes.
Trading in financial markets (Forex, crypto, indices, or stocks) involves high risk, and you may lose part or all of your capital. Past performance of this indicator does not guarantee future results.
Users are solely responsible for their trading decisions. It is strongly recommended to:
Use proper risk management
Test the strategy on demo accounts first
Avoid over-leveraging
Combine with personal analysis before execution
The developer holds no responsibility for any financial losses incurred from the use of this indicator. Indicator

Macro TWAPMacro TWAP shows multiple time-weighted average price levels across long-term and short-term periods, including 30Y, 20Y, 10Y, 5Y, yearly, quarterly, monthly, weekly, and daily TWAP. Useful for identifying macro mean levels, higher-timeframe structure, and dynamic support/resistance. Indicator

Saturation Peak Detection [PhenLabs]📊 Saturation Peak Detection
v1.0 — S/R zones planted only when momentum peaks and pulls back — no sweep noise, only saturation-confirmed structure
📌 OVERVIEW
Saturation Peak Detection (SPD) plants support and resistance zones only at price levels where a momentum proxy has demonstrably exhausted. Most S/R tools mark every swing pivot — SPD adds a mandatory saturation gate: a zone only forms when the momentum proxy (RSI, ROC, or MFI) has peaked within a lookback window and then pulled back by a configurable % from that peak. If momentum hasn’t saturated, no zone is drawn.
The result is a smaller set of higher-conviction structural levels, each backed by a quantifiable momentum exhaustion event — easier to audit, easier to trust.
HOW IT WORKS
Momentum Proxy Computation
Choose RSI, ROC (Rate of Change), or MFI (Money Flow Index) — all standard, public-domain oscillators
The selected proxy is computed over a configurable length (default: 14 bars)
An optional second-pane plot shows the raw momentum series, rolling peak, and rolling trough for visual reference
Rolling Peak and Trough Tracking
Rolling peak : highest momentum value within the last N bars (configurable Peak Lookback)
Rolling trough : lowest momentum value within the same window
The price at the bar of the peak/trough is stored as the zone anchor
Saturation Trigger
Bear saturation : momentum drops ≥ Pullback % below its rolling peak → resistance zone planted at the peak-bar’s price
Bull saturation : momentum recovers ≥ Pullback % above its rolling trough → support zone planted at the trough-bar’s price
All triggers gated on barstate.isconfirmed — no intrabar firing, no repainting
Latch + Cooldown System
Each unique peak/trough can only create one zone — the latch tracks the bar index of the last-used peak/trough and blocks a re-trigger on the same event
A configurable Zone Cooldown (default: 10 bars) enforces a minimum spacing between any two zone creations
Together these prevent consecutive-bar spam and cluster stacking
Zone Management
Each zone is an ATR-wide filled rectangle centered on the anchor price — context-relative thickness
A dashed invalidation line sits at a configurable offset beyond the zone boundary
When price closes past the invalidation line, the zone is greyed out (non-destructive — stays visible for audit)
Maximum active zones cap (default: 3) with oldest-valid-first eviction
🔑 POINTS OF INNOVATION
Saturation gate : zones require quantified momentum exhaustion, not just a price pivot — fundamentally different from standard S/R tools
Three interchangeable proxies : RSI, ROC, MFI — swap based on market type (RSI for equities/crypto, ROC for pure momentum, MFI for volume-heavy instruments)
Peak-price anchoring : the zone is planted at the price of the momentum peak bar, not the trigger bar — precise anchor to where buyers/sellers actually exhausted
Single-concept extractability : clean, auditable logic with one mechanism — easy to backtest, explain, and extend
Non-destructive invalidation : invalidated zones stay visible in grey, preserving historical structure context without cluttering the active signal layer
🔧 SETTINGS
Momentum Proxy
Momentum Source | Default: RSI | Options: RSI, ROC, MFI
Momentum Length | Default: 14 | Range: 2–100
Peak Lookback (bars) | Default: 50 | Range: 5–300 | Window for detecting rolling peak/trough
Saturation Trigger
Pullback % from Peak | Default: 10.0 | Range: 1.0–50.0 | Momentum must pull back this % to confirm saturation. Higher = rarer, stronger zones
Zone Cooldown (bars) | Default: 10 | Range: 0–100 | Minimum bars between zone creations
Zone Settings
Max Active Zones | Default: 3 | Range: 1–10
ATR Length | Default: 14 | Used to compute zone height
Invalidation Offset (%) | Default: 0.3 | Zone is invalidated when price closes this % beyond the outer boundary
Display
Show Momentum Line (Pane 2) | Default: ON | Plots momentum proxy + rolling peak/trough in a separate pane
Show Zone Labels | Default: ON | Labels show zone type and momentum value at peak
Colors
Support Zone, Resistance Zone, Invalidation Line, Trigger Marker — all fully customizable
🔥 ALERTS
SPD — Bear Saturation Zone : fires when a resistance zone is planted (momentum peaked, pullback confirmed)
SPD — Bull Saturation Zone : fires when a support zone is planted (momentum troughed, recovery confirmed)
🎨 VISUAL GUIDE
Teal filled rectangle = active support zone (bull saturation confirmed)
Red filled rectangle = active resistance zone (bear saturation confirmed)
Grey filled rectangle = invalidated zone (price closed beyond invalidation line)
Dashed grey line = invalidation level for each zone
Orange triangles = saturation trigger markers (▲ below bar = bull, ▼ above bar = bear)
Purple line (pane 2) = raw momentum proxy
Red step line (pane 2) = rolling peak | Teal step line (pane 2) = rolling trough
📖 USAGE NOTES
Designed for 1H, 4H, and Daily timeframes — where momentum exhaustion is most structurally significant
RSI works best on equities and crypto where overbought/oversold levels are well-studied
ROC is better for pure price momentum without smoothing — use on trending futures and forex pairs
MFI adds volume confirmation — best on high-volume instruments where volume leads price
Increase Pullback % to 15–20% for fewer, higher-conviction zones; reduce to 5–8% for more frequent signals on lower timeframes
The zone anchor is the price at the momentum peak bar — this is the level where participants exhausted, not the trigger bar
Use the dashed invalidation line as a hard stop reference — a close beyond it means the zone has been absorbed
✅ WORKS WELL WITH
Volume Profile tools (confirm zone with high-volume nodes)
VWAP / Anchored VWAP (zone + VWAP confluence = stronger level)
Trend filters (EMA, Supertrend) for directional bias before entering at a zone
ATR-based position sizing (zone width already ATR-scaled — align stop to invalidation line)
⚠️ DISCLAIMER
This indicator is for educational and research purposes only. It is not financial advice and does not constitute a trading recommendation. Past performance does not guarantee future results. Always conduct your own analysis before making any trading or investment decision.
Indicator
