EAGLEDOMAIN Battlezone State Detection 1.0 [DamienCross]中文|指标发布说明
名称:EAGLEDOMAIN · 战区状态识别(原创) | Battlezone State Detection
作者:Damien Cross
品牌:EAGLEDOMAIN(鹰域)
所属体系:ARMAMENT · Tactical Buffering Control™
定位:市场状态识别模块(Market-State Identification)
性质声明:本指标不是入场/出场信号,不提供“喊单式”结论;它用于识别“异常波动/冲击行为”的发生与结构痕迹,辅助你进行风控、节奏判断与复盘取证。
1) 这个指标在做什么
当市场出现“单根K线异常波动”(例如 5/15分钟突然拉升或砸盘几十美金),指标会把这种行为归类为三种战术等级:
警戒(Warning):异常波动开始进入非正常区间(预警层)
突袭(Assault):强冲击波动,通常伴随情绪驱动、流动性变化或盘面结构被硬扭
修罗场(Shura):极端波动状态,属于“规则被短暂掰弯”的高风险区
它的核心价值不是“预测”,而是把异常发生这件事量化、分级、留痕:
让你在当下知道“市场已经不按常态走了”
让你在复盘时能定位“异常发生的时间点、强度、类型”
让你在风控层面能把“正常波动”与“异常冲击”区分开
2) 波幅口径(Shock Calculation)
你可以选择三种波幅统计方式(决定“异常”用什么尺度衡量):
实体波幅(收-开):强调情绪方向与推进力度
全波幅(高-低):强调当根K线的完整冲击范围
真实波幅 TR(True Range):把缺口与跳动也纳入(更适合突发跳空、急拉急砸)
3) 鹰域形态过滤(原创定义)
异常波动不等于“有效冲击”。本指标提供三种“异常形态”过滤模式,用于区分冲击类型:
突袭K(收在极值):收盘靠近高点/低点,且实体占比高
常见于“强方向推进、硬拉硬砸、单边冲刺”
扫荡K(长影线冲击):影线占比高
常见于“扫流动性、插针回收、试探/清算”
纯波幅(不看形态):只要波幅够大就算(更敏感、更“雷达式”)
另外提供 实体过滤(minBodyUSD):
用于排除“影线很长但实体很小”的噪音(也可设为 0 关闭)
4) 三段阈值系统(固定阈值 + ATR 自适应)
本指标同时支持两套阈值体系,并可选择触发逻辑:
固定阈值(美元):直接用 $12 / $20 / $30 这种尺度定义警戒/突袭/修罗
ATR 动态阈值:用 ATR 倍数适配不同阶段的波动环境(更自适应)
触发逻辑可选:
满足任意一个:固定阈值或 ATR 阈值命中其一就触发(更敏感)
必须同时满足:两者都命中才触发(更严格、更抗噪)
5) 分时段倍率(亚洲/伦敦/纽约)
不同盘段的“正常波动基线”不同。此模块用于给阈值加倍率:
亚洲盘更敏感(倍率 < 1):小波动也能被识别
纽约盘更宽(倍率 > 1):过滤掉纽约盘常态的大波动
重要:分时段倍率依赖时区参数。默认建议使用 UTC,若你希望按北京时间识别,可将时区设为 Asia/Shanghai,并相应调整 Session 时间。
6) 图表如何解读(标记 + 标签 + 冲击箱体)
标记(Shapes)
警戒:圆点
突袭:三角形
修罗:标签形状
并区分方向:上涨在K线下方、下跌在K线上方。
标签(Labels)
默认只对 突袭/修罗场贴标签(更干净)。标签内容包含:
等级(突袭 / 修罗场)
方向箭头(可开关)
本K线波幅(美元)
冲击区箱体(Boxes)
当出现 突袭/修罗场,会以箱体形式留下“冲击区痕迹”,并向右延伸若干根K线:
它不是支撑/阻力的绝对定义
它是“异常冲击发生后,市场可能继续反应的结构记号”
常用于:
观察冲击后的回测、再扩张、二次波动
做复盘:这根异常K线之后,市场在这个区间是否反复拉扯、是否出现反噬
7) 警报(声音/邮件/推送)
指标内置三段警报条件:警戒 / 突袭 / 修罗场。
警报消息将自动带出:品种、周期、波幅、阈值、收盘价、系统签名。
设置方法:
TradingView → Alerts → Condition 选择本指标 → 选择对应的【警戒/突袭/修罗场】→ 勾选通知方式(App/邮件/弹窗/声音)。
8) 建议用法(专业场景)
本指标更适合以下用途(不依赖“喊单”):
风控与节奏管理:当市场进入“突袭/修罗”级别,提醒你切换到更保守的执行框架(例如降低频率、减少冲动追价、等待结构稳定)。
异常事件定位:用“时间点 + 强度 + 类型”快速定位异常行为(尤其适合XAUUSD在 5/15min 的突发波动)。
复盘取证与训练:把“异常波动”变成可追踪的数据对象:你可以回看当时是否临近数据、是否处于盘段交接、是否发生流动性抽离。
多品种统一标尺:ATR 自适应让不同品种/不同阶段的“异常”更可比,而不是固定用一个死阈值硬套所有环境。
9) 局限与免责声明
指标识别的是“异常发生”,不是“异常原因”。消息面、流动性、盘口行为需要你自行结合判断。
历史表现不代表未来。任何工具都不能替代风险控制与仓位纪律。
本脚本仅用于研究、复盘、风险提示与市场状态识别。
10) 验真与防篡改(Data Window)
脚本包含 EAGLEDOMAIN VERIFIED / TAMPERED / SPOOFED 与指纹输出(仅在 Data Window 显示),用于原创验真与取证:
VERIFIED:签名与私钥参数匹配(原版)
TAMPERED:签名成立但私钥不匹配(疑似被改/二次加工)
SPOOFED:私钥匹配但签名不成立(疑似删除签名层伪装)
English|TradingView Script Description
Name: EAGLEDOMAIN · Battlezone State Detection (Original)
Author: Damien Cross
Brand: EAGLEDOMAIN
System: ARMAMENT · Tactical Buffering Control™
Role: Market-State Identification Module
Statement: This is NOT an entry/exit signal. It is a professional overlay designed to classify abnormal single-bar volatility shocks, leave structural footprints, and support risk control, tempo management, and post-analysis.
1) What this indicator does
When the market produces an abnormal impulse bar (e.g., a sudden 5/15-min spike or dump), the script categorizes the event into three tactical levels:
Warning: volatility enters an abnormal regime (early caution)
Assault: strong shock / impulse behavior (aggressive displacement)
Shura: extreme regime (high-risk, rule-bending conditions)
The purpose is not prediction. The purpose is to quantify, grade, and archive shock events so you can:
recognize when the market has shifted out of “normal behavior”
locate the exact timestamp/intensity/type during review
separate normal volatility from genuine shock behavior for risk decisions
2) Shock measurement modes
Choose how “shock” is measured:
Body (Close-Open): emphasizes directional drive
Range (High-Low): captures full intrabar impact
True Range (TR): includes gaps/abrupt jumps (best for sudden dislocations)
3) Original pattern filters (EAGLEDOMAIN definitions)
Not every large bar is the same. The script offers three anomaly types:
Assault Candle (close near extreme): strong body ratio + close near high/low
typical for hard directional pushes and impulse displacement
Sweep Candle (long wicks): high wick ratio
typical for liquidity sweeps, stop-runs, spike-and-reject behavior
Pure Shock (no pattern): amplitude-only (most sensitive)
Optional Minimum Body Filter excludes tiny-body noise (set to 0 to disable).
4) Threshold engine (Fixed USD + Adaptive ATR)
Two threshold systems can be used together:
Fixed USD thresholds (e.g., $12 / $20 / $30)
ATR-based adaptive thresholds (multiples of ATR)
Trigger logic:
Either condition (more sensitive)
Both conditions (more strict / less noise)
5) Session multipliers (Asia / London / New York)
Volatility baselines differ by session. Session multipliers adjust thresholds accordingly:
Asia can be set more sensitive (<1)
NY can be set wider (>1)
Timezone matters. Default recommendation: UTC. If you want Beijing time logic, use Asia/Shanghai and adjust sessions.
6) Visual reading (Marks + Labels + Shock Boxes)
Warning: circles
Assault: triangles
Shura: label shapes
Directional placement: up events below bars, down events above bars.
Labels are shown mainly for Assault/Shura to keep the chart clean, including: level + direction + shock value in USD.
Shock Boxes are structural footprints extended to the right. They are not “guaranteed S/R,” but a post-shock reaction zone marker for observation and review.
7) Alerts (sound / email / push)
Three built-in alert conditions: Warning / Assault / Shura.
Alert messages include symbol, timeframe, shock value, thresholds, close price, and system signature.
8) Professional use cases
risk & tempo control during abnormal regimes
precise timestamping of shock events for journal/review
structured post-analysis of session transitions, news windows, liquidity shifts
multi-asset comparability via ATR adaptation
9) Limitations & disclaimer
This script detects the occurrence of abnormal shocks, not the underlying cause.
Use proper risk management. For research, review, and risk awareness only.
10) Authenticity & anti-tamper (Data Window)
The script provides Data Window-only fields: EAGLEDOMAIN VERIFIED / TAMPERED / SPOOFED and a fingerprint output for originality verification and forensic reference.
Tags (recommended)
EAGLEDOMAIN, DamienCross, Battlezone, Market State, Volatility Shock, ATR, Risk Control, XAUUSD, Price Action, Session, ARMAMENT, Tactical Buffering Control
ATR
EMA Spread Exhaustion DetectorEMA Spread Exhaustion – Reversal Scalper's Tool
Identifies trend exhaustion for high-probability counter-trend entries. Triggers when EMA(4/9/20) stack is fully aligned and spread stretches beyond ±ATR threshold. Ideal confluence for TDI hooks + strong rejection candles on 15s charts. Visual markers, fills, and alerts for quick scalps.
Dynamic ATR-based Renko Overlay - Non repaintingDaily ATR-Based Renko Overlay
Overview
This Pine Script v5 indicator creates a dynamic Renko overlay on your time-based charts (optimized for 1-minute timeframes), using the previous period's ATR from a user-specified higher timeframe (default: 1-hour) to determine brick sizes. Unlike traditional Renko charts, this is an overlay that draws Renko bricks directly on top of your existing candles, allowing you to combine the noise-filtering power of Renko with the full features of time-based charts.
It's designed for traders who want Renko's trend-clarity benefits without switching chart types, especially useful for intraday trading in volatile markets like forex, stocks, or crypto.
Key Features
- Adaptive Brick Sizing: Brick size is calculated as a percentage (default 40%) of the previous period's ATR (Average True Range, default length 14) from the selected higher timeframe (default: 1-hour). This makes bricks volatility-adjusted—larger in high-vol periods to reduce noise, smaller in low-vol for more detail.
- Periodic Recalculation: Resets brick size at the start of each new period based on the user-specified reset timeframe (default: daily), using the prior period's ATR from the chosen timeframe. This ensures relevance without unwanted disruptions.
- Traditional Renko Logic: Uses 1-box reversal (a full brick against the trend to reverse). Bricks form based on closing prices, ignoring time and minor fluctuations.
- Visual Style: Stepped lines with green (up) and red (down) fills for a box-like appearance. Semi-transparent for easy overlay on candles.
- Customizable Inputs:
- ATR Length: Adjust the ATR period (default: 14).
- Percentage of ATR: Fine-tune brick sensitivity (default: 0.4 or 40%; range 0-1).
- ATR Timeframe: Specify the timeframe for ATR calculation (default: "60" for 1-hour; enter as a string like "240" for 4-hour, "D" for daily, etc.).
- Reset Timeframe: Specify the period for recalculating the brick size (default: "D" for daily; enter as a string like "W" for weekly, "M" for monthly, etc.).
How It Works
1. Fetches ATR from the user-specified timeframe via `request.security` for higher-timeframe volatility data.
2. On new periods based on the reset timeframe (or first load), sets brick size to `percent * ATR_HTF`.
3. Tracks Renko "close" and "previous close" to calculate bricks:
- Upward moves add green bricks in multiples of the size.
- Downward moves add red bricks.
- Reversals require a full brick against the direction.
4. Plots and fills create the overlay, updating on each 1-min bar close.
Add it to a 1-minute chart for best results—bricks will adapt periodically while you retain full candle visibility.
Why This Indicator is Helpful
TradingView's native Renko charts are powerful but come with limitations that can frustrate serious traders:
- No Bar Replay: Native Renko doesn't support TradingView's bar replay feature, making it hard to simulate historical trading sessions.
- Inaccurate/Repainting Strategy Testing: Strategies on native Renko can repaint or lack precision due to the non-time-based nature, leading to unreliable backtests.
- Limited Data History: Fast Renko timeframes (e.g., small bricks) often load very little historical data, restricting long-term analysis.
This overlay solves these by building Renko on a time-based chart:
- Full Bar Replay Support: Replay sessions as usual on your 1-min chart—the Renko follows along.
- Accurate, Non-Repainting Testing: Test strategies on the underlying time chart without repainting issues, as Renko is derived from closes.
- Unlimited Data Depth: Access TradingView's full historical data for 1-min charts (up to years of bars), not limited by Renko's data constraints.
- Hybrid Analysis: Overlay Renko on candles to spot trends while using volume, indicators (e.g., RSI, MAs), or drawing tools that don't work well on native Renko.
It's a game-changer for trend-following, breakout strategies, or filtering noise in short-term trades. No more switching charts—get the best of both worlds!
Usage Tips
- Best on 1-min charts for intraday precision, but experiment with others.
- Tune the percentage lower (e.g., 0.3) for more bricks/sensitivity, higher (e.g., 0.5) for fewer/false-signal reduction.
- Adjust the ATR timeframe to match your strategy—e.g., "240" for longer-term volatility or "15" for shorter.
- Customize the reset timeframe for different recalculation frequencies—e.g., "W" for weekly resets to capture broader market shifts, or "240" for every 4 hours.
- Combine with alerts: right now I am experimenting with 90 period EMA and the Renko brick pullbacks to find some EDGE
If you find this useful, give it a thumbs up or share your tweaks in the comments. Feedback welcome—happy trading! 🚀
Extreme Reversion Flag - EMA Spread + ATR Threshold (15s)Short Description
Visual indicator that flags extreme EMA divergence on the 15s chart. It plots the EMA20 − EMA4 spread, overlays a multiplied ATR threshold, and highlights bars where 20 > 9 > 4 (bear extreme) or 4 > 9 > 20 (bull extreme) and the spread ≥ mult × ATR.
Features
- Pane plot of the EMA20−EMA4 spread and the ATR‑based threshold.
- Histogram showing spread/ATR ratio for numeric tuning.
- Visual fill between spread and threshold when the extreme condition is met.
- Top/bottom markers for exact bars that meet the rule.
- Alert conditions for bull and bear extremes.
- User inputs for EMA lengths, ATR length, and multiplier for sensitivity.
The Strat - Multi-Timeframe Combo Analyzer## 📊 The Strat - Multi-Timeframe Combo Analyzer
This open-source indicator implements **The Strat** methodology, a universal price action framework developed by Rob Smith (@RobInTheBlack).
---
### 🎯 What is The Strat?
The Strat categorizes every candle into one of three scenarios based on its relationship to the previous bar:
| Type | Name | Definition |
|------|------|------------|
| **1** | Inside Bar | High < Previous High AND Low > Previous Low |
| **2** | Directional | Breaks only one side (2↑ = broke high, 2↓ = broke low) |
| **3** | Outside Bar | Breaks BOTH previous high AND low |
By tracking these bar types across timeframes, traders can identify actionable setups with defined entry triggers and target levels.
---
### ✨ Features
**Daily Timeframe Analysis:**
- Real-time 3-bar combo detection (2-1-2, 3-1-2, 1-2-2, etc.)
- Pattern classification: Bullish/Bearish Continuation or Reversal
- Entry and Target levels based on Strat rules
- Pattern status: ACTIONABLE, IN-FORCE, TRIGGERED, or WATCHING
**ATR Context:**
- Range % used (how much of daily ATR has been consumed)
- Entry quality assessment (Excellent → Exhausted)
- Day type classification (Quiet → Trend Day)
- Remaining range estimation
**15-Minute Analysis:**
- Separate combo tracking for intraday precision
- Pattern detection on lower timeframe
**Visuals:**
- Customizable info tables
- Entry/Target horizontal lines
- Signal labels on chart
- Alert conditions
---
### 🔧 How to Use
1. Look for **ACTIONABLE** patterns - these are setups waiting for a trigger
2. Entry triggers when price breaks the designated level
3. Target is the next logical Strat level (typically prior bar's high/low)
4. Use **Range%** to assess if there's room left in the daily range
5. Combine Daily and 15-Min combos for trade confluence
---
### ⚠️ Disclaimer
This indicator is for **educational purposes only**. It does not constitute financial advice or guarantee profitable trades. Trading involves substantial risk of loss. Past performance is not indicative of future results. Always conduct your own research and trade responsibly.
---
### 🙏 Credits
**The Strat** methodology was created by Rob Smith (@RobInTheBlack).
This implementation is open-source. Feel free to study, modify, and improve the code!
Ultimate Major Contextual Dashboard (Multi-Asset)Overview : The Ultimate Major Dashboard is a performance-optimized market overview tool designed to provide a consolidated snapshot of the 7 major Forex pairs and Gold. It aggregates correlation, trend, momentum, and volatility data into a single, clean table, allowing users to view broader market context without switching charts.
Technical Logic & Components : This indicator utilizes a modular function to analyze EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, USDCAD, NZDUSD, and XAUUSD across four key dimensions:
Intermarket Correlation (Pearson Coefficient): Uses ta.correlation() to compare each asset against the symbol currently on your main chart.
Logic: Values above 0.7 (Dark Green) suggest a strong positive relationship, while values below -0.7 (Dark Red) suggest inverse behavior. This is calculated over a rolling 50-period window to balance stability with current market sensitivity.
Trend Bias (EMA-200): Evaluates the long-term trend by checking price position relative to the 200-period Exponential Moving Average.
Visuals: An upward arrow (⬆) indicates price is above the EMA; a downward arrow (⬇) indicates it is below.
Momentum (RSI-14): Calculates the Relative Strength Index. The dashboard automatically highlights readings above 70 (OB) or below 30 (OS) to help identify potential momentum extremes.
Volatility (ATR-14): Displays the Average True Range as a reference for the current active range of each market, helping users compare volatility levels across the majors.
How to Interpret the Dashboard
Asset Alignment: Correlation values help identify when pairs are moving in "unison" versus when a specific currency is diverging from the group.
Directional Context: Combining the Trend (EMA) and Momentum (RSI) columns provides a quick view of whether a market is trending strongly or reaching an exhaustion point.
Volatility Benchmarking: The ATR values offer perspective on which pairs are currently the most active, assisting in market comparison based on volatility preference.
Data Handling & Customization
Multi-Symbol Sync: Data is fetched using request.security(). The calculations are synchronized with the chart's current bar state for real-time accuracy.
Dynamic TF: Users can select the analysis timeframe (60, 240, D, W) via the settings menu.
Flexibility: The dashboard position can be toggled between all four corners of the chart to avoid overlapping with price action.
Disclaimer
This tool is provided for analytical and educational purposes only. It does not generate trading signals and should not be considered financial advice.
YUSUF KARA YZLM Moving Average and Buy/Sell SignalsThis indicator is a comprehensive technical analysis tool that combines dynamic trend tracking and a multiple moving average system. It offers four different moving average lines along with pivot points and an ATR (Average True Range) based trailing stop system.
Features
1. Dynamic Trend Following System
Center calculation based on pivot points (high/low)
Adjustable trailing stop levels with ATR factor
Automatic BUY and SELL signals
Colored line according to trend direction (Green: Uptrend, Red: Downtrend)
2. Multiple Moving Average System
4 different periods (default: 10, 50, 100, 200)
4 different calculation methods:
EMA (Exponential Moving Average)
SMA (Simple Moving Average)
WMA (Weighted Moving Average)
HMA (Hull Moving Average)
Same calculation method or source selection for all periods
Parameters
Trend Following Settings:
Pivot Point Period (2): Calculation period of pivot points
ATR Factor (3): ATR multiplier that determines the trailing stop width
ATR Period (10): ATR calculation Period
Moving Average Settings:
Period Type: Select EMA, SMA, WMA, or HMA
Period Type: Data source (Close, Open, High, Low, etc.)
Periods 1-4: Moving average periods
How to Use
Trend Signals:
BUY tag: Beginning of an uptrend (green)
SELL tag: Beginning of a downtrend (red)
The trend line shows the trailing stop level
Moving Averages:
Blue (10), Black (50), Orange (100), Red (200)
Can be used to identify support/resistance levels and trend direction
Crossovers are important signal points
Strategy Suggestions
BUY signal + price above moving averages = Strong buy
SELL signal + price below moving averages = Strong sell
The trend line can be used as a stop-loss level
Moving average crossovers confirm trend changes
Warnings
Each signal means a profitable trade It will not come.
Risk management should always be applied.
It is recommended to use it together with other indicators and analysis methods.
Past performance does not guarantee future results.
2xATR Day SignalThis indicator is designed for daily chart analysis to identify "Exhaustion" or "Momentum" candles based on volatility. It specifically looks for days where the price range—including any overnight gaps—exceeds a user-defined multiplier of the Average True Range (ATR), typically 2x.
Unlike standard range indicators, this script treats the overnight gap as part of the daily expansion, providing a more accurate representation of the market's total move from the previous close.
Key Features
Gap-Inclusive Range: The "Span" is calculated from the previous day's close to the current day's high/low extremes.
Expansion Filter: To ensure the move is meaningful, at least 50% of the required ATR range must occur outside the previous day's High-Low range.
Retracement Control: Prevents signaling on candles with long wicks (reversals). If the price pulls back more than 20% from its daily extreme, the signal is downgraded or invalidated.
Visual Distinction:
Solid Shapes: All conditions met (High momentum).
Transparent Shapes (Warnings): The 2xATR range was met, but the candle failed the expansion or retracement filter.
How to use
ATR Length: Period for ATR calculation (Default: 14).
ATR Multiplier: Sensitivity of the signal (Default: 2.0).
Max Retracement (%): How much of the move can be "given back" before the signal weakens (Default: 20%).
Important Note
This indicator is optimized specifically for the Daily (D) timeframe. Visual signals are hidden on lower timeframes to maintain chart clarity.
Disclaimer: This script is for educational purposes only and does not constitute financial advice.
MDZ Strategy v4.2 - Multi-factor trend strategyWhat This Strategy Does
MDZ (Momentum Divergence Zones) v4.2 is a trend-following strategy that enters long positions when multiple momentum and trend indicators align. It's designed for swing trading on higher timeframes (2H-4H) and uses ATR-based position management.
The strategy waits for strong trend confirmation before entry, requiring agreement across five different filters. This reduces trade frequency but aims to improve signal quality.
Entry Logic
A long entry triggers when ALL of the following conditions are true:
1. EMA Stack (Trend Structure)
Price > EMA 20 > EMA 50 > EMA 200
This "stacked" alignment indicates a strong established uptrend
2. RSI Filter (Momentum Window)
RSI between 45-75 (default)
Confirms momentum without entering overbought territory
3. ADX Filter (Trend Strength)
ADX > 20 (default)
Ensures the trend has sufficient strength, not a ranging market
4. MACD Confirmation
MACD line above signal line
Histogram increasing (momentum accelerating)
5. Directional Movement
+DI > -DI
Confirms bullish directional pressure
Exit Logic
Positions are managed with ATR-based levels:
ParameterDefaultDescriptionStop Loss2.5 × ATRBelow entry priceTake Profit6.0 × ATRAbove entry priceTrailing Stop2.0 × ATROptional, activates after entry
The default configuration produces a 1:2.4 risk-reward ratio.
Presets
The strategy includes optimized presets based on historical testing:
PresetTimeframeNotes1H Standard1 HourMore frequent signals2H Low DD2 HourConservative settings3H Optimized3 HourBalanced approach4H Swing4 HourWider stops for swing tradesCustomAnyFull manual control
Select "Custom" to adjust all parameters manually.
Inputs Explained
EMAs
Fast EMA (20): Short-term trend
Slow EMA (50): Medium-term trend
Trend EMA (200): Long-term trend filter
RSI
Length: Lookback period (default 14)
Min/Max: Entry window to avoid extremes
ADX
Min ADX: Minimum trend strength threshold
Risk
Stop Loss ATR: Multiplier for stop distance
Take Profit ATR: Multiplier for target distance
Trail ATR: Trailing stop distance (if enabled)
Session (Optional)
Filter entries by time of day
Recommended OFF for 3H+ timeframes
What's Displayed
Info Panel (Top Right)
Current preset
Trend status (Strong/Wait)
ADX, RSI, MACD readings
Position status
Risk-reward ratio
Stats Panel (Top Left)
Net P&L %
Total trades
Win rate
Profit factor
Maximum drawdown
Chart
EMA lines (20 blue, 50 orange, 200 purple)
Green background during strong uptrend
Triangle markers on entry signals
Important Notes
⚠️ This is a long-only strategy. It does not take short positions.
⚠️ Historical results do not guarantee future performance. Backtests show what would have happened in the past under specific conditions. Markets change, and any strategy can experience drawdowns or extended losing periods.
⚠️ Risk management is your responsibility. The default settings risk 100% of equity per trade for backtesting purposes. In live trading, appropriate position sizing based on your risk tolerance is essential.
⚠️ Slippage and commissions matter. The backtest includes 0.02% commission and 1 tick slippage, but actual execution costs vary by broker and market conditions.
Best Practices
Test on your specific market — Results vary significantly across different instruments
Use appropriate position sizing — Never risk more than you can afford to lose
Combine with your own analysis — No indicator replaces understanding market context
Paper trade first — Validate the strategy matches your trading style before risking capital
Alerts
Two alerts are available:
MDZ Long Entry: Fires when all entry conditions are met
Uptrend Started: Fires when EMA stack first aligns bullish
Methodology
This strategy is based on the principle that trend continuation has better odds than reversal when multiple timeframe momentum indicators agree. By requiring five independent confirmations, it filters out weak setups at the cost of fewer total signals.
The ATR-based exits adapt to current volatility rather than using fixed pip/point targets, which helps the strategy adjust to different market conditions.
Questions? Leave a comment below.
Advanced Scalping Suite v1.0# Advanced Scalping Suite - Quick Reference Guide
## Overview
A comprehensive all-in-one scalping indicator designed for 1-15 minute timeframes that combines multiple technical analysis tools, intelligent signal generation, and automatic market condition detection to help traders identify high-probability entry and exit points.
---
## Core Capabilities
### 1. **Multi-Indicator Analysis**
- **RSI (Relative Strength Index)** - Identifies overbought/oversold conditions with automatic divergence detection for early reversal warnings
- **EMA Ribbon (8/21/55)** - Visual trend identification with color-coded fills showing trend direction and strength
- **VWAP (Volume Weighted Average Price)** - Tracks institutional interest and intraday bias
- **ATR (Average True Range)** - Measures market volatility and filters out low-volatility periods
- **ADX (Average Directional Index)** - Quantifies trend strength (>25 = trending, <25 = range-bound)
- **Higher Timeframe Trend Confirmation** - Aligns trades with larger market direction
### 2. **Intelligent Signal Generation**
The indicator provides three tiers of buy/sell signals:
**STRONG Signals** (3+ confirmations)
- High-probability setups combining RSI extremes, divergences, VWAP position, EMA alignment, and chart patterns
- Best for conservative traders and high-confidence entries
- Includes HTF trend confirmation when enabled
**MEDIUM Signals** (2 confirmations)
- Balanced risk/reward setups for active scalpers
- Good for trend-following entries during established moves
**WEAK Signals** (1 confirmation)
- Early warning signals for aggressive traders
- Useful for quick scalp entries when market momentum is clear
### 3. **Automatic Market Condition Detection**
The indicator intelligently identifies market phases:
**Trending Markets** - Strong directional moves with stacked EMAs and high ADX
- Trades with the trend using momentum signals
- EMA ribbon shows clear green (uptrend) or red (downtrend) fill
**Choppy/Consolidation** - Range-bound price action with compressed EMAs and low ADX
- Yellow background warning alerts you to reduce position size or avoid trading
- Prevents false signals during sideways markets
**Low Volatility** - Insufficient ATR for profitable scalping
- Orange background warning indicates tight price ranges
- Automatically filters signals when volatility is too low
### 4. **Chart Pattern Recognition**
Automatically detects and draws common reversal patterns:
- **Double Tops** - Bearish reversal pattern marked with "DT" label
- **Double Bottoms** - Bullish reversal pattern marked with "DB" label
- Pattern lines drawn directly on chart for visual confirmation
- Contributes to signal strength calculations
### 5. **RSI Divergence Detection**
Identifies powerful leading indicators of trend reversals:
- **Bullish Divergence** - Price makes lower low while RSI makes higher low (marked with diamond)
- **Bearish Divergence** - Price makes higher high while RSI makes lower high (marked with diamond)
- Often precedes major price movements by several candles
### 6. **Real-Time Dashboard**
Top-right info panel displays:
- Current market condition (Trending/Choppy/Consolidation)
- Live RSI, ADX, and ATR% values with color-coded status
- Trend strength assessment (Weak/Moderate/Strong)
- Higher timeframe trend direction (UP ▲ / DOWN ▼ / NEUTRAL)
- Position relative to VWAP (Above ▲ / Below ▼)
- Reversal Probability percentage (0-100%)
- Current active signal status
### 7. **Customizable Alert System**
Built-in alerts for all signal types:
- Strong/Medium/Weak buy and sell signals
- Confirmed signals (candle close confirmation)
- Trend changes and EMA crossovers
- RSI divergences
- Chart pattern detection
- Choppy market warnings
---
## Practical Use Cases
### For Day Traders
- Use on 5-15 minute charts with higher timeframe set to 1H or 4H
- Filter for "Strong Only" or "Medium & Strong" signals
- Enable HTF confirmation to trade with daily trend
- Avoid trading during yellow (choppy) or orange (low volatility) backgrounds
### For Scalpers
- Use on 1-3 minute charts with higher timeframe set to 15-30 minutes
- Enable "All Signals" to catch quick momentum moves
- Watch for weak signals that align with EMA ribbon direction
- Focus on high ATR periods (morning session, news events)
### For Swing Traders
- Use indicator on lower timeframes to fine-tune entries for swing positions
- Wait for "Confirmed Only" signals that align with your swing direction
- Use reversal probability % to gauge timing of position exits
### For Risk Management
- Yellow background = Reduce position size by 50%
- Orange background = Consider sitting out
- Only take signals that have HTF confirmation enabled
- Reversal probability >50% = Prepare to exit or take profits
---
## Key Settings to Adjust
**Signal Filter Options:**
- "All Signals" - See everything (best for experienced traders)
- "Strong Only" - High-probability setups only (conservative)
- "Medium & Strong" - Balanced approach (recommended for most)
- "Confirmed Only" - Wait for candle close (reduces false signals)
**Higher Timeframe:** Set to 3-5x your chart timeframe (e.g., 15-min on 3-min chart, 1H on 15-min chart)
**RSI Period:** 7 for ultra-fast response, 9 for balanced (default), 14 for smoother
**Require HTF Confirmation:** Toggle on to only trade with larger trend (reduces trades, increases win rate)
---
## What Makes This Different
Unlike single-purpose indicators, this suite combines multiple confirmation factors to generate high-probability signals while automatically adjusting to market conditions. It won't spam you with signals during choppy markets, it respects volatility requirements, and it provides clear visual feedback about market state through the EMA ribbon, background colors, and comprehensive dashboard.
The multi-tier signal system allows traders of all styles to use the same tool - conservatives can wait for strong signals, while aggressive scalpers can act on weak signals during confirmed trends. The pattern detection and divergence identification provide additional edge by spotting setups before price action confirms them.
---
## Quick Start Checklist
1. Add indicator to your chart
2. Set Higher Timeframe to 3-5x your chart timeframe
3. Choose your Signal Filter preference (start with "Medium & Strong")
4. Enable "Require HTF Trend Confirmation" for safety
5. Set alerts for your preferred signal types
6. Watch the info panel for market condition changes
7. Avoid trading during yellow/orange backgrounds
8. Take signals that align with EMA ribbon direction
---
**Remember:** No indicator is perfect. This tool is designed to stack probabilities in your favor by combining multiple technical factors, but always use proper risk management, position sizing, and stop losses on every trade.
ML-Inspired Adaptive Momentum Strategy (TradingView v6)This strategy demonstrates an adaptive momentum approach using volatility-normalized trend strength. It is designed for educational and analytical purposes and uses deterministic, fully transparent logic compatible with Pine Script v6.
ML-Inspired Concept (Educational Context)
Pine Script cannot train or execute real machine-learning models.
Instead, this strategy demonstrates ML-style thinking by:
Converting price data into features
Normalizing features to account for volatility differences
Producing a bounded confidence score
Applying thresholds for decision making
This is not predictive AI and does not claim forecasting capability.
Strategy Logic
EMA is used to measure directional bias
EMA slope represents momentum change
ATR normalizes the slope (feature scaling)
A clamped score between −1 and +1 is generated
Trades trigger only when the score exceeds defined thresholds
Risk & Execution
Position size capped at 5% equity
Commission and slippage included for realistic testing
Signals are calculated on closed bars only
Purpose
This script is intended to help traders explore adaptive momentum concepts and understand how feature normalization can be applied in systematic trading strategies.
Session Lines + ATR AnalyticsDescription:
Overview:
A comprehensive trading tool that combines session visualization with real-time ATR analytics. Perfect for intraday traders who need precise timing and volatility measurements.
Features:
Session Markers
Visual indicators for Asia (00:00-08:00), London (07:00-15:00), and New York (13:00-21:00) trading sessions
Color-coded session bands at the bottom of the chart for quick identification
Fully customizable session times and colors
Hourly Vertical Lines
Automatic vertical lines drawn at the start of each hour (works on 1-minute charts)
Multiple line styles available: solid, dotted, dashed, arrows
Adjustable color and width settings
Helps identify exact timing of price movements
ATR Tool
Real-time candle range measurement
Modified ATR calculation (excludes current candle for accuracy)
Customizable ATR length and multiplier
Live countdown timer showing time remaining in current timeframe
Floating label with adjustable offset and styling
Date & Timeframe Display
Bottom-right watermark showing current date in LA timezone
Displays current timeframe with proper units (1m, 5m, 1H, etc.)
Useful for backtesting to confirm you're viewing the correct date
Best Used For:
Day trading and scalping (especially on 1-minute charts)
Session-based trading strategies
Volatility analysis using ATR
Time-based entry and exit planning
Settings:
All elements are fully customizable through the indicator settings panel, including colors, sizes, visibility toggles, and calculation parameters.
Multi MA-MTF + ATRMulti MA-MTF + ATR is a lightweight, flexible moving-average toolkit built for clean charting and multi-timeframe context.
Key Features
Up to 10 Moving Averages (SMA / EMA / RMA / WMA / VWMA / HMA)
Per-MA controls:
Enable/disable
Type, Length, Source
Color + Width
MTF mode
Project to LTF: display a higher-timeframe MA on lower timeframes (example: show the 1H MA directly on the 5m/15m chart)
Only on that TF: show the MA only when the chart timeframe matches the selected TF
Confirmed option for higher-timeframe values (helps avoid repaint-like behavior by holding the last confirmed HTF value)
ATR Panel
ATR value table displayed on the chart
Optional ATR high/low lines (disabled by default)
Defaults
Only MA1–MA3 enabled by default (clean out of the box)
Default MA line width set to 1
ATR lines OFF by default
Important Note (If it “drifts” / appears off the price)
If the indicator looks “detached” or seems to drift, it’s usually because TradingView moved it into a separate pane.
Fix: click the three dots next to the indicator name → Move to → Main chart.
You can also remove and re-add the indicator to reset its placement.
Swing Data [ATR Ext | RVol | ADR | Ticker/Sector RS]Disclaimer : This indicator is not financial advice and is strictly for educational and informational purposes only. The metrics and signals provided herein—including ATR extensions, volume projections, and rolling alpha for relative strength — are calculated based on historical market data and do not guarantee future performance. Trading stocks and commodities involves significant risk of loss. The user assumes full responsibility for all trading decisions and should always perform their own due diligence before executing trades.
Hello there. I was inspired after reading this Twitter post by Steve Jacobs regarding the ATR Matrix. I followed Steve's recommendation to the interesting indicator built by @Fred6724 for @jfsrev but I couldn't match my manual calculations to their math. So, I threw together this TradingView indicator to match my own manual calculations for the ATR Extension Multiple. And then, I added more quality-of-life features that I found useful in my daily workflow such as table positioning, specific data streams, threshold customization, and conditional coloring. This became quite a snowball.
Daily Chart : Please note that the design for this indicator was focused on the daily chart. Edge case testing has not been fully conducted for other charting periods, although the math should apply agnostically. The calculations of rolling alpha for Ticker RS and Sector RS fetch daily data instead of the displayed chart period, which may affect Ticker RS if you have turned on pre-market and after-market.
Relative Strength Differential reveals rolling alpha: One way to read the Ticker RS and Sector RS is... this stock is beating SPY by +75% in the past 63 days and blue color means the stock's outperformance is accelerating but the sector of this stock is beating SPY by a sleepy 3% and orange color means the sector's performance against the broader market is shrinking... so at a glance, we can conclude this is a strong stock in a lagging sector.
Status Line : The script outputs the raw ATR Extension value, ATR%, and a Boolean (0/1) for the ATR Extension alert dot directly to the Status Line. This allows you to hover your mouse over any historical candle to see exactly how extended price was on that specific candle, without needing to calculate it manually. These values are coded to display as text only. They provide the data you need without drawing distracting line plots across your price action. In the Style Tab of the indicator settings, you will see checkboxes for these values. Avoid toggling them off and on. Doing so can override the script’s default "invisible" setting and force TradingView to draw unnecessary lines on the chart.
Data streams available for turning on/off:
ATR Multiple above SMA (default SMA50, default alert on candle >6 multiple, the simple math is Price minus SMA50 and then divide by ATR)
ATR Percent (default period length 14)
ATR Value
Percent Distance from SMA (default SMA50)
Projected Relative Volume calculated against Average Volume (default 60 day avg vol)
Projected Volume (estimates end of day volume based on current volume at elapsed time)
Projected Dollar Volume (estimates end of day turnover based on projected volume x current price... it's a ballpark for gauging liquidity... time arrays for modestly more accurate turnover projection is compute heavy and low signal intel)
Average Volume (default 60 day)
Average Dollar Volume (default 60 day)
ADR Percent (default period length 20 while TradingView prefers 14)
ADX (default period length 14)
Low of Day Price
Dynamic Stop Loss (default Stop MA length 10 and Stop ATR multiple 0.5, adjust at your preference)
Market Capitalization (calculates latest Fiscal Quarter's Shares Outstanding x Price)
Ticker RS vs SPY (calculates the stock's 63-day rolling performance against the broader market to quantify raw outperformance percentage; the text color signals velocity, turning default blue if the relative strength is flying above the 21-day average of this relative strength or default orange if shrinking below)
Sector RS vs SPY (calculates the sector's 63-day rolling performance against the broader market to quantify raw outperformance percentage; the text color signals velocity, turning default blue if the relative strength is flying above the 21-day average of this relative strength or default orange if shrinking below)
Sector (basic exception handling such as metal/energy/crypto in ambiguous industries and GICS industry overrides, see code block below)
Industry (pulls TradingView's syminfo, truncates when too long)
Advanced mapping of the Sector string to a specific ETF, GICS Compliant.
// 1. Get Sector and Industry Strings
// 'str.lower' converts the description to lowercase to make keyword matching easier (case-insensitive).
string sec_raw = syminfo.sector
string ind_raw = syminfo.industry
string desc_raw = str.lower(syminfo.description)
// Default Fallback: If no match is found, we compare against SPY (Market Average).
string sec_etf = "SPY"
// 2. DEFINE CONDITIONAL GATES (The Safeguards)
// CRITICAL: We only want to scan for keywords (like "Silver") if the stock is in a vague industry bucket.
// This prevents "False Positives". For example, we don't want "Silvergate Bank" (Regional Banks)
// to be accidentally reclassified as a Mining stock just because it has "Silver" in the name.
bool is_ambiguous = ind_raw == "Investment Trusts/Mutual Funds" or ind_raw == "Miscellaneous" or ind_raw == "Financial Conglomerates" or ind_raw == "Other Metals/Minerals" or ind_raw == "Precious Metals"
// 3. KEYWORD LOGIC (Only runs inside the Gate)
// RULE A: COMMODITY TRUSTS (Metals -> XLB)
// Fixes: PSLV, PHYS, SPPP, GLD, SLV which are legally "Financial Trusts" but trade like Commodities.
// Logic: If it's a Trust AND mentions "Silver/Gold/Bullion", map to Materials ( AMEX:XLB ).
bool has_metal = str.contains(desc_raw, "silver") or str.contains(desc_raw, "gold") or str.contains(desc_raw, "bullion") or str.contains(desc_raw, "platinum") or str.contains(desc_raw, "palladium") or str.contains(desc_raw, "precious")
// RULE B: ENERGY TRUSTS (Oil/Uranium -> XLE)
// Fixes: USO, UNG, SPUT (Uranium).
// Logic: Uranium and Oil trusts correlate with Energy ( AMEX:XLE ), not Financials.
bool has_energy = str.contains(desc_raw, "oil") or str.contains(desc_raw, "natural gas") or str.contains(desc_raw, "petroleum") or str.contains(desc_raw, "uranium") or str.contains(desc_raw, "crude")
// RULE C: CRYPTO PROXIES (Bitcoin/Ether -> XLK)
// Fixes: GBTC, IBIT, FBTC.
// Logic: Crypto equities currently have the highest correlation with High-Beta Tech ( AMEX:XLK ).
bool has_crypto = str.contains(desc_raw, "bitcoin") or str.contains(desc_raw, "ethereum") or str.contains(desc_raw, "crypto") or str.contains(desc_raw, "coin")
// 4. EXECUTE KEYWORD MAPPING
if is_ambiguous and has_metal
sec_etf := "XLB" // Force Metals to Materials
else if is_ambiguous and has_energy
sec_etf := "XLE" // Force Energy Trusts to Energy
else if is_ambiguous and has_crypto
sec_etf := "XLK" // Force Crypto to Tech (Risk On)
// 5. GICS INDUSTRY OVERRIDES (The "Standard" Fixes)
// These rules fix known classification errors where TradingView data lags behind GICS reclassifications.
// EXCEPTION: PAYMENT PROCESSORS (The "Visa" Rule - 2023 Update)
// Visa ($V), Mastercard ( NYSE:MA ), and PayPal ( NASDAQ:PYPL ) are now Financials ( AMEX:XLF ), not Tech.
else if ind_raw == "Data Processing Services"
sec_etf := "XLF"
// EXCEPTION: COMMUNICATIONS (The "Google/Meta" Rule - 2018 Update)
// Separates "Internet" and "Media" stocks ( NASDAQ:GOOGL , NASDAQ:META , NASDAQ:NFLX ) from "Packaged Software" ( NASDAQ:MSFT ).
// These belong in Communications ( AMEX:XLC ).
else if ind_raw == "Internet Software/Services" or ind_raw == "Advertising/Marketing Services" or ind_raw == "Broadcasting" or ind_raw == "Cable/Satellite TV" or ind_raw == "Movies/Entertainment"
sec_etf := "XLC"
// EXCEPTION: REAL ESTATE (The "REIT" Rule)
// Pulls REITs out of the Financials bucket ( AMEX:XLF ) and into their own sector ( AMEX:XLRE ).
else if str.contains(ind_raw, "Real Estate") or str.contains(ind_raw, "REIT")
sec_etf := "XLRE"
// EXCEPTION: AUTO MANUFACTURERS (The "Tesla" Rule)
// Tesla ( NASDAQ:TSLA ), Ford ($F), and GM are Consumer Discretionary ( AMEX:XLY ), not Tech or Industrials.
else if ind_raw == "Motor Vehicles"
sec_etf := "XLY"
// EXCEPTION: INTERNET RETAIL (The "Amazon" Rule)
// Amazon ( NASDAQ:AMZN ) and eBay are Consumer Discretionary ( AMEX:XLY ), distinct from generic "Retail Trade" ( AMEX:XRT ).
else if ind_raw == "Internet Retail"
sec_etf := "XLY"
// EXCEPTION: TEXTILES & APPAREL
// Nike ( NYSE:NKE ), Lululemon ( NASDAQ:LULU ), and Ralph Lauren are Consumer Discretionary ( AMEX:XLY ).
else if ind_raw == "Apparel/Footwear" or ind_raw == "Textiles"
sec_etf := "XLY"
// EXCEPTION: AEROSPACE & DEFENSE (The "Lockheed" Rule)
// Often mislabeled as Tech in some feeds, strictly belongs to Industrials ( AMEX:XLI ).
else if ind_raw == "Aerospace & Defense"
sec_etf := "XLI"
// EXCEPTION: SEMICONDUCTORS
// Explicit check to ensure Semis ( NASDAQ:NVDA , NASDAQ:AMD ) always stick to Tech ( AMEX:XLK ).
else if ind_raw == "Semiconductors"
sec_etf := "XLK"
// 6. STANDARD FALLBACKS
// If the stock didn't trigger any exception above, map based on the broad Sector name.
else
sec_etf := switch sec_raw
"Technology Services" => "XLK" // Microsoft, Oracle, Adobe
"Electronic Technology" => "XLK" // Apple, Hardware
"Finance" => "XLF" // Banks, Insurance
"Health Technology" => "XLV" // Pharma, Biotech
"Health Services" => "XLV" // Managed Care (UNH)
"Retail Trade" => "XRT" // Home Depot, Walmart (Retailers)
"Consumer Non-Durables" => "XLP" // Coke, P&G (Staples)
"Energy Minerals" => "XLE" // Exxon, Chevron (Oil)
"Industrial Services" => "XLI" // Construction, Engineering
"Consumer Services" => "XLY" // Restaurants, Hotels
"Consumer Durables" => "XLY" // Homebuilders, Appliances
"Utilities" => "XLU" // Power, Water
"Transportation" => "XTN" // Airlines, Rail, Trucking
"Non-Energy Minerals" => "XLB" // Steel, Copper, Chemicals
"Commercial Services" => "XLC" // Remaining Media/Comms
"Communications" => "XLC" // Legacy tag
"Distribution Services" => "XLY" // Wholesalers
=> "SPY" // Final Catch-All
Momentum Trend & Ignition DashboardDescription
Rationale & Originality Traders often struggle with chart clutter, needing separate indicators for Moving Averages, Volume anomalies, and Fundamental stats (like 52-week highs or Float). This script solves this problem by creating a unified "Momentum Dashboard." It is not just a collection of averages; it is a purpose-built tool for Breakout and Trend Following strategies (such as CAN SLIM or VCP).
The uniqueness of this script lies in its "Confluence Logic": it allows a trader to instantly validate a setup by checking three pillars simultaneously without changing tabs:
Trend: Are the key MAs (20, 50, 100, 200) stacked correctly?
Ignition: Is there a "Power Play" (Big Price Move + Heavy Volume) occurring right now?
Stats: Is the stock near its 52-week high, and does it have a supportive Up/Down Volume Ratio?
How It Works (Detailed Calculations)
1. Custom Trend Ribbon (4x MA Mix):
The script plots 4 independent Moving Averages.
Innovation: Unlike standard inputs, each MA can be individually toggled between SMA (Simple) or EMA (Exponential). This allows traders to mix "Fast" trend lines (e.g., 10 or 20 EMA) with "Slow" institutional lines (e.g., 50 or 200 SMA) in one overlay.
2. "Purple Dot" Ignition Detection:
This features a custom detection algorithm for "Ignition Bars."
Logic: It compares the current candle's Close to the previous Close. If the move exceeds a user-defined threshold (default 5%) AND the Volume exceeds a fixed liquidity threshold (default 500k), a Purple Dot is plotted.
This filters out "low volume drift" and highlights true institutional participation.
3. Relative Volume (RVol) Engine:
Calculates the ratio of Current Volume to the 50-period SMA of Volume.
Visuals: If the ratio exceeds the user threshold (e.g., 1.5x average), the dashboard highlights the data, and optionally the chart bars, alerting the trader to unusual activity.
4. Statistical Dashboard (Data Panel):
Using request.security, the panel fetches daily timeframe data regardless of the chart view.
52-Week & 13-Week H/L: Calculates the percentage distance from these key levels to gauge overhead supply.
U/D Ratio: Calculates the sum of volume on "Up Days" vs. "Down Days" over 50 periods. A value > 1.0 suggests institutional accumulation.
Float %: (Stocks Only) Fetches financial data to show the percentage of shares available for trading.
How to Use This Script
This script is designed for Trend Following and Breakout Trading:
The Setup: Use the Data Panel to find stocks with a U/D Ratio > 1.0 and price within 15% of the 52-Week High.
The Trend: Ensure price is above the MA 2 (set to 50 SMA) and MA 4 (set to 200 SMA) to confirm a Stage 2 uptrend.
The Trigger: Watch for the Purple Dot.
If a Purple Dot appears as price breaks out of a consolidation (base), it confirms institutional buying.
Use the RVol panel to confirm that volume is at least 1.5x normal levels.
Risk Management: Use the MA 1 (set to 20 EMA) as a trailing stop-loss during strong trends.
Settings & Configuration
MAs: Fully adjustable Length and Type (SMA/EMA).
Big Move (Purple Dot): Adjust the % Move based on asset volatility (e.g., use 3% for Large Caps, 10% for Crypto).
Table: The data panel is fully dynamic. You can toggle specific rows (like Float or SMA distance) On/Off to save screen space, and position it anywhere on the chart.
Credits & References
The concept of Relative Volume (RVol) and U/D Ratio is derived from standard Volume Analysis used by William O'Neil.
The "Big Move" combined with Volume thresholds is based on standard Volume Spread Analysis (VSA) concepts regarding "Effort vs. Result."
Financial data fetch (Float) utilizes TradingView's built-in financial() library.
Volatility Regimes | GainzAlgo📊 OVERVIEW:
=========
This is a comprehensive ATR-based trading system designed for professional
traders who need advanced volatility analysis, precise trade management, and
intelligent market regime detection. The indicator combines multiple proven
volatility concepts into one powerful, customizable tool.
⭐ WHY THIS SYSTEM IS UNIQUE AND WORTHY OF PUBLICATION:
====================================================
This is not simply a collection of ATR-based indicators placed together.
It represents a unified volatility analysis framework where each component
is specifically designed to work in concert with the others, creating a
complete trading workflow that cannot be replicated by using multiple
separate indicators.
🔗 SYNERGISTIC INTEGRATION - How Components Work Together:
🧠 1. CONTEXT-AWARE ANALYSIS
The Volatility Regime Detection acts as the "brain" of the system,
classifying market conditions into 4 distinct phases. Every other
component then adapts its behavior based on this regime classification:
- ATR Bands expand/contract with regime changes
- Stop Loss distances automatically adjust (tighter in compression,
wider in high volatility)
- Take Profit targets scale proportionally to current regime
- Signal sensitivity filters itself based on market phase
📐 2. UNIFIED VOLATILITY FOUNDATION
All calculations share a single ATR baseline calculation, ensuring
internal consistency across the entire system. When ATR changes, every
element updates in perfect synchronization:
- Bands recalculate from the same ATR value
- Risk management levels use the same volatility measurement
- Regime classification and signals reference identical data
🛡️ 3. INTEGRATED RISK MANAGEMENT
The system doesn't just show WHERE to enter - it calculates HOW MUCH
to risk:
- Dynamic Stop Loss adapts to current ATR automatically
- Position Size Calculator uses the dynamic stop to compute exact quantities
- Take Profit levels scale proportionally, maintaining optimal risk:reward
✅ 4. TWO-STAGE SIGNAL CONFIRMATION
The alert system creates a logical progression:
Step 1: Volatility Breakout → Market energy is building
Step 2: Trend Confirmation → Direction confirmed with volatility support
This prevents false breakouts by requiring both volatility AND direction.
🏦 5. PROFESSIONAL WORKFLOW INTEGRATION
The system mirrors how institutional traders analyze markets:
Phase 1: Assess regime → What's the market doing?
Phase 2: Identify setup → Where's the opportunity?
Phase 3: Calculate risk → What's my exposure?
Phase 4: Set targets → Where do I take profit?
Phase 5: Monitor regime → When do conditions change?
❌ WHY NOT USE SEPARATE INDICATORS?
- Separate ATR Bands: Don't know about regime changes, remain static
- Separate Regime Indicator: Doesn't automatically adjust stop/targets
- Separate Position Calculator: Doesn't know your actual ATR-based stop
- Manual Integration: Requires constant mental calculation and cross-referencing
🧮 DETAILED CALCULATION METHODOLOGY:
=================================
📏 ATR (AVERAGE TRUE RANGE) CALCULATION:
- True Range = Maximum of:
1. Current High - Current Low
2. Absolute value of (Current High - Previous Close)
3. Absolute value of (Current Low - Previous Close)
- ATR = Simple Moving Average of True Range over specified period (default: 14)
📊 DYNAMIC ATR BANDS:
- Upper Band = Current Close + (ATR × Band Multiplier)
- Lower Band = Current Close - (ATR × Band Multiplier)
- Band 1: 1.0× ATR (closest support/resistance)
- Band 2: 2.0× ATR (intermediate zone)
- Band 3: 3.0× ATR (extended zone)
🌡️ VOLATILITY REGIME CLASSIFICATION:
Step 1: Calculate ATR Baseline
- Baseline ATR = SMA or EMA of ATR over long period (default: 50 bars)
- This represents "normal" volatility for the instrument
Step 2: Calculate ATR Ratio
- ATR Ratio = Current ATR ÷ Baseline ATR
- Example: If current ATR = 70 and baseline = 50, ratio = 1.40
Step 3: Classify Regime Based on Ratio
- COMPRESSION: Ratio < 0.70 (ATR is 30% below normal)
Market consolidating, volatility contracting, energy building
- EXPANSION: Ratio between 1.15 and 1.40 (ATR is 15-40% above normal)
Volatility breaking out, early phase of directional movement
- HIGH VOLATILITY: Ratio > 1.40 (ATR is 40%+ above normal)
Strong sustained trend with high participation
- EXHAUSTION: ATR declining after high volatility period
Requires: Previous high ratio + declining ATR over X bars (default: 5)
Trend maturity, potential reversal or consolidation approaching
🛑 DYNAMIC STOP LOSS CALCULATION:
- For Long Positions: Stop Loss = Entry Price - (ATR × SL Multiplier)
- For Short Positions: Stop Loss = Entry Price + (ATR × SL Multiplier)
- Default Multiplier: 2.0× ATR
- Adjusts automatically: Wider in high volatility, tighter in compression
🎯 TAKE PROFIT LEVELS:
- TP1 = Entry Price ± (ATR × TP1 Multiplier)
- TP2 = Entry Price ± (ATR × TP2 Multiplier)
- TP3 = Entry Price ± (ATR × TP3 Multiplier)
- Direction (+ or -) depends on trade direction
📦 POSITION SIZE CALCULATION:
Formula: Position Size = Account Risk Amount ÷ Stop Loss Distance
Step-by-step:
1. Risk Amount = Account Size × (Risk Percentage ÷ 100)
2. Stop Distance = |Entry Price - Stop Loss Price|
3. Position Size = Risk Amount ÷ Stop Distance
📈 ATR PERCENTILE RANKING:
- >80% = Extremely high volatility
- 20-80% = Normal volatility range
- <20% = Extremely low volatility
🌀 VOLATILITY CONTRACTION PATTERN:
Detects extended low-volatility periods indicating imminent breakout.
🧭 TREND DETECTION SIGNALS:
Bullish: Price > MA AND Current ATR > ATR MA
Bearish: Price < MA AND Current ATR > ATR MA
⚡ VOLATILITY BREAKOUT SIGNALS:
Triggered when ATR exceeds its moving average by a defined threshold.
🧩 CORE FEATURES:
==============
1. ATR BANDS (Dynamic Support/Resistance)
2. VOLATILITY REGIME DETECTION
3. DYNAMIC STOP LOSS SYSTEM
4. MULTIPLE TAKE PROFIT LEVELS
5. SUPPORT & RESISTANCE LEVELS
6. RISK MANAGEMENT CALCULATOR
7. ATR PERCENTILE RANKING
8. VOLATILITY CONTRACTION PATTERN
9. TREND DETECTION SIGNALS
10. VOLATILITY BREAKOUT SIGNALS
⚙️ RECOMMENDED SETTINGS BY TRADING STYLE:
======================================
DAY TRADING • SWING TRADING • POSITION TRADING • SCALPING
📘 HOW TO USE THIS INDICATOR:
==========================
STEP 1: Identify Market Regime
STEP 2: Wait for Entry Signal
STEP 3: Set Stop Loss
STEP 4: Set Take Profits
STEP 5: Position Sizing
STEP 6: Monitor & Manage
🔔 ALERT SYSTEM:
=============
Alerts for volatility breakouts, trend changes, regime transitions,
ATR band crossings, contraction completion, and percentile extremes.
🎨 CUSTOMIZATION:
==============
All visuals, thresholds, multipliers, colors, alerts, and risk parameters
can be fully customized.
⚠️ IMPORTANT DISCLAIMER:
=====================
This indicator is a volatility analysis tool and does NOT provide financial advice.
Past performance does not guarantee future results.
All trading involves substantial risk.
All trading decisions are the sole responsibility of the user.
ATR Bands (MA Distance)ATR Bands (MA Distance) plots volatility-based bands at a multiple of ATR away from a selected moving average.
Unlike percentage envelopes or standard deviation bands, this indicator measures distance from the moving average using ATR, representing the market’s normal “breathing range” rather than statistical probability.
Key Features
The center line is a selectable moving average (EMA, SMA, RMA/Wilder, or WMA).
Upper and lower bands are calculated as:
Moving Average ± ATR × Multiplier
Band width automatically adapts to changing market volatility.
Designed for consistent use across different markets and timeframes without parameter re-optimization.
Non-repainting: all values are calculated only from confirmed historical bars.
Intended Use
ATR Bands (MA Distance) is best used as a context and preparation tool , not as a direct entry or exit signal.
Typical use cases include:
Identifying areas where price is extended relative to its recent volatility.
Visualizing normal vs. stretched price distance from the moving average.
Supporting range-based analysis or trade preparation when combined with other indicators (e.g., oscillators).
Important Notes / How NOT to Use
This indicator does NOT generate buy or sell signals by itself .
Touching or crossing a band does not imply an automatic reversal.
In strong trending markets, price may stay outside the bands for extended periods.
ATR Bands should not be interpreted as overbought/oversold levels on their own.
This indicator does NOT repaint. Once a bar is closed, its values will not change.
For best results:
Use ATR Bands as a preparation zone, then wait for confirmation from your own entry logic.
Disable or ignore band-based mean-reversion ideas during strong trend conditions.
Concept Summary (Short)
ATR Bands (MA Distance) visualize how far price has moved from its moving average in terms of volatility, without repainting and without relying on percentage deviation or statistical assumptions.
Optional Short Description (Preview)
Volatility-based, non-repainting ATR bands plotted at a distance from a moving average.
Designed for market context and trade preparation — not standalone signals.
Quality-Controlled Trend Strategy v2 (Expectancy Focused)This script focuses on quality control rather than curve-fitting.
No repainting, no intrabar tricks, no fake equity curves.
It uses confirmed-bar entries, ATR-based risk, and clean trend logic so backtests reflect what could actually be traded live.
If you publish scripts, this is the minimum structure worth sharing.
Why this script exists
TradingView’s public scripts are flooded with:
repainting indicators
no stop-loss logic
curve-fit entries that collapse live
strategies that look good only in hindsight
This script is intentionally boring but honest.
No repainting.
No intrabar tricks.
No fake equity curves
The goal is quality control, not hype.
What this strategy enforces
✔ Confirmed bars only
✔ Single source of truth for indicators
✔ Fixed risk structure
✔ No signal repainting
✔ Clean exits with unique IDs
✔ Works on any liquid market
Trading Logic (simple & auditable)
Trend filter
EMA 50 vs EMA 200
Entry
Pullback to EMA 50
RSI confirms momentum (not oversold/overbought)
Risk
ATR-based stop
Fixed R:R
One position at a time
This is the minimum bar for a strategy to be considered publish-worthy.
Why this helps TradingView quality
Most low-value scripts fail because they:
hide repainting logic
skip exits entirely
use inconsistent calculations
rely on hindsight candles
This strategy forces discipline:
every signal is confirmed
every trade has defined risk
behavior is repeatable across symbols & timeframes
If more scripts followed this baseline, TradingView’s public library would be far more usable.
BT State, Structure & EnergyBT State, Structure & Energy
BT State, Structure & Energy is a market context framework — not a signal generator.
It helps traders understand when meaningful outcomes are possible, before interpreting absorption, aggression, or entries.
This tool enforces the correct analytical hierarchy used by professional traders.
---
Core Concept
Markets resolve in layers, not signals.
This indicator separates volatility behavior into three distinct components:
State (BBWP) → Can something happen?
Structure (Keltner Width %) → Is the market opening or compressing?
Energy (ATR %) → Is there enough participation to traverse structure?
Most traders invert this sequence and fail.
This framework does not.
---
Indicator Mapping
BBWP → State
Defines volatility regime and expansion permission.
Keltner Width % → Structure
Tracks the opening and closing of the market’s price envelope.
ATR % → Energy
Measures the arrival and decay of kinetic participation.
These are non-directional metrics. They describe environment, not bias.
---
Visual Design
BBWP Columns (Heatmap)
Low opacity columns show volatility state without overpowering price.
Compression Background
Subtle shading highlights regimes where expansion is statistically unlikely.
Structure Line (KWP)
User-defined base color with light/dark slope variants.
Energy Line (ATR %)
User-defined base color with light/dark slope variants.
Brightness reflects slope (rising or falling), not direction.
---
How to Use
Start with State
If volatility permission is closed, most signals will fail.
Then read Structure
Structure often opens before state transitions.
Then read Energy
Energy confirms whether structure can be traversed.
Only then interpret Absorption
Absorption matters when expansion is allowed.
Finally read Aggression
Aggression answers who is winning right now .
Correct hierarchy:
Market State → Absorption → Aggression
---
Best Practices
Do not use this as an entry signal
Use it to filter false breakouts and chop
Pair with absorption and order-flow tools
Use higher opacity on HTF, lower on LTF
Adjust slope length per timeframe (longer on HTF)
---
Who This Is For
This tool is designed for traders who want to:
Understand market condition before acting
Avoid chasing activity in compressed regimes
Trade with context instead of indicators in isolation
If you are looking for buy/sell arrows, this is not the tool.
If you want to know where you are , this is exactly the tool.
---
BT State, Structure & Energy
Understand the environment before interpreting the tape.
Opening Range candle percent of ATRIt takes the opening range of the first candle - 5, 10, 15 or whatever minute - and finds what percent of the ATR that is. So if the opening candle high is 15 and low is 14, its range is 1. If the ATR (daily or whatever you want) is 2, then the opening candle's range is 50% of the ATR.
The percentage is displayed on right in a blue box.
The indicator is used in reversal strategies, since opening candles that eat up a large amount of the daily ATR have a higher probability of reversing.
Indicator made with ChatGPT.
SuperSqueeze 2.0 - Supertrend Indicator with Buy/Sell SignalsSuperSqueeze 2.0 — Supertrend Indicator with Buy/Sell Signals
A clean, customizable Supertrend indicator for identifying trend direction and reversal points. Uses ATR-based dynamic support/resistance levels that trail price action.
HOW IT WORKS:
- Green line = Uptrend (price above support)
- Red line = Downtrend (price below resistance)
- Buy/Sell labels appear on trend flips
FEATURES:
- Adjustable ATR period and multiplier (default: 10, 3.0)
- Two ATR calculation methods (standard or SMA-based)
- Optional trend highlighting fill
- Built-in alerts for trend changes
BEST FOR:
- Trend following entries and exits
- Trailing stop-loss placement
- Filtering trades in the dominant direction
- Works on any timeframe and instrument (futures, stocks, crypto, forex)
DEFAULT SETTINGS: ATR 10, Multiplier 3.0 — adjust multiplier higher for fewer signals, lower for more sensitivity.
DM for access
ATR Tick Targets (Daily + Intraday)ATR Tick Targets (Daily + Intraday)
This indicator calculates ATR-based tick targets and stops using both intraday ATR and daily ATR, then converts the result directly into tick distances relative to the current price.
It’s designed for traders who think in ticks rather than raw price units, especially futures traders (e.g., MGC, ES, NQ, CL, etc.).
🔍 What it does
✔️ Calculates:
Intraday ATR
Daily ATR
A combined ATR value (user-selectable)
✔️ Converts ATR → ticks using the symbol’s minimum tick size
✔️ Plots:
ATR-based long TP / SL
ATR-based short TP / SL
✔️ Displays:
tick distances for TP and SL
ATR values used in calculation
optional label shifted to the right of price
⚙️ ATR combination methods
You can choose how ATR is derived:
Intraday only
Daily only
Average (default)
Max (more conservative stops / larger targets)
This allows you to match your volatility model to your trading style.
🎯 Typical use cases
This tool is useful if you:
set fixed tick SL/TP from ATR
scale target size with volatility
trade futures or tick-based markets
want a volatility-aware RR framework
want targets that expand in trends and contract in chop
It does not generate trade signals. It simply provides objective ATR-based distances that you can plug into your own strategy.
👁️ Visual control
Options include:
show/hide lines
show only current + previous bar
show full historical levels
toggle long/short model independently
offset info label to avoid covering candles
⚠️ Notes
Works on any timeframe
Tick values depend on the symbol’s minimum tick size
Intended for analysis, not guaranteed execution distances
Smart Impulse PRO v1.0Smart Impulse PRO (Invite‑Only) — Comprehensive Guide for TradingView
***
## English Version
Smart Impulse PRO (Invite‑Only) — Comprehensive Guide for TradingView
Strategy Concept & Uniqueness
Smart Impulse PRO is a trend‑following impulse continuation strategy built specifically for volatile crypto pairs . It uses a custom price×volume impulse signal normalized with Z‑score , then filters these impulses through multi‑timeframe trend conditions and a layered guard system that blocks structurally weak trades (flat, overextension, exhaustion).
Backtest Summary (Crypto Pairs)
Smart Impulse PRO was backtested on several volatile crypto perpetual pairs (including ETHUSDT, BTCUSDT and other majors/alts) on 1h charts in the period 01 Jan 2023 – 26 Dec 2025. On this sample, typical results were:
- Total trades per pair : ≈100–130
- Win rate range : ≈ 90–94%
- Profit factor range : ≈ 3.0–3.9
These values are historical backtest metrics on specific symbols and settings and do not guarantee similar performance in the future .
Why It’s Special
✅ Custom price×volume impulse model (Z‑score‑based) : Measures how unusual each bar’s move is in its recent context, not just simple MA/RSI crossovers
✅ 15+ Exhaustion & Structure Guards : Automatically block bad contexts (flat, low vol, overextended candles, climax volume)
✅ Dynamic TP Grid : Take‑profit levels adapt to current impulse strength |Z|
✅ Visual Transparency : Bubbles show exactly why signals were blocked
✅ Invite‑Only Logic : The concrete impulse model and guard interactions are proprietary and therefore published as invite‑only with protected source, as allowed by TradingView’s script rules.
***
### 1. What the Script Does (User View)
Smart Impulse PRO acts as an automated decision engine for volatile crypto pairs (e.g., ETHUSDT, BTCUSDT) on intraday and swing timeframes (15m–4h). It:
- Generates Long/Short entries only when both trend and impulse conditions align.
- Manages exits with a multi‑level TP grid, breakeven logic, optional trailing stop and time‑based exit.
- Visually shows both taken trades and blocked signals , including a short text reason for rejection.
This lets users trade crypto trends with a clear explanation of when and why the strategy chooses to act or stay out.
***
Entry Rules
Long (Buy):
Price is above EMA200 (long‑term trend is up)
Z‑score impulse > Z_threshold (e.g., 1.5)
Volume above recent average
ADX > Min ADX (e.g., 25)
ATR regime OK (ATR > ATR_floor and not in volatility squeeze)
All active guards pass (no overextended candle, no extreme wick against direction, no climax volume lock, no distance violation vs EMA200/VWAP, no Z‑streak lock)
Short (Sell):
Price is below EMA200 (long‑term trend is down)
Z‑score impulse > Z_threshold
Volume above recent average
ADX > Min ADX
ATR regime OK
All active guards pass (same checks, mirrored for shorts)
Logic:
The script first checks that the market is trending (EMA200 side + ADX + volatility filters), then validates that the current bar is a statistically strong price×volume impulse, and finally makes sure the bar is not an exhaustion spike or overextended move according to the guard system. Only if all three layers agree, a trade is opened.
Exit Rules
Stop‑Loss:
Initial stop‑loss is placed at a user‑defined distance (percent or ATR‑based), and position size is calculated so that a full stop equals Max Risk per Trade (%).
Take‑Profit grid:
Up to 10 TP levels.
Step type: Percent, ATR% or Hybrid.
Optional “Breathing grid”: TP distances are increased in proportion to |Z‑score| at entry (capped), so stronger impulses receive wider, more ambitious targets.
TP Profile (Equal / Aggressive / Balanced / Defensive) decides how much size is closed at each level.
Breakeven and Trailing:
Optional breakeven: after TP1 is hit, stop can be moved to entry price plus a small offset.
Optional ATR‑based trailing stop activates only after TP3 to avoid being shaken out too early by noise.
Time‑based Exit:
If enabled, any open trade that does not hit TP or SL within the chosen time limit (bars or minutes) is closed at market, to avoid very long, stagnant positions.
### 2. How the Script Works (Internals)
2.1 Impulse Engine (Custom Z‑Score Model)
At the core is a price×volume impulse series with Z‑score normalisation:
- Raw impulse:
`delta_impulse = (close - close ) * volume`
- Normalisation over N bars (default N = 20):
`zscore = (delta_impulse - avg(delta_impulse, N)) / stdev(delta_impulse, N)`
A bar becomes an impulse candidate only when:
- `abs(zscore) > Z_threshold` (default 1.5), and
- volume is above its recent average.
This is a custom implementation of a price×volume impulse model based on Z‑score; the exact combination of inputs, window, thresholds and how this signal feeds guards and exits is part of the proprietary logic.
2.2 Trend & Volatility Context — Why the Mashup Exists
The strategy combines several classic tools, but each covers a specific failure mode. The mashup is intentional:
| Component | What it checks | Why it is needed |
|----------|----------------|------------------|
| EMA200 | Long‑term bias (price above/below) | Prevents counter‑trend trading |
| EMA200 slope | Steepness of EMA over K bars | Filters flat/ranging phases even above/below EMA |
| VWAP | Distance of price from volume‑weighted fair value | Avoids entering when price is far from value (overextension) |
| ADX | Trend strength | Disables signals in low‑trend, choppy markets |
| ATR vs AvgATR50 | Current volatility vs recent average | Detects volatility squeezes and abnormally calm regimes |
| ATR% floor (Anti‑Flat Gate) | ATR as % of price | Hard “no‑trade” mode in ultra‑tight ranges |
An impulse alone is not sufficient in crypto; only impulses inside a suitable trend and volatility context are allowed to become trades.
2.3 Guard System (Exhaustion & Overextension)
Above trend filters, Smart Impulse PRO adds a guard layer designed from typical crypto problems (late entries, news spikes, “buying the top”):
- Max body / ATR : Rejects abnormally large real bodies (e.g., body > 3× ATR), often at the end of a move.
- Max range / ATR : Blocks extremely long high‑low bars.
- Upper/lower wick filters :
- Longs blocked when upper wick dominates (rejection from above).
- Shorts blocked when lower wick dominates (rejection from below).
- Z‑streak guard : After several consecutive impulse bars in the same direction, new entries in that direction are disabled to avoid chasing.
- Climax volume + cool‑off : When volume spikes above a multiple of its recent average, new trades are paused for N bars.
- Distance guards : Excessive distance (in ATR multiples) from EMA200 and VWAP can block trades.
These checks interact with the impulse model so that the final decision reflects a coherent risk framework rather than a loose collection of filters.
2.4 Dynamic TP Grid (Exit Logic)
- Up to 10 TP levels; step type: Percent, ATR% or Hybrid.
- With Breathing grid , TP spacing is increased by a factor of `k * abs(zscore)` (capped) at entry.
- Stronger impulses (higher |z|) → wider distances between TP levels; weaker impulses → tighter TP spacing.
- TP profiles (Equal / Aggressive / Balanced / Defensive) control how much position size is allocated to early vs late targets.
- Optional breakeven: move SL to entry (plus offset) after TP1.
- Optional trailing: ATR‑based trailing stop activates after TP3.
This links entry strength and exit geometry using the same impulse signal.
***
### 3. How to Use the Script (Practical Guide)
3.1 Quick Start
1. Add Smart Impulse PRO to a volatile crypto pair (e.g., ETHUSDT, BTCUSDT) on 15m–4h.
2. Keep the default preset and observe executed trades and blocked bubbles.
3. Use the dashboard to see which filters are active and which ones are blocking most trades (e.g., ADX, Flat, Exhaust).
4. If there are too few trades, gradually lower Z_threshold or Min ADX , or slightly relax guard limits — change one parameter at a time .
5. Set Max Risk per Trade (%) , stop distance, TP count/profile and optional trailing in line with your risk tolerance.
3.2 Example Profiles
- Aggressive intraday (15m)
- Z‑threshold 1.2
- Min ADX 20
- ATR% floor 0.2%
- Some exhaustion guards disabled (e.g., less strict wick limits).
- Conservative swing (1h–4h)
- Z‑threshold 1.5
- Min ADX 25–30
- ATR% floor 0.3–0.4%
- All guards enabled, higher‑timeframe filters ON.
3.3 Risk Management & Position Sizing
- Max Risk per Trade (%) — percentage of equity at risk if the full stop‑loss is hit.
- Position size is computed automatically from Max Risk %, stop distance and instrument price.
- Breakeven and trailing can be enabled to reduce open risk after partial profit is taken.
- Time‑based exit closes trades that stay open beyond a user‑defined duration without reaching TP or SL.
3.4 Alerts
Alerts use `strategy.order.alert_message` to send JSON containing side (long/short), entry, stop and TP levels. This allows users to connect the strategy with external bots or dashboards without exposing internal code.
***
### 4. Why This Script Is Invite‑Only (Originality Justification)
TradingView asks invite‑only scripts to explain why their logic is original and why source protection is justified. Smart Impulse PRO does that by:
- Implementing a custom price×volume impulse model based on Z‑score normalisation and integrating it with exits through the breathing TP grid.
- Using a coordinated guard framework that explicitly targets typical crypto issues (late chase entries, overextension vs VWAP/EMA200, volatility squeezes, volume spikes).
- Providing a structured indicator mashup where EMA200, VWAP, ADX, ATR and Anti‑Flat Gate each address different dimensions (trend, volatility, structure) and are designed to work together as a context gate for the impulse signal.
On ETHUSDT, BTCUSDT and a group of other volatile crypto pairs, Smart Impulse PRO showed approximately 90–94% win rate and profit factor above 3.0 in 2023–2025 backtests under default risk and filter settings. These numbers are illustrative only and do not promise or guarantee similar live results.
Risk Disclaimer
Trading cryptocurrencies involves substantial risk. Backtests are hypothetical and assume perfect execution without additional slippage, liquidity constraints or exchange issues. Always test the strategy on your own symbols and timeframes and keep risk per trade at a level you are comfortable with.
FAQ
Q: Does the strategy guarantee profit?
A: No. It is a rule‑based decision engine; all results depend on market conditions, parameters and execution, and backtests do not guarantee future performance.
Q: Can I use it on any crypto pair?
A: The logic is designed for volatile crypto pairs. It has been backtested on ETHUSDT, BTCUSDT and several other majors/alts, but each symbol should be tested and, if needed, re‑tuned by the user.
Q: Which timeframe is best?
A: The engine is intended for intraday and swing charts between 15m and 4h. Lower timeframes will generally produce more signals and more noise; higher ones will produce fewer, slower signals.
Q: Can I disable some filters or guards?
A: Yes. Trend filters, the Anti‑Flat Gate and most exhaustion guards can be turned on or off. It is recommended to change one setting at a time and monitor how it affects blocked signals and the equity curve.
Q: How are alerts meant to be used?
A: Alerts send a JSON payload with side, entry, stop and TP levels via strategy.order.alert_message, so users can connect the strategy to external bots or dashboards if they wish.
***
## Русская версия
Smart Impulse PRO (по приглашению) — Полное руководство для TradingView
Концепция и уникальность
Smart Impulse PRO — стратегия продолжения импульсов, разработанная под волатильные криптовалютные пары . В ней используется пользовательская модель импульса “цена×объём”, нормализованная через Z‑score , после чего такие импульсы проходят фильтрацию по тренду на разных таймфреймах и через каскад гардов, блокирующих слабые и рискованные сетапы (флэт, перетянутость, истощение).
Сводка тестов (крипто‑пары)
Стратегия тестировалась на нескольких волатильных крипто‑парах (перпетуальные контракты, включая ETHUSDT, BTCUSDT и ряд других мейджоров/альтов) на часовом таймфрейме за период 01.01.2023 – 26.12.2025. Типичные значения по этим тестам:
- Количество сделок на пару : ≈100–130
- Диапазон винрейта : ≈ 90–94%
- Диапазон фактора прибыли : ≈ 3.0–3.9
Это результаты тестов на истории по конкретным инструментам и настройкам и не гарантируют такой же доходности в будущем .
Почему она оригинальная
✅ Пользовательская модель импульса цена×объём (Z‑score) : измеряет “редкость” бара в его статистическом окружении, а не просто пересечение стандартных индикаторов
✅ 15+ гардов : системно защищают от догоняния, пампов, торговли в “пиле” и на перетянутых уровнях
✅ “Дышащая” TP‑сетка : цели автоматически подстраиваются под силу текущего импульса |Z|
✅ Прозрачность : пузырьки показывают причины каждого отказа от сделки
✅ Формат по приглашению : логика импульса и взаимодействие гардов публикуются как закрытый скрипт с Invite‑Only доступом, что соответствует правилам TradingView.
***
### 1. Что делает скрипт (для пользователя)
Smart Impulse PRO выступает как движок принятия решений для торговли волатильными крипто‑парами (ETHUSDT, BTCUSDT и др.) на таймфреймах от 15 минут до 4 часов:
- Открывает лонги/шорты только при одновременном совпадении трендовых и импульсных условий.
- Управляет выходом через многоуровневую сетку TP, безубыток, по желанию — трейлинг‑стоп и тайм‑стоп.
- Отображает как реальные сделки , так и отклонённые сигналы с короткой подписью причины блокировки.
Задача — структурировать трендовую торговлю криптой и сделать логику решений максимально понятной.
***
### 2. Как работает скрипт (внутренняя логика)
2.1 Импульсное ядро (кастомная модель на Z‑score)
В основе лежит ряд дельта×объём :
- Сырой импульс:
`delta_impulse = (close - close ) * volume`
- Нормализация по окну N баров (по умолчанию 20):
`zscore = (delta_impulse - среднее(delta_impulse, N)) / стд(delta_impulse, N)`
Бар считается кандидатом на импульс , только если:
- `abs(zscore) > Z_threshold` (по умолчанию 1.5);
- объём выше своей недавней средней.
Это собственная реализация импульсного сигнала цена×объём , нормализованного по Z‑score; выбор входных данных, окна, порогов и связка с гардами и выходами формируют проприетарную часть стратегии.
2.2 Зачем нужен “мэшап” индикаторов (тренд и волатильность)
Комбинация EMA200, VWAP, ADX, ATR и Anti‑Flat Gate собрана так, чтобы каждый компонент покрывал отдельный вид риска:
| Компонент | Что проверяет | Зачем нужен |
|----------|---------------|------------|
| EMA200 | Долгосрочный уклон (цена выше/ниже) | Защита от контртрендовых входов |
| Наклон EMA200 | Наклон за K баров | Отсекает участки со слабым трендом (флэт) |
| VWAP | Удалённость цены от “центра объёма” | Не даёт входить в явной перетянутости от справедливой цены |
| ADX | Силу тренда | Запрещает торговлю в пиле и боковике |
| ATR vs AvgATR50 | Текущую волатильность к средней | Находит режимы сжатия и аномально низкой волатильности |
| ATR% пол (Anti‑Flat Gate) | ATR в % от цены | Жёсткий запрет торговли в очень узком диапазоне |
Импульс может быть сильным, но без нормального тренда и адекватной волатильности сделка не допускается.
2.3 Система гардов (истощение, перетянутость)
- Макс тело/ATR : слишком большая свеча относительно ATR трактуется как возможное окончание движения.
- Макс диапазон/ATR : блокирует экстремальные по размеру бары.
- Фильтры по хвостам :
- Лонги блокируются при доминирующем верхнем хвосте (отторжение сверху).
- Шорты — при доминирующем нижнем хвосте.
- Z‑streak : после серии импульсных баров в одну сторону новые входы по этому направлению отключаются.
- Climax‑объём + пауза : при объёме выше кратности к средней входы на несколько баров ставятся на паузу.
- Дистанционные гарды : чрезмерное удаление цены от EMA200 и VWAP в ATR‑мультипликаторах может блокировать вход.
Эти условия работают совместно с импульсным ядром и трендовыми фильтрами, формируя связанную модель риска.
2.4 Динамическая TP‑сетка
- До 10 тейк‑профитов; шаг — в %, ATR% или гибридный.
- При включённой опции “Breathing grid” шаг между TP увеличивается пропорционально `|zscore|` (в пределах лимита).
- Сильные импульсы → более широкая сетка и шанс забрать длинное движение, слабые → более плотная сетка.
- Профили TP (равный / агрессивный / сбалансированный / защитный) задают распределение объёма между ближними и дальними целями.
- Можно включить перевод стопа в безубыток после TP1 и трейлинг‑стоп по ATR после TP3.
***
### 3. Как использовать стратегию (практика)
3.1 Быстрый старт
1. Откройте график волатильной крипто‑пары (ETHUSDT, BTCUSDT и т.п.) на ТФ 15m–4h и добавьте стратегию.
2. Оставьте настройки по умолчанию и наблюдайте маркеры сделок и пузырьки отклонённых сигналов.
3. Через дашборд смотрите, какие фильтры чаще всего блокируют сделки (ADX, Flat, Exhaust и др.).
4. Если сделок мало, по шагу снижайте порог Z‑score или ADX либо ослабляйте некоторые гарды — всегда меняйте только один параметр за раз.
5. Настройте Max Risk per Trade , размер стопа, количество и профиль TP, а также при необходимости безубыток и трейлинг‑стоп.
3.2 Типовые профили
- Агрессивный скальпинг (15m)
- Z‑порог 1.2
- ADX min 20
- ATR% пол 0.2%
- Несколько гардов истощения отключены.
- Консервативный свинг (1h–4h)
- Z‑порог 1.5
- ADX min 25–30
- ATR% пол 0.3–0.4%
- Все гарды включены, HTF‑фильтры активны.
3.3 Риск и размер позиции
- Max Risk per Trade (%) задаёт долю капитала, которую допускается потерять при полном срабатывании стоп‑лосса.
- Стратегия рассчитывает размер позиции из риска, стопа и цены инструмента.
- Можно включить перевод стопа в безубыток после TP1 и трейлинг‑стоп после TP3.
- Тайм‑стоп закрывает сделки, которые слишком долго остаются открытыми без достижения TP/SL.
3.4 Алерты
Алерты формируют JSON‑строку с направлением, ценой входа, стопом и всеми TP‑уровнями через `strategy.order.alert_message`. Это позволяет подключать внешние боты и панели без раскрытия кода.
***
### 4. Почему скрипт по приглашению (обоснование оригинальности)
Стратегия не сводится к “набору индикаторов на графике”. Формат Invite‑Only обоснован тем, что в коде реализованы:
- Пользовательская модель импульса цена×объём на базе Z‑score и использование этого же сигнала для адаптивной TP‑геометрии.
- Связанный набор гардов , построенный вокруг реальных проблем крипто‑торговли (поздние входы после пампов, перетянутость от VWAP/EMA200, режимы сжатия, всплески объёма).
- Логика мэшапа : EMA200, VWAP, ADX, ATR и Anti‑Flat Gate работают согласованно как фильтр контекста для импульса, а не как независимые визуальные индикаторы.
На ETHUSDT, BTCUSDT и ряде других крипто‑пар Smart Impulse PRO показывала ≈90–94% винрейт и фактор прибыли выше 3.0 в тестах 2023–2025 годов при стандартных настройках фильтров и риска. Эти значения служат иллюстрацией поведения стратегии в прошлом и не являются обещанием аналогичных результатов в реальной торговле.
Предупреждение о рисках
Торговля криптовалютами связана с повышенным риском. Результаты бэктестов гипотетичны и предполагают идеальное исполнение без дополнительного проскальзывания и проблем с ликвидностью. Перед использованием стратегии на реальном счёте протестируйте её на своих инструментах и выбирайте риск на сделку в соответствии с личной толерантностью к убыткам.
FAQ
В: Гарантирует ли стратегия прибыль?
О: Нет. Это набор правил для принятия решений; результат зависит от рынка, настроек и исполнения. Любые бэктесты не гарантируют такую же доходность в будущем.
В: Можно ли использовать её на любой крипто‑паре?
О: Логика рассчитана на волатильные криптовалютные пары. Стратегия тестировалась на ETHUSDT, BTCUSDT и нескольких других мейджорах/альтах, но для каждого инструмента параметры желательно проверить и при необходимости подстроить.
В: Какой таймфрейм предпочтителен?
О: Стратегия рассчитана на внутридневную и свинговую торговлю в диапазоне 15m–4h. На младших ТФ сигналов больше и шума выше; на старших — сигналов меньше, но они формируются медленнее.
В: Можно ли отключать отдельные фильтры и гарды?
О: Можно. Трендовые фильтры, Anti‑Flat Gate и большинство гардов истощения включаются и выключаются отдельно. Рекомендуется менять настройки по одной и смотреть, как это влияет на заблокированные сигналы и кривую капитала.
В: Для чего нужны алерты?
О: Алерты отправляют JSON‑сообщение с направлением, ценой входа, стопом и уровнями TP через strategy.order.alert_message, что позволяет при желании подключать внешних ботов и панели управления риском.






















