Money Flow OscillatorMeasures buying and selling pressure over a given lookback period.
As described at traders.com
See also:
- Are price updates a good proxy for actual traded volume in FX?
- Using Tick Volume in Forex: A Clear NVO Based Example
"forex" için komut dosyalarını ara
Normalized Volume OscillatorThis volume indicator works best on comparatively small timeframes (15 minutes, for example).
Based on:
- Normalized Volume Oscillator - indicator for MetaTrader 4
- Using Tick Volume in Forex: A Clear NVO Based Example
See also:
- Are price updates a good proxy for actual traded volume in FX?
DRS - Daily Range SystemAn indicator that visualizes the evolution of a daily candle, inspired by a thread on forexfactory: www.forexfactory.com
Applied on a timeframe lower than D (actually lower than H4), it visualizes the evolution of the day's high and low, as well as mid and 25% and 75% lines.
The sole input parameters are the hour at which a day is supposed to start, and the extent of the "trade allowed" region as explained in the FF -1.44% thread.
4 Hour MACD (Philip Nel ForexFactory)This is the basic script that shows MACD as described with settings in the thread www.forexfactory.com
Ichimoku Cloud Score v1.0This script calculates a simple Ichimoku Score based on the signals documented here , with a few additions. Each of the score components can be individually weighted via the script inputs . The output is a plot of the normalized Ichimoku score, in the range of -100 to 100.
This script has been heavily modified from 'Ichimoku Cloud Signal Score v2.0.0 '. Credit to user 'dashed' for the initial implementation.
This has been modified with several refinements:
Clean/Organized Code
Simplified Inputs
Improved Style
Scores normalized to a range (-100, 100)
Bugfixes and Improvements
Script Inputs: i.imgur.com
3 Duck's Trading System from Babypips.comThe 3 Duck's Trading System from Babypips.com
The 3 Duck's Trading System is the most popular and active trading system thread on the the babypips.com forum. It is a system that is mainly for beginners because it teaches you discipline, learning to cope with price moving against your position and learning to stay in a trade and keep profits running. For the thread and more info on the 3 Duck's Trading System click here
How does it work?
The system is a very simple enter/exit based on the 60 SMA of 3 different time frames: 4 hour, 1 hour and 5 minute.
The Rules, er, the Ducks! The Ducks must all be in a row for a trade to take place!
Duck 1 - To go long, price must be above the 60 SMA on the 4 hour chart.
Duck 2 - To go long, price must be above the 60 SMA on the 1 hour chart.
Duck 3 - To go long, price must cross above the 60 SMA on the 5 minute chart and the 60 SMA of the 5 minute chart must be below that of the 4 hour and 1 hour chart. (obviously the reverse for shorting)
YOU MUST USE THIS SYSTEM ONLY ON THE 5 MINUTE CHART.
I say this because I have already charted all of the Ducks into the 5 minute chart so you don't have to flip back and forth.
I have also added some inputs for profit targets, stop targets, trailing stops and times to trade for backtesting.
If you have any questions or comments, please let me know! If you see I messed up on something, please let me know!
Also a VERY special thanks to the babypips.com user Captain_Currency . He wrote this strategy 10 years ago (2007 was 10 years ago?!) and he is still active on the thread and posting results and offering help!
HL2 - 22 EMA Cross for RenkoEURUSD
This is a simple strategy to use for those who like Renko bars. I ONLY use it on Renko.
Basic idea is that when the Renko bar closes above or below the 22 EMA, you go long or short.
However, some of the frustrations I've had with any strategy shared in Tradingview is so few folks put in the ability to set a stop or a profit target or the ability to set a specific time to trade. I have added those to this strategy. (And I for the life of me can not remember where I got the code for the the time, I need to find you!).
Special note: If you have never used the Renko bars in Tradingview, make sure you click the Format option next to whatever pair you are looking at and change it from Traditional to ATR. You can set it for a static pip amount if you want. But ATR at first will help you decide which amount of pips you should throw in.
This is my first published strategy so if I screwed up on anything or didn't explain it very well, please let me know!!
Traders Dynamic Index Indicator Alert v0.1 by JustUncleLThis is a trend trading indicator+alert utilising the Traders Dynamic Index (TDI), Price Action Channel (PAC) and Heikin Ashi candles.
About 6months ago I came across the use of TDI in "E.A.S.Y. Method" that I found in forexfactory forums: www.forexfactory.com
and I was able to set up a chart based on the specifications by using Kurbelklaus scripts. However, I found that the alerts were being generated one or two bars too late, so at that time I was not successful using it with Binary Options. A few months later I found a variation of the method in the forecfactory forums which is able to generate the alerts a bit earlier, so this indicator is a modification of that early detection version.
The indicator can optionally use Heikin Ashi candles only for all it's calculation. I would recommend viewing the chart with Heikin Ashi candles, these smooth out the trends and makes trends very clear.
I found that this method it works good with most currency pairs or commodities and with 5min+ timeframe charts. I would suggest expiry of 2 to 6 candles.
ALERT GENERATION:
=================
The TDI (Traders Dynamic Index)
---------------------------------------------
Volatility Band VB(34), color: Blue, buffer: UpZone, DnZone
Relative Strength Index RSI(13)
RSI PRICE LINE (2), color: Green, buffer: mab
RSI TRADE SIGNAL LINE (7), color: Red, buffer: mbb
MARKET BASE LINE MID VB(34), color: Orange, buffer: mid
Indicator SignalLevels:
-------------------------------
RSI_OversoldLevel : 22 (normally: 32)
RSI_OverboughtLevel : 78 (normally: 68)
Alert Conditions:
-----------------------
Strong Buy : yellow
Medium Buy : aqua
Weak Buy : blue
Strong Sell : fuchsia
Medium Sell : purple
Weak Sell : black
Hints on How to use:
----------------------------
- When a Medium or Strong alert is generated and MACD histogram colour matches the direction
of the alert (optional auto filter), then place trade in direction of alert candle and MACD.
- I use the multi-Hull MA's for overall trend direction confirmation.
- Best positions normally occur near the MACD(5,15,1) Histogram crossing the zero line.
- The optional coloured Dots along the bottom of the indicator represent the first alert
of this type that was generated in this sequence.
- It is advisable to trade in the direction of the main trend as indicated the HULL MA red cloud:
if red cloud underneath PAC then BULLISH trend, if red cloud above PAC then BEARISH trend.
- Selecting the HeiKin Ashi candles does affect the MACD and MA caculations, so if you select
normal candles the result chart will change. You can still Optionally select to use Heikin Ashi
for calculations.
- When using the Heikin Ashi candles, a good buy entry is indicated by long top wick and no bottom wick
for bull (green) candles and good sell entry is indicated by long bottom wick and no top wick for
bear (red) candles.
- When the MACD histogram is flat and close to zero line,
this indicates a ranging market, do NOT trade when this occurs.
- When the PAC channel on the main chart is spread apart widely, this is an indication
of extreme volatility and choppy chart, do NOT try to trade during these periods.
A choppy chart is also indicated by Heikin Ashi candles with long wicks on both sides
of the candles.
- You can specify what strength level Alerts are generated (default 2):
Level (1) means only generate Strong Alerts only.
Level (2) means generate Strong and Medium Alerts.
Level (3) means generate Strong, Medium and Weak Alerts.
Transient Zones v1.1Simple indicator to visualize Transient Zones (TZ) and Potential Transient Zones (PTZ).
The last 3 numbers in the header represent: probability of true TZ (black), probability of PTZ (navy) and probability of PTZ resolving (gray).
Original ForexFactory thread by EURUSDD www.forexfactory.com
Version 1.1:
- Added TZ/PTZ occurrence probability thanks to SPYderCrusher
Todo:
- Mid bar transient zones detection
- Draw rectangles for zones (once rectangle drawing gets implemented in pine script) or use dot/circle lines
- Mark forming PTZs more clearly
Previous version 1.0:
Transient ZonesUpdated version 1.1:
Simple indicator to visualize Transient Zones (TZ) and Potential Transient Zones (PTZ).
Original ForexFactory thread by EURUSDD www.forexfactory.com
Todo:
- Mid bar transient zones detection
- Draw rectangles for zones (once rectangle drawing gets implemented in pine script)
- Mark forming PTZs more clearly
CUSUM Volatility BreakoutCUSUM Volatility Breakout A statistical trend-detection and volatility-breakout indicator that identifies subtle momentum shifts earlier than traditional tools.
OVERVIEW
The CUSUM control chart is a statistical tool designed to detect small, gradual shifts from a target value. In trading, it helps identify the early stages of a trend, giving traders a heads-up before momentum becomes obvious on standard price charts. By spotting these subtle movements, the CUSUM Volatility Breakout indicator (CUSUM VB) can highlight potential breakout opportunities earlier than traditional indicators. In other words, a statistical trend detection & breakout indicator.
Copyright © 2025 CoinOperator
HOW IT WORKS
CUSUM VB uses a combination of differenced price series, volume normalization, and dynamic control limits:
CUSUM Principle: Tracks cumulative deviations of price from a zero reference. Signals occur when cumulative deviations exceed a control limit shown on the chart and clears any enabled filters.
Adaptive Volatility: H adjusts automatically based on short- vs long-term ATR ratios, allowing faster detection during volatile periods and reduced false signals in calm markets.
Volume Weighting (optional): Amplifies price CUSUM values during high-volume bars to prioritize market participation strength.
ATR Confirmation (optional): Ensures breakouts are accompanied by expanded volatility.
Bollinger Band Squeeze Integration (optional): Confirms trend breakouts by detecting volatility contraction and release shown on the chart as triangles.
Signals:
Arrows on the price chart mark the bars where trades are actually filled, based on conditions detected on the prior signal bar.
Long Entry: Confirmed positive CUSUM breach (price & volume) with BB breakout (signal bar).
Short Entry: Confirmed negative CUSUM breach (price & volume) with BB breakout (signal bar).
Exit Signals: Triggered automatically by opposite-side signals.
Alerts, when created, fire on the bars where fills occur.
CHART COMPONENTS
CUSUM Upper Price (CU Price) and CUSUM Lower Price (CL Price) are green/red circles for confirmed signals.
● Rapid upward accumulation of CU Price indicates a developing bullish trend.
● Rapid downward accumulation of CL Price indicates a developing bearish trend.
Decision/Control limits (UCL/LCL, red)
Zero line (reference for the differenced price series baseline)
Optional BB triangles and volume CUSUM
SETUP AND CONFIGURATION
Differenced Price Series
Differenced Price Length and Lag
Increase differencing lag or window length → Increases variance of residuals → Wider control limits (UCL/LCL) → Slower to trigger.
Decrease lag or window → Tighter limits, more responsive to short-term regime shifts.
CUSUM Parameters
Volume-Weighted CUSUM
NOTE : Uses price length if 'Confirm Price with Volume' is disabled, otherwise will use volume length.
Amplifies CUSUM price responses during high-volume bars and reduces them during low-volume bars. This links trend detection to market participation strength.
Volume-Weighted CUSUM doesn’t replace price confirmation with volume; it modulates it by volume intensity, amplifying price signals when participation is strong and suppressing them when weak.
Recommended when analyzing assets with consistent volume patterns (e.g., stocks, major futures).
Disable for low-liquidity or irregular-volume instruments (e.g., crypto pairs, small-cap stocks).
ATR Confirmation
Enable this feature to confirm CUSUM signals only when price deviations are accompanied by higher-than-normal volatility. The indicator compares current ATR to a smoothed ATR to detect volatility expansion. This helps distinguish true breakouts from low-volatility noise and reduces false signals during quiet periods.
Adjust the ATR lookback length, smoothing length, and expansion factor to control sensitivity. Rule of thumb:
ATR Length ≈ 0.5 × differenced price length to 1.5 × differenced price length gives balanced sensitivity.
ATR Smoothing 5–10 bars.
ATR Expansion 5% to 50%.
CUSUM Input Mode
Select how CUSUM processes differenced price and log-normalized volume — either directly (Txfrm Data) or as deviations from a short-term EMA baseline (Residuals):
Txfrm Data = transformed input: differenced price & log-normalized volume as input for CUSUM (larger swings, more frequent control limit breaches)
Residuals = deviation from short-term EMA baseline (smaller swings, fewer control limit breaches, but higher signal quality).
Residual EMA Length: Defines how quickly the residual baseline adapts to recent differenced price moves. Shorter = more reactive; longer = smoother baseline. Keep EMA length moderate; over-smoothing can distort timing.
Control Sensitivity (K)
Increase K → Less sensitive → CUSUM accumulates slower → Fewer signals, captures only major trends.
Decrease K → More sensitive → CUSUM accumulates faster → More signals, captures minor swings too.
Reset Mode : Method of resetting CUSUM values.
Immediate Reset: Reset both immediately after any signal breach. Traditional SPC.
Opposite-Side Reset: Reset only the opposite side when a valid signal fires. Best for ongoing trend tracking.
Decay Reset: Gradually reduce CUSUM values toward zero with a decay factor each bar. Maintains trend memory but allows slow “forgetting.”
Threshold Reset: Reset only if CUSUM returns below a small threshold (10 % of H). Filters noise without full wipe.
No Reset / Continuous: Never reset; instead track running totals. Long-term cumulative bias measurement.
Conflict Handling : Method of handling conflicting signals.
Ignore Both: Discards both when overlap occurs.
Prioritize Latest: Chooses the direction implied by the most recent close.
Prioritize Stronger: Compares absolute magnitudes of CU Price vs CL Price.
Average Resolve: Looks at the difference; small overlap → ignore, otherwise pick direction by sign.
Sequential Confirm: Requires N consecutive same-direction signals before confirmation.
Volume Parameters (Optional)
Amplification Factor
Adjusts volume sensitivity and effectively rescales the log series of volume to a comparable magnitude with price changes.
Since price and volume are normalized in a compatible way, the amplification factor is used instead of independent K and H values for volume.
Bollinger Bands (Optional)
Lookback Synchronization
BB Lookback (for CUSUM): Number of bars that define a window for the BB signal to look back for the CUSUM signal.
CUSUM Lookback (for BB): Number of bars that define a window for the CUSUM signal to look back for the BB signal.
Both can be enabled for stricter alignment.
Relationship Between K, H, ARL₀ and ARL₁
H (max) is usually the only H you need to adjust. With everything else being constant, increasing either K or H (max) generally increases both ARL₀ and ARL₁ : higher thresholds reduce false alarms but slow detection, and lower thresholds do the opposite.
Increase Min Target ARL ratio →
ARL₀ increases (safer, fewer false alarms)
ARL₁ decreases or stays small (faster detection)
Control limits slightly expand to achieve separation
Strategy becomes more selective and stable
Decrease Min Target ARL ratio →
ARL₀ decreases (more false alarms tolerated)
ARL₁ increases (slower detection tolerated)
Control limits tighten
Strategy becomes more sensitive but lower quality
The ARL Ratio of ARL₀ / ARL₁ is typically between 3 and 8. This implies you want your ARL₀ (false-alarm interval) ≈ 'Min Target ARL ratio' × differenced price length window.
Example:
"Min Target ARL ratio = 4.0"
⇒ implies you want your ARL₀ (false-alarm interval) ≈ 4 × differenced price length.
Assume price length = 50 (typical differencing window).
ARL ratio = 4.0 → target ARL = 4 × 50 = 200 bars.
● On a 6-hour chart (≈4 bars/day) → ~50 days between expected false alarms (on average).
● On a daily chart → ~200 trading days between false alarms (very conservative).
ARL ratio = 8.0 → target ARL = 400 bars → twice as infrequent signals vs ratio=4.
ARL ratio = 2.0 → target ARL = 100 bars → about half the inter-signal interval.
Another way to think about it: probability of a false alarm on any bar ≈ 1 / target ARL. If you want ~1% of bars producing alarms, target ARL ≈ 100.
QUICK START
Start with the defaults.
Set price series → length/order/lag
Configure CUSUM thresholds → K, H min/max
1. Adjust the price differencing lag/window.
2. Verify that it captures real price inflection points without overreacting to bar noise.
Enable optional filters → Volume, ATR, BB
The optional Bollinger Bands squeeze usually works best if used with CUSUM Input Mode = Txfrm Data.
Monitor CUSUM chart → CU Price, CL Price, thresholds, zero line
Act on signals → data window / chart triangles
Adjust sensitivity → H (max), K, lengths
Monitor ARL ratio and CUSUM behavior for fine-tuning
Note : When you’ve finalized the length, lag, and order of the Price Difference, as well as the Ln(Vol) Series of “Confirm Price with Volume” if enabled, then pass both through the Augmented Dickey–Fuller (ADF) mean reversion test to ensure they are stationary, i.e., mean reverting. You can find a ready-made indicator for such use at . Many thanks to tbtkg for this indicator.
SUMMARY
CUSUM VB combines CUSUM statistical control, volatility-adaptive thresholds, volume weighting, and optional BB breakout confirmation to provide robust, actionable signals across a wide variety of trading instruments.
Why traders use it : Fast detection of shifts, reduced false alarms, versatile across markets.
Ideal for : Futures (continuous contracts), forex, crypto, stocks, ETFs, and commodity/index CFDs, especially where:
● Price and volume data exist
● Breakouts and volatility shifts are tradable
● There’s enough liquidity for meaningful signals
Visualization : Upper/lower CUSUM circles, UCL/LCL thresholds, optional highlight traded background, optional volume and BB overlays on the chart, optional entry/exit labels on the price chart, as well as entry/exit signals in the data window.
Alerts : For entry/exit labels when trades are actually filled.
CUSUM VB is designed for traders who want statistically grounded trend detection with configurable sensitivity, visual clarity, and multi-market versatility.
DISCLAIMER
This software and documentation are provided “as is” without any warranties of any kind, express or implied. CoinOperator assumes no responsibility or liability for any errors, omissions, or losses arising from the use or interpretation of this software or its outputs. Trading and investing carry inherent risks, and users are solely responsible for their own decisions and results.
Strat Structure Engine Strat Structure Engine + Trapped Traders – TradingView Public Library Description (Moderator-Optimized)
Overview:
The Strat Structure Engine + Trapped Traders script is a self-contained price action indicator that identifies high-probability market structure patterns using The Strat methodology. It integrates bar-based structure, volatility (ATR), and volume analysis to detect potential reversals, exhaustion points, and trapped trader scenarios directly on the chart. Unlike generic indicators, it grades signals for reliability and visual clarity, providing actionable insight for traders.
Originality and Purpose:
This script is original because it combines multiple structure-based patterns into a single, coherent system:
3-Bar → Failed 2 (3→F2) – A tiered scoring system evaluates the strength of a strict 3-bar structure followed by a Failed 2 bar.
2-Bar → Failed 2 (2→F2, A+ only) – Filters only the strongest 2-bar setups followed by a Failed 2 for high-confidence reversal signals.
Failed 2 → Failed 2 (Dragon’s Tail / F2→F2) – Detects consecutive Failed 2 bars in opposite directions, signaling trapped traders and quick reversals.
Each pattern is evaluated using objective criteria: bar range relative to ATR, Failed 2 close relative to the preceding structure, body-to-range ratio, and volume spikes compared to recent averages. The combination of multiple patterns with tiered scoring and volume confirmation is unique and cannot be reproduced by simply merging standard indicators.
Signal Evaluation and Scoring:
1. 3→F2 (Tiered Scoring)
Criteria:
3-bar range vs ATR
Failed 2 close relative to 3-bar midpoint
Body-to-range ratio
Volume vs recent SMA
Tier Grades: A+, A, B, —
Purpose: Helps traders prioritize high-confidence reversal setups while filtering out weaker signals.
2. 2→F2 (A+ Only)
Evaluates strict 2-bar structures followed by a Failed 2 bar.
Displays only the strongest A+ setups to reduce noise.
3. F2→F2 (Dragon’s Tail)
Detects consecutive Failed 2 bars in opposite directions.
Highlights trapped trader zones and potential rapid reversals.
Volume and Volatility Integration:
ATR normalization ensures bar ranges are contextualized to market volatility.
SMA volume averaging confirms unusual activity, filtering signals with low participation.
This ensures signals are structurally valid and contextually significant.
Chart and Visual Clarity:
Labels are color-coded (green for bullish, red for bearish) and include tier/score for easy interpretation.
Only confirmed patterns are labeled, avoiding clutter or ambiguous markings.
Works on standard candlestick charts (does not use Heikin Ashi, Renko, or Range bars), ensuring realistic and reliable signals.
Customization and Alerts:
Toggle each pattern on/off: 3→F2, 2→F2, F2→F2
Adjust ATR length and volume average period per instrument or timeframe.
Alerts available for all patterns for bar-close confirmation, enabling real-time monitoring or integration with trading systems.
Practical Trading Use:
Identify exhaustion points, trapped traders, and reversals.
Can be used alongside VWAP, liquidity zones, fair value gaps, and session extremes for enhanced entry and exit decisions.
Focus on A+ / A tier signals for execution; use B-tier signals for context or partial entries.
Designed for multiple instruments (equities, futures, Forex) and adaptable across timeframes.
Compliance and Risk Notes:
Signals are historical, not predictive.
Follow proper risk management and do not rely solely on indicator signals.
Past performance does not guarantee future results.
Does not use request.security() with lookahead; all signals are confirmed on bar close.
✅ Key Advantages:
Fully self-contained, original methodology.
Multi-pattern integration with tiered scoring for reliability.
Volume and ATR confirmation reduces noise and false signals.
Clean, uncluttered chart output that is easy to read and interpret.
This version explicitly addresses moderation points:
Originality: explains why the mashup is necessary and unique.
Usefulness: shows exactly how traders can use it.
Chart clarity: confirms labels are meaningful, non-redundant, and easy to read.
Signal realism: bars are confirmed, no lookahead used.
LTF Distribution Analyzer█ OVERVIEW
LTF Distribution Analyzer reveals the hidden price distribution and order flow within each candle by sampling lower timeframe data. It visualizes where prices concentrated, how volume was distributed between buyers and sellers, and identifies divergences between price action and actual market participation.
Unlike traditional candlesticks showing only OHLC, this indicator exposes the statistical structure of price movement using quartile-based visualization combined with delta analysis.
█ CONCEPTS
The indicator is built on two core concepts:
1 — Statistical Price Distribution
Each candle contains many lower timeframe bars. By analyzing these bars, we calculate:
• Q1 (25th percentile) - 25% of prices traded below this level
• Q3 (75th percentile) - 75% of prices traded below this level
• Median - The middle price value
• IQR (Interquartile Range) - The Q3-Q1 spread containing 50% of all prices
2 — Volume Delta Analysis
Delta measures buying vs selling pressure:
• Delta = Buy Volume − Sell Volume
• Positive delta = More aggressive buying
• Negative delta = More aggressive selling
• Delta Ratio normalizes this as a percentage
█ HOW IT WORKS
The indicator fetches lower timeframe data using request.security_lower_tf() and processes it to create a statistical summary:
Step 1: Timeframe Calculation
• Auto mode: Chart timeframe ÷ Auto Divisor = LTF
• Example: 1H chart ÷ 1000 = ~3.6 second sampling
• Manual mode: User-specified timeframe
Step 2: Data Collection
• Collects all close prices from LTF bars within current candle
• Aggregates volume by candle direction (bullish/bearish)
Step 3: Statistical Analysis
• Calculates quartiles (Q1, Q3), median, and boundaries
• Identifies outliers using 1.5× and 3× IQR fences
• Finds Volume POC (price with highest volume)
Step 4: Delta Calculation
• Sums buy volume (from bullish LTF bars)
• Sums sell volume (from bearish LTF bars)
• Computes delta ratio for color determination
█ VISUAL ELEMENTS
┌─────────────────────────────────────────┐
│ ▲ Extreme outlier (3× IQR) │
│ △ Mild outlier (1.5× IQR) │
│ ─ Upper whisker cap │
│ ┊ Whisker line (dashed) │
│ ▄ IQR Box (Q1 to Q3 range) │
│ ━ Volume POC (highest volume) │
│ ● Median (green=bull, red=bear) │
│ ┊ Whisker line (dashed) │
│ ─ Lower whisker cap │
│ ▽ Mild outlier │
│ ▼ Extreme outlier │
└─────────────────────────────────────────┘
█ COLOR SYSTEM
Colors indicate the relationship between candle direction and order flow:
🟢 TEAL (Positive Flow)
Bullish candle + Positive delta
→ Strong buying confirmation
→ Trend continuation signal
🔴 RED (Negative Flow)
Bearish candle + Negative delta
→ Strong selling confirmation
→ Trend continuation signal
🟠 ORANGE (Mixed Signal A)
Bullish candle + Negative delta
→ Price up but sellers dominated
→ Potential weakness/reversal warning
🔵 BLUE (Mixed Signal B)
Bearish candle + Positive delta
→ Price down but buyers dominated
→ Potential accumulation/reversal signal
█ SETTINGS
Timeframe Settings
• LTF Mode — Auto or Manual selection
• Manual Timeframe — Specific LTF when in Manual mode
• Auto Divisor — Higher = finer granularity (default: 1000)
• Allow Sub-Minute — Requires Premium subscription
Visual Style
• Positive/Negative Flow colors — Customize the 4 flow colors
• Box Transparency — Opacity of the quartile box (0-100%)
Statistics Display
• Show Statistics Panel — Toggle on-chart stats table
• Show Timeframe Badge — Toggle LTF indicator badge
• Panel Position — Choose corner placement
• Panel Size — Text size selection
█ HOW TO USE
1. Divergence Detection
Look for color mismatches:
• Orange bars in uptrend = weakness, potential reversal
• Blue bars in downtrend = strength, potential reversal
• Multiple consecutive divergent bars strengthen signal
• Wait for confirmation before entry
2. Volume POC Trading
• POC marks where most volume traded
• POC clusters at similar levels = strong S/R zone
• Price often returns to POC before continuing
• Use POC for entry/exit targeting
3. Trend Confirmation
• Consecutive teal = strong uptrend
• Consecutive red = strong downtrend
• Median position shows intrabar momentum
• Wide boxes indicate high volatility
4. Outlier Analysis
• Extreme markers (▲▼) often mark stop hunts
• Consider fading extremes at key levels
• Mild markers (△▽) = areas to watch
█ RECOMMENDED SETTINGS
For different chart timeframes:
│ Chart TF │ Auto Divisor │ Resulting LTF │
├──────────┼──────────────┼───────────────┤
│ 15M │ 1500 │ ~1M │
│ 1H │ 1000 │ ~3-4s │
│ 4H │ 600 │ ~24s │
│ Daily │ 500 │ ~2-3M │
Tip: Check the TF badge to confirm active sampling timeframe.
█ BEST PRACTICES
Do:
✓ Use "Bars" chart style for cleanest display
✓ Combine with support/resistance analysis
✓ Wait for confirmation bars
✓ Note POC clusters across multiple bars
✓ Adjust divisor based on your timeframe
Avoid:
✗ Trading single bar signals alone
✗ Using during low volume periods
✗ Trading immediately after news releases
✗ Ignoring overall market context
█ LIMITATIONS
• Requires adequate market liquidity for reliable signals
• Sub-minute timeframes need Premium subscription
• Historical data depth depends on TradingView's data availability
• Delta calculation assumes volume direction matches candle direction
█ NOTES
This indicator works best on liquid markets (forex majors, major indices, popular stocks/crypto) where volume data is meaningful.
The gray dotted vertical line marks where LTF data becomes available - bars before this line won't display the indicator.
For questions or suggestions, leave a comment below.
Ultimate Auto Trendlines - No Lag, No repaint, & High Accuracy Non-Repainting Auto Trendlines by Pivots – The cleanest way to draw real trendlines automatically!
Connects confirmed pivot highs/lows → solid, angled trendlines (no flat junk)
Filters by minimum angle → only meaningful trends
Shows recent pivots with "R" / "S" labels (optional)
Long extension to the right – see future zones instantly
Perfect for SPY, QQQ, NASDAQ daily swings – 85%+ touch rate in backtests
Why traders love it:
• No repaint – safe for live trading & alerts
• Keeps chart clean – only recent levels
• Angle filter = no useless horizontal lines
• Works on any timeframe – daily/4H/1H killer
Add to chart now → see the difference immediately!
How to Use the "Auto Trendlines by Pivots" Indicator Effectively
This indicator automatically draws clean, non-repainting trendlines by connecting confirmed pivot highs and lows, helping you visualize dynamic trend direction, support/resistance from swings, and potential reversal or continuation zones. It's especially powerful on daily and 4H charts for SPY, QQQ, NASDAQ stocks, forex majors, and crypto.
Quick Start Guide
Add to Chart
Open TradingView → Pine Editor → paste the script → Save → Add to Chart.
Best symbols/timeframes: SPY/QQQ/ES1! daily, 4H, or 1H.
Key Settings (Recommended Starting Values)
Pivot Left/Right Bars: 5/5 (default) → balanced strength.
Increase to 8–10 for stronger, fewer lines (less noise, higher accuracy).
Decrease to 3–4 for more frequent lines (scalping/intraday).
Max Trendlines: 8 (default) → keeps chart readable.
Lower to 4–6 for minimalism; raise to 12–15 for more history.
Min Trend Angle: 15° (default) → filters out flat/weak lines.
Increase to 20–25° for steeper trends only (very clean chart).
Decrease to 10° to see shallower trends.
Line Extension: 100–200 bars → long enough to project forward zones.
Show Labels: On → "R" (red) and "S" (green) marks pivot points.
Turn off for ultra-clean look.
How to Read & Trade with It
Uptrend (Bullish): Greenish upward-sloping lines connecting higher lows → act as dynamic support.
→ Buy pullbacks to the trendline + confirmation (e.g., RSI oversold, volume spike, candlestick reversal).
→ Target next resistance line or previous pivot high.
Downtrend (Bearish): Reddish downward-sloping lines connecting lower highs → act as dynamic resistance.
→ Short rejections at trendline + confirmation (e.g., RSI overbought, bearish engulfing).
→ Target next support line or previous pivot low.
Range / Sideways: Mixed criss-crossing lines → avoid trading or use horizontal S/R levels (when trendlines flatten).
Confluence = where multiple lines cluster → highest-probability zones.
Breakouts: When price closes decisively through a trendline → signals potential trend change or acceleration.
Wait for retest of broken line as new support/resistance.
Pro Trading Tips (High-Probability Setups)
Confluence is King: Trade when price reaches a trendline + horizontal S/R level from pivots (yellow zones if you add confluence logic).
Timeframe Alignment: Use daily lines for bias, 4H/1H for entries.
Confirmation Tools:
RSI(2) < 10 near support (long) or > 90 near resistance (short)
Volume > 20-period SMA on touch
Candlestick patterns (hammer, engulfing) at line
Risk Management:
Stop below support trendline (longs) or above resistance trendline (shorts)
Target 1.5–3R (next major level or opposite line)
Avoid trades if VIX > 25–30 (high volatility kills accuracy)
Best Markets: Strong trends (bullish SPY/QQQ 2020–2025) → 70–85% bounce rate at lines.
Common Mistakes to Avoid
Over-trading flat markets → wait for clear trend angle.
Ignoring angle filter → flat lines are noise, not real trends.
Not zooming out → always check higher timeframe (weekly) for major lines.
Performance Insight
Backtests on SPY daily (2010–2025): ~80% price interaction (touch/bounce) at trendlines in trending periods.
Combine with RSI(2) or EMA50 → win rate often >75% on pullback entries.
G Trade SessionsWe built this indicator because we was tired of guessing when major markets open and close. It draws simple boxes around each trading session so you can instantly see where the action is.
What it does:
Shows you the four key sessions — Asia, Frankfurt, London, and New York — as transparent boxes right on your chart. Each box marks the high and low of that session, which is super useful for spotting support/resistance levels.
Why I like it:
No clutter — boxes are subtle and don't get in the way
Labels switch from black to white automatically depending on your chart theme (dark or light)
Sessions don't overlap, so the chart stays clean
You can turn off any session you don't care about
Hope you find it useful!
cc/@version=5
indicator("5 Min Forex Strategy", overlay=true, timeframe="5")
// ───────── Indicators ─────────
// EMAs
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
// RSI
rsi = ta.rsi(close, 14)
// Stochastic
k = ta.stoch(close, high, low, 14)
d = ta.sma(k, 3)
// ───────── Trend Conditions ─────────
bullTrend = ema50 > ema200
bearTrend = ema50 < ema200
// ───────── Entry Conditions ─────────
// Buy when trend is bullish + RSI > 50 + Stochastic crosses up from oversold
buySignal = bullTrend and rsi > 50 and ta.crossover(k, d) and k < 20
// Sell when trend is bearish + RSI < 50 + Stochastic crosses down from overbought
sellSignal = bearTrend and rsi < 50 and ta.crossunder(k, d) and k > 80
// ───────── Plot Indicators ─────────
plot(ema50, color=color.yellow, title="EMA 50")
plot(ema200, color=color.red, title="EMA 200")
// RSI & Stoch plot on separate pane
rsiPlot = plot(rsi, "RSI", color=color.new(color.blue, 0))
hline(70); hline(30)
// ───────── Plot Buy/Sell signals ─────────
plotshape(buySignal, title="BUY", style=shape.labelup, color=color.green, text="BUY", size=size.small, location=location.belowbar)
plotshape(sellSignal, title="SELL", style=shape.labeldown, color=color.red, text="SELL", size=size.small, location=location.abovebar)
Dynamic Stoch200+MACD+Gann Confluence (Cardinal + Ordinal)If you're scrolling through hundreds of indicators on TradingView looking for a reliable edge, here's why this one stands out and deserves a spot on your chart:Ultra-High-Conviction Reversal Signals (Rare but Powerful)
Most indicators spam signals and repaint. This one requires four independent confluences to fire:Hidden bullish/bearish divergences on a very long-period Stochastic (200) – catches major cycle turns, not noise.Matching hidden divergences on MACD histogram – confirms momentum shift.A strong directional candle (close in top/bottom 20% of range) – filters weak wicks.
Price within ~1.75% of a dynamic Gann Square of 9 level (cardinal + ordinal angles).
Because it demands all four at once, signals are extremely rare — often only a handful per year on daily/weekly timeframes. When they appear, they frequently mark significant tops and bottoms.Fully Adaptive Gann Levels (No Static Lines)
Unlike most Gann scripts with fixed levels that quickly become irrelevant, this one:Automatically anchors to the most recent significant pivot low or high.
Calculates authentic Square of 9 rotations (45°, 90°, 135°, 180°, 225°, 270°, 315°, 360°).
Updates dynamically as new swings form — works on any timeframe and any market (BTC, stocks, forex, indices).
Clean & Customizable Toggle cardinal (strong) vs ordinal (intermediate) levels for plotting and signal checks.
Adjustable pivot sensitivity and proximity tolerance.
Minimal chart clutter: bold lines for major levels, subtle for intermediates, plus clear large triangles for entries.
Best For
Swing traders and position traders seeking high-probability reversal zones rather than frequent scalps. Excellent for Bitcoin and volatile assets where geometric levels + extreme momentum divergences often align at cycle extremes.In short: If you want an indicator that stays quiet most of the time but screams when a real reversal is likely — this is it. Add it, watch the Gann levels adapt, and wait patiently for the rare multi-confluence setups. Quality over quantity.
CME Quarterly ShiftsCME Quarterly Shifts - Institutional Quarter Levels
Overview:
The CME Quarterly Shifts indicator tracks price action based on actual CME futures contract rollover dates, not calendar quarters. This indicator plots the Open, High, Low, and Close (OHLC) for each quarter, with quarters defined by the third Friday of March, June, September, and December - the exact dates when CME quarterly futures contracts expire and roll over.
Why CME Contract Dates Matter:
Institutional traders, hedge funds, and large market participants typically structure their positions around futures contract expiration cycles. By tracking quarters based on CME rollover dates rather than calendar months, this indicator aligns with how major institutional players view quarterly timeframes and position their capital.
Key Features:
✓ Automatic CME contract rollover date calculation (3rd Friday of Mar/Jun/Sep/Dec)
✓ Displays Quarter Open, High, Low, and Close levels
✓ Vertical break lines marking the start of each new quarter
✓ Quarter labels (Q1, Q2, Q3, Q4) for easy identification
✓ Adjustable history - show up to 20 previous quarters
✓ Fully customizable colors and line widths
✓ Works on any instrument and timeframe
✓ Toggle individual OHLC levels on/off
How to Use:
Quarter Open: The opening price when the new quarter begins (at CME rollover)
Quarter High: The highest price reached during the current quarter
Quarter Low: The lowest price reached during the current quarter
Quarter Close: The closing price from the previous quarter
These levels often act as key support/resistance zones as institutions reference them for quarterly performance, rebalancing, and position management.
Settings:
Display Options: Toggle quarterly break lines, OHLC levels, and labels
Max Quarters: Control how many historical quarters to display (1-20)
Colors: Customize colors for each level and break lines
Styles: Adjust line widths for OHLC levels and quarterly breaks
Best Practices:
Combine with other Smart Money Concepts (liquidity, order blocks, FVGs)
Watch for price reactions at quarterly Open levels
Monitor quarterly highs/lows as potential targets or stop levels
Use on higher timeframes (4H, Daily, Weekly) for clearer institutional perspective
Pairs well with monthly and yearly levels for multi-timeframe confluence
Perfect For:
ICT (Inner Circle Trader) methodology followers
Smart Money Concepts traders
Swing and position traders
Institutional-focused technical analysis
Traders tracking quarterly performance levels
Works on all markets: Forex, Indices, Commodities, Crypto, Stocks
Futures Psychological Levels PROFutures Psychological Levels PRO – Professional Usage Guide
Indicator Overview
This elite psychological levels tool dynamically plots the most institutionally relevant round-number clusters across futures markets (ES, NQ, YM, CL, GC, SI, BTC, and custom instruments). It separates levels into three hierarchical tiers — Major, Tradable, and Sniper — while intelligently filtering distant levels using an ATR-based proximity engine. The result is a clean, adaptive overlay that scales perfectly from scalping precision on 1-minute charts to big-picture context on daily/weekly timeframes.
Core Philosophy
Psychological levels are where order flow clusters: stops, limits, and institutional positioning accumulate around round numbers. This indicator turns static round numbers into a dynamic decision framework by:
Prioritizing confluence zones
Reducing clutter in ranging or low-volatility environments
Highlighting only price-relevant levels in real time
Key Features
Instrument Presets – One-click optimized spacing for major futures contracts
Three-Tier Hierarchy – Major (institutional anchors), Tradable (active defense zones), Sniper (precise entry/exit triggers)
ATR Proximity Filter – Automatically hides irrelevant distant levels
Zones or Lines – Visual magnet areas or clean horizontal lines
Price Labels & Summary Table – Instant reference for next major levels above/below
Full Customization – Colors, thickness, styles, and manual overrides
How to Best Use This Indicator (Professional Workflow)
Select the Correct Instrument Preset
Start with the built-in preset matching your chart (e.g., "ES (S&P 500)" for /ES or MES). This instantly applies battle-tested increments. Use "Custom" only for non-standard assets (forex pairs, micros with different tick values, or crypto alts).
Match Settings to Your Trading Style & Timeframe
Reading the Levels – Decision Framework
Major Levels (thick red by default): Highest probability reaction zones. Expect strong reversals, breakouts with volume, or liquidity sweeps. Treat as primary support/resistance.
Tradable Levels (orange): Active trader defense zones. Excellent for limit order placement, partial profit taking, or fading weak moves.
Sniper Levels (thin gray): Precision entries/exits, stop runs, and scalping targets. Confluence with order blocks or volume profile nodes dramatically increases edge.
Trade Setup Examples
Rejection Play: Price approaches a Major level from below → long wick rejection + close back inside → enter in direction of rejection with stop beyond wick extremity.
Break & Retest: Clean breakout through Tradable/Major → retest as new support/resistance → enter on confirmation candle.
Liquidity Sweep: Price briefly breaches Sniper/Major (stop hunt) → rapid reclaim → aggressive counter-trend entry.
Confluence Boost: When a level aligns with daily/weekly open, VWAP, or prior high/low volume node → dramatically increase position size or conviction.
Risk Management Integration
Always place stops just beyond the next logical level (typically a Sniper or Tradable beyond your entry zone). Use the summary table to quickly identify invalidation points. Target the next level in the direction of your bias for minimum 1:2 risk-reward (often 1:3–1:5 achievable at Major levels).
Pro Optimization Tips
High-volatility sessions (NY open, FOMC, NFP): Increase ATR Multiplier slightly to avoid excessive clutter.
Low-volatility Asian/range sessions: Decrease ATR Multiplier for tighter precision.
Combine with Volume Profile (Fixed Range or Session) to confirm high-volume nodes at psych levels.
Pair with anchored/session VWAP for additional confluence layers.
On higher timeframes, disable Sniper levels and zones entirely for minimalist structural analysis.
Important Disclaimer
This indicator is a professional decision-support tool, not a standalone trading system. All trading involves substantial risk of loss. Past performance is not indicative of future results. Always conduct your own analysis, manage risk appropriately, and consider your financial situation before placing trades.
Mastering psychological levels is one of the highest-edge concepts in institutional trading. Used correctly, this indicator gives you the same reference framework that prop desks and market makers watch every day. Trade smart, stay disciplined, and let price action at these levels guide your executions.
Proactive Execution MachineProactive Execution Machine: Multi-State Momentum Engine
Overview
The Proactive Execution Machine is a comprehensive trading workspace designed to filter market noise and highlight high-probability execution windows. It combines Dynamic Supply/Demand Zones, Manual Level Proximity, and a proprietary Dual-Candle Momentum Scoring system to categorize the market into specific "States" in real-time.
Instead of a simple arrow, this script provides a System Status dashboard that tells you exactly what phase the market is in—whether it's "Level Absorption," a "Demand Vortex," or a "Tired Trend. "Core Components
1. The Momentum Gauge (Bottom Left)
This table provides a deep-dive into order flow by scoring the last two candles based on:
Close Location: Where price closed relative to its range (Upper, Middle, Lower).
Body-to-Wick Ratio: Measuring the "effort vs. result" of the move.
Range Relativity: Whether the current bar is an "Inside" or "Outside" bar relative to the previous candle.
Slope (Linear Regression): A real-time trendline of momentum strength to see if conviction is accelerating or decelerating.
2. Dynamic State Engine The script automatically identifies and colors the chart into three primary zones:
Supply Zone (Red): The upper 30% of the recent price discovery range.
Demand Zone (Green): The lower 30% of the recent price discovery range.
Proximity Zones: When price nears your Manual Levels (PDH, PDL, NY Open, etc.), the engine switches priority to monitor for "Breakouts" or "Level Attacks."
3. System Status (Bottom Right)The dynamic HUD changes size and color based on conviction levels. It will notify you of specific market conditions:
Supply/Demand Overrun: When momentum is so strong it is smashing through reversal zones. Level Absorption/Stalling: When price reaches a key level but momentum has "flattened," suggesting a potential reversal or high-volume churn.
Buy/Sell Now: High-conviction signals triggered only when Location (Zone) and Momentum (Score) align.
How to Trade with the "Machine"
For Trend Followers: Look for the status "TREND (ACTIVE)" combined with a Momentum Score of $\pm 4$ or higher.
For Reversion Traders: Watch for "WATCH LONGS/SHORTS" when price enters a Supply or Demand zone. Wait for the status to flip to "BUY/SELL NOW" as momentum begins to shift back toward the mean.
For Level Traders: Input your daily levels (VAH, VAL, POC) in the settings. The machine will automatically prioritize these levels, changing status to "AT LEVEL" the moment price enters your specified proximity.
Key Settings
Manual Levels: Input up to 5 custom price levels for the proximity engine.
Proximity Sensitivity: Adjust how close price must be to a level (in points/pips) to trigger an "At Level" state.
Aggression (1-5): Tuning the pivot detection. Lower numbers respond faster to micro-structure; higher numbers focus on major swing points.
Visual Coding
Candle bodies are colored to assist with single candle pattern detection:
Lime/Pink Bar Highlights: The script uses a custom color engine to highlight "Shaved" (Marubozu) bars.
Lime indicates aggressive bullish conviction, while Pink (Fuchsia) highlights aggressive bearish conviction.
Green indicates bull engulfing candle
Red indicates bear engulfing candle
Orange is an outside bar
Yellow an inside bar
Gray a Doji bar
Black all other bars
Dynamic Zones: The chart features two primary background areas:
Red Zone (Top): The Supply Zone, identifying where sellers historically reclaim control.
Green Zone (Bottom): The Demand Zone, identifying where buyers historically step in.
System Status HUD (Bottom Right): This is the "brain" of the machine. The text size is adjusted to attract the trader's attention when the slope of the momentum increases above 5 (bullish expansion) or greater than - 5 (Bearish expansion). The system status changes color based on the market state too:
HUD Coloring:
Aqua: Active Bullish Trend.
Gray: Bull trend tired.
Orange: Active Bearish Trend.
Gray: Bear trend tired.
Red: For sell now.
Green: For buy now.
Lime: Bull price level under attack.
Marron: Bear price level under attack.
Gray: Price level absorption.
Yellow: Price at level and stalling.
Maroon: An "Overrun" or "Vortex" where price is smashing through supply/demand with extreme momentum.
The text size serves as a "Volatility Alarm." * When the text is Small, the market is in a "sideways" or "absorbing" state. You should be cautious about entering new trend trades.
When the text is Large, the Machine has detected that "Aggressive" participants have entered the order flow. This is your cue that a "Level Attack" or a "Trend Breakout" is currently in progress.
The 1-Minute Tactical Setup Guide:
Proactive Execution Machine Operating on the 1-minute (1m) timeframe requires a balance between speed and noise filtration. Because the Proactive Execution Machine uses a "State Engine" logic, it is uniquely suited for the high-velocity environment of the NY Open.
I follow these three tactical steps to optimize the chart for the 1m timeframe:
Step 1: Calibrate the "Proximity Sensitivity" On a 1m chart, a "Level" isn't a single price—it's a zone.
Adjustment: In the script settings, set your Proximity Sensitivity to a value that represents the average "noise" of your instrument.
For ES (S&P 500 Futures): 1.5 to 2.5 points.
For NQ (Nasdaq Futures): 5 to 10 points.
For Forex (EURUSD): 1 to 2 pips.
The Goal: You want the "AT LEVEL" status to trigger just as price is "sniffing" the level, giving you time to prepare your order before the touch.
Step 2: Watch the "History" Column in the Momentum Gauge
The bottom-left table is your most important tool for the 1m chart. It shows you the momentum of the last three bars ($T-0$, $T-1$, $T-2$).
Momentum Sequence: Look for a "Sequence of Three." If you see $T-2$ (Neutral), $T-1$ (Long), and $T-0$ (STR Long), you have a momentum explosion.
The Trap: If you see STR LONG followed immediately by a NEUTRAL bar while in a Supply Zone, the "Machine" will shift to "SUPPLY STALLING." This is your signal to tighten your trailing stop or take profit—it means the bulls are hitting a wall of sell orders.
Step 3: The "Level Attack" Execution
The script features a unique state called "LEVEL ATTACK." This is designed specifically for breakout/breakdown traders.
The Setup: Price is approaching a Manual Level (like the NY Open or PDH).
The Signal: If the status changes to "LEVEL ATTACK (BULL)," it means the momentum score is high ($>3$) and the slope is positive while within the proximity of the level.
The Action: This is a "Proactive" entry. Instead of waiting for the candle to close above the level, you are entering as the "Machine" detects institutional pressure "attacking" the level.
Daily Routine for the "Machine"
1) 09:25 AM: Input your 5 manual levels (PDH, PDL, NY Open, VAH, VAL).
2) 09:30 AM: Wait for the first 5 minutes of volatility to settle.
3) The Window: Look for the System Status to move from "IDLE" to a colored state.
4) The Trigger: Never take a signal if the Momentum Gauge is in the "Neutral" (Yellow) zone. Only execute when the gauge shows LONG/SHORT or STR LONG/STR SHORT.
Multi-Mode Adaptive Strategy [MMAS]This Pine Script strategy dynamically adapts to different market conditions. Users can switch between trend‑following, mean‑reversion, and breakout modes, making it versatile across assets and timeframes.
Key Metrics:
- BTCUSDT / 1D → Return: +42.5%, Sharpe: 1.8, Max Drawdown: -12.3%, Win Rate: 61%
- XAGUSD / 1H → Return: +18.7%, Sharpe: 1.4, Max Drawdown: -8.5%, Win Rate: 58%
- EURUSD / 4H → Return: +25.2%, Sharpe: 1.6, Max Drawdown: -10.1%, Win Rate: 60%
Key Features:
- Modular design: switch between trend, mean‑reversion, breakout
- Works across crypto, forex, commodities
- Clear visualization with signals and metrics
• Global Note
"Universal strategy design for cross‑asset adaptability."
• Tags
trend, mean‑reversion, breakout, multi‑asset, adaptive strategy, pine script
VWAP roller autoBrief Description
VWAP Roller Auto is a TradingView Pine Script indicator that combines a rolling (resetting) Volume Weighted Average Price (VWAP) with dozens of dynamic support/resistance levels derived from Gann's Square of 9 principles. The VWAP resets periodically (automatically or manually) starting from a user-defined session open time, and the Gann levels "roll" with it, creating an adaptive grid of potential price reaction zones. It's designed for intraday trading and overlays directly on the price chart.
Key Features
Rolling VWAP with Custom Session Start
VWAP calculation restarts at configurable session open (default 8:30 CST, using proper Chicago timezone handling).
Auto-Adaptive Period Selection
Automatically chooses the VWAP reset period (from 2 min up to 48 hours) based on current volatility (ATR + realized range). Targets a user-defined spacing (~0.08% by default) between consecutive VWAPs to keep the grid relevant to market conditions. Falls back to manual period if disabled.
Gann Square of 9 Levels
Generates ~8 pairs of resistance (R) and support (S) levels above/below the current rolling VWAP using octave-based increments.
Two increment modes:
Points mode — fixed point steps that double octavely (e.g., 0.305, 0.610, 1.22, 2.44, etc.).
Percent mode — percentage steps scaled so the middle octave aligns near 0.025% for finer resolution on lower-priced assets.
Visual Enhancements
Colored fills between key level groups (e.g., inner ±0.25 octave in blue, ±1–2 octave zones in gray, higher extremes in yellow/red).
Labels on the right side marking important zones ("low", "normal", "high", "3/4 - ps1", "extreme - ps2").
Central VWAP line (customizable color and offset).
Table showing current period length and whether auto mode is active.
Non-Timeframe Friendly
Works on range bars, Renko, etc., using fallback settings when timeframe is non-standard.
Use Cases
Intraday Support/Resistance Trading
Treat the rolling VWAP as fair value and use the Gann-derived levels as dynamic zones for potential reversals, breakouts, or mean reversion.
Scalping and Day Trading
Auto-period ensures the grid spacing matches current volatility — tighter levels in quiet markets, wider in volatile ones — ideal for futures (ES, NQ), crypto, or forex.
Zone-Based Entries/Exits Buy near labeled support zones (e.g., "low" or "normal" volatility bottoms) when price trades below VWAP.
Sell/short near resistance zones in overbought conditions.
Watch for hits of "extreme" zones (±8 octave) as potential strong reversal signals.
Confluence Tool
Combine with order flow, volume profile, or other indicators; the colored fills highlight "value areas" similar to market profile concepts but anchored to a rolling VWAP.
In short, VWAP Roller Auto provides a sophisticated, self-adjusting Gann-inspired grid that moves with the market's fair value, helping traders identify high-probability reaction zones throughout the trading session.
Nested MA Envelopes HarmonicThe Nested MA Envelopes Harmonic is a custom TradingView Pine Script indicator that overlays a series of nested envelopes around exponentially increasing simple moving averages (SMAs). These SMAs use lengths that double successively (e.g., 25, 50, 100, 200, up to 3200, starting from a user-defined power-of-2 base). Each envelope is offset by deviations that follow a harmonic/octave structure (multipliers of ×1, ×2, ×4, ×8, ×16, ×32, ×64, ×128).The deviation can be set in fixed points or as a true percentage of price, with an optional auto-calibration mode that dynamically adjusts the multiplier based on historical price behavior and ATR to target a specified percentage of bars staying within the innermost envelope. The envelopes feature customizable colors, shaded zones between levels, touch counters, cycle number labels on band touches (with cooldown), and optional centering.This creates a visually layered "harmonic" channel system resembling octave bands, helping identify multi-scale support/resistance zones.
Use CaseTraders use this indicator to visualize price action across multiple time scales simultaneously, treating the nested bands as harmonic levels of volatility or mean reversion zones. Inner envelopes (levels 1–3) capture short-term fluctuations and potential overbought/oversold conditions.
Outer envelopes (levels 6–8) act as major support/resistance during strong trends or reversals.
The cycle labels mark significant touches of higher-level bands (e.g., a "7" or "8" label signals rare extreme extensions, often preceding reversals). It suits mean-reversion strategies (buy near lower bands, sell near upper), trend confirmation (price hugging mid-levels), or breakout alerts when price pierces outer zones. The auto mode adapts to changing volatility, making it versatile for stocks, forex, crypto, or futures on various timeframes.
Personal use - set on your favorite instrument and set to auto mode. Make note of the level picked in bottom right corner. Then switch to manual mode and use the same multiplier that auto used to get you in the right sizing ballpark. The goal is to capture 95% of pricing within the smallest envelope. The what you will see is you can quantify various tops and bottoms. A 1st order (hitting the top/bottom of the smallest envelope) hit is not as important as a 2nd or 3rd order hit. Generally 1st order is informational and 2-5 is actionable. 6-8 would be a unicorn and you should act accordingly. You can use points or % for the spacing.






















