Pro Levels & Zones [MTE]Pro Levels & Zones
An intraday futures overlay that combines pivot-based supply and demand zones with multi-session key levels and a confluence-based signal filter. The core idea is that zones alone generate too many potential entries — by requiring alignment across multiple independent factors before labeling a zone touch, the indicator filters out low-conviction setups and highlights where several references converge.
HOW IT WORKS
Supply & Demand Zone Detection
Zones are built from 60-minute pivot highs and pivot lows using a 3-bar left / 3-bar right pivot structure. When a pivot high is confirmed, the area between the candle's high and the top of its body becomes a supply zone (red). When a pivot low is confirmed, the area between the candle's low and the bottom of its body becomes a demand zone (green). Zones extend forward in real time and are automatically removed when price closes beyond the zone boundary or when the zone exceeds a configurable age limit (default: 500 bars). Only the 3 most recent zones per side are kept to avoid chart clutter.
Confluence Scoring (signal filter)
When price enters a fresh (unused) zone, the indicator checks up to 5 independent factors before printing a signal:
1. Volume delta direction — estimated from the bar's close position within its range. A buy signal requires positive delta; a sell signal requires negative delta.
2. VWAP proximity — whether price is near the session VWAP (within 0.15% of current price).
3. Key level proximity — whether price is near a relevant prior-session level (PDH, PDL, PMH, PML).
4. POC proximity — whether price is near the intraday volume Point of Control.
5. VWAP trend bias — whether price is on the "right side" of VWAP for the signal direction (buy below VWAP, sell above).
Each matching factor adds 1 to the score. The signal label displays the count (e.g., "Buy 4/5") so traders can see at a glance how many factors aligned. A configurable cooldown (default: 12 bars) prevents repeated signals in the same area. An additional filter requires bearish candle close for sells and bullish candle close for buys.
Note: The confluence score is simply a count of how many factors happen to align at the moment of zone contact. A higher count does not predict or guarantee a successful trade. It is a filtering tool, not a performance metric.
SESSION LEVELS & KEY LEVELS
The indicator tracks and displays levels from multiple sessions:
- London session high/low — plotted as live-updating steplines during the session, then held after session close.
- Asia session high/low — same behavior, off by default.
- Key levels drawn as dashed horizontal lines: Previous Day High/Low/Close (PDH/PDL/PDC), Pre-Market High/Low (PMH/PML), Previous Week High/Low (PWH/PWL), Overnight High/Low (ONH/ONL), and the RTH Opening Print. All are off by default and individually toggleable.
Previous day and week values use request.security() with a offset and lookahead_on, which is the standard method to reference the prior completed period without future data leakage.
ADDITIONAL TOOLS (all off by default)
- VWAP — standard session-anchored VWAP using ohlc4 as source.
- POC — intraday volume Point of Control calculated by distributing each bar's volume into a 100-bin histogram across the RTH price range, then finding the bin with the highest accumulated volume. Resets daily.
- Fair Value Gaps — bullish and bearish imbalances detected when a gap exists between bar 's low and bar 's high (or vice versa), filtered by a minimum percentage size (default: 0.15%). FVGs auto-expire after 40 bars. Maximum 6 active FVGs.
- Opening Range — plots the RTH opening range as a box (15 or 30 minute, configurable). Extends through the session.
WHY THIS COMBINATION
Most zone-based approaches generate signals every time price touches a zone, regardless of context. This indicator addresses that by requiring zone contact AND directional volume AND candle confirmation before printing anything, then layering additional context (VWAP, key levels, POC) as a visible confluence count. The result is fewer signals that occur only at zones where multiple independent references happen to converge.
The session levels (London, Asia, pre-market, overnight) are included because futures often react at session boundaries, and having them as toggleable overlays avoids needing separate indicators cluttering the chart.
HOW TO USE
1. Apply to a 1-15 minute intraday futures chart (defaults tuned for NQ on 5 min).
2. Adjust "Min Zone Size" for your instrument (NQ: 20-50 pts, ES: 5-15 pts).
3. Watch for Buy/Sell labels at zone touches. Higher confluence counts (4/5, 5/5) mean more factors aligned — use your own judgment on whether the context supports a trade.
4. Toggle key levels on/off depending on which session references matter to your trading approach.
5. All features are independently toggleable. Start with zones + signals, then add levels as needed.
DEFAULT SETTINGS
- Zones: ON, min size 20 pts, max age 500 bars
- Signals: ON, cooldown 12 bars, volume delta confirmation ON
- London session levels: ON
- All other levels and tools: OFF
LIMITATIONS
- Volume delta is estimated from bar close position within range — it is not true order flow data.
- POC uses a 100-bin histogram which is an approximation, not tick-level volume profile.
- Confluence scoring counts factor alignment but does not predict outcomes. Past confluence patterns do not guarantee future results.
- Zone detection has a 3-bar lag due to pivot confirmation.
- Designed for futures instruments. Adjust zone size settings for other markets.
Indicator

LVN FinderLVN Finder by QuantShok (JacobS369)
This script automatically identifies Low Volume Nodes (LVNs) from a calculated volume profile and plots them as horizontal levels on your chart. LVNs are price levels where relatively little volume has traded compared to surrounding areas — these zones often act as areas of low resistance where price moves quickly, or as potential support/resistance when retested.
The script builds a high-resolution volume profile over a configurable lookback period, pulls in 1-minute data for added granularity, scans for statistically significant volume valleys, merges nearby levels to reduce clutter, and draws them on your chart with a price table for quick reference.
Default settings are optimized for NQ (Nasdaq 100 Futures) on a 5-minute chart.
Settings Breakdown
Volume Profile Settings — These control the foundation of the profile itself. "Number of Rows" sets the resolution of the volume profile — higher means more granular detection but heavier computation. "LVN Lookback Days" determines how many trading days of data the profile is built from; shorter lookbacks give you more recent/relevant levels, longer lookbacks capture broader structure. "Rebuild Interval" controls how often the profile recalculates — set to 1 for a fresh rebuild every trading day.
LVN Detection — This is where you fine-tune what qualifies as a true LVN. "Window Size %" sets how wide the local neighborhood is when checking if a price row is a volume minimum — smaller values find tighter, more precise valleys while larger values only catch broader dips. "LVN Prominence %" is the most important filter — it requires that the volume valley drops at least this much below the surrounding peaks. Raise it to only see the most significant LVNs, lower it to surface more levels. "Use LVN Min Volume Filter" lets you exclude valleys that fall in extremely low-activity zones where the level may not be meaningful.
LVN Display — Toggle visibility, pick your line color, and set the line width.
Level Management — "Merge Nearby Levels" combines LVNs that are close together into a single level, keeping the one with the lowest volume. You can control the merge threshold by tick distance or percentage — useful to avoid clusters of redundant lines. "Extend Lines" controls how far the levels project forward on your chart. "Limit LVN Count" caps the total number of levels shown, prioritizing the lowest-volume (strongest) LVNs first.
Adapting to Other Instruments
If you're using this on something other than NQ, the main settings to adjust are merge distance (ticks and percentage) since different instruments have different tick sizes and price scales, prominence percentage depending on how cleanly volume distributes on that instrument, and lookback days based on how far back the relevant volume structure extends. For tighter instruments like ES, you might lower the merge ticks. For something like crypto with wider ranges, bump up the merge percentage and potentially lower the prominence threshold. Indicator

Indicator

Multi-Index VWAP DashboardTo post this on the PulseWire Community Scripts, you want a description that highlights its multi-instrument correlation and institutional session data. It’s not just a VWAP indicator; it’s a "Tape Reading" dashboard for index traders.
Here is a structured description you can copy and paste:
Description
Overview
The Multi-Index Institutional VWAP Dashboard is a high-performance Tape Reading tool designed for NQ, ES, and YM traders. It provides a real-time "at-a-glance" matrix of how the three major US Indices are performing relative to critical institutional benchmarks. Instead of cluttering your main chart with dozens of lines, this dashboard compiles the data into a clean, Bookmap-inspired UI.
Key Benchmarks Tracked
The dashboard monitors price action for NQ, ES, and YM against:
NY VWAP: Anchored specifically to the New York Open (09:30 AM ET).
PD NY VWAP: The closing value of the previous day's New York session VWAP—a major level for institutional mean reversion.
LOD/HOD Anchored VWAP: Dynamic VWAPs that re-anchor automatically to the current Day's High and Day's Low.
15m Opening Range (OR): Detects if price is trading Inside, Above (▲), or Below (▼) the first 15 minutes of the NY session.
Trend Matrix: A real-time momentum filter for each index to identify cross-market divergence.
Features
Bookmap Style Visuals: Uses custom bubble icons (◎) for a modern, heat-map aesthetic.
Timezone Optimized: Hard-coded for New York Session hours while respecting your local chart offset.
Customizable Layout: Full control over dashboard position (Top/Bottom/Corners) and text sizing to fit any monitor resolution.
Cross-Index Correlation: Easily spot "SMT Divergence" (e.g., when NQ is above its NY VWAP but ES is below it).
How to Use
Bullish Confirmation: Look for "All Green" bubbles across all three indices, specifically price holding above the NY VWAP and OR High.
Mean Reversion: Use the PD NY VWAP and HOD/LOD VWAP as targets or areas of interest for potential reversals.
Trend Divergence: If NQ is showing "Bullish" while YM is showing "Bearish," exercise caution as the indices are decoupled.
Settings Tips
Position: Move the dashboard to the "Bottom Right" if you have other indicators at the top.
Style: Toggle between "Solid," "Bubble," or "Ring" icons in the script settings to match your chart's theme. Indicator

Strategy

Strategy

Indicator

Strategy

Institutional Value Relocation VerdictSummary in one paragraph
Value Relocation Verdict ARD is an acceptance versus rejection classifier for liquid instruments on intraday to daily timeframes. It helps you act only when multiple conditions align after price pushes beyond a boundary. It is original because it treats every break as a probe and scores whether value is relocating using a break anchored VWAP relocation metric fused with time outside, extension, outside volume share, pullback quality, and failure velocity back into value. Add it to a clean chart, read the compact decision table, and use the visuals or alerts. Shapes can move while the bar is open and settle on close. For conservative alerts select on bar close.
Scope and intent
• Markets. Major FX pairs, index futures, large cap equities, liquid crypto
• Timeframes. One minute to daily
• Default demo used in the publication. NQ1! on 15 minute
• Purpose. Prevent trading raw breakouts and raw fades before the market proves acceptance or rejection
• Limits. This is an indicator. It does not place orders and does not simulate fills
Originality and usefulness
This is not a mashup of common indicators. It is a state machine that measures what happens after a boundary is breached.
• Unique concept or fusion. Breaks are treated as probes and classified by value relocation using break anchored VWAP plus behavioral metrics outside the boundary
• What failure mode it addresses. False starts in chop, one bar breakouts that reverse, and fades taken too early when value is actually relocating
• Testability. The table shows the live decision, the two competing scores, and the driver metrics so users can verify why a suggestion appears
• Portable yardstick. All distances are normalized in ATR units so thresholds travel better across symbols
• Protected scripts. Public open source, implementation visible
Method overview in plain language
Base measures
• Range basis. True Range smoothed with ATR over ATR length
• Value basis. Session anchored VWAP defines a value center, with a configurable VWAP band as the value zone
Components
• Boundary selection. Choose prior day high and low, opening range, prior week high and low, VWAP band edges, or custom levels
• Probe state. A probe begins when price crosses a boundary. The boundary is frozen for the probe so time outside and velocity are measured consistently
• Acceptance score. A 0 to 100 score built from closes outside, max extension beyond the boundary, outside volume ratio, break anchored VWAP relocation, defense touches, expansion context, and a pullback penalty
• Rejection score. Evaluated only when price re enters the boundary. It fuses sweep size, snapback depth, fail velocity, speed of re entry, RVOL, compression context, and a value zone re entry bonus
• Context regime. A light regime classifier uses session VWAP slope and a higher timeframe EMA slope to bias acceptance slightly in trend direction and boost rejection slightly in ranges
• Session windows optional. Session follows the exchange time of the chart. Verify when changing symbol or venue
Fusion rule
• Two separate scores are maintained during a probe: Acceptance score and Rejection risk
• During the probe, the table shows a Lean decision based on the score spread: Acceptance score minus Rejection risk
• Thresholds for ACC and REJ are explicit in Inputs and the drivers are visible in the table
Signal rule
• ACC Up appears when a probe above the boundary reaches acceptance score threshold for the configured confirm bars, closes remain outside the buffer, and chase distance is not excessive
• ACC Down is symmetric for probes below the boundary
• REJ Up appears when price re enters the boundary after probing above and rejection score meets its threshold
• REJ Down is symmetric for probes below the boundary
• WAIT shows when no probe is active or when neither side has a clear edge
What you will see on the chart
• Active boundary line. Thick line at the frozen probe boundary
• Value zone. Optional VWAP band fill and optional VWAP lines for context
• Probe band. Optional thin band around the boundary equal to the outside buffer
• Break VWAP. Optional line during the probe that shows break anchored VWAP
• Markers. ACC and REJ markers on the bar where the model resolves
• Optional plan overlay. Entry, stop, and target lines for the last resolved signal, informational only
• Compact table. A decision dashboard with Lean, State, Regime, ACC score, REJ risk, and the drivers
Table fields and quick reading guide
• Decision. Lean ACC, Lean REJ, or Wait
• State. Idle, Probe Above, Probe Below, Waiting Levels, or Out of Session
• Regime. Trend Up, Trend Down, or Range
• ACC Score. 0 to 100 plus a bar gauge
• REJ Risk. 0 to 100 plus a bar gauge
• Boundary. Frozen boundary price during the probe
• Value VWAP. Session anchored VWAP price
• Outside. Closes outside count versus Accept min closes outside
• Delta. ACC Score minus REJ Risk, used to express separation
• Drivers shown by preset. Extension ATR, Reloc ATR, Out Vol, Pull ATR, RVOL, Fail Vel, Sweep ATR, Snap ATR, Expansion, Compression
Reading tip. When Session is ON and Delta shows clear separation, outcomes tend to be easier to manage than when both scores are similar.
Inputs with guidance
Setup
• Theme. Dark or Light. Matches chart background for readability
• Preset. Minimal, Standard, Pro. Minimal is the clean chart default
• Session and Require session. Typical use is ON for index futures and intraday equity sessions
• Cooldown bars. Typical range 0 to 15. Higher reduces clustered probes
• Max probe bars. Typical range 20 to 120. Lower avoids stale probes
• Decision delta. Typical range 10 to 25. Higher demands more separation before leaning
Levels
• Mode. Prev Day HL, Opening Range, Prev Week HL, VWAP Band, Custom
• Opening range minutes. Typical 15 to 60 on intraday charts
• Break trigger. Close is more conservative. Wick is earlier but noisier
• VWAP band width ATR. Typical 0.5 to 1.5
• Custom upper and Custom lower. Only active in Custom mode. Both must be greater than 0 and upper must be greater than lower
Scoring
• Outside buffer ATR. Typical 0.05 to 0.30. Higher requires stronger closes outside
• Accept min closes outside. Typical 3 to 10. Higher confirms slower relocations
• Accept min extension ATR. Typical 0.6 to 1.8. Higher demands stronger expansion
• Accept min outside volume ratio. Typical 0.45 to 0.80. Higher demands conviction
• Accept min relocation ATR. Typical 0.10 to 0.50. Higher demands value shift beyond the boundary
• Accept max pullback ATR. Typical 0.30 to 1.00. Lower penalizes weak holding
• Accept confirm bars. Typical 1 to 3. Higher reduces one bar acceptance
• Accept score threshold. Typical 60 to 85
• Accept max chase distance ATR. Typical 0.8 to 2.0. Lower avoids late entries
• Defense touches needed and defense touch distance ATR. Use 0 to disable. Typical 1 to 2 touches, 0.15 to 0.35 distance
Rejection scoring
• Reject max closes outside before re entry. Typical 2 to 6. Lower demands fast failure
• Reject min fail velocity. Typical 0.3 to 1.0. Higher demands sharper failure
• RVOL length and reject min RVOL. Typical 20 and 1.1 to 1.8
• Reject min sweep ATR and reject min snapback ATR. Typical sweep 0.25 to 0.80, snap 0.10 to 0.50
• Reject score threshold. Typical 60 to 85
Context
• Context timeframe. Typical 15, 30, or 60 minutes for intraday
• Context EMA length. Typical 34 to 100
• VWAP slope bars and trend slope threshold. Typical 4 to 12 bars, threshold 0.05 to 0.15
• Bias scores by regime. ON by default. Turn OFF if you want pure probe math only
UI
• Show signals, probe band, value fill, value lines, signal labels
• Table position and table size
Clean default. Minimal preset with value fill ON, value lines OFF, and labels OFF
Usage recipes
Intraday trend focus
• Preset Standard
• Context timeframe 30
• Bias scores by regime ON
• Accept score threshold 75
• Reject score threshold 80
• Break trigger Close
• Decision delta 20
Intraday mean reversion focus
• Preset Standard
• Mode Prev Day HL or Opening Range
• Bias scores by regime ON
• Reject max closes outside 3
• Reject min sweep 0.35 and snapback 0.20
• Reject score threshold 70
• Decision delta 15
Swing continuation
• Timeframe 60 minutes to 4 hours
• Context timeframe 1 day
• Increase Accept min closes outside and Accept confirm bars
• Increase Max probe bars
• Use Close trigger
• Raise Decision delta
Realism and responsible publication
• No performance claims. Past results never guarantee future outcomes
• No certainty about the future
• Intrabar motion reminder. Shapes can move while a bar forms and settle on close
• Standard candles are recommended. Non standard chart types change OHLC and can alter the meaning of sweeps and snapbacks
Honest limitations and failure modes
• Economic releases and thin liquidity can invalidate sweep and relocation behavior
• Gap heavy symbols can distort intrabar probe stats on small timeframes
• Very quiet regimes reduce score separation. Consider longer windows or higher thresholds
• Session windows use the exchange time of the chart
• Custom mode requires valid upper and lower values or the script will wait
Open source reuse and credits
• None
Legal
Education and research only. Not investment advice. You are responsible for your decisions. Test on historical data and in simulation before any live use. Use realistic costs. Indicator

TDL Adaptive Session Zones Pro🔷 What This Indicator Does
TDL Adaptive Session Zones Pro maps high-probability reaction areas where price is statistically more likely to pause, reverse, or accelerate — based on real historical session data, not arbitrary levels.
Unlike static support and resistance tools, these zones automatically adapt to changing market volatility every session. When volatility contracts, zones tighten. When it expands, zones widen. The result is a dynamic framework that reflects how the market is actually behaving right now.
This indicator is built for intraday traders who want structure and context — not signals.
🔷 Core Components
1️⃣ Adaptive Percentile Zones (Session-Based S/R)
The engine of this indicator. It works by:
• Collecting historical intraday session ranges over a configurable lookback period (default 20 sessions)
• Calculating percentile distances (25th, 50th, 75th, 100th by default) from that data
• Projecting those distances symmetrically above and below the current session open
• Resetting and recalculating every session automatically
🟩 Lower zones → Statistically derived support reaction areas
🟥 Upper zones → Statistically derived resistance reaction areas
Outer zones (higher percentile) represent more extreme price extensions and carry greater significance when tested. Inner zones represent typical intraday range behavior.
The key insight: instead of drawing arbitrary lines, these zones tell you where price has historically found the edges of its range — adjusted for current conditions.
2️⃣ Strike / Round Number Levels (Liquidity Reference)
Plots round-number price levels at configurable intervals (50, 100, etc.) from the session open. These levels frequently act as liquidity concentration areas in index futures and options markets.
• Configurable interval spacing
• Min/Max distance controls
• Optional mid-strike gap levels (dotted)
• Session-bounded display
Useful for NQ, ES, and index derivatives where options strike prices create natural liquidity clusters.
3️⃣ Previous Day OHLC Reference
Plots Previous Day Open, High, Low, and Close as intraday reference levels — widely observed by both retail and institutional participants.
• All four levels with distinct color coding
• Configurable line style (solid, dashed, dotted)
• Clean labels for quick identification
4️⃣ Opening Range Breakout (ORB)
Captures the high and low of the first N minutes of the session (configurable: 5 to 60 minutes). The opening range provides useful context when combined with the adaptive percentile zones.
• Configurable time window
• Filled range visualization
• Session-bounded display
🔷 Optional Validation Filters
All filters are off by default and designed to help observe cleaner price behavior near important zones.
🔹 Candle Structure Validation
Filters out candles with excessive range (ATR multiple), small bodies (body/range %), or extreme wick imbalance. Helps isolate price action reflecting healthy market participation near key levels.
🔹 Rejection Wick Detection
Identifies candles with significant wick-to-body ratios (hammer-type structure), independent of candle color. Useful for spotting potential rejection behavior when price interacts with zone boundaries.
🔹 Volume Participation Filter
Highlights periods where volume exceeds the average by a configurable multiplier. Includes a confirmation window (number of bars following the spike) to allow for delayed reaction observation.
🔹 Daily Pivot
Classic pivot point (H+L+C)/3 plotted as a session-fixed reference level for additional market structure context.
🔹 Higher Timeframe Trend
Background color overlay based on a configurable HTF moving average. Supports SMA, EMA, WMA, and VWMA. Provides directional context without enforcing bias on the intraday analysis.
🔷 Confluence Highlight System
When price arrives near any key zone (percentile, strike, OHLC, ORB, or pivot) AND all enabled validation filters align on the same candle, that candle is highlighted in yellow.
⚠️ The yellow highlight is NOT a buy or sell signal. It indicates that price behavior appears structurally meaningful at an important market location based on your selected filter combination.
Three alertcondition() calls are included: Bullish confluence, Bearish confluence, and Any confluence — ready for PulseWire alerts.
🔷 Session Volatility Gauge
Real-time dashboard (table overlay) showing what percentage of the median daily range has been consumed in the current session.
States:
• LOW (< 40%) — Session range is compressed relative to history
• BUILDING (40-70%) — Range is developing, room for expansion
• HEALTHY (70-100%) — Normal range consumption
• EXTENDED (> 100%) — Session exceeds typical range, potential exhaustion
This helps gauge whether the session still has room to move or is approaching statistical limits.
🔷 Zone Touch Tracker
Counts fresh touches on each percentile zone during the current session. A "touch" is registered when price enters a zone's proximity after being outside it. More touches on a zone suggest greater significance.
Displayed as a table overlay with per-zone counts for both resistance and support zones. Resets automatically each session.
🔷 Recommended Settings
NQ / ES Futures (5m–15m):
• Session: 0930-1600, Timezone: America/New_York
• Percentiles: 25 / 50 / 75 / 100 (default)
• Strike Interval: 100
• ORB: 15 minutes
Stocks (5m–15m):
• Strike Interval: 5 or 10
• Consider tightening percentiles (20 / 45 / 65 / 85) for lower-volatility names
Gold Futures (5m):
• Strike Interval: 10 or 25
• Adjust session window to your active trading hours
🔷 How To Use
1. Apply to an intraday chart (1m to 15m recommended)
2. Observe where price interacts with the adaptive percentile zones
3. Optionally enable one or more validation filters to highlight structurally clean candles at key zones
4. Use the Session Volatility Gauge to assess how much range has been consumed
5. Enable the Zone Touch Tracker to identify high-significance levels
6. Apply your own analysis, execution method, and risk management
This is a context and structure tool. It shows you WHERE you are within the session's statistical range — the trading decisions are yours.
🔷 Technical Notes
• Works on any intraday timeframe; designed for 1m to 15m
• Requires sufficient historical data for percentile calculations (minimum ~5 sessions)
• Session detection works correctly with extended hours both on and off
• All zone levels are session-bounded and reset automatically
• Open source — inspect, learn from, or adapt the code as you see fit
⚠️ Disclaimer
This script is provided for educational and informational purposes only. It does not generate buy or sell signals and does not constitute financial advice. Past performance of any trading methodology is not indicative of future results. Always apply independent analysis and proper risk management.
Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Indicator

Micro/Mini P&L [LDT]Overview
Micro/Mini P&L is a risk and P&L visualization tool built primarily for futures traders.
It provides accurate dollar-based calculations for either micros or minis, regardless of which contract type you are currently charting.
The indicator automatically detects your instrument (NQ, MNQ, ES, MES, YM, RTY, CL, GC, etc.) and adjusts point-value data accordingly, allowing you to chart one contract while evaluating risk for another.
This removes the need for manual conversions and keeps your position data consistent at all times.
Although optimized for futures, the tool also works on any other asset for general trade-level visualization.
Features
• Automatic instrument detection for major futures markets including NQ/MNQ, ES/MES, YM/MYM, RTY/M2K, CL/MCL, GC/MGC and others.
Point-value logic adjusts instantly based on the detected symbol ensuring accurate calculations without manual configuration.
• Micro/Mini display toggle, allowing you to calculate dollar values for either contract type regardless of which contract is on your chart.
Useful for traders who prefer charting minis whilst trading micros or the opposite.
• Trade-level visualization, including Entry, Take Profit and Stop Loss levels with automatically drawn lines and optional TP/SL zone shading for clear and structured display on the chart.
• Dynamic P/L calculations, showing both point-based and dollar-based metrics in real time.
This includes TP/SL dollar values, points to target/stop, real-time P/L and an optional risk-reward ratio.
• Adaptive risk table, displaying contract counts from 1 up to your selected maximum, total dollar risk for each row and highlighting your chosen contract size.
This provides a straightforward method for evaluating risk, scaling and position sizing.
• Customizable display options, including color settings, label visibility, extension length, bar offsets and table positioning.
This allows the tool to remain clean, unobtrusive and easy to integrate into any chart layout.
Purpose
This tool is designed to give futures traders a clear, consistent and reliable way to view dollar-accurate risk per contract without performing manual conversions.
Whether you trade micros or minis, the displayed values always align with your selected contract type, even when charting the opposite market. Indicator

BOCS Channel Scalper Strategy - Automated Mean Reversion System# BOCS Channel Scalper Strategy - Automated Mean Reversion System
## WHAT THIS STRATEGY DOES:
This is an automated mean reversion trading strategy that identifies consolidation channels through volatility analysis and executes scalp trades when price enters entry zones near channel boundaries. Unlike breakout strategies, this system assumes price will revert to the channel mean, taking profits as price bounces back from extremes. Position sizing is fully customizable with three methods: fixed contracts, percentage of equity, or fixed dollar amount. Stop losses are placed just outside channel boundaries with take profits calculated either as fixed points or as a percentage of channel range.
## KEY DIFFERENCE FROM ORIGINAL BOCS:
**This strategy is designed for traders seeking higher trade frequency.** The original BOCS indicator trades breakouts OUTSIDE channels, waiting for price to escape consolidation before entering. This scalper version trades mean reversion INSIDE channels, entering when price reaches channel extremes and betting on a bounce back to center. The result is significantly more trading opportunities:
- **Original BOCS**: 1-3 signals per channel (only on breakout)
- **Scalper Version**: 5-15+ signals per channel (every touch of entry zones)
- **Trade Style**: Mean reversion vs trend following
- **Hold Time**: Seconds to minutes vs minutes to hours
- **Best Markets**: Ranging/choppy conditions vs trending breakouts
This makes the scalper ideal for active day traders who want continuous opportunities within consolidation zones rather than waiting for breakout confirmation. However, increased trade frequency also means higher commission costs and requires tighter risk management.
## TECHNICAL METHODOLOGY:
### Price Normalization Process:
The strategy normalizes price data to create consistent volatility measurements across different instruments and price levels. It calculates the highest high and lowest low over a user-defined lookback period (default 100 bars). Current close price is normalized using: (close - lowest_low) / (highest_high - lowest_low), producing values between 0 and 1 for standardized volatility analysis.
### Volatility Detection:
A 14-period standard deviation is applied to the normalized price series to measure price deviation from the mean. Higher standard deviation values indicate volatility expansion; lower values indicate consolidation. The strategy uses ta.highestbars() and ta.lowestbars() to identify when volatility peaks and troughs occur over the detection period (default 14 bars).
### Channel Formation Logic:
When volatility crosses from a high level to a low level (ta.crossover(upper, lower)), a consolidation phase begins. The strategy tracks the highest and lowest prices during this period, which become the channel boundaries. Minimum duration of 10+ bars is required to filter out brief volatility spikes. Channels are rendered as box objects with defined upper and lower boundaries, with colored zones indicating entry areas.
### Entry Signal Generation:
The strategy uses immediate touch-based entry logic. Entry zones are defined as a percentage from channel edges (default 20%):
- **Long Entry Zone**: Bottom 20% of channel (bottomBound + channelRange × 0.2)
- **Short Entry Zone**: Top 20% of channel (topBound - channelRange × 0.2)
Long signals trigger when candle low touches or enters the long entry zone. Short signals trigger when candle high touches or enters the short entry zone. This captures mean reversion opportunities as price reaches channel extremes.
### Cooldown Filter:
An optional cooldown period (measured in bars) prevents signal spam by enforcing minimum spacing between consecutive signals. If cooldown is set to 3 bars, no new long signal will fire until 3 bars after the previous long signal. Long and short cooldowns are tracked independently, allowing both directions to signal within the same period.
### ATR Volatility Filter:
The strategy includes a multi-timeframe ATR filter to avoid trading during low-volatility conditions. Using request.security(), it fetches ATR values from a specified timeframe (e.g., 1-minute ATR while trading on 5-minute charts). The filter compares current ATR to a user-defined minimum threshold:
- If ATR ≥ threshold: Trading enabled
- If ATR < threshold: No signals fire
This prevents entries during dead zones where mean reversion is unreliable due to insufficient price movement.
### Take Profit Calculation:
Two TP methods are available:
**Fixed Points Mode**:
- Long TP = Entry + (TP_Ticks × syminfo.mintick)
- Short TP = Entry - (TP_Ticks × syminfo.mintick)
**Channel Percentage Mode**:
- Long TP = Entry + (ChannelRange × TP_Percent)
- Short TP = Entry - (ChannelRange × TP_Percent)
Default 50% targets the channel midline, a natural mean reversion target. Larger percentages aim for opposite channel edge.
### Stop Loss Placement:
Stop losses are placed just outside the channel boundary by a user-defined tick offset:
- Long SL = ChannelBottom - (SL_Offset_Ticks × syminfo.mintick)
- Short SL = ChannelTop + (SL_Offset_Ticks × syminfo.mintick)
This logic assumes channel breaks invalidate the mean reversion thesis. If price breaks through, the range is no longer valid and position exits.
### Trade Execution Logic:
When entry conditions are met (price in zone, cooldown satisfied, ATR filter passed, no existing position):
1. Calculate entry price at zone boundary
2. Calculate TP and SL based on selected method
3. Execute strategy.entry() with calculated position size
4. Place strategy.exit() with TP limit and SL stop orders
5. Update info table with active trade details
The strategy enforces one position at a time by checking strategy.position_size == 0 before entry.
### Channel Breakout Management:
Channels are removed when price closes more than 10 ticks outside boundaries. This tolerance prevents premature channel deletion from minor breaks or wicks, allowing the mean reversion setup to persist through small boundary violations.
### Position Sizing System:
Three methods calculate position size:
**Fixed Contracts**:
- Uses exact contract quantity specified in settings
- Best for futures traders (e.g., "trade 2 NQ contracts")
**Percentage of Equity**:
- position_size = (strategy.equity × equity_pct / 100) / close
- Dynamically scales with account growth
**Cash Amount**:
- position_size = cash_amount / close
- Maintains consistent dollar exposure regardless of price
## INPUT PARAMETERS:
### Position Sizing:
- **Position Size Type**: Choose Fixed Contracts, % of Equity, or Cash Amount
- **Number of Contracts**: Fixed quantity per trade (1-1000)
- **% of Equity**: Percentage of account to allocate (1-100%)
- **Cash Amount**: Dollar value per position ($100+)
### Channel Settings:
- **Nested Channels**: Allow multiple overlapping channels vs single channel
- **Normalization Length**: Lookback for high/low calculation (1-500, default 100)
- **Box Detection Length**: Period for volatility detection (1-100, default 14)
### Scalping Settings:
- **Enable Long Scalps**: Toggle long entries on/off
- **Enable Short Scalps**: Toggle short entries on/off
- **Entry Zone % from Edge**: Size of entry zone (5-50%, default 20%)
- **SL Offset (Ticks)**: Distance beyond channel for stop (1+, default 5)
- **Cooldown Period (Bars)**: Minimum spacing between signals (0 = no cooldown)
### ATR Filter:
- **Enable ATR Filter**: Toggle volatility filter on/off
- **ATR Timeframe**: Source timeframe for ATR (1, 5, 15, 60 min, etc.)
- **ATR Length**: Smoothing period (1-100, default 14)
- **Min ATR Value**: Threshold for trade enablement (0.1+, default 10.0)
### Take Profit Settings:
- **TP Method**: Choose Fixed Points or % of Channel
- **TP Fixed (Ticks)**: Static distance in ticks (1+, default 30)
- **TP % of Channel**: Dynamic target as channel percentage (10-100%, default 50%)
### Appearance:
- **Show Entry Zones**: Toggle zone labels on channels
- **Show Info Table**: Display real-time strategy status
- **Table Position**: Corner placement (Top Left/Right, Bottom Left/Right)
- **Color Settings**: Customize long/short/TP/SL colors
## VISUAL INDICATORS:
- **Channel boxes** with semi-transparent fill showing consolidation zones
- **Colored entry zones** labeled "LONG ZONE ▲" and "SHORT ZONE ▼"
- **Entry signal arrows** below/above bars marking long/short entries
- **Active TP/SL lines** with emoji labels (⊕ Entry, 🎯 TP, 🛑 SL)
- **Info table** showing position status, channel state, last signal, entry/TP/SL prices, and ATR status
## HOW TO USE:
### For 1-3 Minute Scalping (NQ/ES):
- ATR Timeframe: "1" (1-minute)
- ATR Min Value: 10.0 (for NQ), adjust per instrument
- Entry Zone %: 20-25%
- TP Method: Fixed Points, 20-40 ticks
- SL Offset: 5-10 ticks
- Cooldown: 2-3 bars
- Position Size: 1-2 contracts
### For 5-15 Minute Day Trading:
- ATR Timeframe: "5" or match chart
- ATR Min Value: Adjust to instrument (test 8-15 for NQ)
- Entry Zone %: 20-30%
- TP Method: % of Channel, 40-60%
- SL Offset: 5-10 ticks
- Cooldown: 3-5 bars
- Position Size: Fixed contracts or 5-10% equity
### For 30-60 Minute Swing Scalping:
- ATR Timeframe: "15" or "30"
- ATR Min Value: Lower threshold for broader market
- Entry Zone %: 25-35%
- TP Method: % of Channel, 50-70%
- SL Offset: 10-15 ticks
- Cooldown: 5+ bars or disable
- Position Size: % of equity recommended
## BACKTEST CONSIDERATIONS:
- Strategy performs best in ranging, mean-reverting markets
- Strong trending markets produce more stop losses as price breaks channels
- ATR filter significantly reduces trade count but improves quality during low volatility
- Cooldown period trades signal quantity for signal quality
- Commission and slippage materially impact sub-5-minute timeframe performance
- Shorter timeframes require tighter entry zones (15-20%) to catch quick reversions
- % of Channel TP adapts better to varying channel sizes than fixed points
- Fixed contract sizing recommended for consistent risk per trade in futures
**Backtesting Parameters Used**: This strategy was developed and tested using realistic commission and slippage values to provide accurate performance expectations. Recommended settings: Commission of $1.40 per side (typical for NQ futures through discount brokers), slippage of 2 ticks to account for execution delays on fast-moving scalp entries. These values reflect real-world trading costs that active scalpers will encounter. Backtest results without proper cost simulation will significantly overstate profitability.
## COMPATIBLE MARKETS:
Works on any instrument with price data including stock indices (NQ, ES, YM, RTY), individual stocks, forex pairs (EUR/USD, GBP/USD), cryptocurrency (BTC, ETH), and commodities. Volume-based features require data feed with volume information but are optional for core functionality.
## KNOWN LIMITATIONS:
- Immediate touch entry can fire multiple times in choppy zones without adequate cooldown
- Channel deletion at 10-tick breaks may be too aggressive or lenient depending on instrument tick size
- ATR filter from lower timeframes requires higher-tier PulseWire subscription (request.security limitation)
- Mean reversion logic fails in strong breakout scenarios leading to stop loss hits
- Position sizing via % of equity or cash amount calculates based on close price, may differ from actual fill price
- No partial closing capability - full position exits at TP or SL only
- Strategy does not account for gap openings or overnight holds
## RISK DISCLOSURE:
Trading involves substantial risk of loss. Past performance does not guarantee future results. This strategy is for educational purposes and backtesting only. Mean reversion strategies can experience extended drawdowns during trending markets. Stop losses may not fill at intended levels during extreme volatility or gaps. Thoroughly test on historical data and paper trade before risking real capital. Use appropriate position sizing and never risk more than you can afford to lose. Consider consulting a licensed financial advisor before making trading decisions. Automated trading systems can malfunction - monitor all live positions actively.
## ACKNOWLEDGMENT & CREDITS:
This strategy is built upon the channel detection methodology created by **AlgoAlpha** in the "Smart Money Breakout Channels" indicator. Full credit and appreciation to AlgoAlpha for pioneering the normalized volatility approach to identifying consolidation patterns. The core channel formation logic using normalized price standard deviation is AlgoAlpha's original contribution to the PulseWire community.
Enhancements to the original concept include: mean reversion entry logic (vs breakout), immediate touch-based signals, multi-timeframe ATR volatility filtering, flexible position sizing (fixed/percentage/cash), cooldown period filtering, dual TP methods (fixed points vs channel percentage), automated strategy execution with exit management, and real-time position monitoring table. Strategy

Indicator

Indicator
