Custom Net ATR Mapping - NateThis indicator measures how much an asset actually moves — both on average and across full periods — so traders can compare short-term volatility with longer-term net momentum.
It displays four key metrics in a simple color-coded table:
Standard ATR – the average daily (or per-bar) range, showing typical volatility.
Net ATR – the average open-to-close move, revealing how much price tends to travel directionally within each bar.
Total Net Move – the total distance price has moved from the start to the end of the most recent measurement window.
Average Net Move – the typical size of that full-period move, averaged across multiple recent windows.
Together these readings help you see whether recent price action is choppy but contained (high ATR, low net move) or sustained and directional (high net move relative to ATR) — useful for spotting trend strength, breakout potential, or range-bound conditions.
真實波幅均值(ATR)
Quantum Reservoir Computing⚛ Quantum Reservoir Computing - Multi-Scale Market Analysis 
 OVERVIEW 
This indicator combines three structural analysis kernels (Energy, Resonance, Topology) with a 6-spin reservoir computing network to provide multi-dimensional market state monitoring. It is designed to detect structural shifts, coherence alignment, and potential entry timing through visual analytics and optional signal markers.
 WHAT MAKES IT ORIGINAL 
Unlike single-indicator approaches, QRC fuses complementary analysis methods and uses a reservoir computing layer (coupled oscillator network) to capture temporal market structure. The system uses entropy-compensated signal logic to maintain directional alignment across kernels with inverted mathematical properties.
 HOW IT WORKS (Technical Details) 
 1. ENERGY KERNEL 
Measures compression state through two components:
•  Entropy:  Volatility-normalized return distribution, inverted (low volatility = high compression energy)
•  ATR Compression:  Short-period ATR divided by longer-period baseline ATR
•  Final Energy:  Weighted average of both components, ranging 0 to 1
 2. RESONANCE KERNEL 
Calculates cross-timeframe coherence using:
• 6 exponential moving averages (periods: 9, 14, 20, 30, 48, 84)
• Slope calculation for each EMA
• Amplitude weighting based on user-selected mode (Close/ATR/StDev)
•  Coherence Index (CI):  Measures directional agreement across all timeframes
•  Mode Persistence:  Stability of CI over 20 bars
 3. TOPOLOGY KERNEL 
Analyzes path geometry through:
•  Turn density:  Rate of price directional changes
•  Curvature:  Second-order price differences normalized by ATR
• Combined into a 0-1 topology change metric
 4. RESERVOIR COMPUTING (6-Spin Network) 
Six coupled state variables (spins) arranged in a ring topology:
• Drive signal combines directional consensus, price z-score, volume, and ATR regime
• Each spin updates via hyperbolic tangent activation with neighbor coupling
•  Psi (Ψ):  Coherence measure (average pairwise spin correlation)
•  Spin Direction:  Signed average of all spins
•  Pulse detection:  Positive changes in Ψ, z-scored to detect energy releases
 5. FUSION & SCORING 
•  Magnitude:  Weighted combination of all kernels (0 to 1 scale)
•  Direction:  Blend of EMA slope consensus, basis slope, and spin direction (-1 to 1)
•  ScoreSigned:  Direction multiplied by Magnitude (drives visuals)
•  GateScore:  Amplified score used only for signal threshold checks
•  Heat:  Entanglement measure combining Ψ, CI, and Magnitude
 SIGNAL LOGIC (Important: Entropy-Compensated Inversion) 
Because the entropy kernel naturally inverts (low volatility = bullish compression), signal logic compensates to maintain directional alignment:
•  LONG signals  fire when GateScore crosses below the short threshold (bearish GateScore + bullish structure)
•  SHORT signals  fire when GateScore crosses above the long threshold (bullish GateScore + bearish structure)
This inversion has been visually validated through metric plotting and maintains correct alignment with Resonance and Topology kernels.
 Signal gates require: 
• Two-of-three pass: CI ≥ minimum, Mode Persistence ≥ minimum, Ψ ≥ minimum
• Heat ≥ minimum threshold
• OR recent pulse window active (ΔΨ edge within N bars)
• Minimum bar spacing between signals (prevents clustering)
 VISUAL COMPONENTS 
 1. Contained Ribbon (Recommended Mode) 
• Center line: Basis EMA
• Edge: Positioned by ScoreSigned value
• Fill color: Green (bullish) or Red (bearish)
• Width: ATR-adaptive with configurable floor/ceiling
 2. Quantum Aurora (Multi-Layer Energy Bands) 
• 5-8 harmonic layers with phase-driven oscillations
• Colors shift with Heat level (cool blue at low Heat, warm orange/magenta at high Heat)
• Creates visual texture that reflects market state dynamics
 3. Interference Mesh 
• Subtle oscillating overlay modulated by CI and ScoreSigned
• Provides depth perception without visual clutter
 4. Resonance Cloud 
• Width proportional to Coherence Index
• Wide cloud = strong cross-timeframe alignment
• Narrow cloud = weak structural coherence
 5. Energy Particles 
• Floating micro-dots with density mapped to Magnitude
• Color-coded by Heat level (gold/cyan/gray)
• Provides continuous conviction feedback
 6. Regime Atmosphere 
• Background tint indicating market mode:
  - Green: Coherent trend (CI>0.65, Ψ>0.55)
  - Red: Choppy regime (CI<0.45, Ψ<0.40)
  - Purple: Transition state
 DASHBOARDS 
 1. Main Dashboard (Moveable, Resizable) 
• Regime indicator with color-coded status
• Horizontal meter gauges for Ψ, CI, Heat, Magnitude
• Signal strength bars for Score and Gate
• Status indicators (dots) for ΔΨ, Heat, CI health
• Directional arrows and bars-since-signal counter
• Size options: Tiny, Small, Normal, Large
• Position: All four corners available
 2. Heat HUD (Entanglement Matrix) 
• Multi-row gradient display of last N bars (configurable 10-120)
• Metrics: Heat, Psi, CI, Magnitude, Pulse Z-score, Gate proximity
• Color-coded blocks show metric intensity over time
• Live footer with current values
• Resizable and moveable
 HOW TO USE 
 Step 1: Monitor Regime and Structure 
• Check Dashboard regime indicator (Trend/Chop/Transition)
• Observe Aurora flow (smooth = stable, erratic = unstable)
• Wide Resonance Cloud indicates strong multi-timeframe alignment
 Step 2: Watch Entanglement Heat 
• Heat HUD shows persistent structure as amber/red runs
• Green status dots indicate healthy metrics
• Rising Heat + rising Ψ suggests mode-locking
 Step 3: Confirm Gate Conditions 
• Dashboard displays effective thresholds (dynamically relaxed after dry periods)
• Two-of-three gate (CI/ModePersistence/Ψ) must pass OR recent pulse active
• Strength bars show conviction level
 Step 4: Interpret Signals 
• Enable "Show Diagnostic Plots" to verify metric behavior on your symbols
• Signals appear as tiny triangles (green below bars = long, red above = short)
• Best confluence: Heat rising + fresh pulse cluster + strong CI
 Step 5: Risk Management 
• Place stops beyond opposite ribbon edge plus 0.5 ATR buffer
• Trail stops following basis ± ATR fraction while Heat/Psi remain elevated
• Exit early if CI or Ψ collapse (status dots turn yellow/red)
 CUSTOMIZATION 
Extensive settings available:
•  Core:  EMA length, ATR length, pulse thresholds, heat minimum
•  Signals:  Mode (Aggressive/Normal/Conservative), thresholds, spacing, gain
•  Visuals:  Ribbon mode, Aurora layers, particle density, all show/hide toggles
•  Dashboards:  Size, position for both main dashboard and heat HUD
•  Diagnostics:  Optional metric plots for validation
 IMPORTANT DISCLAIMERS 
•  This indicator does not predict future price movements 
•  Signals use entropy-compensated inversion  (explained above); verify on your symbols
•  Always backtest on your specific markets and timeframes before live trading 
•  Past performance does not guarantee future results 
• Heavy visuals may impact performance on lower-end devices (use Performance toggles)
• Designed for liquid markets (major indices, forex, crypto); may underperform on illiquid symbols
• Complex system with learning curve; read full guide embedded in code
 DIAGNOSTIC MODE 
Enable "Show Diagnostic Plots" in settings to verify metric behavior:
• Heat, Psi, CI, Magnitude plotted in lower pane
• ScoreSigned and GateScore normalized to 0-1 scale
• Reference lines at 0.25, 0.5, 0.75 for threshold context
• Observe metric alignment with price action on YOUR symbols
 METHODOLOGY NOTE 
The "Quantum" terminology refers to the reservoir computing methodology (coupled oscillator network), not actual quantum mechanics. The 6-spin network uses hyperbolic tangent activation functions to model temporal market structure. This is a deterministic mathematical model, not a quantum computing system.
 BEST SUITED FOR 
• Liquid markets: Major indices (ES, NQ), forex majors (EUR/USD, GBP/USD), large-cap crypto (BTC, ETH)
• Timeframes: 5-minute through daily (works on all, but designed for intraday to swing)
• Trading styles: Structure-based entries, multi-timeframe confluence, visual state monitoring
• Experience level: Intermediate to advanced (complex system with learning curve)
 PERFORMANCE CONSIDERATIONS 
• Heavy calculations (6 spins, 6 EMAs, Aurora layers, particles) may lag on lower-end devices
• Use "Dashboard Size: Tiny" and reduce "Aurora Layers" to 2-3 for better performance
• Consider disabling "Energy Particles" on mobile devices
• Script is optimized with array capping and label recycling, but complexity remains high
 SUPPORT & UPDATES 
• Questions about usage or settings? Send me a message - I respond within 24 hours
• Feature requests are welcome for consideration in future updates
• Bug reports appreciated and addressed promptly
• Script will be maintained and updated as needed
 FINAL REMINDERS 
•  This is an analytical tool, not a trading system 
•  Always backtest on YOUR symbols and timeframes before live use 
•  Use proper risk management - stops, position sizing, etc. 
•  Past performance does not guarantee future results 
•  Start with demo/paper trading to learn the system 
— Dskyz, Trade with insight. Trade with anticipation.
ATR(21)% EMA Next to CandleATR, or Average True Range, is a technical analysis indicator that measures market volatility by calculating the average price movement of an asset over a set period. It does not indicate price direction but shows how much a market is fluctuating. A rising ATR indicates higher volatility, while a falling ATR suggests lower volatility.
Trader Mike Webster, known for his work with the growth-focused CANSLIM strategy developed by William O'Neil, has created his own indicator called the Webby RSI, which incorporates ATR. In this application, the ATR is used to scale a stock's movement relative to its 21-day exponential moving average (EMA). In this case it is based on a percentage.
MACD AI Flux Pro Dashboard V. 2Acknowledgment 
This indicator is built upon the MACD-V (Volatility-Normalized MACD) methodology originally created by Alex Spiroglou, CMT, whose research (2015–2022) introduced the principle of normalizing MACD momentum by volatility (MACD/ATR). Full acknowledgment and credit are hereby given to Mr. Spiroglou as the original author of the MACD-V concept and framework.
Indicator Overview — MACD-V Flux Pro Dashboard V.2
The MACD-V Flux Pro Dashboard advances Spiroglou’s volatility-normalized foundation into a comprehensive multi-system architecture that unifies momentum, trend, volatility, and compression analytics in one visual framework. It is engineered for precision decision-making in both intraday and swing-trading environments.
 Key Dashboard Features: 
Dynamic Probability Engine: Calculates real-time long and short probabilities by weighting momentum, slope, compression, and volume pressure components into a composite score.
Multi-Timeframe Confirmation (HTF Tiles): Displays live directional agreement across fast, mid, and slow timeframes for confidence filtering and signal validation.
Regime Detection System: Automatically classifies the market as Trend Up, Trend Down, Compression, or Transition, applying background color cues for instant context.
Risk and News Filters: Integrates ATR-based risk gating and customizable “mute windows” to block trade signals during high-volatility or scheduled news events.
VWAP and Adaptive Bands: Plots VWAP with configurable ATR or standard-deviation bands to highlight over-extension and pullback zones.
Trend-Day and Opening-Range Logic: Monitors RTH (Regular Trading Hours) price behavior to identify potential trend-day conditions.
Smart Entry Arrows: Generates visual long/short signals only when multiple subsystems confirm direction, slope strength, and proximity to VWAP within defined thresholds.
On-Chart Dashboard Panel: Presents live metrics including probability bias, regime state, ATR level, risk status, and news filters with adaptive color-coding and optional emoji cues for intuitive interpretation.
Chart Display Summary:
All elements are presented directly on the main chart, combining price structure, VWAP bands, EMAs, and regime background shading with the real-time dashboard panel. The design eliminates the need for a secondary pane, offering a consolidated and context-rich view of market dynamics
ATR DAILY PROGRESSION)Indicator: ATR Daily Progression — Final Compact Edition
1. Indicator Objective
The ATR Daily Progression indicator measures the progression of intraday volatility as a percentage of the daily Average True Range (ATR).
It provides a quick visual overview of whether the market has reached or exceeded its average daily range of movement.
This helps traders avoid entering low-probability continuation trades once the day’s ATR is already completed.
2. Visual Presentation
Horizontal bar ranging from 0% to 150% of the ATR.
Green color up to 100%, then red beyond that point.
Main ticks: 0, 25, 50, 75, 90, 100, and 150%.
Full-height white vertical lines at 0%, 100%, and 150%.
A floating badge displaying the current ATR completion percentage, always visible.
Compact Height mode enabled by default for optimal visual integration.
3. Key Features
Function Description
Precise alignment The transition from green to red occurs exactly after the 100% tick.
Audio & visual alerts Triggered at 75%, 90%, 100%, and 150%.
Session flash effects The filled bar blinks when the ATR is reached (100%) or exceeded (150%).
Dynamic badge Displays the current ATR %, green before 100%, red after.
Compact layout Three-line table format for better chart integration.
4. Recommended Settings
ATR Length (Daily): 14
Bar width (steps): 32–40 (depending on chart size)
Always green below 100%: enabled
Show floating % badge: enabled
Compact Height: enabled by default
Flash at 75% and 90%: enabled
Flash at 100% and 150%: enabled
5. Strategic Use
The ATR Done Today is a visual discipline tool designed to help traders:
Identify when the market has likely completed its daily move.
Avoid late-session counter-trend trades.
Visualize volatility compression or expansion.
Determine optimal times to take profits or pause trading.
Order Blocks & Breaker Blocks Plus [SunanLabs]🟦 Order Blocks & Breaker Blocks Plus   V1.0
© SunanLabs — Creative Commons Attribution 4.0 International (CC BY 4.0)
Version: 1.0 – Breaker Marker Build
Pine Script Version: v6 (Fully Compliant)
Category: Technical Analysis → Smart Money Concepts / Supply & Demand
🧭 Overview
Order Blocks & Breaker Blocks Plus   is a precision-engineered visualization tool designed for institutional-style Smart Money Concepts (SMC) trading.
It automatically detects, plots, and updates Order Blocks (OBs) and Breaker Blocks (BBs) in real time — with full control over transparency, marker shape, and size, directly from the TradingView UI.
Built for both professional traders and educational use, it visually clarifies how structure shifts occur when liquidity is swept and rebalanced by market makers.
⚙️ Core Features
✅ Real-Time Order Block Detection
• Bullish and Bearish OBs automatically marked based on swing structure.
• Uses either wicks or candle bodies (configurable).
✅ Breaker Block Tracking
• When an OB fails, a dashed breaker line is drawn at the exact invalidation point.
• Perfect for visualizing liquidity flips or structural breaks.
✅ Marker System (Customizable)
• Choose between two styles: "▲ / ▼" or "⇑ / ⇓", or disable markers completely.
• Marker sizes from tiny → huge for all chart styles and resolutions.
✅ Fully Reactive Colors
• Direct opacity control via TradingView color picker (no hardcoded alpha).
• Separate color sets for OBs and Breaker Blocks.
✅ Built-in Alerts
• Automatic alerts when new OBs form or when a Breaker Block triggers.
• Alerts include symbol, timeframe, and current price context.
✅ Ultra-Stable Build
• Pine v6 compliant (no line continuations, undeclared variables, or runtime warnings).
• Modular, efficient, and built for expansion.
🧩 Usage Guide
1. Swing Lookback – Controls sensitivity: higher = stronger, fewer OBs; lower = more reactive zones.
2. Show Last Bullish/Bearish OB – Limits how many zones are displayed for visual clarity.
3. Use Candle Body – Toggles between wick-based and body-based zone boundaries.
4. Marker Style – Select from:
▲ / ▼ traditional solid arrows
⇑ / ⇓ arrowhead-with-tail style
none to disable markers
5. Marker Size – Choose from tiny, small, normal, large, or huge.
6. Colors – All opacity levels controlled directly through the color configuration UI.
📚 Concept Notes
• Order Block (OB): The last bullish/bearish candle before a strong opposing move; represents institutional order placement zones.
• Breaker Block (BB): A former OB invalidated by price; it flips polarity and often acts as support/resistance.
• Swing Lookback: Determines how the indicator identifies local highs/lows for OB anchoring.
⚠️ Disclaimer
This indicator is provided for educational and research purposes only.
It does not constitute financial advice or a guarantee of trading performance.
Always test indicators thoroughly in simulation before live trading.
🧾 License
This script is released under the
Creative Commons Attribution 4.0 International License (CC BY 4.0).
You are free to use, modify, and share it for any purpose —
with proper credit to “SunanLabs.”
🧠 Attribution
Developed and maintained by SunanLabs
Part of the SunanLabs Smart Money Concepts Suite
Built to the SunanLabs PineScript Standards for reliability, modularity, and clarity.
MACD-V Adaptive FluxProMACD-V Adaptive FluxPro
Type: Multi-Factor Volatility-Normalized Momentum & Regime Framework
Overlay: ✅ Yes (on price chart)
Purpose: Detect high-probability trend continuation or reversal zones through volatility-adjusted momentum, VWAP structure, and adaptive filters.
🧩 Concept Overview
MACD-V Adaptive FluxPro is a next-generation, multi-factor analytical framework that merges the principles of Linda Raschke’s 3-10-16 MACD with modern volatility normalization and adaptive filtering.
Instead of generating raw buy/sell signals, it builds a probability-driven environment model — showing when price action, volatility, and structure align for high-confidence trades.
The “V” in MACD-V stands for Volatility Normalization: every MACD component is divided by ATR to stabilize amplitude across fast or slow markets.
This enables the indicator to remain consistent across timeframes, instruments, and volatility regimes.
⚙️ Core Components
1️⃣ Volatility-Normalized MACD (MACD-V)
A traditional MACD built on Linda Raschke’s 3-10-16 structure, but adjusted by ATR to create a volatility-invariant momentum profile.
You can toggle to alternative presets (Scalp / Swing / Trend) for faster or slower environments.
2️⃣ Dynamic Regime Detection
A slope-based classifier that identifies whether the market is:
Trend Up 🟢
Trend Down 🔴
Compression / Squeeze 🟧
Transition / Neutral ⚫
The background color updates dynamically as momentum, volatility, and slope shift between these states.
3️⃣ VWAP Structure Bands
Adaptive VWAP with inner and outer ATR-scaled envelopes.
These act as short-term mean-reversion and breakout zones.
The indicator can optionally gate entries to occur only within defined VWAP proximity.
4️⃣ EMAs for Micro-Trend Confirmation
Includes 9-EMA and 21-EMA, color-configurable for visual crossovers and short-term momentum bias.
5️⃣ Multi-Timeframe Confirmation Tiles
Top-center dashboard tiles display directional bias from higher timeframes (e.g., 15m / 1h / 4h).
When all align, it confirms multi-frame trend coherence.
6️⃣ Adaptive Probability Engine
All subsystems — MACD-V, slope, compression, volume z-score, and VWAP distance — feed into a logistic scoring model that outputs a real-time AOI Probability (0-100%).
When conditions align, probabilities rise above 60% (long bias) or drop below 40% (short bias).
These are your high-probability “Areas of Interest.”
7️⃣ Dashboard HUD
The top-right status console provides a one-glance view of system state:
Field	Meaning
AOI Prob Long	Real-time probability of bullish bias
Regime	Market state (Trend, Transition, Compression)
Risk Gate	ATR-based volatility filter
News Mute	Manual toggle for event-risk suppression
ATR (≈ risk)	Real-time volatility readout
Status	✅ Trading OK / 🧱 Risk Gate / 🔇 News Mute / 🟧 Compression
🎯 Interpretation Guide
Visual	Meaning
🟢 Green background	Confirmed uptrend regime
🔴 Red background	Confirmed downtrend regime
🟧 Orange background	Volatility compression (squeeze forming)
⚫ Gray background	Transitional / indecisive structure
Teal % (AOI Prob Long)	Bullish probability > 60%
Arrows	Optional: appear only when all gates align (rare, filtered signals)
🧮 Mathematical Notes
MACD-V = (EMA_fast(src) − EMA_slow(src)) / ATR(n)
Normalized score is smoothed, scaled 0–100 via logistic curve
Slope = Δ(EMA(src, n)) / ATR(n)
Probabilities gated by:
Minimum slope magnitude (minAbsSlope)
VWAP proximity (maxVWAPDistATR)
Multi-TF agreement
Cooldown interval (cooldownBars)
ATR-based risk gate
No repainting — all calculations use barstate.isconfirmed.
⚡ Use Cases
✅ Identify trend regime changes before major expansions
✅ Filter breakout vs. compression setups
✅ Quantify volatility conditions before entries
✅ Confirm multi-timeframe alignment
✅ Serve as a visual regime map for automated systems or discretionary traders
🧠 Recommended Presets
Market Type	Setting Preset	Behavior
Index Futures (ES/NQ)	LBR 3-10-16 SMA (default)	Classic swing/momentum balance
Scalping (1m–5m)	Fast Adaptive	Higher frequency, shorter cooldown
Swing Trading (1h–4h)	Smooth ATR	Broader, trend-only signals
Trend-Following Futures	Wide ATR Bands	Filters noise, favors strong continuation
⚠️ Notes
Non-repainting, bar-confirmed calculations
Signal arrows are optional and rare — intended for precision setups
ATR and slope thresholds should be tuned per instrument
Compatible with all TradingView markets and resolutions
🏁 Summary
“MACD-V Adaptive FluxPro” is not a simple MACD — it’s a volatility-normalized market state engine that adapts to changing conditions.
It fuses Linda Raschke’s timeless MACD logic with modern volatility, slope, and multi-timeframe analytics — giving you a live market dashboard that tells you when not to trade just as clearly as when you should.
Fincandle ATR Direction TrackerOverview
The Fincandle  ATR Direction Tracker is a strategy designed to capture momentum moves in the market using a dynamic ATR-based trailing stop. It identifies strong momentum candles and filters signals using trend alignment with moving averages.
Partial exits allow users to take a portion of profit at a predefined ATR multiple while keeping the remaining position open until the opposite signal occurs.
How It Works
Momentum Detection:
Measures candle body size relative to the Average True Range (ATR).
A candle is considered momentum if its body size exceeds ATR × Multiplier.
Trend Filter:
Uses two moving averages (Fast MA and Slow MA) to determine the market trend.
Bullish trend: Fast MA > Slow MA → long trades allowed
Bearish trend: Fast MA < Slow MA → short trades allowed
Trend filter can be toggled on or off.
ATR Trailing Stop:
A dynamic trailing stop adapts to price volatility.
Crossing above the trail triggers a buy signal, crossing below triggers a sell signal.
Partial Exit / Take Profit:
Step 1: Exit 50% of the position when price moves a configurable multiple of ATR in your favor.
Step 2: Close the remaining position when the opposite signal occurs (e.g., price crosses below/above the ATR trail).
How to Use
Add the strategy to any chart (stocks, indices, forex, crypto).
Configure ATR period, sensitivity, take profit multiple, and moving average lengths to suit the timeframe and asset.
Monitor buy/sell markers and dynamic ATR trail on the chart.
Optional: Set alerts for real-time notifications when signals trigger.
Adjust partial exit multiplier to control risk/reward.
Example Settings
ATR Period: 10
ATR Sensitivity: 3 × ATR
Take Profit: 2 × ATR
Fast MA: 50
Slow MA: 200
Partial Exit: 50% of position at take profit, remaining exits on opposite signal
Key Features
Adaptive ATR trailing stop for volatility-based entries/exits.
Trend alignment filter with Fast/Slow MA.
Partial exit logic for better risk management.
Visual BUY/SELL markers and alerts.
Fully Pine Script v6 compatible.
Disclaimer
This strategy is for educational and analytical purposes only.
It does not guarantee profits. Traders should always use proper risk management.
SFC Bollinger Band and Bandit概述 (Overview)
SFC 布林通道與海盜策略 (SFC Bollinger Band and Bandit Strategy) 是一個基於 Pine Script™ v6 的技術分析指標,結合布林通道 (Bollinger Bands)、移動平均線 (Moving Averages) 以及布林海盜 (Bollinger Bandit) 交易策略,旨在為交易者提供多時間框架的趨勢分析與進出場訊號。該腳本支援風險管理功能,並提供視覺化圖表與交易訊號提示,適用於多種金融市場。
This script, written in Pine Script™ v6, combines Bollinger Bands, Moving Averages, and the Bollinger Bandit strategy to provide traders with multi-timeframe trend analysis and entry/exit signals. It includes risk management features and visualizes data through charts and trading signals, suitable for various financial markets.
功能特點 (Key Features)
布林通道 (Bollinger Bands)
提供可調整的標準差參數 (σ1, σ2),支援多層布林通道顯示。
進場訊號基於價格穿越布林通道上下軌,並結合連續K線確認機制。
Provides adjustable standard deviation parameters (σ1, σ2) for multi-layer Bollinger Bands display.
Entry signals are based on price crossing the upper/lower bands, combined with a consecutive bar confirmation mechanism.
移動平均線 (Moving Averages)
支援簡單移動平均線 (SMA) 或指數移動平均線 (EMA),可自訂快、中、慢線週期。
Supports Simple Moving Average (SMA) or Exponential Moving Average (EMA) with customizable fast, medium, and slow line periods.
布林海盜策略 (Bollinger Bandit Strategy)
基於變動率 (ROC) 與布林通道動態止損,提供做多與做空訊號。
包含動態止損均線與平倉天數設定,增強交易靈活性。
Utilizes Rate of Change (ROC) and Bollinger Bands with dynamic stop-loss for long and short signals.
Includes dynamic stop-loss moving average and liquidation days for enhanced trading flexibility.
多時間框架分析 (Multi-Timeframe Analysis)
支援六個時間框架 (5分、15分、1小時、4小時、日線、週線) 的趨勢分析。
通過表格顯示各時間框架的連續上漲/下跌趨勢,輔助交易決策。
Supports trend analysis across six timeframes (5m, 15m, 1h, 4h, daily, weekly).
Displays consecutive up/down trends in a table to aid decision-making.
風險管理 (Risk Management)
提供基於 ATR 或布林通道的停利/停損設定。
自動計算交易手數,根據報價貨幣匯率調整風險敞口。
Offers take-profit/stop-loss settings based on ATR or Bollinger Bands.
Automatically calculates trading lots, adjusting risk exposure based on quote currency exchange rates.
視覺化與提示 (Visualization and Alerts)
繪製布林通道、移動平均線、海盜策略動態止損線及交易訊號。
提供多時間框架趨勢表格、交易手數標籤及浮水印。
支援交易訊號快訊,方便即時監控。
Plots Bollinger Bands, Moving Averages, Bandit strategy stop-loss lines, and trading signals.
Includes multi-timeframe trend tables, trading lot labels, and watermark.
Supports alert conditions for real-time trade monitoring.
使用說明 (Usage Instructions)
設置參數 (Parameter Setup)
布林通道 (Bollinger Bands): 可調整週期 (預設21)、標準差 (σ1=1, σ2=2) 及停利/停損依據 (ATR 或 BAND)。
移動平均線 (Moving Averages): 可選擇顯示快線 (10)、中線 (20)、慢線 (60),並切換 SMA/EMA。
布林海盜 (Bollinger Bandit): 調整通道週期 (50)、平倉均線週期 (50) 及 ROC 週期 (30)。
時間框架 (Timeframes): 自訂六個時間框架,預設為 5分、15分、1小時、4小時、日線、週線。
Adjust Bollinger Band period (default 21), standard deviations (σ1=1, σ2=2), and take-profit/stop-loss basis (ATR or BAND).
Configure Moving Averages (fast=10, medium=20, slow=60) and toggle SMA/EMA.
Set Bollinger Bandit parameters: channel period (50), liquidation MA period (50), ROC period (30).
Customize six timeframes (default: 5m, 15m, 1h, 4h, daily, weekly).
交易訊號 (Trading Signals)
買入訊號 (Buy): 價格穿越下軌且滿足連續K線條件。
賣出訊號 (Sell): 價格穿越上軌且滿足連續K線條件。
海盜策略訊號: 基於 ROC 與布林通道穿越,結合動態止損。
Buy signal: Price crosses below lower band with consecutive bar confirmation.
Sell signal: Price crosses above upper band with consecutive bar confirmation.
Bandit strategy signals: Based on ROC and band crossings with dynamic stop-loss.
視覺化 (Visualization)
布林通道以不同顏色顯示上下軌與中軌。
移動平均線以快、中、慢線區分顏色。
趨勢表格顯示各時間框架的趨勢狀態 (🔴上漲, 🟢下跌, ⚪中性)。
海盜策略顯示動態止損線與交易狀態。
Bollinger Bands display upper, lower, and middle bands in distinct colors.
Moving Averages use different colors for fast, medium, and slow lines.
Trend table shows timeframe trends (🔴 up, 🟢 down, ⚪ neutral).
Bandit strategy displays dynamic stop-loss and trading status.
Risk ModuleThis indicator provides a visual reference for position sizing and approximate stop and target placement. It supports trade planning by calculating equalized risk per trade and maintaining consistent exposure across different markets.
For more information about the concept, see the post  Position Sizing and Risk Management .
 Fixed Fractional Risk 
The indicator calculates the number of shares that can be traded to maintain consistent monetary risk. The formula is based on the distance between the current price and stop reference, adjusting position size proportionally. A closer stop results in a larger position size, while a wider stop results in a smaller one.
 Position Size = (Account Size × Risk %) ÷ (Entry Price – Stop Price) 
 Stop and Target 
Stop placement is derived from volatility using the Average True Range (ATR). The target is plotted as a multiple of the stop distance, defining the risk-to-reward relationship in R units.
 Stop = Price ± ATR × Multiplier
Target = Price ± (R × Risk Distance) 
 Chart Elements 
The stop and target levels are plotted above and below the current price, with the stop marked by a red dot and the target by a green dot. The information table displayed on the chart shows the number of shares to trade, stop level, and target level.
 Setup and Configuration 
This configuration only needs to be set once, but can be adjusted later if preferred.
1. Start by setting the account size and risk percentage per trade to define the monetary amount risked on each trade. These values form the basis for position size calculation.
2. Set the ATR multiplier to determine stop distance, common values range between 1 and 3 ATR. Lower values place stops closer to price, increasing sensitivity but risking short-term noise. Higher values widen the stop, which reduces noise impact but extends time in risk.
3. Set the R-multiple to determine target distance relative to the stop. A value of 1 represents a 1:1 risk-to-reward relationship. Lower values reduce potential reward but tend to increase win rate, whereas higher values increase potential reward but tend to reduce win rate. The selection depends on system characteristics and trade expectancy.
When the parameters are defined, the indicator displays the stop, target, and calculated position size on the chart. All that remains is to enter the trade with the number of shares shown in the table and place bracket orders at the plotted stop and target levels.
 Settings Overview 
 
 Account Size / Risk %: Defines account capital and per-trade exposure.
 ATR Multiplier: Adjusts stop distance relative to volatility.
 R Multiple: Sets target distance relative to stop (risk-reward ratio).
 Position: Choose Long or Short direction.
 Table Position: Controls information table placement and scale.
ATR StopThe Stoploss based on ATR indicator sets dynamic stop levels using market volatility measured by the Average True Range (ATR).
When volatility increases, the stop widens; when it decreases, the stop tightens.
Upper line = High + ATR × Multiplier → stop for shorts
Lower line = Low - ATR × Multiplier → stop for longs
Use
- Volatility-based stoploss: adjusts automatically to market conditions.
- Trailing stop: moves in the direction of the trend.
Dynamic ATR BandsDescription:
The Dynamic ATR Bands indicator visualizes ATR-based stop-loss, take-profit, and trailing levels. Bands can be drawn relative to a fixed entry price or dynamically relative to the current price. It is ideal for trend-following, swing trading, and hybrid strategies, especially on volatile or noisy instruments.
Key Features:
Base ATR Bands:
 
 Plots ATR-based bands above and below a reference price.
 Acts as initial stop-loss or target guidance.
 Adjustable multiplier (default 1× ATR).
 
Extra ATR Band:
 
 Add an additional ATR band at a custom multiplier.
 Position it above or below the reference price.
 Useful for trailing stops or extended profit targets.
 
Hybrid Entry Mode:
 
 Use Fixed Entry Price: bands are drawn relative to your entry and remain fixed.
 Dynamic Mode: bands behave like standard ATR bands, moving with the current price.
 Allows visualization of hybrid ATR stop-loss and trailing strategies.
 
Clean Visuals:
 
 Color-coded bands differentiate base (solid) from extra (semi-transparent).
 
How to Use:
 
 Set ATR length and multipliers according to your strategy.
 Toggle hybrid entry mode and input your entry price, or leave off for dynamic bands.
 Set the extra band multiplier and choose its position (upper/lower).
 Use the bands as visual guides for stop-loss, take-profit, and trailing levels.
 
Inputs:
 
 ATR Length: number of periods for ATR calculation
 Base ATR Multiplier: distance of base bands from reference price
 Extra ATR Multiplier: distance for the additional band
 Extra Band Position: choose Upper or Lower
 Use Fixed Entry Price: toggle hybrid entry mode
 Entry Price: specify entry price if hybrid mode is enabled
 
Note:
This script is visual only; it does not place trades. It is designed to help plan ATR-based stop-loss, take-profit, and hybrid trade management visually on the chart.
Volatilidad Multi-TF📊 Multi-Timeframe Volatility (ATR%)
Description
Indicator that displays the current asset's volatility across multiple timeframes simultaneously. It uses the ATR (Average True Range) normalized as a percentage of price, allowing for objective volatility comparison across different timeframes.
✨ Key Features
- Multi-Timeframe Analysis: Visualize volatility across 5 different timeframes (1H, 4H, D, W, M)
- Normalized Volatility: ATR expressed as a percentage of price for accurate comparison
- Compact Table: Clean and easy-to-read interface in the corner of your chart
- Auto-Update: Automatically adapts to the asset you're viewing
- No Additional Plots: Only displays essential information in table format
🎯 How to Use
1. Add the indicator to your chart
2. The table will automatically display the current asset's volatility
3. Percentage values allow you to quickly identify:
   - Which timeframe has higher/lower volatility
   - Divergences between timeframes
   - High or low volatility zones to adjust your strategies
⚙️ Configurable Parameters
- ATR Period: Default 14, adjust according to your strategy
📈 Practical Applications
- Risk Management: Adjust position sizing based on current volatility
- Asset Selection: Identify assets with suitable volatility for your profile
- Entry Timing: Detect volatility expansions/contractions
- Timeframe Analysis: Compare volatility across different time periods
💡 Technical Notes
- Normalized ATR allows volatility comparison between assets with different prices
- Useful for both intraday trading (1H, 4H) and swing/positional trading (D, W, M)
- Compatible with any market: cryptocurrencies, forex, stocks, indices
⚠️ Disclaimer
This indicator is a technical analysis tool. It does not constitute financial advice. Conduct your own analysis and risk management before trading.
Turtle Strategy - Triple EMA Trend with ADX and ATRDescription 
The Triple EMA Trend strategy is a directional momentum system built on the alignment of three exponential moving averages and a strong ADX confirmation filter. It is designed to capture established trends while maintaining disciplined risk management through ATR-based stops and targets.
 Core Logic 
The system activates only under high-trend conditions, defined by the Average Directional Index (ADX) exceeding a configurable threshold (default: 43).
A bullish setup occurs when the short-term EMA is above the mid-term EMA, which in turn is above the long-term EMA, and price trades above the fastest EMA.
A bearish setup is the mirror condition.
 Execution Rules 
Entry:
 • Long when ADX confirms trend strength and EMA alignment is bullish.
 • Short when ADX confirms trend strength and EMA alignment is bearish.
Exit:
 • Stop Loss: 1.8 × ATR below (for longs) or above (for shorts) the entry price.
 • Take Profit: 3.3 × ATR in the direction of the trade.
Both parameters are configurable.
 Additional Features 
 • Start/end date inputs for controlled backtesting.
 • Selective activation of long or short trades.
 • Built-in commission and position sizing (percent of equity).
 • Full visual representation of EMAs, ADX, stop-loss, and target levels.
This strategy emphasizes clean trend participation, strict entry qualification, and consistent reward-to-risk structure. Ideal for swing or medium-term testing across trending assets.
Daily ATR Zones
Dynamic Daily ATR Projection Zones
### **Description:**
This indicator projects potential price levels for the current trading day based on the Average True Range (ATR) of the previous day. It is designed to help intraday traders visualize daily volatility and identify key potential support, resistance, or target levels that are fixed for the entire session and do not repaint.
**How It Works**
The logic is based on two key components: a stable base price and a reliable volatility measure.
* **Base Price:** The indicator uses the **Open price of the current day** as the central anchor point for all projections.
* **Volatility Measure:** The calculation uses the final, completed **ATR value from the previous day**. This ensures that the projected zones are constant throughout the current trading day and are not subject to repainting.
The projection levels are then calculated using the formula:
`Current Day's Open + (Previous Day's ATR * Multiplier)`
**Features**
This script is fully customizable to fit your trading style:
* **Customizable ATR Multipliers:** Easily define your own price zones by entering a comma-separated list of multipliers (e.g., `0.5, 1.0, 1.5, -0.5, -1.0`).
* **Dynamic & Movable Labels:** The price labels are designed to stay on the right edge of the chart, ensuring they never obscure the current price action.
* **Adjustable Label Position:** Use the "Label Horizontal Offset" setting to control how far the labels are positioned from the current bar, keeping your chart clean.
* **Adjustable Label Size:** Choose from five different sizes (Tiny, Small, Normal, Large, Huge) to ensure the labels are perfectly readable on any device.
* **Toggle Labels:** You can turn all labels on or off with a single checkbox.
* **Full Color Customization:** Set unique colors for the positive (upper), negative (lower), and neutral projection zones.
**How to Use**
This tool can be integrated into various intraday trading strategies:
* **Intraday Targets:** The projected levels can serve as potential take-profit or stop-loss targets for scalpers and day traders.
* **Support & Resistance:** Watch for price reactions, such as bounces or rejections, at these ATR levels, as they often act as dynamic support and resistance zones.
* **Volatility Gauge:** The zones provide a quick visual reference for how far the price has moved relative to its recent average daily range. For example, if the price reaches the `1.0 ATR` level, it has completed an "average" day's move.
Adaptive CE-VWAP Breakout Framework [KedArc Quant]📘 Description
A structured framework that unites three complementary systems into one charting engine:
>Chandelier Exit (CE) – ATR-based trailing logic that defines trend direction, stop placement, and risk/reward overlays.
>Swing-Anchored VWAP (SWAV) – a dynamically anchored VWAP that re-starts from each confirmed swing and adapts its smoothness to volatility.
>Pivot S/R with Volume Breaks – confirmed horizontal levels with alerts when broken on expanding volume.
This script builds a single workflow for bias → trigger → management>without mixing unrelated indicators. Each module is internally linked rather than layered cosmetically, making it a true analytical framework—not.
🙏 Acknowledgment
Special thanks to Dynamic Swing Anchored VWAP by @Zeiierman, whose swing-anchoring concept inspired  a part of the SWAV module’s implementation and adaptation logic.
Support and Resistance Levels with Breaks by @luxalgo for S/R breakout logic.
🎯 How this helps traders
>Trend clarity – CE color-codes direction and provides evolving stops.
>Context value – SWAV traces adaptive mean paths so traders see where price is “heavy” or “light.”
>Action filter – Pivot+volume logic highlights true structural breaks, filtering false moves.
>Discipline tool – Optional R:R boxes visualize risk and target zones to enforce planning.
🧩 Entry / Exit guidelines (for study purposes only)
Bias Use CE direction: green = long bias  ·  red = short bias
Entry
1. Breakout method>– Trade in CE direction when a pivot level breaks on valid volume.
2. VWAP confirmation>– Prefer breaks occurring around the nearest SWAV path (fair-value cross or re-test).
Exit
>Stop = CE line / recent swing HL / ATR × (multiplier)
>Target = R-multiple × risk (default 2 R)
>Optional live update keeps SL/TP aligned with current CE state.
🧮 Core formula concepts
>ATR Stop: `Stop = High/Low – ATR × multiplier`
>VWAP calc: `Σ(price × vol) / Σ(vol)` anchored at swing pivot, adapted by APT (Adaptive Price Tracking) ratio ∝ ATR volatility.
>Volume oscillator: `100 × (EMA₅ – EMA₁₀)/EMA₁₀`; valid break when > threshold %.
⚙️ Input configuration (high-level)
Master Controls
• Show CE / SWAV modules • Theme & Fill opacity
CE Section
• ATR period & multiplier • Use Close for extremums
• Show buy/sell labels • Await bar confirmation
• Risk-Reward overlay: R-multiple, Stop basis (CE/Swing/ATR×), Live update toggle
SWAV Section
• Swing period • Adaptive Price Tracking length • Volatility bias (ATR-based adaptation) • Line width
Pivot & Volume Breaks
• Left/Right bar windows • Volume threshold % • Show Break labels and alerts
⏱ Best timeframes
>Intraday: 5 m – 30 m for breakout confirmation
>Swing: 1 h – 4 h for trend context
  Settings scale with instrument volatility—adjust ATR period and volume threshold to match liquidity.
📘 Glossary
>ATR: Average True Range (volatility metric)
>CE: Chandelier Exit (trailing stop/trend filter)
>SWAV: Swing-Anchored VWAP (anchored mean price path)
>Pivot H/L: Confirmed local extrema using left/right bar windows
>R-multiple: Profit target as a multiple of initial risk
💬 FAQ
Q: Does it repaint? A: No—pivots wait for confirmation and VWAP updates forward-only.
Q: Can modules be disabled? A: Yes—each section has its own toggle.
Q: Can it trade automatically? A: This is an indicator/study, not an auto-strategy.
Q: Is this financial advice? A: No—educational use only.
⚠️ Disclaimer
This script is for educational and analytical purposes only.
It is not financial advice. Trading involves risk of loss. Past performance does not guarantee future results. Always apply sound risk management.
T3 ATR [DCAUT]█ T3 ATR  
 📊 ORIGINALITY & INNOVATION 
The T3 ATR indicator represents an important enhancement to the traditional Average True Range (ATR) indicator by incorporating the T3 (Tilson Triple Exponential Moving Average) smoothing algorithm. While standard ATR uses fixed RMA (Running Moving Average) smoothing, T3 ATR introduces a configurable volume factor parameter that allows traders to adjust the smoothing characteristics from highly responsive to heavily smoothed output.
This innovation addresses a fundamental limitation of traditional ATR: the inability to adapt smoothing behavior without changing the calculation period. With T3 ATR, traders can maintain a consistent ATR period while adjusting the responsiveness through the volume factor, making the indicator adaptable to different trading styles, market conditions, and timeframes through a single unified implementation.
The T3 algorithm's triple exponential smoothing with volume factor control provides improved signal quality by reducing noise while maintaining better responsiveness compared to traditional smoothing methods. This makes T3 ATR particularly valuable for traders who need to adapt their volatility measurement approach to varying market conditions without switching between multiple indicator configurations.
 📐 MATHEMATICAL FOUNDATION 
The T3 ATR calculation process involves two distinct stages:
 Stage 1: True Range Calculation 
The True Range (TR) is calculated using the standard formula:
 
 TR = max(high - low, |high - close |, |low - close |)
 
This captures the greatest of the current bar's range, the gap from the previous close to the current high, or the gap from the previous close to the current low, providing a comprehensive measure of price movement that accounts for gaps and limit moves.
 Stage 2: T3 Smoothing Application 
The True Range values are then smoothed using the T3 algorithm, which applies six exponential moving averages in succession:
 
 First Layer: e1 = EMA(TR, period), e2 = EMA(e1, period)
 Second Layer: e3 = EMA(e2, period), e4 = EMA(e3, period)
 Third Layer: e5 = EMA(e4, period), e6 = EMA(e5, period)
 Final Calculation: T3 = c1×e6 + c2×e5 + c3×e4 + c4×e3
 
The coefficients (c1, c2, c3, c4) are derived from the volume factor (VF) parameter:
 
 a = VF / 2
 c1 = -a³
 c2 = 3a² + 3a³
 c3 = -6a² - 3a - 3a³
 c4 = 1 + 3a + a³ + 3a²
 
The volume factor parameter (0.0 to 1.0) controls the weighting of these coefficients, directly affecting the balance between responsiveness and smoothness:
 
 Lower VF values (approaching 0.0): Coefficients favor recent data, resulting in faster response to volatility changes with minimal lag but potentially more noise
 Higher VF values (approaching 1.0): Coefficients distribute weight more evenly across the smoothing layers, producing smoother output with reduced noise but slightly increased lag
 
 📊 COMPREHENSIVE SIGNAL ANALYSIS 
 Volatility Level Interpretation: 
 
 High Absolute Values: Indicate strong price movements and elevated market activity, suggesting larger position risks and wider stop-loss requirements, often associated with trending markets or significant news events
 Low Absolute Values: Indicate subdued price movements and quiet market conditions, suggesting smaller position risks and tighter stop-loss opportunities, often associated with consolidation phases or low-volume periods
 Rapid Increases: Sharp spikes in T3 ATR often signal the beginning of significant price moves or market regime changes, providing early warning of increased trading risk
 Sustained High Levels: Extended periods of elevated T3 ATR indicate sustained trending conditions with persistent volatility, suitable for trend-following strategies
 Sustained Low Levels: Extended periods of low T3 ATR indicate range-bound conditions with suppressed volatility, suitable for mean-reversion strategies
 
 Volume Factor Impact on Signals: 
 
 Low VF Settings (0.0-0.3): Produce responsive signals that quickly capture volatility changes, suitable for short-term trading but may generate more frequent color changes during minor fluctuations
 Medium VF Settings (0.4-0.7): Provide balanced signal quality with moderate responsiveness, filtering out minor noise while capturing significant volatility changes, suitable for swing trading
 High VF Settings (0.8-1.0): Generate smooth, stable signals that filter out most noise and focus on major volatility trends, suitable for position trading and long-term analysis
 
 🎯 STRATEGIC APPLICATIONS 
 Position Sizing Strategy: 
 
 Determine your risk per trade (e.g., 1% of account capital - adjust based on your risk tolerance and experience)
 Decide your stop-loss distance multiplier (e.g., 2.0x T3 ATR - this varies by market and strategy, test different values)
 Calculate stop-loss distance: Stop Distance = Multiplier × Current T3 ATR
 Calculate position size: Position Size = (Account × Risk %) / Stop Distance
 Example: $10,000 account, 1% risk, T3 ATR = 50 points, 2x multiplier → Position Size = ($10,000 × 0.01) / (2 × 50) = $100 / 100 points = 1 unit per point
 Important: The ATR multiplier (1.5x - 3.0x) should be determined through backtesting for your specific instrument and strategy - using inappropriate multipliers may result in stops that are too tight (frequent stop-outs) or too wide (excessive losses)
 Adjust the volume factor to match your trading style: lower VF for responsive stop distances in short-term trading, higher VF for stable stop distances in position trading
 
 Dynamic Stop-Loss Placement: 
 
 Determine your risk tolerance multiplier (typically 1.5x to 3.0x T3 ATR)
 For long positions: Set stop-loss at entry price minus (multiplier × current T3 ATR value)
 For short positions: Set stop-loss at entry price plus (multiplier × current T3 ATR value)
 Trail stop-losses by recalculating based on current T3 ATR as the trade progresses
 Adjust the volume factor based on desired stop-loss stability: higher VF for less frequent adjustments, lower VF for more adaptive stops
 
 Market Regime Identification: 
 
 Calculate a reference volatility level using a longer-period moving average of T3 ATR (e.g., 50-period SMA)
 High Volatility Regime: Current T3 ATR significantly above reference (e.g., 120%+) - favor trend-following strategies, breakout trades, and wider targets
 Normal Volatility Regime: Current T3 ATR near reference (e.g., 80-120%) - employ standard trading strategies appropriate for prevailing market structure
 Low Volatility Regime: Current T3 ATR significantly below reference (e.g., <80%) - favor mean-reversion strategies, range trading, and prepare for potential volatility expansion
 Monitor T3 ATR trend direction and compare current values to recent history to identify regime transitions early
 
 Risk Management Implementation: 
 
 Establish your maximum portfolio heat (total risk across all positions, typically 2-6% of capital)
 For each position: Calculate position size using the formula Position Size = (Account × Individual Risk %) / (ATR Multiplier × Current T3 ATR)
 When T3 ATR increases: Position sizes automatically decrease (same risk %, larger stop distance = smaller position)
 When T3 ATR decreases: Position sizes automatically increase (same risk %, smaller stop distance = larger position)
 This approach maintains constant dollar risk per trade regardless of market volatility changes
 Use consistent volume factor settings across all positions to ensure uniform risk measurement
 
 📋 DETAILED PARAMETER CONFIGURATION 
 ATR Length Parameter: 
Default Setting: 14 periods
 
 This is the standard ATR calculation period established by Welles Wilder, providing balanced volatility measurement that captures both short-term fluctuations and medium-term trends across most markets and timeframes
 
Selection Principles:
 
 Shorter periods increase sensitivity to recent volatility changes and respond faster to market shifts, but may produce less stable readings
 Longer periods emphasize sustained volatility trends and filter out short-term noise, but respond more slowly to genuine regime changes
 The optimal period depends on your holding time, trading frequency, and the typical volatility cycle of your instrument
 Consider the timeframe you trade: Intraday traders typically use shorter periods, swing traders use intermediate periods, position traders use longer periods
 
Practical Approach:
 
 Start with the default 14 periods and observe how well it captures volatility patterns relevant to your trading decisions
 If ATR seems too reactive to minor price movements: Increase the period until volatility readings better reflect meaningful market changes
 If ATR lags behind obvious volatility shifts that affect your trades: Decrease the period for faster response
 Match the period roughly to your typical holding time - if you hold positions for N bars, consider ATR periods in a similar range
 Test different periods using historical data for your specific instrument and strategy before committing to live trading
 
 T3 Volume Factor Parameter: 
Default Setting: 0.7
 
 This setting provides a reasonable balance between responsiveness and smoothness for most market conditions and trading styles
 
Understanding the Volume Factor:
 
 Lower values (closer to 0.0) reduce smoothing, allowing T3 ATR to respond more quickly to volatility changes but with less noise filtering
 Higher values (closer to 1.0) increase smoothing, producing more stable readings that focus on sustained volatility trends but respond more slowly
 The trade-off is between immediacy and stability - there is no universally optimal setting
 
Selection Principles:
 
 Match to your decision speed: If you need to react quickly to volatility changes for entries/exits, use lower VF; if you're making longer-term risk assessments, use higher VF
 Match to market character: Noisier, choppier markets may benefit from higher VF for clearer signals; cleaner trending markets may work well with lower VF for faster response
 Match to your preference: Some traders prefer responsive indicators even with occasional false signals, others prefer stable indicators even with some delay
 
Practical Adjustment Guidelines:
 
 Start with default 0.7 and observe how T3 ATR behavior aligns with your trading needs over multiple sessions
 If readings seem too unstable or noisy for your decisions: Try increasing VF toward 0.9-1.0 for heavier smoothing
 If the indicator lags too much behind volatility changes you care about: Try decreasing VF toward 0.3-0.5 for faster response
 Make meaningful adjustments (0.2-0.3 changes) rather than small increments - subtle differences are often imperceptible in practice
 Test adjustments in simulation or paper trading before applying to live positions
 
 📈 PERFORMANCE ANALYSIS & COMPETITIVE ADVANTAGES 
 Responsiveness Characteristics: 
The T3 smoothing algorithm provides improved responsiveness compared to traditional RMA smoothing used in standard ATR. The triple exponential design with volume factor control allows the indicator to respond more quickly to genuine volatility changes while maintaining the ability to filter noise through appropriate VF settings. This results in earlier detection of volatility regime changes compared to standard ATR, particularly valuable for risk management and position sizing adjustments.
 Signal Stability: 
Unlike simple smoothing methods that may produce erratic signals during transitional periods, T3 ATR's multi-layer exponential smoothing provides more stable signal progression. The volume factor parameter allows traders to tune signal stability to their preference, with higher VF settings producing remarkably smooth volatility profiles that help avoid overreaction to temporary market fluctuations.
 Comparison with Standard ATR: 
 
 Adaptability: T3 ATR allows adjustment of smoothing characteristics through the volume factor without changing the ATR period, whereas standard ATR requires changing the period length to alter responsiveness, potentially affecting the fundamental volatility measurement
 Lag Reduction: At lower volume factor settings, T3 ATR responds more quickly to volatility changes than standard ATR with equivalent periods, providing earlier signals for risk management adjustments
 Noise Filtering: At higher volume factor settings, T3 ATR provides superior noise filtering compared to standard ATR, producing cleaner signals for long-term analysis without sacrificing volatility measurement accuracy
 Flexibility: A single T3 ATR configuration can serve multiple trading styles by adjusting only the volume factor, while standard ATR typically requires multiple instances with different periods for different trading applications
 
 Suitable Use Cases: 
T3 ATR is well-suited for the following scenarios:
 
 Dynamic Risk Management: When position sizing and stop-loss placement need to adapt quickly to changing volatility conditions
 Multi-Style Trading: When a single volatility indicator must serve different trading approaches (day trading, swing trading, position trading)
 Volatile Markets: When standard ATR produces too many false volatility signals during choppy conditions
 Systematic Trading: When algorithmic systems require a single, configurable volatility input that can be optimized for different instruments
 Market Regime Analysis: When clear identification of volatility expansion and contraction phases is critical for strategy selection
 
 Known Limitations: 
Like all technical indicators, T3 ATR has limitations that users should understand:
 
 Historical Nature: T3 ATR is calculated from historical price data and cannot predict future volatility with certainty
 Smoothing Trade-offs: The volume factor setting involves a trade-off between responsiveness and smoothness - no single setting is optimal for all market conditions
 Extreme Events: During unprecedented market events or gaps, T3 ATR may not immediately reflect the full scope of volatility until sufficient data is processed
 Relative Measurement: T3 ATR values are most meaningful in relative context (compared to recent history) rather than as absolute thresholds
 Market Context Required: T3 ATR measures volatility magnitude but does not indicate price direction or trend quality - it should be used in conjunction with directional analysis
 
 Performance Expectations: 
T3 ATR is designed to help traders measure and adapt to changing market volatility conditions. When properly configured and applied:
 
 It can help reduce position risk during volatile periods through appropriate position sizing
 It can help identify optimal times for more aggressive position sizing during stable periods
 It can improve stop-loss placement by adapting to current market conditions
 It can assist in strategy selection by identifying volatility regimes
 
However, volatility measurement alone does not guarantee profitable trading. T3 ATR should be integrated into a comprehensive trading approach that includes directional analysis, proper risk management, and sound trading psychology.
 USAGE NOTES 
This indicator is designed for technical analysis and educational purposes. T3 ATR provides adaptive volatility measurement but has limitations and should not be used as the sole basis for trading decisions. The indicator measures historical volatility patterns, and past volatility characteristics do not guarantee future volatility behavior. Market conditions can change rapidly, and extreme events may produce volatility readings that fall outside historical norms.
Traders should combine T3 ATR with directional analysis tools, support/resistance analysis, and other technical indicators to form a complete trading strategy. Proper backtesting and forward testing with appropriate risk management is essential before applying T3 ATR-based strategies to live trading. The volume factor parameter should be optimized for specific instruments and trading styles through careful testing rather than assuming default settings are optimal for all applications.
ATR% Multiple From MA - Overextensions trackingATR% Multiple From MA - Quantifiable Profit Taking Indicator
This overlay indicator identifies overextended price moves by calculating how many ATR% multiples price is away from a moving average, providing objective profit-taking signals.
Formula:
A = ATR% = (ATR / Price) × 100
B = % Gain from MA = ((Price - MA) / MA) × 100
ATR% Multiple = B / A
Signals:
Yellow circle at 7x: Start scaling out partial profits
Red circle at 10x+: Heavily overextended, aggressive profit taking recommended
Stats table: Real-time ATR% Multiple, % Gain from MA, ATR%, and action status
For very volatile markets I usually go for 10x and 15x extension instead of 7x and 10x.
This method normalizes moves across different volatility environments, eliminating emotional decision-making. Historical examples include PLTR, SOFI, TSLA, NVDA which stalled after exceeding 10x.
Customizable Settings:
ATR Length (default: 14)
MA Length (default: 50)
Profit Zone thresholds (7x, 10x)
Toggle circles and MA display
Squeeze Hour Frequency [CHE]Squeeze Hour Frequency (ATR-PR) — Standalone — Tracks daily squeeze occurrences by hour to reveal time-based volatility patterns 
  Summary 
This indicator identifies periods of unusually low volatility, defined as squeezes, and tallies their frequency across each hour of the day over historical trading sessions. By aggregating counts into a sortable table, it helps users spot hours prone to these conditions, enabling better scheduling of trading activity to avoid or target specific intraday regimes. Signals gain robustness through percentile-based detection that adapts to recent volatility history, differing from fixed-threshold methods by focusing on relative lowness rather than absolute levels, which reduces false positives in varying market environments.
  Motivation: Why this design? 
Traders often face uneven intraday volatility, with certain hours showing clustered low-activity phases that precede or follow breakouts, leading to mistimed entries or overlooked calm periods. The core idea of hourly squeeze frequency addresses this by binning low-volatility events into 24 hourly slots and counting distinct daily occurrences, providing a historical profile of when squeezes cluster. This reveals time-of-day biases without relying on real-time alerts, allowing proactive adjustments to session focus.
  What’s different vs. standard approaches? 
- Reference baseline: Classical volatility tools like simple moving average crossovers or fixed ATR thresholds, which flag squeezes uniformly across the day.
- Architecture differences:
  - Uses persistent arrays to track one squeeze per hour per day, preventing overcounting within sessions.
  - Employs custom sorting on ratio arrays for dynamic table display, prioritizing top or bottom performers.
  - Handles timezones explicitly to ensure consistent binning across global assets.
- Practical effect: Charts show a persistent table ranking hours by squeeze share, making intraday patterns immediately visible—such as a top hour capturing over 20 percent of total events—unlike static overlays that ignore temporal distribution, which matters for avoiding low-liquidity traps in crypto or forex.
  How it works (technical) 
The indicator first computes a rolling volatility measure over a specified lookback period. It then derives a relative ranking of the current value against recent history within a window of bars. A squeeze is flagged when this ranking falls below a user-defined cutoff, indicating the value is among the lowest in the recent sample.
On each bar, the local hour is extracted using the selected timezone. If a squeeze occurs and the bar has price data, the count for that hour increments only if no prior mark exists for the current day, using a persistent array to store the last marked day per hour. This ensures one tally per unique trading day per slot.
At the final bar, arrays compile counts and ratios for all 24 hours, where the ratio represents each hour's share of total squeezes observed. These are sorted ascending or descending based on display mode, and the top or bottom subset populates the table. Background shading highlights live squeezes in red for visual confirmation. Initialization uses zero-filled arrays for counts and negative seeds for day tracking, with state persisting across bars via variable declarations.
No higher timeframe data is pulled, so there is no repaint risk from external fetches; all logic runs on confirmed bars.
  Parameter Guide 
ATR Length — Controls the lookback for the volatility measure, influencing sensitivity to short-term fluctuations; shorter values increase responsiveness but add noise, longer ones smooth for stability — Default: 14 — Trade-offs/Tips: Use 10-20 for intraday charts to balance quick detection with fewer false squeezes; test on historical data to avoid over-smoothing in trending markets.
Percentile Window (bars) — Sets the history depth for ranking the current volatility value, affecting how "low" is defined relative to past; wider windows emphasize long-term norms — Default: 252 — Trade-offs/Tips: 100-300 bars suit daily cycles; narrower for fast assets like crypto to catch recent regimes, but risks instability in sparse data.
Squeeze threshold (PR < x) — Defines the cutoff for flagging low relative volatility, where values below this mark a squeeze; lower thresholds tighten detection for rarer events — Default: 10.0 — Trade-offs/Tips: 5-15 percent for conservative signals reducing false positives; raise to 20 for more frequent highlights in high-vol environments, monitoring for increased noise.
Timezone — Specifies the reference for hourly binning, ensuring alignment with market sessions — Default: Exchange — Trade-offs/Tips: Set to "America/New_York" for US assets; mismatches can skew counts, so verify against chart timezone.
Show Table — Toggles the results display, essential for reviewing frequencies — Default: true — Trade-offs/Tips: Disable on mobile for performance; pair with position tweaks for clean overlays.
Pos — Places the table on the chart pane — Default: Top Right — Trade-offs/Tips: Bottom Left avoids candle occlusion on volatile charts.
Font — Adjusts text readability in the table — Default: normal — Trade-offs/Tips: Tiny for dense views, large for emphasis on key hours.
Dark — Applies high-contrast colors for visibility — Default: true — Trade-offs/Tips: Toggle false in light themes to prevent washout.
Display — Filters table rows to focus on extremes or full list — Default: All — Trade-offs/Tips: Top 3 for quick scans of risky hours; Bottom 3 highlights safe low-squeeze periods.
  Reading & Interpretation 
Red background shading appears on bars meeting the squeeze condition, signaling current low relative volatility. The table lists hours as "H0" to "H23", with columns for daily squeeze counts, percentage share of total squeezes (summing to 100 percent across hours), and an arrow marker on the top hour. A summary row above details the peak count, its share, and the leading hour. A label at the last bar recaps total days observed, data-valid days, and top hour stats. Rising shares indicate clustering, suggesting regime persistence in that slot.
  Practical Workflows & Combinations 
- Trend following: Scan for hours with low squeeze shares to enter during stable regimes; confirm with higher highs or lower lows on the 15-minute chart, avoiding top-share hours post-news like tariff announcements.
- Exits/Stops: Tighten stops in high-share hours to guard against sudden vol spikes; use the table to shift to conservative sizing outside peak squeeze times.
- Multi-asset/Multi-TF: Defaults work across crypto pairs on 5-60 minute timeframes; for stocks, widen percentile window to 500 bars. Combine with volume oscillators—enter only if squeeze count is below average for the asset.
  Behavior, Constraints & Performance 
Logic executes on closed bars, with live bars updating counts provisionally but finalizing on confirmation; table refreshes only at the last bar, avoiding intrabar flicker. No security calls or higher timeframes, so no repaint from external data. Resources include a 5000-bar history limit, loops up to 24 iterations for sorting and totals, and arrays sized to 24 elements; labels and table are capped at 500 each for efficiency. Known limits: Skips hours without bars (e.g., weekends), assumes uniform data availability, and may undercount in sparse sessions; timezone shifts can alter profiles without warning.
  Sensible Defaults & Quick Tuning 
Start with ATR Length at 14, Percentile Window at 252, and threshold at 10.0 for broad crypto use. If too many squeezes flag (noisy table), raise threshold to 15.0 and narrow window to 100 for stricter relative lowness. For sluggish detection in calm markets, drop ATR Length to 10 and threshold to 5.0 to capture subtler dips. In high-vol assets, widen window to 500 and threshold to 20.0 for stability.
  What this indicator is—and isn’t 
This is a historical frequency tracker and visualization layer for intraday volatility patterns, best as a filter in multi-tool setups. It is not a standalone signal generator, predictive model, or risk manager—pair it with price action, news filters, and position sizing rules.
  Disclaimer 
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Thanks to Duyck
for the ma sorter
Arisa RSI Rebound Alert (v6.2)Short description:
Simple RSI-based rebound detection with ATR confirmation — designed for traders who prefer a clean and intuitive signal.
Full description:
This indicator detects oversold and rebound phases using RSI and confirms the strength of each rebound with ATR slope analysis.
It is optimized for deep correction phases (e.g. RSI 25→35 cross), helping traders catch early reversal signals while avoiding unnecessary noise.
💡 Recommended use:
	•	Timeframes: 30min–4h
	•	Ideal for short- to mid-term rebound trades
	•	Combine with Heikin-Ashi or volume expansion for higher accuracy
✨ Key Features:
	•	Clear oversold/rebound thresholds (default RSI <25 / cross-up >35)
	•	Background highlight for deep oversold conditions
	•	Visual markers for strong vs. weak rebounds (ATR slope filter)
	•	Alert-ready (three conditions included)
🪶 Concept:
This script is designed for traders who value simplicity and intuition — focusing on meaningful signals rather than automation overload.
It’s for those who still want to see and feel the market before taking action.
⸻
Author:
Arisa Sanjo (Japan)
Created with the support of GPT-5, based on live trading insights from October 2025.
License:
Free to use and modify with proper attribution.
If you redistribute or enhance this script, please mention “Based on Arisa RSI Rebound Alert (v6.2)” in your description.
CyberTradingV1.4 TRexCyberTradingV1.3 — Multi-TF Volatility/Structure + FVG Suite (by College Pips)
TL;DR
One utility to read volatility regime (ATR vs TH), map market structure & swings, and track FVG/CE imbalances—so you can gauge range, context and entries in one place. No signals or promises; it’s a contextual toolkit.
What it does
Volatility table (multi-TF): Shows ATR-style and TH proxies across 1m → Monthly, so you can compare current TF vs higher TFs.
Composite levels: LQC / GAM / Trigger / TRex quantify “how much is enough” for legs/impulses relative to the active TF.
Structure & swings: Validated swing highs/lows with optional time-anchored rectangles (height sized by LQC) and auto structure/diagonal lines.
Imbalances (FVG): Auto-detect UP/DOWN FVGs, extend forward, optional CE line; alerts fire on touches/entries/fills.
Candle sizing: Directional color map by fixed ATR-ratio buckets; Inside Bars are force-colored for clarity.
How components work together (mashup rationale)
Read regime with the table (ATR vs TH per TF).
Map structure with swings/lines to see HH/HL/LH/LL context.
Focus imbalances with FVG + optional CE; monitor with alerts.
Act with thresholds using LQC/GAM/Trigger/TRex to standardize expectations across symbols/TFs.
Method transparency
ATR/TH math: ATR is a smoothed multi-window blend; TH scales the daily range to TF via √time.
Composites: LQC ≈ √(ATR×TH) × C(TF); GAM2/3/4 and Trigger/TRex apply TF-specific scalars to min/max aggregates (see source for exact coefficients).
Multi-TF: Values come from request.security and finalize on higher-TF bar close (no look-ahead).
Swings: Confirmed using left/right strengths; labels are offset back to the pivot bar.
FVG/CE: Classic 3-bar definition; CE is the midpoint line. Boxes extend until touched/filled; optional auto-delete on fill.
Usage
Enable the table to gauge expansion/contraction.
Turn on swing rectangles for LQC-sized reaction zones.
Toggle FVG + CE on your execution TF; use alerts to catch re-entries/resolutions.
Combine with price action and your own trade plan.
Limitations & fair warnings (be honest)
Offsets/past plotting: Swing labels and rectangles are anchored to past bars (offset = -right_strength). They do not predict future bars.
Repainting notes: Swings confirm after right_strength bars; higher-TF values finalize on their close. Past markings can update as confirmations occur.
Tick handling: Uses syminfo.mintick (special cases for JPY/XAU/XAG). Validate on exotic symbols.
No promises: This is a context tool, not a buy/sell signal generator.
Alerts included
ABOVE/BELOW threshold: Price crossing CE or FVG bounds.
IOFED up/down: Price entering an FVG from above/below.
Inputs (high-level)
Layout/positioning, color palettes, swing rectangle styling (width/fill/border), detection strengths, label/line widths, FVG lookback, CE on/off & style, auto-delete filled boxes.
Credits & reuse
Concepts like FVG/CE are widely known in market-microstructure education.
This implementation—table architecture, LQC/GAM/Trigger framework, swing rectangles, candle bucketing, and alert logic—is original to College Pips / CyberTradingV1.4
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.






















