Combined Predictive Indicator### Summary
The **Combined Predictive Indicator** is a comprehensive tool designed to provide traders with a multi-faceted view of potential future price action. It merges several well-known analytical concepts into a single, cohesive indicator, helping to identify key levels of support, resistance, and volatility-based price targets.
This script is an amalgamation of two different concepts:
1. A prediction model based on historical range, ATR, and Fibonacci levels.
2. The "Predictive Ranges" concept, which uses an adaptive ATR-based moving average to project dynamic support and resistance zones.
### Key Components
**1. Original Prediction Model:**
* **Bollinger Bands (BB):** Standard volatility bands that help gauge whether prices are high or low on a relative basis.
* **ATR-Based Predicted Range:** A channel calculated using the Average True Range (ATR) and the average historical bar range. This provides a statistically-based estimate of the potential trading range for the next period. The upper band (green) and lower band (red) represent potential bullish and bearish targets.
* **Fibonacci Levels:** Automatically drawn based on the highest high and lowest low over a user-defined lookback period. These classic 0.382 and 0.618 levels act as potential retracement or target zones.
* **HH/LL Markers:** Small triangles appear above or below the price bars to signal a new Highest High (HH) or Lowest Low (LL) within the lookback period, helping to identify shifts in market structure.
**2. Predictive Ranges (PR):**
* This component calculates five dynamic levels based on an adaptive moving average. When the price moves significantly away from the average, the levels recalculate and project new zones.
* **Resistance Levels (PR Upper 1 & 2):** Red zones that indicate potential areas of selling pressure.
* **Support Levels (PR Lower 1 & 2):** Green zones that indicate potential areas of buying pressure.
* **Average (PR Average):** The blue line serves as the centerline or equilibrium point for the ranges.
**3. Data Table:**
* A convenient table is displayed on the top-right of the chart, showing the real-time values of all key predictive levels. This allows for a quick glance without having to hover over the plotted lines.
### How to Use
* **Confluence is Key:** Look for areas where multiple levels from different components overlap. For example, if the `Predicted Upper Range` aligns with a `PR Upper` resistance level and a `Fibonacci` level, it signifies a strong area of potential resistance.
* **Range Trading:** The `Predicted Range` (gray-filled area) can be used to identify the expected volatility. Prices moving outside this range could signal a strong breakout.
* **Trend Confirmation:** Use the `New HH/LL` markers to confirm trend direction. A series of new higher highs and higher lows suggests an uptrend, and vice-versa.
* **Dynamic S/R:** The `Predictive Ranges` are excellent for identifying dynamic support and resistance in trending or ranging markets. Watch for price reactions as it approaches these zones.
### Settings
* **Original Indicators:** Customize the lengths for Bollinger Bands, ATR, and the HH/LL lookback period. Adjust Fibonacci levels if needed.
* **Predictive Ranges:** Adjust the `Length`, `Factor` (multiplier for ATR), `Timeframe`, and `Source` to fine-tune the sensitivity and responsiveness of the PR levels.
*Disclaimer: This indicator is for educational and analytical purposes only. It is not financial advice. Always perform your own due diligence before making any trading decisions.*
真實波幅均值(ATR)
HTF Current/Average RangeThe "HTF(Higher Timeframe) Current/Average Range" indicator calculates and displays the current and average price ranges across multiple timeframes, including daily, weekly, monthly, 4 hour, and user-defined custom timeframes.
Users can customize the lookback period, table size, timeframe, and font color; with the indicator efficiently updating on the final bar to optimize performance.
When the current range surpasses the average range for a given timeframe, the corresponding table cell is highlighted in green, indicating potential maximum price expansion and signaling the possibility of an impending retracement or consolidation.
For day trading strategies, the daily average range can serve as a guide, allowing traders to hold positions until the current daily range approaches or meets the average range, at which point exiting the trade may be considered.
For scalping strategies, the 15min and 5min average range can be utilized to determine optimal holding periods for fast trades.
Other strategies:
Intraday Trading - 1h and 4h Average Range
Swing Trading - Monthly Average Range
Short-term Trading - Weekly Average Range
Also using these statistics in accordance with Power 3 ICT concepts, will assist in holding trades to their statistical average range of the chosen HTF candle.
CODE
The core functionality lies in the data retrieval and table population sections.
The request.security function (e.g., = request.security(syminfo.tickerid, "D", , lookahead = barmerge.lookahead_off)) retrieves high and low prices from specified timeframes without lookahead bias, ensuring accurate historical data.
These values are used to compute current ranges and average ranges (ta.sma(high - low, avgLength)), which are then displayed in a dynamically generated table starting at (if barstate.islast) using table.new, with conditional green highlighting when the current range is greater than average range, providing a clear visual cue for volatility analysis.
SPY Hybrid ORE Strategy v3This Pine Script strategy implements a SPY Hybrid Opening Range Expansion (ORE) Strategy that trades breakouts from the daily opening range during specific market hours (9:30-11:30 AM). The strategy identifies "sucker moves" - situations where the opening range is unusually large compared to historical volatility (ATR) - and then trades breakouts in the opposite direction of the initial move.
For long positions, it enters when price breaks above the previous bar's high after a large opening range in bullish market conditions (price above 50-day SMA), using the opening low as a stop loss and targeting a profit equal to half the opening range. For short positions, it enters on breaks below the previous bar's low during bearish conditions (price significantly below 50-day SMA with bearish momentum), using more aggressive stops and partial profit-taking. The strategy incorporates multiple filters including volatility (ATR), volume, RSI momentum, and includes risk management through position sizing based on account equity and stop distance, along with time-based exits and cooldown periods between trades.
SFC Indicator_2507使用說明書 / User Manual
═══════════════════════════════════════════════════════════════════════════════
概述 / Overview
繁體中文:
SFC Indicator 是一個多功能技術分析指標,整合了布林通道、移動平均線、真實波幅均值(ATR)、箱型理論以及 Bollinger Bandit 策略。此指標專為 TradingView 平台設計,提供全面的交易信號與風險管理工具。
English:
SFC Indicator is a comprehensive technical analysis indicator that integrates Bollinger Bands, Moving Averages, Average True Range (ATR), Box Theory, and Bollinger Bandit strategy. Designed for the TradingView platform, it provides comprehensive trading signals and risk management tools.
═══════════════════════════════════════════════════════════════════════════════
主要功能 / Key Features
1. 布林通道 (Bollinger Bands)
繁體中文:
- 支援雙標準差設定 (σ1, σ2)
- 預設週期:21
- 提供上軌、中軌、下軌顯示
- 自動生成買賣信號
English:
- Supports dual standard deviation settings (σ1, σ2)
- Default period: 21
- Displays upper, middle, and lower bands
- Automatic buy/sell signal generation
2. 移動平均線 (Moving Averages)
繁體中文:
- 三條可配置的移動平均線:快線(10)、中線(20)、慢線(60)
- 支援 SMA 和 EMA 切換
- 自定義顏色設定
English:
- Three configurable moving averages: Fast (10), Medium (20), Slow (60)
- Supports SMA and EMA switching
- Customizable color settings
3. 真實波幅均值 (Average True Range - ATR)
繁體中文:
- 預設週期:14
- 支援多種平滑方式:RMA、SMA、EMA、WMA
- 動態止損計算
- 風險管理工具
English:
- Default period: 14
- Multiple smoothing methods: RMA, SMA, EMA, WMA
- Dynamic stop-loss calculation
- Risk management tool
4. 箱型理論 (Box Theory)
繁體中文:
- 自動識別價格區間
- 視覺化箱型範圍
- 突破信號提示
English:
- Automatic price range identification
- Visual box range display
- Breakout signal alerts
5. Bollinger Bandit 策略
繁體中文:
- 動態追蹤止損
- ROC (變動率) 確認
- 自適應平倉機制
English:
- Dynamic trailing stop
- ROC (Rate of Change) confirmation
- Adaptive position closing mechanism
═══════════════════════════════════════════════════════════════════════════════
參數設定 / Parameter Settings
布林通道設定 / Bollinger Bands Settings
- 布林通道均線週期 BB Period: 21 (計算週期)
- 標準差 σ1: 1 (第一標準差倍數)
- 標準差 σ2: 2 (第二標準差倍數)
移動平均線設定 / Moving Average Settings
- 快線 Fast MA: 10 (短期移動平均)
- 中線 Medium MA: 20 (中期移動平均)
- 慢線 Slow MA: 60 (長期移動平均)
- 使用 EMA: false (切換至指數移動平均)
ATR 設定 / ATR Settings
- 週期 Period: 14 (ATR 計算週期)
- 平滑方式 Smoothing: RMA (平滑算法選擇)
Bollinger Bandit 設定 / Bollinger Bandit Settings
- 布林通道週期 BB Period: 50 (Bandit 策略布林週期)
- 初始平倉均線週期 Initial Exit MA: 50 (初始止損均線週期)
- ROC 週期 ROC Period: 30 (變動率計算週期)
箱型理論設定 / Box Theory Settings
- 箱型週期 Box Period: 21 (價格區間計算週期)
═══════════════════════════════════════════════════════════════════════════════
交易信號說明 / Trading Signals
布林通道信號 / Bollinger Bands Signals
繁體中文:
- 做多信號:價格連續 X 根 K 棒低於下軌後,突破下軌向上
- 做空信號:價格連續 X 根 K 棒高於上軌後,跌破上軌向下
- 止盈目標:上軌 (Profit1) 和上 2 軌 (Profit2) 或下軌和下 2 軌
- 止損點:下 2 軌減去 ATR 值或上 2 軌加上 ATR 值
English:
- Buy Signal: Price crosses above lower band after staying below for X consecutive bars
- Sell Signal: Price crosses below upper band after staying above for X consecutive bars
- Take Profit: Upper band (Profit1) and upper 2σ band (Profit2) or lower equivalents
- Stop Loss: Lower 2σ band minus ATR value or upper 2σ band plus ATR value
Bollinger Bandit 信號 / Bollinger Bandit Signals
繁體中文:
- 做多條件:ROC > 0 且價格突破 Bandit 上軌
- 做空條件:ROC < 0 且價格跌破 Bandit 下軌
- 動態止損:使用自適應移動平均線作為追蹤止損
English:
- Buy Condition: ROC > 0 and price breaks above Bandit upper band
- Sell Condition: ROC < 0 and price breaks below Bandit lower band
- Dynamic Stop: Uses adaptive moving average as trailing stop
═══════════════════════════════════════════════════════════════════════════════
視覺元素說明 / Visual Elements
圖表元素 / Chart Elements
- 綠色三角形 ▲:做多信號 (Buy Signal)
- 紅色倒三角形 ▼:做空信號 (Sell Signal)
- 橘色線:動態止損均線 (Dynamic Stop Loss MA)
- 藍色圓點:ROC > 0 (向上動能 / Upward Momentum)
- 橘色圓點:ROC < 0 (向下動能 / Downward Momentum)
資訊面板 / Information Panel
繁體中文:
右上角顯示即時交易資訊,包含:
- 當前交易方向 (做多/做空/空手)
- 進場價格 (Entry)
- 止損價格 (Loss)
- 止盈目標 1 和 2 (Profit1, Profit2)
- Bandit 上下軌價格 (Upper, Lower)
- 動態止損線數值 (Dynamic)
English:
Top-right panel displays real-time trading information:
- Current position (Long/Short/Flat)
- Entry price
- Stop-loss price
- Take-profit targets 1 and 2
- Bandit upper/lower band prices
- Dynamic stop-loss line value
═══════════════════════════════════════════════════════════════════════════════
使用建議 / Usage Recommendations
最佳實踐 / Best Practices
繁體中文:
1. 多時間框架確認:建議在更高時間框架確認趨勢方向
2. 風險管理:嚴格遵守止損設定,建議單筆風險不超過資金的2%
3. 信號過濾:結合ROC指標過濾假信號
4. 市場環境:在趨勢明確的市場中效果較佳
5. 回測驗證:使用前請先進行充分的歷史回測
English:
1. Multi-timeframe Confirmation: Confirm trend direction on higher timeframes
2. Risk Management: Strictly follow stop-loss settings, limit single trade risk to 2% of capital
3. Signal Filtering: Use ROC indicator to filter false signals
4. Market Conditions: Works best in trending markets
5. Backtesting: Conduct thorough historical backtesting before use
適用市場 / Suitable Markets
- 股票 Stock Markets
- 外匯 Forex Markets
- 期貨 Futures Markets
- 加密貨幣 Cryptocurrency Markets
═══════════════════════════════════════════════════════════════════════════════
警示設定 / Alert Settings
繁體中文:
指標內建兩種警示功能:
- 做多信號警示:「做多訊號,來也!!!」
- 做空信號警示:「做空訊號,來也!!!」
可在 TradingView 中設定價格警示,當信號出現時自動通知。
English:
Built-in alert functions:
- Buy signal alert: "做多訊號,來也!!!" (Buy Signal Alert!)
- Sell signal alert: "做空訊號,來也!!!" (Sell Signal Alert!)
Set up price alerts in TradingView for automatic notifications when signals occur.
═══════════════════════════════════════════════════════════════════════════════
技術資訊 / Technical Information
指標作者 / Indicator Author: @lincheng_SFC
版本 / Version: Pine Script v6
授權 / License: Mozilla Public License 2.0
發布平台 / Platform: TradingView
═══════════════════════════════════════════════════════════════════════════════
免責聲明 / Disclaimer
繁體中文:
本指標僅供教育和分析用途,不構成投資建議。交易涉及風險,過往表現不代表未來結果。請在使用前進行充分測試,並根據個人風險承受能力謹慎投資。
English:
This indicator is for educational and analytical purposes only and does not constitute investment advice. Trading involves risks, and past performance does not guarantee future results. Please conduct thorough testing before use and invest carefully according to your risk tolerance.
═══════════════════════════════════════════════════════════════════════════════
聯絡資訊 / Contact Information
作者 Author: @lincheng_SFC
如有問題或建議,歡迎在TradingView上聯繫
For questions or suggestions, feel free to contact on TradingView
Minimalist Trend & Risk For 5-Min Timeframe
Of course. Here is a professionally written TradingView description for your indicator, following the specified formatting and incorporating the strategy you outlined.
Minimalist Trend & Risk For 5-Min Timeframe
Overview
This is a clean, on-chart visual tool designed to identify high-probability entries and manage risk, specifically tailored for a 5-minute scalping or day trading strategy. It combines a higher-timeframe trend anchor with a current-timeframe trigger line and a volatility-based stop loss level, keeping your chart uncluttered and your decisions clear.
Visual Components
Trend EMA (50-period, 15-min): This is your main trend guide. The thick, colored line represents the 50 EMA from the 15-minute chart.
Green: Confirmed uptrend.
Red: Confirmed downtrend.
Gray: Neutral or consolidating market.
Price EMA (21-period, 5-min): The thin white line is the 21 EMA based on your current chart (5-minute). This acts as a dynamic trigger line that price must reclaim after a pullback.
Stop Loss Zone (ATR-based): The thin red line provides a suggested stop loss level based on current market volatility (ATR). It automatically appears below price in an uptrend and above price in a downtrend, helping you define your risk on every trade.
How To Use for a Long Entry Strategy
The strategy is to trade pullbacks in the direction of the higher-timeframe trend. This indicator helps you visualize each step of the setup.
1. Identify the Trend: Wait for the main Trend EMA (the thick line) to be green. This confirms you are in an established uptrend on the 15-minute timeframe and should only be looking for long entries.
2. Wait for a Pullback: The core of the strategy is patience. Wait for a 5-minute candlestick to pull back and close below the 15-minute Trend EMA. This confirms a temporary dip within the larger uptrend, offering a better entry price.
3. Spot the Entry Trigger: After the pullback, the entry signal occurs when a 5-minute candlestick closes back above the faster, white Price EMA (21-period). This signals that momentum is returning in the direction of the main trend.
4. Manage Your Risk: Use the red Stop Loss Zone line that appears below your entry as a guide to set your initial stop loss. This helps ensure your risk is managed dynamically based on current volatility.
This indicator simplifies a powerful pullback strategy by plotting all the necessary components directly on your chart, allowing for quick and disciplined trade execution.
TX EM Levels - Multi-Timeframe Risk CalculatorThe TX EM Levels indicator is an original risk management tool that addresses a common challenge faced by traders across different time horizons: determining appropriate stop loss and take profit levels that adapt to market volatility and trading style. Unlike standard ATR indicators that simply display raw values, this script introduces a multi-style volatility framework that automatically adjusts risk parameters based on your chosen trading approach.
What This Indicator Does
This indicator transforms the traditional Average True Range (ATR) concept into a practical, multi-dimensional risk management system by:
Calculating Daily ATR Foundation: Uses daily timeframe ATR as the baseline measurement, ensuring consistency regardless of your chart timeframe
Style-Adaptive Scaling: Applies intelligent multipliers based on three distinct trading approaches
Dual-Purpose Display: Provides both visual plot representation and tabular reference data
Real-Time Risk Levels: Displays both Stop Loss (SL) and Take Profit (TP) levels simultaneously
Core ATR Calculation
The indicator employs a multi-timeframe approach by requesting daily ATR data using the request.security() function, regardless of your current chart timeframe. This ensures:
Consistency across different viewing timeframes
Stable volatility measurements not affected by intraday noise
Reliable risk parameters for position sizing
Risk-Reward Framework
The indicator implements a 2:1 risk-reward ratio by default:
Stop Loss levels = Calculated ATR value
Take Profit levels = 2x the Stop Loss value
How to Use This Indicator
Setup Instructions
Add to Chart: Apply the indicator to any timeframe chart
Select Trading Style: Choose from Swing, Intraday, or Scalping in the settings
Configure Display: Toggle the reference table on/off based on preference
Adjust ATR Parameters: Modify length (default 14) and smoothing method if needed
Practical Application
For Position Entry:
Use the calculated SL level as your maximum risk per trade
Set your take profit target at the TP level shown
The values automatically adjust to current market volatility
For Risk Management:
The indicator helps maintain consistent risk exposure across different market conditions
Higher ATR periods = wider stops (trending markets)
Lower ATR periods = tighter stops (ranging markets)
For Multiple Timeframe Trading:
Switch between trading styles without changing charts
Compare how different approaches would affect your risk parameters
Maintain consistent methodology across various instruments
ATR Circle PlotTitle: ATR Circle Plot
Short Title: ATR Circle Plot
Description:
ATR Circle Plot is a dynamic overlay indicator that visualizes volatility-based levels around the open price of each bar, using the Average True Range (ATR). It plots two customizable levels—Upper and Lower ATR—calculated by multiplying the ATR by a user-defined factor (default: 1.0) and adding/subtracting it from the open price. These levels are displayed as colored circles on the chart, ideal for identifying potential breakout or stop-loss zones. A movable table summarizes the ATR value, Upper Level, and Lower Level with tick precision, and a new toggleable label feature displays these values directly on the chart for quick reference.
Perfect for traders in volatile markets like forex, futures, or stocks, this indicator helps set risk parameters or spot key price levels. Users can adjust the ATR timeframe, length, multiplier, table position, and circle colors to suit their strategy. The optional chart labels enhance usability by overlaying ATR metrics at the latest price levels, reducing the need to check the table during fast-moving markets.
Key Features:
Plots Upper and Lower ATR levels as colored circles around the open price.
Toggleable table (top/bottom, left/right) showing ATR and level values in ticks.
Optional chart labels for ATR, Upper, and Lower levels, toggleable via input.
Customizable ATR length, multiplier, timeframe, and colors for flexibility.
Lightweight and compatible with any chart timeframe.
How to Use:
Add the indicator to your chart and adjust the ATR length, multiplier, and timeframe as needed. Enable/disable the table or labels based on your preference. Use the Upper and Lower ATR levels as dynamic support/resistance or stop-loss guides. For example, place stops beyond the Upper/Lower levels or target breakouts when price crosses them. Combine with trend or momentum indicators for a robust setup.
Note: Leave the ATR Timeframe input empty to use the chart’s timeframe, or specify a higher timeframe (e.g., “D” for daily) for broader volatility context. Ensure your chart’s tick size aligns with the asset for accurate table values.
Tags: ATR, volatility, support resistance, stop loss, table, labels, breakout
Category: Volatility
Ultimate ATR ProUltimate ATR Pro - Professional Volatility Analysis Tool
Unlock Market Turning Points with Precision Volatility Analysis
Key Features
1. Advanced ATR Calculation Engine
4 MA Types: RMA (Wilder's), SMA, EMA, WMA
Customizable Period: Adjust ATR length (default: 14)
Multi-Timeframe Compatible: Works on all chart intervals
2. Smart Volatility Extremum Detection
Low Volatility Signals: Identifies ATR contraction periods
High Volatility Signals: Detects ATR expansion phases
Custom Lookback Period: Set detection window (10-500 bars)
3. Professional Divergence System
Bullish Divergence: Price ↑ while ATR ↓ (trend continuation signal)
Bearish Divergence: Price ↓ while ATR ↑ (trend acceleration signal)
Visual Connection Lines: Dotted lines highlight price-ATR relationships
4. Visual Extreme Value Lines (NEW!)
Lowest ATR Line: Customizable dotted line showing minimum volatility level
Highest ATR Line: Customizable dotted line marking maximum volatility level
Dynamic Positioning: Auto-updates with each new bar
5. Complete Customization System
Full Color Control:
Signal markers (low/high volatility)
Divergence labels
ATR line
Extreme value lines
Background highlights
Toggle Features: Enable/disable any visual element
6. Intelligent Alert System
Dual Alert Types:
Volatility Extremes (Low/High ATR)
Divergence Signals (Bullish/Bearish)
Smart Cooldown: Prevent alert fatigue with adjustable cooldown period
Visual Alert Tags: Color-coded notifications at chart top
7. Professional Dashboard
Real-time status monitoring:
Current volatility state
Cooldown timers
Extreme ATR values
Divergence detection status
Color-coded for instant recognition
How Traders Benefit
Strategic Applications
markdown
复制
| SIGNAL | MARKET CONDITION | TRADING IMPLICATION |
|-----------------------|---------------------------|------------------------------------|
| Low Volatility | Contraction/Consolidation | Prepare for breakout strategies |
| High Volatility | Expansion/Climax | Watch for reversals or pauses |
| Bullish Divergence | Price↑ ATR↓ | Trend continuation opportunity |
| Bearish Divergence | Price↓ ATR↑ | Trend acceleration warning |
| Lowest ATR Line Break | Volatility breakout | Confirm directional movement |
Risk Management Tools
ATR-Based Position Sizing: Use extreme values to calculate optimal trade size
Dynamic Stop Loss: Adjust stops based on current volatility regime
Volatility Filtering: Avoid trading during uncertain high-volatility periods
Setup Recommendations
Parameter Guide
pine
复制
length: 14 // Standard ATR period
lookback: 50 // Optimal for swing trading
cooldownPeriod: 14// Balanced alert frequency
minLineColor: #00C853 // Bright green for low volatility
maxLineColor: #FF3D00 // Bright red for high volatility
Professional Configurations
Day Trading: Lookback=20-30, Cooldown=5-10
Swing Trading: Lookback=50-100, Cooldown=10-20
Position Trading: Lookback=100-200, Cooldown=20-50
Why Choose Ultimate ATR Pro?
"Transforms complex volatility analysis into clear, actionable visual cues - the essential tool for breakout traders and risk managers alike."
Install Now To:
Spot consolidation before big moves
Identify exhaustion at trend extremes
Automate volatility-based position sizing
Receive instant alerts at critical volatility turns
Gain professional-grade insights into market dynamics
Master market rhythms with the most advanced ATR analysis tool on TradingView!
Compatibility: Works flawlessly across stocks, forex, crypto, and commodities on all timeframes.
Version: 2.0 (Enhanced with Extreme Value Lines)
Category: Volatility Analysis | Risk Management | Professional Trading
ATR SPREADThis is a comprehensive ATR SPREAD indicator for TradingView that combines volatility monitoring with spread analysis. Here's what it does and why it's useful:
Core Functionality
ATR Progress Tracking:
Monitors how much of the daily ATR (Average True Range) has been "consumed" during the current trading day
Calculates progress from two reference points: day's open and previous day's close
Displays progress as percentages or absolute values
Provides color-coded visual feedback (green → yellow → orange → red) based on ATR consumption levels
Spread Monitoring with Advanced Filtering:
Tracks current market spreads using multiple methods (minute high-low ranges, tick-to-tick differences)
Calculates rolling average spread to establish baseline conditions
Implements sophisticated filtering to exclude anomalous spread readings that could skew analysis
Key Features
Smart Filtering System:
Automatically filters out abnormal spreads during session opens
Excludes spreads that are too large relative to price or ATR
Removes outliers that exceed normal spread multiples
Maintains data quality for accurate analysis
Multi-Level Alert System:
ATR threshold alerts (50%, 80%, 100% consumption)
Customizable warning threshold (default 70%)
Spread expansion warnings and alerts
Session start notifications
Professional Dashboard:
Customizable information panel showing real-time metrics
Multiple positioning options and visual themes
Displays ATR status, progress percentages, current/average spreads
Color-coded status indicators for quick assessment
Trading Applications
Risk Management:
Helps traders understand how much daily volatility has been used up
Assists in position sizing based on remaining expected movement
Identifies periods of unusual market conditions
Market Condition Assessment:
Monitors liquidity conditions through spread analysis
Detects when spreads widen beyond normal levels
Filters out unreliable data during volatile periods
Entry/Exit Timing:
High ATR consumption may suggest limited further movement
Low ATR consumption early in the day might indicate potential for larger moves
Spread conditions help assess execution quality expectations
This indicator is particularly valuable for intraday traders, scalpers, and anyone who needs to monitor market microstructure conditions alongside volatility metrics. It provides a comprehensive view of both price movement potential (ATR) and execution environment quality (spreads) in a single, professional-grade tool.
ATR % of yesterday close with SMA (Bull/Bear colored)This script visualizes the Average True Range (ATR) as a percentage of a user-selected price point for a quick view of volatility.
ATR % values are plotted as a color-coded histogram. Bullish days (close > prior close) paint the bar green; bearish days (close < prior close) paint it red; unchanged days are gray.
Two simple moving average (SMA) overlays to reveal volatility trends.
Variables:
Histogram bars represent ATR as a % of one of:
- Previous Close (default option)
- Previous Open
- Today Close
- Today Open
Two SMA lines (default: blue for 20-period, orange for 5-period) shown on ATR % for trend/range regime tracking.
Optionally display the ATR % in continuous line (yellow)—hidden by default.
If you find it helpful, feel free to share any feedback and how you incorporate it into your trading strategy with the community!
Previous-Period Range Box - Fixed to CandlesThis indicator, "Previous-Period Range Box," visually highlights the high, low, and range of the previous completed period (using a user-selectable timeframe) directly on your chart. It draws a colored box for the previous period's full range, an optional box for the candle body, and projects horizontal dashed lines for the previous high, low, and optional Fibonacci levels (25%, 50%, 75%) into the current session. The indicator also supports live (in-progress) range boxes, range size labels, and alert conditions for breakouts and fib tags. It is ideal for traders who want to track and react to key levels from the most recent completed session, with full flexibility to use any
Ultimate ATR Extreme DetectorUltimate ATR Extreme Detector
Professional Volatility Analysis Tool for Strategic Trading
Discover Market Turning Points with Precision
Key Features
Smart Extremum Detection: Identifies when ATR reaches its highest or lowest point in your specified lookback period
Quad Visual Alert System:
▲ Green bottom triangles for low volatility signals
▼ Red top triangles for high volatility signals
Background color highlighting for instant state recognition
Status panel showing current volatility extremes
Dual Alert Modes:
TradingView native alerts ("ATR Low/High Signal")
Visual chart alerts with period details (e.g., "Alert: ATR Low (50 bars)")
4 Calculation Methods: RMA (Wilder's), SMA, EMA, and WMA
Fully Customizable:
Adjustable ATR period (default: 14)
Variable lookback window (default: 50)
Toggle features on/off via intuitive input settings
How It Works
The indicator scans volatility extremes using proprietary logic:
Calculates True Range using selected method (RMA/SMA/EMA/WMA)
Compares current ATR value against historical data
Flags critical moments when:
Volatility contracts to N-period lows (prepare for breakouts)
Volatility expands to N-period highs (watch for trend exhaustion)
Strategic Applications
markdown
复制
| SIGNAL | MARKET CONDITION | TRADING IMPLICATION |
|------------------|-----------------------|--------------------------------|
| Low Volatility | Contraction/Consolidation | Anticipate breakout moves |
| High Volatility | Expansion/Climax | Prepare for reversals or pauses |
Position Sizing: Use ATR values to determine optimal stop distances
Entry Timing: Combine with price action at key support/resistance
Risk Management: Adjust stops dynamically based on volatility regime
Optimization Guide
Day Trading: Short lookback (20-30 periods)
Swing Trading: Medium lookback (50-100 periods)
Position Trading: Long lookback (100-200 periods)
Volatility Analysis: Compare multiple timeframes simultaneously
Professional Setup Recommendations
Combine with:
Breakout Confirmation: Volume spikes, chart patterns
Reversal Signals: RSI divergence, candlestick reversals
Volatility Filters: Bollinger Band contraction, Keltner Channel breakout
Compatibility: Works flawlessly across FX, stocks, crypto, and commodities on all timeframes.
Why Traders Choose This Indicator
"Transforms complex volatility analysis into clear, actionable visual cues – the essential tool for breakout traders and risk managers alike."
Install Now to:
Spot consolidation before big moves
Identify exhaustion at trend extremes
Automate volatility-based position sizing
Receive instant alerts at critical volatility turns
Master market rhythms with professional-grade volatility intelligence!
Qossai Stock Info### Qossai Stock Info Indicator
This indicator provides a concise overlay of essential stock information directly on your chart, presented in a clean, organized table. Designed for quick glances, it helps traders and investors stay informed about key fundamental and volatility metrics of the currently viewed symbol.
**Key Features:**
* **Symbol/Ticker Display:** Clearly shows the ticker of the asset you are currently viewing.
* **Dynamic Market Capitalization (Market Cap):** Automatically calculates and displays the market capitalization in a readable format (Millions, Billions, or Trillions), providing instant insight into the company's size.
* **Average True Range (ATR) as Percentage:** Shows the 14-day Average True Range (a measure of volatility) as a percentage of the closing price, helping you gauge the typical price movement. The ATR period is customizable.
* **Earnings Countdown:** Keep track of upcoming events with a precise countdown displaying the number of days remaining until the next earnings announcement. This feature can be toggled on or off via the indicator's settings.
* **Clean Table Format:** All information is presented neatly in a table with a subtle black background, ensuring readability without cluttering your main chart view.
**How to Use:**
Simply add the "Qossai Stock Info" indicator to your chart. You can adjust the ATR length and toggle the earnings countdown visibility from the indicator's settings.
**Purpose:**
This tool aims to simplify access to critical stock data, empowering users to make quicker, more informed decisions by having vital information readily available on their screen.
---
Risk Context + Position SizingWhat This Indicator Does (And Doesn't Do)
This is NOT a buy/sell signal indicator. Instead, it's a risk management tool that helps you understand two critical things:
How volatile the market is right now (compared to recent history)
How much you should risk on your next trade based on that volatility
The Core Problem It Solves
Imagine you always risk the same amount on every trade - say $100. But sometimes the market is calm and predictable, other times it's wild and unpredictable. This indicator says: "Hey, the market is going crazy right now - maybe only risk $70 instead of your usual $100."
How It Works
Measures Market "Nervousness"
Uses ATR (Average True Range) to measure how much prices typically move each day
Compares today's volatility to the past 100 days
Shows you a percentile (0-100%) - higher = more volatile
Categorizes Risk Environment
LOW (green): Market is calm, you can size up slightly
NORMAL: Standard conditions, use your normal position size
HIGH (red): Market is jumpy, reduce your position size
EXTREME (dark red): Market is in chaos, significantly reduce size
Important Disclaimers
This doesn't predict price direction - it only measures current market stress
You still need a trading strategy - this just helps you size it properly
Past volatility doesn't guarantee future volatility
Always combine with proper stop losses and risk management
EMA Distance / ATRThis indicator measures the distance between a very short‑term HL2 EMA and the slower 20‑period high/low EMAs, normalizing short‑term price deviations into an easy‑to‑read oscillator:
Blue line: shows HL2 EMA’s absolute deviation above the 20‑period high EMA (overbought) or below the 20‑period low EMA (oversold)
Gray zero line: separates positive from negative deviations
Green/red threshold lines (±0.1): highlight extreme divergence levels
Load it in a separate pane to instantly gauge breakout strength, overextended moves or consolidation boundaries across any OHLC‑based market.
ATR Dynamic Stop (Table + Plot + ATR %)📊 This script displays dynamic stop levels based on ATR, designed for active traders.
Features:
- Shows long and short stop levels (price ± ATR × multiplier).
- Displays values as a floating table on the top-right corner.
- Optional plot lines directly on the chart.
- Option to calculate based on realtime price or last close.
- Displays the ATR value both in price units and as a percentage of the selected price.
- Fully customizable table: text size, text color, background color.
Inputs:
- ATR Multiplier and Length.
- Show/hide stop lines on the chart.
- Select price source (realtime or last close).
- Table appearance options.
Ideal for:
- Traders who want a clear visual stop guide.
- Combining volatility with risk management.
EMA Pullback Indicator [ATR-based]🟦 EMA Pullback Indicator
This indicator identifies pullbacks in trending markets using the crossover of two EMAs (Fast and Slow). When a pullback occurs during a valid trend, an entry is triggered after price resumes in the trend direction. ATR is used to dynamically calculate stop-loss and take-profit levels.
🔍 Strategy Logic:
Trend Detection: EMA(8) vs EMA(21)
Pullback Zones:
In a bullish trend, a pullback is when price dips below the Fast EMA
In a bearish trend, a pullback is when price rises above the Fast EMA
Entry Trigger: Re-entry into trend direction after pullback
Stop Loss / Take Profit:
Based on ATR × SL/TP multipliers
Exit Options:
TP/SL Hit
Exit on new pullback (optional toggle)
Multiple Entry Toggle: Choose whether to allow multiple pullback entries or not
⚙️ Inputs:
Fast EMA Length
Slow EMA Length
ATR Period
SL Multiplier
TP Multiplier
Allow Multiple Entries
Exit on New Pullback
📊 Visuals:
Colored EMAs and fill zone between them
Grey bars during pullback
Blue/Black trend bar colors
Entry markers and TP/SL levels with labels
Real-time ATR display in corner
📢 Alerts Included:
Long/Short Pullback Entry
Take Profit Hit
Stop Loss Hit
Trimmed ATR🧠 **Brief Description**:
Trimmed ATR is a modified volatility indicator that removes extreme values from the ATR calculation. This makes it more reliable for analyzing market conditions and filters out "noise" spikes. It is particularly useful for setting stop-losses and in strategies sensitive to false volatility.
🧾 **How Does Trimmed ATR Work?**
📌 For each bar:
- True Range (TR) is calculated.
- A sliding window of the last N TR values (where N = length) is stored.
- The TR list is sorted, and trimPercent % is cut off from each side:
- The smallest and largest values are removed.
- The remaining values are averaged → Trimmed ATR.
🔍 **Why Is This Important?**
Regular ATR can be distorted by outliers:
- A single spike can sharply inflate the ATR.
- This creates a false impression of market volatility.
🎯 Trimmed ATR solves this by eliminating the impact of anomalies, providing a more stable and accurate volatility measure.
📈 **What Does It Mean If Trimmed ATR Is Higher or Lower Than Regular ATR?**
🔵 **Trimmed ATR is lower than ATR** — this is normal:
- There are isolated TR spikes (high volatility on 1–2 bars).
- ATR increases, including these outliers.
- Trimmed ATR discards them → reflects the true average market background.
🧠 This is the most common case, indicating: a spike occurred, but the market is generally calm.
🟠 **Trimmed ATR is higher than ATR** — a rare but important signal:
- There were artificially low TR values (very small movements).
- ATR becomes too low.
- Trimmed ATR discards these "quiet" periods → provides a more realistic volatility estimate.
⚠️ This may indicate:
- Hidden pressure.
- Preparation for a breakout from a tight range.
- Underestimated volatility.
💡 **Applications**:
- **Trailing Stop**: Trimmed ATR helps avoid stop triggers due to noise.
- **Trend Filter**: Better reflects the "true" market dynamics.
- **Strategy Backtesting**: Eliminates distortions in volatility calculations.
Assaf ATRATR (Average True Range) is a volatility indicator developed by J. Welles Wilder. It measures how much an asset moves (in price), on average, during a specific time period. It does not indicate direction, only the degree of price volatility.
ATR Trailing Stop with ATR Targets [v6]What the Indicator Does
This custom TradingView indicator is designed for active traders who want to automate and visualize their trailing stop management and target setting, using true market volatility. It combines the Average True Range (ATR) with dynamic market structure logic to:
Trail a stop-loss behind major swings in real time, using 2×ATR (adjustable) from the highest high in uptrends or the lowest low in downtrends.
Flip trading bias between bullish and bearish when the stop is breached.
Identify and plot three profit targets (at 1, 2, and 3 ATR from the breakout/flip point) after every stop-flip, helping traders scale out or set take-profits objectively.
Maintain a visible presence on your chart every bar to avoid indicator errors, with color and labeling for clear distinction between long/short phases.
How the Indicator Works
1. ATR Calculation
ATR Period and Multiplier: You select your preferred ATR length (default is 14 bars) and a multiplier (default is 2.0).
Volatility Adjustment: ATR measures the average "true" bar range, so the trailing stop and targets adapt to current volatility.
2. Trailing Stop Logic
Uptrend (bullish bias): The indicator tracks the highest high made since the last bearish-to-bullish flip and sets the stop at - .
The stop only raises (never lowers) during an uptrend, protecting gains in strong moves.
Downtrend (bearish bias): Tracks the lowest low made since the last bullish-to-bearish flip, with stop at + .
The stop only lowers (never raises) in a downtrend.
Flip Point: If price closes through the trailing stop, the current bias “flips,” and the logic reverses (bullish to bearish or vice versa). At the new close, flip price and bar index are stored for target calculation.
3. ATR Targets after Flip
After each stop flip:
Three targets—based on the new close price—are calculated and plotted:
Long flip (new bull bias): Target1 = close + 1×ATR, Target2 = close + 2×ATR, Target3 = close + 3×ATR.
Short flip (new bear bias): Target1 = close - 1×ATR, Target2 = close - 2×ATR, Target3 = close - 3×ATR.
These targets help with scaling out, partial profit-taking, or setting automated orders.
4. Visual Feedback
Trailing stop line: Green for long bias, red for short bias.
Targets: Distinct color-coded circles at 1, 2, 3 ATR levels from the most recent flip.
Flip Labels: Mark the bar and price where bias flipped (“Long Flip” or “Short Flip”) for quick pattern recognition.
Subtle background shading: Ensures TradingView's requirement for “indicator output every bar.”
How to Use This Indicator
Parameter Setup
ATR Period and Multiplier: Adjust to match the timeframe and volatility of your instrument.
Lower periods/multipliers for short-term/volatile trading.
Higher values for smoother signals or higher timeframes.
Starting Trend: Set to match the expected initial bias if the instrument has strong trend characteristics.
Trading Application
1. Daily Bias Approach
Establish your bias in line with your trading plan (e.g., only trade long if price is above the previous day's high, short below the previous day's low).
Only look for trades in the indicator's current bias direction, as expressed by the stop and background color.
2. Entry
Use the indicator as a real-time confirmation or trailing stop for your entries.
Breakout: Enter when price establishes the current bias, using the trailing stop as your risk level.
Reversal: Wait for a bias flip after an extended move; enter in the direction of the new bias.
VWAP Rebound: Combine with a VWAP bounce—enter only if the indicator bias supports your direction.
3. Exits/Targets
Trailing stop management: Move your stop according to the plotted line; exit if your stop is hit.
Profit-taking: Scale out or take profits as price approaches each ATR-based target.
Use the dynamic labeling to identify reversal flips and reset your plan if stopped or the bias changes.
4. Market Context
Filter and frame setups by watching correlated indicators (DXY, VIX, AUDJPY, put/call ratio) and upcoming news; trade only in the daily bias direction for best consistency.
5. Practical Tips
Combine this indicator with your custom watchlist and alert settings to get notified on flips or targets.
Review the last label ("Long Flip"/"Short Flip") and targets to plan partial exits.
Remember: ATR adapts to volatility, so the stop and targets stay proportionate even when price action shifts.
Trend Catcher with HTF Filter🔷 Trend Catcher with HTF Filter
Overview
“Trend Catcher with HTF Filter” is a dynamic trend detection tool designed to identify clear directional bias and help traders stay aligned with the prevailing momentum. It uses a dual-timeframe approach that combines ATR-based volatility analysis and trend confirmation logic to avoid noise and false flips.
This script is particularly useful for trend-following, swing trading, or tactical scalping, depending on the timeframe used. It's not a strategy script, but a visual tool that enhances your decision-making.
🧠 How It Works (Simplified Logic)
This indicator identifies trends by comparing price to a dynamic stop level derived from ATR (Average True Range). When price breaks above/below that level and remains there for a configurable number of bars (flip sensitivity), the trend is considered to have shifted.
🔹 Core Logic (Lower Timeframe)
ATR stop: Calculated using ATR Length and Multiplier.
Trend detection: When price remains above/below the ATR stop for X bars, the trend "flips."
Labels: When the trend flips, labels (🔼 or 🔽) are shown on the chart.
🔹 Higher Timeframe (HTF) Filter (Optional)
When enabled, this adds a higher timeframe ATR-based filter.
You can choose to:
Only visualize HTF background (green/red).
Or restrict flips on the lower timeframe based on HTF trend direction.
This lets you avoid entering against the broader trend and filters out noise in lower timeframes.
🧾 Flip Sensitivity
Set how many bars must confirm the trend direction before a flip is declared.
Helps avoid whipsaws in volatile conditions.
📋 Real-Time Info Table
A small table at the top-right of your chart shows key values like:
Current ATR value
Trend direction
HTF trend direction
Price level of trend stop
Flip sensitivity
🛡️ Why This Script Is Unique
While many scripts use ATR-based logic or multi-timeframe filters, this script stands out for:
✅ Combining real-time LTF and HTF ATR trend zones
✅ A labeling system that clearly marks confirmed flips (based on multiple bar confirmation)
✅ A user-friendly real-time dashboard with essential metrics
✅ Optional trend-based access control, only allowing flips in HTF-aligned directions (when enabled)
This design is intended to help traders visually stay on the right side of the trend while giving them flexibility in configuration.
⚠️ No Unrealistic Claims
This script does not promise profits, signals, or backtested results. It’s a visual tool to assist discretionary traders in identifying trend shifts. There are no buy/sell signals, and it does not predict the future.
ATR Trend Strategy + KAMA FilterATR Trend Strategy with XMA KAMA Filter
Strategy Description
This strategy combines a dynamic ATR trailing stop with an XMA KAMA filter to precisely detect trends and generate reliable entry signals.
It uses a two-step trend confirmation system:
1️⃣ ATR Trailing Stop
Based on the Average True Range (ATR), this trailing stop automatically adapts to market volatility.
It determines whether the market is in a bullish or bearish phase by comparing the current price to the ATR trailing stop level.
2️⃣ KAMA Filter (XMA Version)
KAMA (Kaufman Adaptive Moving Average) provides an additional trend filter.
This XMA version of KAMA avoids the traditional fast/slow parameters and instead dynamically calculates the ratio of signal to market "noise", helping to reduce false signals and over-sensitivity.
How It Works
Long Signal:
Price is above both the ATR trailing stop and the KAMA (XMA) line.
Short Signal:
Price is below both the ATR trailing stop and the KAMA (XMA) line.
What Makes This Strategy Different?
Unlike many classic strategies that rely on simple moving averages, this system uses an adaptive KAMA filter that responds better to changing market conditions and volatility.
The ATR trailing stop automatically adjusts to current market volatility, providing an extra layer of protection against false breakouts.
By combining these tools, this strategy offers:
Precise trend filtering
Avoidance of false breakouts and noise
Dynamic adjustment to market conditions
How to Use
Apply the strategy to any market chart (Forex, stocks, crypto, indices, etc.)
Adjust the ATR and KAMA parameters to match your trading plan
Use the TradingView Strategy Tester to evaluate performance before live trading
Who Is This For?
Swing traders and trend followers
Traders looking for clean, filtered signals with reduced noise
Medium-term traders seeking a system that adapts to market dynamics
Additional Info: Heikin Ashi Compatibility
This strategy is fully compatible with Heikin Ashi candles.
By applying it to a chart with Heikin Ashi candles, traders can further reduce market noise and enhance trend visualization.
The combination of ATR trailing stop + XMA KAMA filter + Heikin Ashi smoothing provides an even cleaner trend-following system, minimizing false signals and improving decision-making clarity.
ATR Stop Loss Non-Decreasing & LineThe script calculates a custom stop-loss level based on the Average True Range (ATR) indicator, ensuring that this stop-loss level never decreases from one bar to the next unless a reset condition is met. It also visually displays the ATR value and the calculated stop-loss level as a line on the chart.