Uptrick: Volatility Adjusted TrailIntroduction
The "Uptrick: Volatility Adjusted Trail" is a dynamic trailing band indicator. It adapts in real time to changing market conditions by adjusting both to volatility and trend consistency. Inspired by Supertrend-style logic, it enhances traditional approaches by introducing adaptive mechanisms for more context-sensitive behavior in both trending and consolidating environments.
Overview
This indicator combines an exponential moving average (EMA) as its basis with an Average True Range (ATR)-derived multiplier that adjusts dynamically. Unlike fixed-multiplier tools, this indicator modifies its band distances in real time according to volatility expansion and trend persistence. The result is a trailing system that adapts to the prevailing market regime, providing traders with clearer signals for trend bias, stop placement, and potential momentum shifts.
Originality
The script’s originality lies in its multi-layered approach to trail calculation. It introduces a real-time ATR multiplier adjustment driven by two factors: a volatility expansion ratio and a trend persistence model. The expansion ratio compares the current ATR to its moving average, making the indicator more sensitive during volatile conditions and less sensitive during quieter periods. The trend persistence model assesses directional consistency to widen the bands during sustained trends. This dual adjustment method creates a system that evolves with market behavior, making it more responsive and adaptive than static-band or fixed-multiplier alternatives.
Components & Inspiration
This indicator was designed with specific components that work together:
Exponential Moving Average (EMA): Chosen as the central baseline because it responds faster to recent price changes than a simple moving average, providing a more current reference for trailing bands.
Average True Range (ATR): Used as the volatility measure because it accounts for both intraday and gap movement, making it a robust and widely accepted standard for market volatility.
Dynamic Multiplier: The multiplier is adjusted by both volatility expansion and trend persistence to produce bands that tighten during low volatility and widen during consistent trends. This combination was chosen to give the indicator the ability to self-regulate across different market regimes.
Trend Persistence Model: Integrated to assess directional consistency, ensuring the bands expand during strong trends, which can prevent premature stop-outs.
Flip Confirmation Logic: Added to filter out noise by requiring multiple bar closes beyond a band before confirming a state change, reducing false reversals.
For inspiration, the indicator draws on the core idea behind Supertrend—using a baseline and volatility-derived bands to define trailing stop levels. However, while Supertrend uses a fixed ATR multiplier, this indicator introduces a dynamic multiplier system and persistence weighting, making it more adaptive and suited for varying conditions.
Inputs and Parameters
Basis EMA Length
Defines the period for the EMA that serves as the core price reference.
ATR Length
Sets the lookback period for the Average True Range calculation used in band spacing.
Base ATR Mult
The base multiplier applied to ATR before adjustments. Forms the starting scale of the band offset.
Volatility Expansion Sensitivity
Controls how strongly the band spacing reacts to short-term volatility bursts. Higher values create more pronounced band expansions or contractions.
Trend Persistence Window
Determines how many bars are used to calculate directional trend consistency using a smoothed step function.
Persistence Impact
Scales how much influence the trend persistence has on band widening. Values range from 0 (no effect) to 1 (maximum effect).
Min Effective Mult
Sets the minimum value that the adjusted multiplier can reach. Prevents the bands from becoming too narrow.
Max Effective Mult
Sets the maximum value the adjusted multiplier can reach. Prevents the bands from over-expanding during high volatility.
Bars Above/Below to Confirm Flip
Number of consecutive bars required to close above or below the opposing trail before confirming a bullish or bearish flip. Helps reduce noise and false signals.
Show Flip Labels
Enables or disables the display of flip markers on the chart.
Label Size
Allows users to adjust the size of flip labels from Tiny to Huge.
Label ATR Offset
Adjusts the vertical placement of flip labels in relation to the trail using an ATR-based offset.
Features and Logic
EMA Basis: All calculations stem from an EMA that tracks the centerline of price action.
Dynamic ATR Multiplier: The ATR multiplier adjusts in real time based on volatility expansion and trend persistence.
Clamped Multiplier: The adjusted multiplier is limited between user-defined minimum and maximum values to keep the band scale practical.
Upper and Lower Bands: Bands are plotted above and below the EMA using the dynamic multiplier and ATR values.
Trailing Logic: The script uses Supertrend-style trailing logic, updating the active band in the current trend direction and resetting the opposite band.
Trend State Detection: A state variable tracks the current market regime (bullish, bearish, or neutral). Transitions are confirmed only after a user-specified number of bars close beyond the respective bands.
Visual Elements: Trail lines and fill zones are color-coded (bullish cyan, bearish magenta). Candlestick and bar colors match the trend state. Optional flip labels mark confirmed transitions.
Alerts: Built-in alert conditions allow users to receive real-time notifications for bullish or bearish flips.
Usage Guidelines
This indicator can be used for:
Defining context-aware dynamic stop levels that adjust with market behavior.
Identifying trend direction and reversal points based on adaptive logic.
Filtering entry or exit signals during trending vs. consolidating conditions.
Supplementing trade management strategies with responsive visual markers.
Entering long or short positions based on the appearance of flip labels and managing stop losses by following the adaptive trail.
Traders may tune the parameters to suit different trading styles or timeframes. For example, lower ATR and EMA values may suit intraday setups, while longer settings may benefit swing or positional trading.
Summary
The "Uptrick: Volatility Adjusted Trail" provides a flexible, adaptive trailing band system that accounts for both volatility and directional consistency. By combining an EMA baseline with a dynamic ATR multiplier influenced by volatility expansion and trend persistence, it creates a context-sensitive trailing system that aligns with changing market conditions. Customizable confirmation, flip labels, alerts, and dynamic visual cues make it a versatile tool for trend-following, breakout filtering, and trailing stop logic.
Disclaimer
This indicator is provided for educational and research purposes only. It does not constitute financial advice. Trading involves risk, and past performance does not guarantee future results. Always conduct your own analysis and risk management before making trading decisions.
אינדיקטורים ואסטרטגיות
Larry Williams Oops StrategyThis strategy is a modern take on Larry Williams’ classic Oops setup. It trades intraday while referencing daily bars to detect opening gaps and align entries with the prior day’s direction. Risk is managed with day-based stops, and—unlike the original—all positions are closed at the end of the session (or at the last bar’s close), not at a fixed profit target or the first profitable open.
Entry Rules
Long setup (bullish reversion): Today opens below yesterday’s low (down gap) and yesterday’s candle was bearish. Place a buy stop at yesterday’s low + Filter (ticks).
Short setup (bearish reversion): Today opens above yesterday’s high (up gap) and yesterday’s candle was bullish. Place a sell stop at yesterday’s high − Filter (ticks).
Longs are only taken on down-gap days; shorts only on up-gap days.
Protective Stop
If long, stop loss trails the current day’s low.
If short, stop loss trails the current day’s high.
Exit Logic
Positions are force-closed at the end of the session (in the last bar), ensuring no overnight exposure. There is no take-profit; only stop loss or end-of-day flat.
Notes
This strategy is designed for intraday charts (minutes/seconds) using daily data for gaps and prior-day direction.
Longs/shorts can be enabled or disabled independently.
3-1-2 Strat Combo by NaturalBelleThe 3-1-2 Strat Combo by NaturalBelle automatically detects and highlights one of The Strat’s most powerful reversal patterns — the 3-1-2 setup.
When a 3 (outside bar) is followed by a 1 (inside bar) and then a 2 that breaks direction, this script plots yellow triangles and draws yellow box zones across the sequence, giving traders a clean visual cue for potential reversals or continuations.
Features:
Highlights both bullish (3-1-2-Up) and bearish (3-1-2-Down) sequences
Draws yellow boxes covering the 3-1-2 structure for easy zone recognition
Optional text labels for clarity
Adjustable box extension and transparency
Built-in alert conditions for both up and down setups
This clean, no-clutter version focuses purely on price action — no indicators, no noise. Just the pattern.
🟡 Best used on: Any timeframe
🟡 Strategy: Combine with market structure, EMAs, or supply & demand zones for confirmation
Created by NaturalBelle — keeping Strat analysis simple, visual, and precise.
Cycle VTLs – with Scaled Channels "Cycle VTLs – with Scaled Channels" for TradingView plots Valid Trend Lines (VTLs) based on Hurst's Cyclic Theory, connecting consecutive price peaks (downward VTLs) or troughs (upward VTLs) for specific cycles. It uses up to eight Simple Moving Averages (SMAs) (default lengths: 25, 50, 100, 200, 400, 800, 1600, 1600 bars) with customizable envelope bands to detect pivots and draw VTLs, enhanced by optional parallel channels scaled to envelope widths.
Key Features:
Valid Trend Lines (VTLs):
Upward VTLs: Connect consecutive cycle troughs, sloping upward.
Downward VTLs: Connect consecutive cycle peaks, sloping downward.
Hurst’s Rules:
Connects consecutive cycle peaks/troughs.
Must not cross price between points.
Downward VTLs:
No longer-cycle trough between peaks.
Invalid if slope is incorrect (upward VTL not up, downward VTL not down).
Expired VTLs: Historical VTLs (crossed by price) from up to three prior cycle waves.
SMA Cycles:
Eight customizable SMAs with envelope bands (offset × multiplier) for pivot detection.
Channels:
Optional parallel lines around VTLs, width set by channelFactor × envelope half-width.
Pivot Detection:
Fractal-based (pivotPeriod) on envelopes or price (usePriceFallback).
Customization:
Toggle cycles, VTLs, and channels.
Adjust SMA lengths, offsets, colors, line styles, and widths.
Enable centered envelopes, slope filtering, and limit stored lines (maxStoredLines).
Usage in Hurst’s Cyclic TheoryAnalysis:
VTLs identify cycle trends; upward VTLs suggest bullish momentum, downward VTLs bearish.
Price crossing below an upward VTL confirms a peak in the next longer cycle; crossing above a downward VTL confirms a trough.
Trading:
Buy: Price bounces off upward VTL or breaks above downward VTL.
Sell: Price rejects downward VTL or breaks below upward VTL.
Use channels for support/resistance, breakouts, or stop-loss/take-profit levels.
Workflow:
Add indicator on TradingView.
Enable desired cycles (e.g., 50-bar, 1600-bar), adjust pivotPeriod, channelFactor, and showOnlyCorrectSlope.
Monitor VTL crossings and channels for trade signals.
NotesOptimized for performance with line limits.
Ideal for cycle-based trend analysis across markets (stocks, forex, crypto).
Debug labels show pivot counts and VTL status.
This indicator supports Hurst’s Cyclic Theory for trend identification and trading decisions with flexible, cycle-based VTLs and channels.
Use global variable to scale to chart. best results use factors of 2 and double. try 2, 4, 8, 16...128, 256, etc until price action fits 95% in smallest cycle.
Continuation Suite v1 — 5m/15mContinuation Suite v1 — 5m/15m (Non-Repainting, S/R + Trend Continuation)
What it does
Continuation Suite v1 is a practical intraday toolkit that combines non-repainting trend-continuation signals with auto-built Support/Resistance (S/R) from confirmed pivots. It’s designed for fast, liquid names on 5m charts with an optional 15m higher-timeframe (HTF) overlay. You get: stacked-EMA bias, disciplined pullback+reclaim entries, optional volume/volatility gates, a “Strong” signal tier, solid S/R lines or zones, and a compact dashboard for fast reads.
⸻
Why traders use it
• Clear bias using fast/mid/slow EMA stacking.
• Actionable entries that require a pullback, a reclaim, and (optionally) a minor break of prior extremes.
• Signal quality gates (volume vs SMA, ATR%, ADX/DI alignment, EMA spacing, slope).
• Non-repainting logic when “Confirm on Close” = ON. Intrabar previews show what’s forming, but confirmed signals only print on bar close.
• S/R that matters: confirmed-pivot lines or ATR-sized zones, optional HTF overlay, and auto de-dup to avoid clutter.
⸻
Signal construction (no magic, just rules)
Bullish continuation (base):
1. Trend: EMA fast > EMA mid > EMA slow
2. Pullback: price pulls into the stack (lowest low or close vs EMA fast/mid over a lookback)
3. Reclaim: close > EMA fast and close > open
4. Break filter (optional): current bar takes out the prior bar’s high
5. Filters: volume > SMA (if enabled) and ATR% ≤ max (if enabled)
6. Cooldown: a minimum bar gap between signals
Bearish continuation (base): mirror of the above.
Strong signals: base conditions plus ADX ≥ threshold, DI alignment (DI+>DI- for longs; DI->DI+ for shorts), minimum EMA-spacing %, and minimum fast-EMA slope.
Reference stops:
• Longs: lowest low over the pullback lookback
• Shorts: highest high over the pullback lookback
Alerts are included for: Bullish Continuation, Bearish Continuation, STRONG Bullish, STRONG Bearish.
⸻
S/R engine (current TF + optional HTF)
• Builds S/R from confirmed pivots only (left/right bars).
• Choose Lines (midlines) or Zones (ATR-sized).
• Zones merge when a new pivot lands near an existing zone’s mid (ATR-scaled epsilon).
• Touches counter tracks significance; you can require a minimum to draw.
• HTF overlay (default 15m) draws separate lines/zones with tiny TF tags on the right.
• De-dup option hides current-TF zones that sit too close to HTF zones (ATR-scaled), reducing overlap.
• Freeze on Close (optional) keeps arrays stable intrabar; snapshots show levels immediately as bars open.
⸻
Presets
• Auto: Detects QQQ-like tickers (QQQ, QLD, QID) or SoFi; else defaults to Custom.
• QQQ: Tighter ATR% and EMA settings geared to index-ETF behavior.
• SoFi: Wider ATR allowances and longer mid/slow for single-name behavior.
• Custom: Expose all key inputs to tune for your product.
⸻
Dashboard (top-right)
• Preset in use
• Bias (Bullish CONT / Bearish CONT / Neutral)
• Strong (Yes/No)
• Volatility (ATR% bucket)
• Trend (ADX bucket)
• HTF timeframe tag
• Volume (bucket or “off”)
• Signals mode (Close-Confirmed vs Intrabar)
⸻
Inputs you’ll actually adjust
Trend/Signals
• Fast/Mid/Slow EMA lengths
• Pullback lookback, Min bars between signals
• Volume filter (vol > SMA N)
• ATR% max filter (cap excessive volatility)
• Require break of prior bar’s high/low
• “Strong” gates: min EMA slope, min EMA spacing %, ADX length & threshold
Support/Resistance
• Lines vs Zones
• Pivot left/right bars
• Extend left/right (bars)
• Max pivots kept (current & HTF)
• Zone width (× ATR), Merge epsilon (× ATR), Min gap (× ATR)
• Min touches, Max zones per side near price
• De-dup current TF vs HTF (× ATR)
Repainting control
• Confirm on Close: when ON, signals/SR finalize on bar close (non-repainting)
• Freeze on Close: freeze S/R intrabar with snapshot updates
• Show previews: translucent intrabar labels for what’s forming
⸻
How to use it (straightforward)
1. Load on 5-minute chart (baseline). Keep Confirm on Close ON if you hate repainting.
2. Use Bias + Strong + S/R context. If a long prints into HTF resistance, you have information.
3. Manage risk off the reference stop (pullback extreme). If ATR% reads “Great,” widen expectations; if “Poor,” size down or pass.
4. Alerts: wire the four alert types to your workflow.
⸻
Notes and constraints
• Designed for liquid symbols. Thin books and synthetic “volume” will degrade the volume gate.
• S/R is pivot-based. On very choppy tape, touch counts help. Increase min touches or switch to Lines to declutter.
• If your chart timeframe isn’t 5m, behavior changes because lengths are in bars, not minutes. Tune lengths accordingly.
⸻
Disclaimers
This is a research tool. No signals are guaranteed. Markets change, outliers happen, slippage is real. Nothing here is financial advice—use your own judgment and risk management.
⸻
Author: DaddyScruff
License: MPL-2.0 (Mozilla Public License 2.0)
GLOBAL LIQUIDITY PROXY, G5 Total Liquidity (CBBS + M2) - USDG5 Total Liquidity (CBBS + M2) - USD
G5 (US, CN, EU, JP, GB)
Somma Balance Sheet Central Banks e M2 convertiti in USD
RSI Core Analysis EngineHI traders
This tool employs a higher-sensitivity RSI than conventional settings to capture market shifts earlier.
When the Ultra Fast RSI (UF) approaches upper or lower extremes, short-term profit-taking or pullbacks tend to occur, and a crossover between UF and the Composite RSI can serve as a signal of a regime change.
However, in strong trends the RSI can remain pinned for extended periods, so combine it with ADX, volume, and volatility measures to improve accuracy.
While early detection is an advantage, it also increases noise. This tool uses a four-stage confirmation process (DMI/ADX → MACD/Stochastics/RSI acceleration → five-layer alignment) and quality/confidence scores to filter for higher-expectancy setups.
It will not be effective in every market condition. Use it with predefined stop-losses and prudent position sizing.
-------------------------------------------------------------------------------------------------------
Strongly recommended preset (because the indicator packs many features):
Step 1 — Inputs tab
Center Level: 50
OB1: 60, OB2: 70, OB3: 95
OS1: 40, OS2: 30, OS3: 5
Step 2 — Style tab
✅ Ultra Fast RSI — Thickest
✖ Fast RSI
✖ Medium RSI
✖ Standard RSI
✖ Slow RSI
✅ Composite RSI — Thickest
✅ Stage Indicator
✖ RSI Velocity
✖ RSI Acceleration
✅ Quality Score
✅ Bullish Cross
✅ Bearish Cross
✅ Strong Signal Background
Levels:
・✅ Center 50 — Thickest
・✅ OB1 60, OB2 70, OB3 95 (thicker)
・✅ OS1 40, OS2 30, OS3 5 (thicker)
-------------------------------------------------------------------------------------------------------------
thats enough
have a nice trade
GR33NGR33N — by TanTechTrades
GR33N is a clean, lightweight confirmation/alert tool that fires only when trend, breakout, and momentum all agree. It combines a Hull Moving Average, a Donchian Trend Ribbon, and ADX/DI into one “all green / all red” signal you can trade or use to filter other systems.
What it does
Trend (Hull MA 55): Detects short-to-medium trend direction. Line turns green when rising, red when falling.
Breakout (Donchian 20): Labels regime as bullish after a close above the prior Donchian high, bearish after a close below the prior Donchian low.
Momentum (ADX/DI 14): Confirms direction with DI+ > DI− for bullish pressure or DI− > DI+ for bearish pressure.
A signal prints only when all three align:
All Green → Hull rising and Donchian bullish and DI+ > DI−
All Red → Hull falling and Donchian bearish and DI− > DI+
The chart shades faintly and plots triangles at bars where the alignment occurs. Built-in alerts let you automate entries or notifications.
Plots & Visuals
Hull MA (color-coded by slope)
Background highlight on qualifying bars
Triangle Up/Down markers at “All Green / All Red” events
Inputs
Source: Price source for Hull (default: close)
Hull Length: Default 55
Donchian Period: Default 20
ADX Length: Default 14
Alerts
All Green Alert: “All indicators are green!”
All Red Alert: “All indicators are red!”
Set alerts on “Once per bar close” for confirmed signals.
How to use
Add GR33N to your chart and keep defaults to start.
Trade with the signal:
Long bias on “All Green”; consider entries on pullbacks or break of signal bar high.
Short bias on “All Red”; consider entries on pullbacks or break of signal bar low.
Risk manage with your own SL/TP (e.g., beyond recent swing or ATR).
Optional: Use GR33N as a filter—only take strategy entries in the direction of the latest signal.
Tips
Shorter Donchian or Hull = more signals, more noise. Longer = fewer, more selective.
Works well on intraday FX, indices, and crypto; always validate per symbol/timeframe.
Pair with structure levels, session filters, or volume for higher quality setups.
Notes
This is an indicator/alert tool, not a strategy. Past performance ≠ future results.
Signals are generated on bar close; enabling “realtime bar” alerts may lead to earlier—but less confirmed—notifications.
Built by TanTechTrades — keep it simple, keep it green. ✅
Trailing Stop + Profit TargetTrailing Stop + Exit Confirmation is a manual-entry tool designed to help traders visually manage trades with dynamic trailing stops and profit targets, based on ATR projections with a toggle button to reset calculations in real-time. Contains a “Short” toggle to work for short positions as well, which automatically inverses the PT and SL lines when toggled on.
Primary Calculations: Utilizes a manually adjustable entry price (default: $5 — ideal for options traders) that (when adjusted and recalculated) populates the chart with an adaptive ATR-based trailing stop line, dynamic profit target line, and optional 21-day EMA for directional context.
Below the Entry Price is a fully functional, manual reset toggle to reset all parameters mid-session to assess risk-reward based on entry price, risk tolerance, etc. followed by the “Short” toggle.
Primary Directions/Functions:
Enter your trade price in the “Manual Entry Price” field.
The script will begin plotting a dynamic trailing stop and profit target based on current market conditions.
Use the reset toggle to clear all calculations and start a new position at any time.
Customizable Settings:
ATR Length and Multiplier
Risk/Reward Profit Target Multiplier
Toggle to show/hide trailing stop, target, and EMA lines
Options Trading Use Case:
This tool is especially useful for options traders looking to manage premium-based entries (e.g., $5.00) on intraday or swing trades. The dynamic stop and target lines provide clear visual cues for scaling out or exiting based on price action, while allowing for tighter or looser risk depending on volatility (ATR).
This tool does not auto-detect entries or backtest positions. It is intended to complement your entry signals, not generate them. I've written an Options Momentum Signal indicator you can find right here which functions well in tandem with this tool.
Made for traders who execute trades manually and want typical preset guidelines for profit and stop loss signals but lets you recalculate them by simply clicking a button, especially if any major news or downturn causes a big change in market conditions so you can make adjustments in real time.
Larry Williams Bonus Track PatternThis strategy trades the day immediately following an Inside Day, under specific directional and timing conditions. It is designed for daily-based setups but executed on intraday charts to ensure orders are placed exactly at the open of the following day, rather than at the daily bar close.
Entry Conditions
Only trades on Monday, Thursday, or Friday.
The previous day must be an Inside Day (its high is lower than the prior high and its low is higher than the prior low).
The bar before the Inside Day must be bullish (close > open).
On the following day (t):
The daily open must be below both the Inside Day’s high and the highest high of the two days before that.
A buy stop is placed at the highest high of the three previous days (Inside Day and the two days before it).
If the new day’s open is already above that level (gap up), the strategy enters long immediately at the open.
Exit Rules
Stop Loss: Fixed, defined in points or percentage (user input).
FPO (First Profitable Open): the position is closed at the first daily open after the entry day where the open price is above the average entry price (the first profitable open).
Notes
The script must be applied on an intraday timeframe (e.g., 15-minute or 1-hour) so that the strategy can:
Detect the Inside Day pattern using daily data (request.security).
Execute orders in real time at the next day’s open.
Running it directly on the daily timeframe will delay executions by one bar due to Pine Script’s evaluation model.
VIX Gauge Overlay (Table + Label + Alerts) by Carlos C.🚨 Official 2025 Update – Corrected VIX Ranges 🚨
This overlay shows the live VIX level with both a table and a large label, including alerts for HIGH FEAR and PANIC zones.
✅ Official ranges applied:
- LOW: 13 – 15
- LIGHT FEAR: 15 – 18
- TRANSITION: 18 – 21
- HIGH FEAR: 21 – 25
- PANIC: ≥ 25
Features:
- Table with VIX ranges and live highlight
- Large optional label with current value
- Color schemes (Normal / Inverted)
- Alerts when entering/exiting HIGH FEAR (21) and PANIC (25)
⚠️ Note: Previous version is deprecated. This v3.1 is the official and corrected release.
Volume Weighted Average Price Band Extension## Volume Weighted Average Price Band Extension (VWAPb)
**Volume Weighted Average Price Band Extension** is an enhanced VWAP indicator that extends the traditional three-band system to include up to **five configurable standard deviation bands**, making it particularly well-suited for analyzing volatile market conditions where price action frequently extends beyond conventional boundaries.
### Key Features
**Extended Band System**
Unlike standard VWAP indicators that typically offer three bands, this indicator provides five independently configurable bands with customizable multipliers (default: 0.5x, 1.0x, 1.5x, 2.0x, and 3.0x). Each band can be toggled on or off, allowing traders to adapt the display to current market volatility and their specific trading strategy.
**Dual Calculation Modes**
The indicator offers flexibility in how bands are calculated:
- **Standard Deviation Mode**: Traditional statistical approach measuring price dispersion from the VWAP
- **Percentage Mode**: Distance calculated as a percentage of VWAP (1 multiplier = 1%), useful for comparing relative moves across different price levels
**Flexible Anchor Periods**
Calculate VWAP from multiple timeframes and events:
- Time-based: Session, Week, Month, Quarter, Year, Decade, Century
- Event-based: Earnings reports, Dividend announcements, Stock splits
- Customizable source (default: hlc3)
**Visual Clarity**
Color-coded bands with semi-transparent fills between upper and lower boundaries help identify key support and resistance zones at a glance. The indicator automatically hides on daily and higher timeframes when enabled, keeping charts clean.
### Ideal For
- **Volatile Markets**: The extended band system captures extreme price movements that often exceed traditional 2-3 standard deviation bounds
- **Scalping & Day Trading**: Multiple bands provide granular entry and exit zones for short-term trades
- **Mean Reversion Strategies**: Identify overextended price action relative to volume-weighted fair value
- **Institutional Order Flow Analysis**: VWAP remains a key benchmark for institutional execution
### How It Works
The Volume Weighted Average Price represents the average price weighted by volume throughout the selected anchor period. The surrounding bands act as dynamic support and resistance levels, with each successive band representing areas of increasing deviation from the volume-weighted mean. In volatile conditions, price may regularly test the outer bands (2.0x, 3.0x), which would be invisible on standard three-band implementations.
**Trading Applications:**
- Price near outer bands (±2.0x, ±3.0x) may signal exhaustion and potential reversal opportunities
- Price oscillating between inner bands (±0.5x, ±1.0x) indicates consolidation
- VWAP itself acts as a dynamic pivot point—bullish above, bearish below
### Settings Overview
- **VWAP Settings**: Anchor period selection, source input, offset capability, option to hide on D/W/M timeframes
- **Bands Settings**: Toggle each of the five bands independently, adjust multipliers, choose between Standard Deviation or Percentage calculation mode
---
**Note**: This indicator requires volume data to function properly. A runtime error will display if volume data is unavailable for the selected symbol.
**Disclaimer**: This indicator is designed for technical analysis and should be used in conjunction with other forms of analysis and proper risk management. Past performance and indicator signals do not guarantee future results.
Multiple Smoothed Moving AveragesMultiple Smoothed Moving Averages (SMMAs)
This indicator displays up to 5 Smoothed Moving Averages (SMMAs) on your chart, providing a comprehensive view of multiple trend timeframes simultaneously.
═══════════════════════════════════════
WHAT IS A SMOOTHED MOVING AVERAGE?
═══════════════════════════════════════
The Smoothed Moving Average (SMMA), also known as the Running Moving Average (RMA), is a type of moving average that provides more smoothing than a Simple Moving Average (SMA).
Unlike SMA which gives equal weight to all values in the period, SMMA uses a recursive formula that gives more weight to previous SMMA values, resulting in:
- Smoother price action with less noise
- Slower response to recent price changes
- Better identification of longer-term trends
- Reduced false signals in choppy markets
CALCULATION METHOD:
- First value: Simple Moving Average of the initial period
- Subsequent values: (Previous SMMA × (Length - 1) + Current Price) / Length
This recursive nature makes SMMA particularly effective for identifying sustained trends while filtering out short-term volatility.
═══════════════════════════════════════
FEATURES
═══════════════════════════════════════
✓ 5 Independent SMMAs: Each with its own configurable period length
✓ Individual Toggles: Show/hide each SMMA independently
✓ Distinct Colors: Easy visual identification of each moving average
✓ Customizable Lengths: Adjust each period to match your trading strategy
✓ Shared Source: All SMMAs calculate from the same price source (default: close)
✓ Overlay Display: Plots directly on the price chart
═══════════════════════════════════════
DEFAULT SETTINGS
═══════════════════════════════════════
- SMMA 1: 30 periods (Blue)
- SMMA 2: 50 periods (Orange)
- SMMA 3: 100 periods (Green)
- SMMA 4: 200 periods (Purple)
- SMMA 5: 300 periods (Red)
All SMMAs are enabled by default.
═══════════════════════════════════════
HOW TO USE
═══════════════════════════════════════
TREND IDENTIFICATION:
- Price above all SMMAs = Strong uptrend
- Price below all SMMAs = Strong downtrend
- Price between SMMAs = Transitional phase or consolidation
SUPPORT & RESISTANCE:
- SMMAs often act as dynamic support in uptrends
- SMMAs often act as dynamic resistance in downtrends
- Longer-period SMMAs (200, 300) provide stronger S/R levels
CROSSOVER SIGNALS:
- Faster SMMA crossing above slower SMMA = Bullish signal
- Faster SMMA crossing below slower SMMA = Bearish signal
MULTIPLE TIMEFRAME ANALYSIS:
- Short-term trends: 30, 50 periods
- Medium-term trends: 100 periods
- Long-term trends: 200, 300 periods
═══════════════════════════════════════
CUSTOMIZATION
═══════════════════════════════════════
INPUTS TAB:
- Adjust each SMMA length to suit your trading timeframe
- Toggle individual SMMAs on/off using checkboxes
- Change the source (close, open, high, low, hl2, hlc3, ohlc4)
STYLE TAB:
- Modify line colors for each SMMA
- Adjust line thickness and style
- Change transparency levels
═══════════════════════════════════════
NOTES
═══════════════════════════════════════
- This indicator uses the mathematically correct SMMA calculation with the recursive formula
- All calculations are performed on every bar to ensure data consistency
- SMMAs respond more slowly than EMAs but faster than WMAs to price changes
- Best used in combination with other technical analysis tools
- Use on any timeframe
═══════════════════════════════════════
Perfect for traders who want a clear, multi-timeframe view of market trends using the smooth, reliable SMMA calculation method.
Relative Volume Spike (Bullish vs Bearish)relative volume compared to 20day averages
used to detect when big money is coming in.
Combined Triggers Dashboard//@version=6
indicator("Combined Triggers Dashboard", overlay=true)
// ======================= INPUTS =======================
// Daily Trigger
shortDEMA_D = input.int(10, "Daily 10 DEMA")
longDEMA_D = input.int(20, "Daily 20 DEMA")
volAvgLen_D = input.int(20, "Daily 20-day Avg Volume")
volMultiplier_D = input.float(3, "Daily Volume Multiplier")
weekDEMAlen_D = input.int(10, "10-Week DEMA Reference for Daily Trigger")
// Weekly Trigger
shortDEMA_W = input.int(10, "Weekly 10 W DEMA")
longDEMA_W = input.int(20, "Weekly 20 W DEMA")
volAvgLen_W = input.int(50, "50-day Avg Volume for Weekly Trigger")
volMultiplier_W = input.float(3, "Weekly Volume Multiplier")
// Original Trigger (example)
shortDEMA_O = input.int(10, "Original 10 DEMA")
longDEMA_O = input.int(20, "Original 20 DEMA")
volAvgLen_O = input.int(20, "Original 20-day Avg Volume")
volMultiplier_O = input.float(3, "Original Volume Multiplier")
// ======================= FUNCTIONS =======================
f_dema(_src, _len) =>
ema1 = ta.ema(_src, _len)
ema2 = ta.ema(ema1, _len)
2 * ema1 - ema2
// ======================= DAILY TRIGGER =======================
dema10D = f_dema(close, shortDEMA_D)
dema20D = f_dema(close, longDEMA_D)
dailyVol = volume
avgVol20 = ta.sma(dailyVol, volAvgLen_D)
volCondition_D = dailyVol > volMultiplier_D * avgVol20
priceCondition_D = close > dema10D
demaCondition_D = dema10D > dema20D
weeklyClose_D = request.security(syminfo.tickerid, "W", close)
dema10W_D = ta.ema(weeklyClose_D, weekDEMAlen_D) * 2 - ta.ema(ta.ema(weeklyClose_D, weekDEMAlen_D), weekDEMAlen_D)
trigger_D = priceCondition_D and demaCondition_D and volCondition_D
plotshape(trigger_D, title="Daily Trigger", style=shape.triangleup, location=location.abovebar,
text="DTRG", textcolor=color.white, color=color.new(#FF4500, 0), size=size.small)
alertcondition(trigger_D, title="Daily DEMA Trigger Alert", message="Daily DEMA trigger detected")
// ======================= WEEKLY TRIGGER =======================
weeklyClose_W = request.security(syminfo.tickerid, "W", close)
dema10W = f_dema(weeklyClose_W, shortDEMA_W)
dema20W = f_dema(weeklyClose_W, longDEMA_W)
dailyVolW = volume
avgVol50 = ta.sma(dailyVolW, volAvgLen_W)
volCondition_W = dailyVolW > volMultiplier_W * avgVol50
priceCondition_W = close > dema20W
demaCondition_W = dema10W > dema20W
trigger_W = priceCondition_W and demaCondition_W and volCondition_W
plotshape(trigger_W, title="Weekly Trigger", style=shape.triangledown, location=location.abovebar,
text="WTRG", textcolor=color.white, color=color.new(#1E90FF, 0), size=size.small)
alertcondition(trigger_W, title="Weekly DEMA Trigger Alert", message="Weekly DEMA trigger detected")
// ======================= ORIGINAL TRIGGER =======================
dema10O = f_dema(close, shortDEMA_O)
dema20O = f_dema(close, longDEMA_O)
dailyVolO = volume
avgVolO = ta.sma(dailyVolO, volAvgLen_O)
volCondition_O = dailyVolO > volMultiplier_O * avgVolO
priceCondition_O = close > dema10O
demaCondition_O = dema10O > dema20O
trigger_Orig = priceCondition_O and demaCondition_O and volCondition_O
plotshape(trigger_Orig, title="Original Trigger", style=shape.labelup, location=location.belowbar,
text="TRG", textcolor=color.white, color=color.new(#32CD32, 0), size=size.small)
// ======================= COMBINED TABLE =======================
var table dash = table.new(position.top_right, 2, 20, border_width=1)
if barstate.islast
// --- DAILY TRIGGER (rows 0-4) ---
table.cell(dash, 0, 0, "Daily Trigger", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 0, trigger_D ? "YES ✅" : "NO ❌", text_color=color.white, bgcolor=trigger_D ? color.new(#FF4500, 0) : color.new(#555555, 50))
table.cell(dash, 0, 1, "CMP > 10D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 1, str.tostring(close, format.price), text_color=color.white, bgcolor=priceCondition_D ? color.new(#32CD32, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 2, "10D > 20D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 2, str.tostring(dema10D, format.price) + " > " + str.tostring(dema20D, format.price), text_color=color.white, bgcolor=demaCondition_D ? color.new(#FFFF00, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 3, "Daily Vol > 3x20D Avg", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 3, str.tostring(dailyVol, format.volume) + " / " + str.tostring(avgVol20, format.volume), text_color=color.white, bgcolor=volCondition_D ? color.new(#FF00FF, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 4, "10W DEMA Ref", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 4, str.tostring(dema10W_D, format.price), text_color=color.white, bgcolor=color.new(#00FFFF, 0))
// --- WEEKLY TRIGGER (rows 5-9) ---
table.cell(dash, 0, 5, "Weekly Trigger", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 5, trigger_W ? "YES ✅" : "NO ❌", text_color=color.white, bgcolor=trigger_W ? color.new(#1E90FF, 0) : color.new(#555555, 50))
table.cell(dash, 0, 6, "CMP > 20W DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 6, str.tostring(close, format.price), text_color=color.white, bgcolor=priceCondition_W ? color.new(#32CD32, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 7, "10W > 20W DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 7, str.tostring(dema10W, format.price) + " > " + str.tostring(dema20W, format.price), text_color=color.white, bgcolor=demaCondition_W ? color.new(#FFFF00, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 8, "Daily Vol > 3x50D Avg", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 8, str.tostring(dailyVolW, format.volume) + " / " + str.tostring(avgVol50, format.volume), text_color=color.white, bgcolor=volCondition_W ? color.new(#FF00FF, 0) : color.new(#AAAAAA, 50))
// --- ORIGINAL TRIGGER (rows 10-14) ---
table.cell(dash, 0, 10, "Original Trigger", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 10, trigger_Orig ? "YES ✅" : "NO ❌", text_color=color.white, bgcolor=trigger_Orig ? color.new(#32CD32, 0) : color.new(#555555, 50))
table.cell(dash, 0, 11, "CMP > 10D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 11, str.tostring(close, format.price), text_color=color.white, bgcolor=priceCondition_O ? color.new(#32CD32, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 12, "10D > 20D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 12, str.tostring(dema10O, format.price) + " > " + str.tostring(dema20O, format.price), text_color=color.white, bgcolor=demaCondition_O ? color.new(#FFFF00, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 13, "Daily Vol > 3x20D Avg", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 13, str.tostring(dailyVolO, format.volume) + " / " + str.tostring(avgVolO, format.volume), text_color=color.white, bgcolor=volCondition_O ? color.new(#FF00FF, 0) : color.new(#AAAAAA, 50))
ORDER BLCOK custom strategy# OB Matrix Strategy - Documentation
**Version:** 1.0
**Author:** HPotter
**Date:** 31/07/2017
The **OB Matrix Strategy** is based on the identification of **bullish and bearish Order Blocks** and the management of conditional orders with multiple Take Profit (TP) and Stop Loss (SL) levels. It uses trend filters, ATR, and percentage-based risk management.
---
## 1. Main Parameters
### Strategy
- `initial_capital`: 50
- `default_qty_type`: percentage of capital
- `default_qty_value`: 10
### Money Management
- `rr_threshold`: minimum Risk/Reward threshold to open a trade
- `risk_percent`: percentage of capital to risk per trade (default 2%)
- `maxPendingBars`: maximum number of bars for a pending order
- `maxBarsOpen`: maximum number of bars for an open position
- `qty_tp1`, `qty_tp2`, `qty_tp3`: quantity percentages for multiple TPs
---
## 2. Order Block Identification
### Order Block Parameters
- `obLookback`: number of bars to identify an Order Block
- `obmode`: method to calculate the block (`Full` or `Breadth`)
- `obmiti`: method to determine block mitigation (`Close`, `Wick`, `Avg`)
- `obMaxBlocks`: maximum number of Order Blocks displayed
### Main Variables
- `bullBlocks`: array of bullish blocks
- `bearBlocks`: array of bearish blocks
- `last_bull_volume`, `last_bear_volume`: volume of the last block
- `dom_block`: dominant block type (Bullish/Bearish/None)
- `block_strength`: block strength (normalized volume)
- `price_distance`: distance between current price and nearest block
---
## 3. Visual Parameters
- `Width`: line thickness for swing high/low
- `amountOfBoxes`: block grid segments
- `showBorder`: show block borders
- `borderWidth`: width of block borders
- `showVolume`: display volume inside blocks
- `volumePosition`: vertical position of volume text
Customizable colors:
- `obHighVolumeColor`, `obLowVolumeColor`, `obBearHighVolumeColor`, `obBearLowVolumeColor`
- `obBullBorderColor`, `obBearBorderColor`
- `obBullFillColor`, `obBearFillColor`
- `volumeTextColor`
---
## 4. Screener Table
- `showScreener`: display the screener table
- `tablePosition`: table position (`Top Left`, `Top Right`, `Bottom Left`, `Bottom Right`)
- `tableSize`: table size (`Small`, `Normal`, `Large`)
The table shows:
- Symbol, Timeframe
- Type and status of Order Block
- Number of retests
- Bullish and bearish volumes
---
## 5. Trend Filters
- EMA as a trend filter (`emaPeriod`, default 223)
- `bullishTrend` if close > EMA
- `bearishTrend` if close < EMA
---
## 6. ATR and Swing Points
- ATR calculated with a customizable period (`atrLength`)
- Swing High/Low for SL/TP calculation
- `f_getSwingTargets` function to calculate SL and TP based on direction
---
## 7. Trade Logic
### Buy Limit on Bullish OB
- Conditions:
- New bullish block
- Uptrend
- RR > threshold (`rr_threshold`)
- SL: `bullishOBPrice * (1 - atr * atrMultiplier)`
- Multiple TPs: TP1 (50%), TP2 (80%), TP3 (100% max)
- Quantity calculation based on percentage risk
### Sell Limit on Bearish OB
- Conditions:
- New bearish block
- Downtrend
- RR > threshold (`rr_threshold`)
- SL: `bearishOBPrice * (1 + atr * atrMultiplier)`
- Multiple TPs: TP1 (50%), TP2 (80%), TP3 (100% max)
- Quantity calculation based on percentage risk
---
## 8. Order Management and Timeout
- Close pending orders after `maxPendingBars` bars
- Close open positions after `maxBarsOpen` bars
- Label management for open orders
---
## 9. Alert Conditions
- `bull_touch`: price inside maximum bullish volume zone
- `bear_touch`: price inside maximum bearish volume zone
- `bull_reject`: confirmation of bullish zone rejection
- `bear_reject`: confirmation of bearish zone rejection
- `new_bull`: new bullish block
- `new_bear`: new bearish block
---
## 10. Level Calculation
- Swing levels based on selected timeframe (`SelectPeriod`)
- `xHigh` and `xLow` for S1 and R1 calculation
- Levels plotted on chart
---
## 11. Take Profit / Stop Loss
- Extended horizontal lines (`extendBars`) to visualize TP and SL
- Customizable colors (`tpColor`, `slColor`)
---
## 12. Notes
- Complete script based on Pine Script v5
- Advanced graphical management with boxes, lines, labels
- Dynamically displays volumes and Order Blocks
- Integrated internal screener
---
### End of Documentation
Retracement FiboNacci🎯 Core Functionality
Automatic Swing Detection: Uses ZigZag algorithm to detect significant price swings
Dual Modes:
Fibonacci Retracements - Traditional price-based levels
Fibonacci Time Zones - Time-based projections
Multi-Timeframe Analysis: Works on any timeframe while detecting swings from higher timeframes
⚙️ Customization Options
Fibonacci Levels:
Fully customizable Fibonacci levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%)
Individual color selection for each level
Toggle on/off specific levels as needed
Display Settings:
Line Styling: Choose between Solid, Dashed, or Dotted lines
Line Thickness: Adjustable from 1 to 5 pixels
ZigZag Visibility: Toggle base ZigZag line display
Label Management:
Fibonacci Labels: Show percentage retracement levels
Price Labels: Display actual price values
Flexible Positioning:
Left, Right, Both sides, or Auto-centering
Independent control for Fib and Price labels
Option to hide labels completely
🔧 Technical Specifications
ZigZag Parameters:
Depth: 12 bars
Deviation: 1%
Backstep: 2 bars
Real-time Updates: Automatically redraws when new swings are detected
Clean Interface: Removes old drawings to prevent chart clutter
Usage Scenarios
📈 Trend Analysis
Identify retracement levels during pullbacks
Spot potential reversal zones at key Fibonacci levels
Measure swing magnitudes for position sizing
⏰ Time Projections
Use Time Zone mode for forecasting potential reversal times
Combine price and time analysis for confluence
🎨 Visual Customization
Color-code important levels (e.g., 61.8% as golden ratio)
Adjust label sizes for better readability
Choose line styles that complement your chart setup
Ideal For
Swing traders identifying entry/exit points
Position traders finding optimal accumulation zones
Technical analysts validating support/resistance levels
Multi-timeframe analysts correlating higher timeframe structure
Pro Tips
Combine with Volume: Confirm reactions at Fibonacci levels with volume spikes
Multiple Timeframes: Use higher timeframe Fibonacci levels for major S/R
Confluence Trading: Look for Fibonacci levels aligning with previous support/resistance
Risk Management: Use Fibonacci extensions for profit targets
ATR SL 10/10 This indicator draws an ATR-based trailing stop on the main chart and shows two compact labels:
• Stop line = Low − (ATR × Multiplier).
• “Today” label: the current bar’s stop price.
• “5-bar Max” label: the highest stop value over the last N bars (rolling window). Labels auto-separate slightly if they overlap so both remain readable.
ATR selection logic
• On confirmed bars (after close): uses today’s ATR.
• In real-time (bar not confirmed): uses max(today’s ATR, yesterday’s ATR) to avoid under-estimating volatility early in the session.
Inputs
• Length: ATR period.
• Smoothing: RMA/SMA/EMA/WMA for ATR.
• Multiplier: stop distance in ATR units.
• Long Base: price source for the long stop (usually Low).
• Show Price Line: toggle the pink stop line.
• Lookback: window for the rolling 5-bar maximum label.
Notes
• Overlay = true; the line scales with the price chart.
• Prices/labels use mintick formatting for clean alignment.
• Works on any timeframe; ATR is computed from the active chart’s bars with the above real-time safeguard.
Volume Quintile Candle ColorsRecolors the candles based on the quintile of volume in that candle compared to the most recent 100 candles
ATR RS 10/11ATR RS — What it does (English)
• Purpose: A compact risk-sizing helper that plots Daily ATR(10, RMA) in a separate panel and shows a live sizing summary (ATR used, Stop, Per-unit risk, Risk, Size, Bet). Works on any chart timeframe.
• Daily ATR logic (robust intraday handling):
– Before first trade of the session: use yesterday’s daily ATR only.
– During the session (daily candle unconfirmed): use max(today’s daily ATR, yesterday’s daily ATR) to avoid underestimating volatility early in the day.
– After the daily candle closes: use today’s daily ATR.
• Stop rule (long bias):
Stop = Today’s Daily Low − Multiplier × ATR_used
• Position sizing:
Per-unit risk = max(Entry − Stop, 0) × PointValue
Raw size = RiskAmount / Per-unit risk
Final size = floor(Raw size / LotSize) × LotSize
(Optional cap via Max Position Cap; negatives coerced to 0.)
• “Entry” price: current chart close (i.e., real-time last for intraday, or close for historical/confirmed bars).
• Panel fields:
– ATR(10): Daily ATR(10, RMA)
– ATR used: the volatility value selected by the intraday rule above
– Stop: computed stop price (you can snap to tick if desired)
– Per-unit: risk per share/contract = (Entry − Stop) × PointValue
– Risk: user input, account currency
– Size: position size after lot rounding and cap
– Bet: Entry × Size × PointValue
• Inputs:
– ATR Length (Daily RMA), Multiplier (for stop), Risk Amount, Point Value (stocks=1; futures=contract point value), Lot Size, Max Position Cap, Show summary table.
• Notes:
– Uses request.security(“D”, …) with no lookahead, so the same ATR is used consistently regardless of the chart timeframe.
– If your venue has fractional ticks, consider snapping the Stop to tick size so labels and price markers match perfectly.