Stochastic w/ Crossovers and Deadspace FilterThis is my extremely useful modification of the classic Stochastic indicator. It includes clear signals of crossovers and crossunders of the K/D lines.
Additionally, I added a "deadspace" filter to remove plotting of signals in the middle of the range, which tend to be misleading.
This can be incredibly useful to find entries and trends, especially when using 2 instances of this indicator at different lengths (such as one of 14,1,3 and another of 28,3,6).
The deadspace filter works based on the middle line, so a value of 20 will not plot any crossovers between 30-70.
Penunjuk dan strategi
OTE & A-B-C Zone Indicator SwiftEdgeOTE & A-B-C Zone Indicator SwiftEdge
Overview
The OTE & A-B-C Zone Indicator SwiftEdge is a versatile tool designed to help traders identify high-probability trading setups using a combination of Optimal Trade Entry (OTE) zones, Fibonacci levels, and A-B-C price patterns. This indicator is particularly useful for traders who rely on price action and Fibonacci-based strategies to find entry points, set stop-losses, and target potential take-profit levels. By integrating swing point detection, trend analysis, and Fibonacci projections, SwiftEdge provides a clear visual framework for making informed trading decisions across various timeframes.
What It Does
SwiftEdge identifies key price levels and zones to guide your trading:
OTE Zone: Highlights the Optimal Trade Entry zone between swing points A (swing high) and B (swing low) using Fibonacci retracement levels (default: 0.618 to 0.786). This zone represents a high-probability area for price reversals, making it an ideal entry point for trades.
A-B-C Pattern: Marks the latest swing points as A (swing high), B (swing low), and C (projected take-profit level) with dashed lines and labels. A solid line connects A to B to C, visually illustrating the price movement from entry to target.
Take-Profit Zones: Projects three customizable take-profit levels (TP1, TP2, TP3) based on Fibonacci extensions (default: 1.272, 1.618, 2.0) from the A-B swing, helping traders plan exits with favorable risk-reward ratios.
How It Works
SwiftEdge combines several technical components to create a cohesive trading system:
Swing Point Detection: Identifies significant swing highs (A) and swing lows (B) using a dynamic lookback period that adjusts to the selected timeframe. On lower timeframes like 1-minute charts, an ATR-based filter reduces noise by requiring price movements to exceed a threshold (0.5 * ATR(14)).
Trend Analysis: Uses an Exponential Moving Average (EMA) to determine the trend direction (default: 50-period EMA on 1H). The indicator marks uptrends (price above EMA) in green and downtrends (price below EMA) in red, ensuring trades align with the market's direction.
Fibonacci Levels: Applies Fibonacci retracement to define the OTE zone between A and B, and Fibonacci extensions to project take-profit levels (C) beyond the initial swing. This approach leverages the natural tendency of markets to respect Fibonacci ratios for reversals and extensions.
Visual Clarity: Displays only the latest A-B-C pattern with three dashed lines (A, B, C) and a solid connecting line, ensuring the chart remains uncluttered and easy to interpret.
The combination of these elements creates a structured setup where the OTE zone (between A and B) serves as an entry point, while the projected C level offers a target, all within the context of the prevailing trend. This synergy makes SwiftEdge a powerful tool for traders seeking to combine price action, trend analysis, and Fibonacci strategies.
How to Use
Add the Indicator: Apply the indicator to your chart via TradingView's indicator menu.
Identify the Trend: The OTE zone and A-B-C pattern will be colored green in uptrends (price above EMA) or red in downtrends (price below EMA). Use this to determine the market direction.
Entry Point: Look for price reversals within the OTE zone (between A and B). This zone is typically between the 0.618 and 0.786 Fibonacci retracement levels of the A-B swing, making it a high-probability area for entries.
Stop-Loss: Place your stop-loss below the OTE zone in an uptrend (or above in a downtrend) to protect against false breakouts.
Take-Profit Targets: Use the projected take-profit zones (TP1, TP2, TP3) as potential exit levels. These are based on Fibonacci extensions and can be toggled on/off in the settings.
Customization:
Adjust the Fibonacci levels for the OTE zone (Fibonacci Level 1 and Fibonacci Level 2) to suit your strategy.
Modify the take-profit levels (Fibonacci Extension Level for TP1/TP2/TP3) to target different extension ratios.
Change the lookback period (Base Lookback Period) and EMA period (Base EMA Period) to fine-tune swing point detection and trend sensitivity.
Customize colors for uptrends, downtrends, and A-B-C lines to match your preferences.
What Makes It Unique
SwiftEdge stands out by integrating swing point detection, Fibonacci-based OTE zones, and A-B-C price patterns into a single, visually intuitive indicator. Unlike standalone Fibonacci tools or trend indicators, SwiftEdge combines these elements to provide a complete trading setup: it identifies entry zones (OTE), confirms trend direction (EMA), and projects take-profit targets (Fibonacci extensions). The dynamic timeframe adjustment ensures consistent performance across all chart intervals, while the clean A-B-C visualization (with only the latest pattern displayed) prevents chart clutter, making it easier to focus on the most relevant price levels.
Notes
This indicator is designed for traders familiar with price action and Fibonacci strategies. It does not guarantee profits and should be used in conjunction with other analysis tools and proper risk management.
Performance may vary depending on market conditions and timeframe. Test the indicator on a demo account before using it in live trading.
Support/Resistance Breakout DetectorThis indicator automatically detects and plots dynamic support and resistance levels using pivot highs and lows.
✅ It draws red resistance lines and blue support lines,
✅ The lines extend forward but automatically stop when the price touches them,
✅ It monitors for breakouts with strong volume,
✅ When a breakout happens, it shows labels like “B” or “Bull Wick” / “Bear Wick” on the chart,
✅ It also triggers alerts when support or resistance breaks with high volume.
Main settings:
Pivot lookback period
Show/hide breakout labels
Minimum volume for breakout
Maximum extension length for lines
This tool helps traders easily spot key price levels and watch for meaningful breakouts.
ATR Strength Index~~~~~~~ATRRSI~~~~~~~~~
Understanding the ATR Strength IndexThe "ATR Strength Index" (ATR SI) is a custom technical indicator derived by applying the calculation methodology of the Relative Strength Index (RSI) to the values of the Average True Range (ATR).
While the standard RSI measures the momentum of price changes, the ATR SI measures the momentum of volatility itself, as represented by the ATR.It is important to note that this is not a standard, widely recognised indicator like the traditional RSI or ATR.
It's a custom construction designed to provide a different perspective on market dynamics – specifically, the speed and magnitude of changes in volatility.
How it is Calculated
The calculation of the ATR Strength Index follows the same steps as the standard RSI, but the input data is the ATR value for each period, rather than the price.Let ATRi be the Average True Range value for the current period i.Let ATRi−1 be the Average True Range value for the previous period i−1.Calculate the period-over-period change in ATR:ΔATRi=ATRi−ATRi−1Separate ATR Gains and ATR Losses:If ΔATRi>0, then ATR,Gaini=ΔATRi and ATR,Lossi=0.If ΔATRi<0, then ATR,Gaini=0 and ATR,Lossi=∣ΔATRi∣.If ΔATRi=0, then ATR,Gaini=0 and ATR,Lossi=0.Calculate the Smoothed Average ATR Gain and Average ATR Loss over a specified lookback period (let's call this the "RSI Length" or n).
This typically uses a smoothing method similar to Wilder's original RSI calculation (a modified moving average or exponential moving average).Average,ATR,Gainn=Smoothed Average of ATR,Gain over n periodsAverage,ATR,Lossn=Smoothed Average of ATR,Loss over n periodsCalculate the ATR Relative Strength (ATR RS):ATR,RSn=Average,ATR,LossnAverage,ATR,GainnCalculate the ATR Strength Index:ATR,SIn=100−1+ATR,RSn100The resulting index oscillates between 0 and 100, just like the standard RSI.
How to Use It
Interpreting the ATR Strength Index focuses on the momentum of volatility rather than price momentum:High Values (e.g., above 70): Indicate that volatility (as measured by ATR) has been increasing rapidly over the chosen period.
This could suggest a market transitioning from a period of low volatility to high volatility, potentially preceding or accompanying strong directional price moves or increased choppiness.Low Values (e.g., below 30): Indicate that volatility has been decreasing rapidly.
This could suggest a market transitioning from high volatility to low volatility, potentially entering a period of consolidation or ranging price action.Midline (50): Represents a balance between increasing and decreasing volatility momentum.Divergence: You could potentially look for divergence between the ATR value itself and the ATR Strength Index. For example, if ATR is making higher highs but the ATR SI is making lower highs, it might suggest that while volatility is still increasing, the speed of that increase is slowing down. The interpretation and reliability of such divergence would need careful testing.
This indicator is best used as a supplementary tool to gain insight into the underlying volatility dynamics of the market, rather than as a primary signal generator for price direction.
It can help in understanding the current market environment – whether volatility is picking up or dying down – which can inform the suitability of different trading strategies (e.g., trend-following strategies might be more effective when volatility momentum is high, while range-bound strategies might suit periods of low volatility momentum).
Uniqueness
The ATR Strength Index is unique because it applies a momentum oscillator's logic (RSI) to a volatility indicator's output (ATR).Standard RSI: Focuses on the directional force of price movements.Standard ATR: Measures the amount of volatility, regardless of direction.ATR Strength Index: Measures the speed and direction of change in volatility.
It provides a perspective that neither the standard RSI nor ATR offers on their own – a quantified measure of how quickly the market's choppiness or range is expanding or contracting. This can be valuable for traders who incorporate volatility analysis into their decision-making process.In summary, the ATR Strength Index is a custom indicator that adapts the RSI calculation to measure the momentum of volatility, offering a unique view on market dynamics by showing how rapidly volatility is increasing or decreasing.
ADX Full [Titans_Invest]ADX Full
This is, without a doubt, the most complete ADX indicator available on TradingView — and quite possibly the most advanced in the world. We took the classic ADX structure and fully optimized it, preserving its essence while elevating its functionality to a whole new level. Every aspect has been enhanced — from internal logic to full visual customization. Now you can see exactly what’s happening inside the indicator in real time, with tags, flags, and informative levels. This indicator includes over 22 long entry conditions and 22 short entry conditions , covering absolutely every possibility the ADX can offer. Everything is transparent, adjustable, and ready to fit seamlessly into any professional trading strategy. This isn’t just another ADX — it’s the definitive ADX, built for traders who take the market seriously.
⯁ WHAT IS THE ADX❓
The Average Directional Index (ADX) is a technical analysis indicator developed by J. Welles Wilder. It measures the strength of a trend in a market, regardless of whether the trend is up or down.
The ADX is an integral part of the Directional Movement System, which also includes the Plus Directional Indicator (+DI) and the Minus Directional Indicator (-DI). By combining these components, the ADX provides a comprehensive view of market trend strength.
⯁ HOW TO USE THE ADX❓
The ADX is calculated based on the moving average of the price range expansion over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and has three main zones:
Strong Trend: When the ADX is above 25, indicating a strong trend.
Weak Trend: When the ADX is below 20, indicating a weak or non-existent trend.
Neutral Zone: Between 20 and 25, where the trend strength is unclear.
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔹 +DI > -DI
🔹 +DI < -DI
🔹 +DI > ADX
🔹 +DI < ADX
🔹 -DI > ADX
🔹 -DI < ADX
🔹 ADX > Threshold
🔹 ADX < Threshold
🔹 +DI > Threshold
🔹 +DI < Threshold
🔹 -DI > Threshold
🔹 -DI < Threshold
🔹 +DI (Crossover) -DI
🔹 +DI (Crossunder) -DI
🔹 +DI (Crossover) ADX
🔹 +DI (Crossunder) ADX
🔹 +DI (Crossover) Threshold
🔹 +DI (Crossunder) Threshold
🔹 -DI (Crossover) ADX
🔹 -DI (Crossunder) ADX
🔹 -DI (Crossover) Threshold
🔹 -DI (Crossunder) Threshold
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔸 +DI > -DI
🔸 +DI < -DI
🔸 +DI > ADX
🔸 +DI < ADX
🔸 -DI > ADX
🔸 -DI < ADX
🔸 ADX > Threshold
🔸 ADX < Threshold
🔸 +DI > Threshold
🔸 +DI < Threshold
🔸 -DI > Threshold
🔸 -DI < Threshold
🔸 +DI (Crossover) -DI
🔸 +DI (Crossunder) -DI
🔸 +DI (Crossover) ADX
🔸 +DI (Crossunder) ADX
🔸 +DI (Crossover) Threshold
🔸 +DI (Crossunder) Threshold
🔸 -DI (Crossover) ADX
🔸 -DI (Crossunder) ADX
🔸 -DI (Crossover) Threshold
🔸 -DI (Crossunder) Threshold
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : ADX Full
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
BBands Channels with EMAs# **BBands Channels with EMAs Indicator Explanation**
---
## **📌 Feature Overview**
### **1. Bollinger Bands**
- **Basis Line**: 160-period SMA (adjustable)
- **Inner Bands**:
- **Upper**: Basis + 2× Standard Deviation
- **Lower**: Basis - 2× Standard Deviation
- **Outer Bands**:
- **Upper Top**: Basis + 3× Standard Deviation
- **Lower Low**: Basis - 3× Standard Deviation
- **Fill Effect**: Semi-transparent black fill between inner and outer bands
### **2. Exponential Moving Averages (EMAs)**
| Period | Purpose | Line Style |
|--------------|-----------------------------|------------------|
| **EMA 27** | Short-term trend | Thin line |
| **EMA 120** | Short-to-medium-term trend | Medium line |
| **EMA 200** | Medium-term trend | Medium line |
| **EMA 1120** | Ultra-long-term trend | Thick line |
---
## **⚙️ Parameter Settings**
### **Bollinger Bands**
| Parameter | Default | Description |
|---------------|---------|--------------------------------------|
| `length` | 160 | SMA calculation period |
| `mult` | 2.0 | Standard deviation multiplier (inner bands) |
| `multOuter` | 3.0 | Standard deviation multiplier (outer bands) |
| `offset` | 0 | Time offset for plots (±500 bars) |
### **Exponential Moving Averages (EMAs)**
| Parameter | Default | Description |
|-----------------|---------|---------------------------|
| `ema1Length` | 27 | EMA 1 period |
| `ema2Length` | 120 | EMA 2 period |
| `ema3Length` | 200 | EMA 3 period |
| `ema4Length` | 1120 | EMA 4 period |
---
## **📊 Use Cases**
### **1. Trend Confirmation**
- **Bullish Trend**: Price above EMA200 + Bollinger Band expansion
- **Bearish Trend**: Price below EMA200 + Bollinger Band expansion
### **2. Overbought/Oversold Signals**
- **Upper Band Touch**: Price reaches Upper Top → Potential overbought
- **Lower Band Touch**: Price reaches Lower Low → Potential oversold
### **3. Volatility Strategies**
- **Band Squeeze**: Narrowing gap between bands → Breakout warning
- **Band Expansion**: Price breaks outer band → Trend acceleration
---
**✅ Summary**
This indicator combines **Bollinger Bands + Multi-period EMAs** for:
- Trend tracking
- Volatility analysis
- Multi-timeframe strategies
---
# **BBands Channels with EMAs 指標說明**
---
## **📌 功能概述**
### **1. 布林通道 (Bollinger Bands)**
- **基礎線 (Basis Line)**: 160週期SMA(可調整)
- **內通道 (Inner Bands)**:
- 上軌 (Upper): 基礎線 + 2倍標準差
- 下軌 (Lower): 基礎線 - 2倍標準差
- **外通道 (Outer Bands)**:
- 上外軌 (Upper Top): 基礎線 + 3倍標準差
- 下外軌 (Lower Low): 基礎線 - 3倍標準差
- **填充效果**: 內外通道間半透明黑色填充
### **2. 指數移動平均線 (EMAs)**
| 週期 | 用途 | 線條樣式 |
|-------------|-------------------|-----------------|
| **EMA 27** | 短期趨勢 | 細線 |
| **EMA 120** | 中短期趨勢 | 中等線 |
| **EMA 200** | 中期趨勢 | 中等線 |
| **EMA 1120**| 超長期趨勢 | 粗線 |
---
## **⚙️ 參數設定**
### **布林通道 (Bollinger Bands)**
| 參數名 | 預設值 | 說明 |
|-------------|--------|---------------------------|
| `length` | 160 | SMA計算週期 |
| `mult` | 2.0 | 內通道標準差倍數 |
| `multOuter` | 3.0 | 外通道標準差倍數 |
| `offset` | 0 | 線圖時間偏移(±500根K棒) |
### **指數移動平均線 (EMAs)**
| 參數名 | 預設值 | 說明 |
|----------------|---------|-------------------|
| `ema1Length` | 27 | 第一條EMA週期 |
| `ema2Length` | 120 | 第二條EMA週期 |
| `ema3Length` | 200 | 第三條EMA週期 |
| `ema4Length` | 1120 | 第四條EMA週期 |
---
## **📊 應用場景**
### **1. 趨勢確認**
- **多頭趨勢**: 價格在EMA200上方 + 布林通道擴張
- **空頭趨勢**: 價格在EMA200下方 + 布林通道擴張
### **2. 超買超賣信號**
- **觸及外軌**: 價格觸碰Upper Top → 可能超買
- **觸及下軌**: 價格觸碰Lower Low → 可能超賣
### **3. 波動率策略**
- **通道收窄**: 內外通道間距縮小 → 突破預警
- **通道擴張**: 價格突破外軌 → 趨勢加速
---
**✅ 總結**
本指標透過**布林通道+多週期EMA**的組合,適用於:
- 趨勢跟蹤
- 波動率分析
- 多時間框架策略
TJR's BOS strategyBreak of Structure (BOS) Indicator: TJR version
This Break of Structure (BOS) Indicator helps you identify key market shifts by highlighting breaks in market structure. It uses price action to spot significant swing highs and swing lows and draws horizontal lines that extend to the right whenever a BOS occurs.
Features:
Real-Time Updates: The indicator continuously updates in real time, marking BOS points as they occur.
BOS Lines:
Bullish Break of Structure (BOS): Occurs when the price closes above a previously established high.
Bearish Break of Structure (BOS): Occurs when the price closes below a previously established low.
Customizable: Easily change the color and line length of the BOS markers to suit your charting preferences.
Max Lines Control: Limit the number of BOS lines shown in both upward and downward directions to keep the chart clean.
Visual Clarity: Lines are drawn directly on the high or low levels, marking clear BOS zones on the chart for easy identification.
How to Use:
BOS Up: A bullish BOS is marked when the price closes above a previously marked high.
BOS Down: A bearish BOS is marked when the price closes below a previously marked low.
Trend Direction: This indicator can be particularly useful for traders following trend continuation or reversal strategies, as BOS points represent key areas where market sentiment shifts.
Custom Settings:
Change the color of BOS lines for better visibility.
Adjust the maximum number of BOS lines to display.
MACD-V with Volatility Normalisation [DCD]MACD-V with Volatility Normalisation
This indicator is a modified version of the traditional MACD, designed to account for market volatility by normalizing the MACD line using the Average True Range (ATR). It provides a more adaptive approach to identifying momentum shifts and potential trend reversals. This indicator was developed by Alex Spiroglou in this paper:
Spiroglou, Alex, MACD-V: Volatility Normalised Momentum (May 3, 2022).
Features:
Volatility Normalization: The MACD line is adjusted using ATR to standardize its values across different market conditions.
Customizable Parameters: Users can adjust the MACD fast length, slow length, signal line smoothing, and ATR length to suit their trading style.
Histogram Visualization: The histogram highlights the difference between the MACD and signal lines, with customizable colors for positive and negative momentum.
Crossover Signals: Green and red dots indicate bullish and bearish crossovers between the MACD and signal lines.
Background Highlighting: The chart background changes to green when the MACD is above 0 and red when it is below 0, providing a clear visual cue for bullish and bearish conditions.
Horizontal Levels: Dotted horizontal lines are plotted at key levels for better visualization of MACD values.
How to Use:
Look for crossovers between the MACD and signal lines to identify potential buy or sell signals.
Use the histogram to gauge the strength of momentum.
Pay attention to the background color for quick identification of bullish (green) or bearish (red) conditions.
This indicator is ideal for traders who want a more dynamic MACD that adapts to market volatility. Customize the settings to align with your trading strategy and timeframe.
Real Open/Close Ticks for Heiken Ashi CandlesJapanese candle open and close prices. Good if you're using a HeikenAshi chart and you want to see real opens and closes.
Multi-Symbol Trend DashboardMulti-Symbol Trend Dashboard - MA Cross Trend Monitor
Short Description
A customizable dashboard that displays trend direction across multiple symbols and timeframes using moving average crossovers.
Full Description
Overview
This Multi-Symbol Trend Dashboard allows you to monitor trend direction across 7 different symbols and 5 timeframes simultaneously in a single view. The dashboard uses moving average crossovers to determine trend direction, displaying bullish trends in green and bearish trends in red.
Key Features
Multi-Symbol Monitoring : Track up to 7 different trading instruments at once
Multi-Timeframe Analysis: View 5 different timeframes simultaneously for each instrument
Customizable Moving Averages: Choose between SMA, EMA, or WMA with adjustable periods
Visual Clarity: Color-coded cells provide immediate trend identification
Flexible Positioning: Place the dashboard anywhere on your chart
Customizable Appearance: Adjust sizes, colors, and text formatting
How It Works
The dashboard calculates a fast MA and slow MA for each symbol-timeframe combination. When the fast MA is above the slow MA, the cell shows green (bullish). When the fast MA is below the slow MA, the cell shows red (bearish).
Use Cases
Get a bird's-eye view of market trends across multiple instruments
Identify potential trading opportunities where multiple timeframes align
Monitor your watchlist without switching between charts
Spot divergences between related instruments
Track market breadth across sectors or related instruments
Notes and Limitations
Limited to 7 symbols and 5 timeframes due to TradingView's security request limits
Uses simple MA crossover as trend determination method
Dashboard is most effective when displayed on a dedicated chart
Performance may vary on lower-end devices due to multiple security requests
Settings Explanation
MA Settings: Configure the periods and types of moving averages
Display Settings: Adjust dashboard positioning and visual elements
Trading Instruments: Select which symbols to monitor (defaults to major forex pairs)
Timeframes: Choose which timeframes to display (default: M15, H1, H4, D1, W1)
Colors: Customize the color scheme for bullish/bearish indications and headers
This dashboard provides a straightforward way to maintain situational awareness across multiple markets and timeframes, helping traders identify potential setups and market conditions at a glance.
Daily ATR Bonanza: Expected Moves - Tr33man Daily ATR Bonanza: Expected Moves
Overview 🤷♂️
The Daily ATR Bonanza script is a powerful trading tool designed to help traders visualize and understand potential price movements using the Average True Range (ATR). It provides daily and weekly ATR levels, historical statistics, and conditional probability analysis to give traders actionable insights. The script also plots the daily Keltner channel. This script is ideal for traders who want to gauge volatility, identify key levels, and make data-driven decisions.
b]Key Features:
📈 1. Daily and Weekly ATR Levels
🔵ATR Levels: The script calculates and displays ATR-based levels for the day and week. These levels are derived from the previous day's or week's close price and are adjusted using customizable multipliers (0.5x, 1x, and 1.5x by default).
🔵You can choose the number of ATR levels (1, 2, or 3) and adjust the multipliers to suit your trading strategy.
🌐 2. ATR Bands (Keltner Channels)
🔵The script includes an option to display ATR Bands, which are volatility-based envelopes around a moving average. These bands help identify overbought and oversold conditions.
🔵You can adjust the ATR multiplier and the length of the moving average used for the bands.
🧮 3. Historical Statistics and Conditional Probability
🔵 Historical Analysis: The script analyzes historical price movements to calculate the likelihood of closing at certain ATR levels.
🔵 Conditional Probability: This feature shows the probability of the price reaching specific ATR levels given the current market conditions. The conditional matches historical data by an open in the same opening ATR bucket, as well as the current price bucket having been visited in the historical case. Conditional probabilities are just statistics, and do not predict anything.
Data Table: 📚
🔵 Historical Close Probability: The percentage of days the price closed within each ATR level.
🔵 Conditional Close Probability: The likelihood of the price closing within each ATR level today.
❓ What is Conditional Probability? ❓
Conditional probability is a statistical measure that calculates the likelihood of an event occurring given that another event has already occurred. In this script, it is used to determine the probability of the price reaching specific ATR levels based on the current opening range as well as current ATR distance from the previous close.
For example:
If the market opens near the lower end of the first ATR level, the script calculates the likelihood of the price reaching the upper end of the first, second, or third ATR level.
This analysis is based on historical data, making it a powerful tool for understanding potential price movements.
🌟 Understanding the Levels
🔵Daily Levels: These are based on the previous day's close price and ATR. They are updated at the start of each new day.
🔵Weekly Levels: These are based on the previous week's close price and ATR. They are updated at the start of each new week.
🔵ATR Bands: These are dynamic levels that adjust with market volatility.
🔬 Analyze the Statistics (Daily only for now, no weekly yet)
🔵Use the interactive table to understand historical probabilities and conditional probabilities.
🔵Focus on the current opening range and the likelihood of reaching specific levels.
🧠 Make Trading Decisions
🔵Use the ATR levels and bands to identify key support and resistance levels.
🔵Use the conditional probability table to gauge the likelihood of reaching specific targets.
🔵Adjust your strategy based on the historical performance of the market.
Example Use Cases
1. Day Trading
Use the daily ATR levels to set intraday targets and stop-loss levels.
Monitor the conditional probability table to adjust your expectations based on the opening range.
2. Swing Trading
Use the weekly ATR levels to identify longer-term support and resistance levels.
3. Scalping
Use the ATR bands to identify overbought and oversold conditions.
Use the conditional probability table to quickly assess the likelihood of price movements.
Aggregated Open Interest [Alpha Extract]The Aggregated Open Interest indicator provides a comprehensive view of open interest across multiple cryptocurrency exchanges, allowing traders to monitor institutional positioning and market sentiment. By aggregating data from major exchanges like Binance, BitMEX, and Kraken, this indicator offers valuable insights into potential price movements and market shifts.
🔶 CALCULATION
The indicator processes open interest data through multiple analytical methods:
Exchange Aggregation: Collects and normalizes open interest data from multiple exchanges (Binance, BitMEX, Kraken) with proper currency normalization.
Multi-Mode Analysis: Calculates various metrics including raw open interest values, OI change, OI delta, volume-weighted delta, and OI RSI.
Divergence Detection: Uses pivot point analysis to identify divergences between price action and open interest movements.
Activity Assessment: Tracks bullish and bearish activity patterns by correlating open interest changes with price movements.
Formula:
Aggregate OI = Sum of normalized open interest from selected exchanges
OI Change = Current OI - Previous OI
OI Delta = Net change in open interest across timeframes
OI Delta × Volume = OI Delta weighted by relative volume
OI RSI = Relative Strength Index applied to open interest values
OI Heatmap = Multi-timeframe visualization of OI changes across 7 distinct periods
🔶 DETAILS
Visual Features:
Open Interest: Candlestick representation of aggregated open interest
OI Change: Histogram showing period-to-period changes
OI Delta: Histogram displaying net OI movements
OI Delta × Volume: Volume-weighted OI delta for enhanced signals
OI RSI: Oscillator showing overbought/oversold OI conditions
OI Heatmap: Multi-timeframe visualization showing OI changes across 7 periods (3, 5, 8, 13, 21, 34, and 55 days)
Divergence Detection: Color-coded markers (teal for bullish, red for bearish) highlighting significant divergences between price and open interest
Analysis Table: Real-time summary of key metrics including aggregate OI, recent changes, and bullish/bearish activity.
Interpretation:
Increasing Open Interest + Rising Price: Strong bullish trend confirmation
Increasing Open Interest + Falling Price: Strong bearish trend confirmation
Decreasing Open Interest + Rising Price: Weak bullish trend (potential reversal)
Decreasing Open Interest + Falling Price: Weak bearish trend (potential reversal)
Divergences: Signal potential trend exhaustion and reversals when price moves in one direction while open interest moves in the opposite direction
Heatmap: Provides at-a-glance insight into open interest trends across multiple timeframes, with green bars indicating rising OI and red bars indicating falling OI
🔶 EXAMPLES
Trend Confirmation: Rising open interest accompanying a price increase confirms strong bullish momentum with institutional backing.
Example: During January-February 2025, rising OI during price advances confirms institutional participation in the uptrend.
Bearish Divergence: Price makes a higher high while open interest makes a lower high, signaling potential trend reversal.
Example: Red markers appear at market tops where price continues higher but open interest fails to confirm, preceding significant corrections.
Bullish Divergence : Price makes a lower low while open interest makes a higher low, indicating potential bottoming.
Example: Teal markers appear at market bottoms where price continues lower but open interest fails to confirm, preceding significant rallies.
OI Heatmap Analysis : Multiple timeframes showing consistent red signals across short to long-term periods indicate strong institutional selling pressure.
Example: When all 7 periods (3-55 days) show red during a price uptrend, this signals institutional selling into retail strength, often preceding major corrections.
🔶 SETTINGS
Customization Options:
Data Sources: Toggle different exchanges (Binance USDT/USD/BUSD, BitMEX USD/USDT, Kraken USD)
Display Mode: Choose between Open Interest, OI Change, OI Delta, OI Delta × Volume, OI RSI, and OI Heatmap
Currency Units: Display in USD or base cryptocurrency (COIN)
Analysis Tools: Moving Average (length and color), RSI (length and color)
Divergence Detection: Enable/disable signals, adjust lookback period and threshold percentage, customize bullish/bearish divergence colors
OI Heatmap Colors: Customize bullish (green) and bearish (red) signal colors for the multi-timeframe heatmap visualization
The Aggregated Open Interest indicator provides traders with comprehensive insights into institutional positioning across major exchanges, helping identify potential trend continuations, reversals, and key market turning points driven by smart money movements. The addition of the OI Heatmap feature enables traders to quickly visualize open interest trends across multiple timeframes, providing valuable context for institutional positioning over different market cycles.
New Momentum H/LNew Momentum H/L shows when momentum, defined as the rate of price change over time, exceeds the highest or lowest values observed over a user-defined period. These events shows points where momentum reaches new extremes relative to that period, and the indicator plots a column to mark each occurrence.
Increase in momentum could indicate the start of a trend phase from a low volatile or balanced state. However in developed trends, extreme momentum could also mark potential climaxes which can lead to trend termination. This reflects the dual nature of the component.
This indicator is based on the MACD calculated as the difference between a 3-period and a 10-period simple moving average. New highs are indicated when this value exceeds all previous values within the lookback window; new lows when it drops below all previous values. The default lookback period is set to 40 bars, which corresponds with two months on a daily chart.
The indicator also computes a z-score of the MACD line over the past 100 bars. This standardization helps compare momentum across different periods and normalizes the values of current moves relative to recent history.
In practice, use the indicator to confirm presence of momentum at the start of a move from a balanced state (often following a volatility expansion), track how momentum develops inside of a trend structure and locate potential climactic events.
Momentum should in preference be interpreted from price movement. However, to measure and standardize provides structure and helps build more consistent models. This should be used in context of price structure and broader market conditions; as all other tools.
TJR Liquidity mark-out indicatorIndicator Description:
This custom Pine Script indicator is designed to mark highs and lows based on a simple candle pattern recognition system, ideal for traders using TJR's Strategy or any strategy focused on liquidity.
The indicator marks out key levels where the price has not yet taken out liquidity. Specifically, it looks for price patterns where there is:
A bullish candle followed by a bearish candle (marking a potential high).
A bearish candle followed by a bullish candle (marking a potential low).
Once these highs and lows are identified, lines are drawn extending to the right until price sweeps the level — that is, when the price breaks above a high or below a low, the line is deleted. This makes the indicator highly useful for liquidity-based strategies where the goal is to spot unfilled liquidity zones (i.e., levels where price has not yet reached).
The indicator is especially beneficial for traders who:
Use TJR's Strategy, which typically involves identifying market structure shifts and liquidity zones.
Focus on liquidity pools and want to visualize areas where the market could potentially "sweep" or revisit to grab liquidity before continuing its movement.
By showing these areas where the liquidity hasn't been taken out yet, this indicator allows traders to better time their entries and exits, helping them align with areas of unfilled liquidity in the market. It’s a great addition for those looking to trade near key liquidity zones or manage risk based on market structure shifts.
Key Features:
Marks Liquidity Zones: Detects potential liquidity areas based on candle patterns.
Dynamic Lines: Lines extend to the right and disappear once price sweeps them.
Perfect for TJR's Strategy: Aligns with liquidity-focused strategies.
Customizable: Choose time periods, colors, and line length for personalized settings.
Real-time Updates: Continuously updates as new candles form, ensuring you have the latest liquidity data.
Asian & London Session Highs/LowsAsian & London Session Highs/Lows with Extendable Lines
This TradingView script automatically marks the highs and lows of the Asian and London trading sessions for the most recent day, allowing traders to identify key levels during these active periods. The lines representing the high and low of each session are drawn at the exact price point where the high/low occurred, and they extend to the right for a customizable number of bars, helping to visualize how the price reacts to these key levels after the session ends.
Key Features:
Session High/Low Tracking: Automatically tracks the highest and lowest points for the Asian and London sessions.
Extendable Lines: Lines start at the exact bar where the high/low occurred and can be extended to the right for a specified number of bars.
Timezone Adjustment: Allows you to input a timezone offset to adjust session times based on your local time or desired market time zone.
Customizable Colors & Line Thickness: Adjust the color and thickness of the session high and low lines to suit your visual preferences.
Clear & Precise Levels: Helps identify important support and resistance levels, making it easier to spot market reactions around session highs and lows.
This indicator is perfect for day traders and those looking to trade during specific market hours, offering clear visual markers of session boundaries and critical price levels.
Candle SequenceLooking to easily identify moments of strong market conviction? "Racha Velas" (or your chosen English name like "Consecutive Candles Streak") allows you to visualize clearly and directly sequences of consecutive bullish and bearish candles.
**Key Features:**
* **Real-time Counting:** Displays the number of consecutive candles directly on the chart.
* **Visual Customization:** Adjust the text size and color for optimal visualization.
* **Vertical Offset:** Control the position of the counter to avoid obstructions.
* **Maximum Streaks Table (Optional):** Visualize the largest bullish and bearish streaks found in the chart's history, useful for understanding volatility and price behavior.
* **Easy to Use:** Simply add the indicator to your chart and start analyzing.
This indicator is a valuable tool for traders looking to confirm trends, identify potential exhaustion points, or simply understand price dynamics at a glance. Give it a try and discover the market's streaks!
*****************************************************************************************************
¿Buscas identificar momentos de fuerte convicción del mercado? "Racha Velas" te permite visualizar de forma clara y directa las secuencias de velas consecutivas alcistas y bajistas.
**Características principales:**
* **Conteo en Tiempo Real:** Muestra el número de velas consecutivas directamente en el gráfico.
* **Personalización Visual:** Ajusta el tamaño y color del texto para una visualización óptima.
* **Offset Vertical:** Controla la posición del contador para evitar obstrucciones.
* **Tabla de Rachas Máximas (Opcional):** Visualiza las mayores rachas alcistas y bajistas encontradas en el historial del gráfico, útil para entender la volatilidad y el comportamiento del precio.
* **Fácil de Usar:** Simplemente añade el indicador a tu gráfico y comienza a analizar.
Este indicador es una herramienta valiosa para traders que buscan confirmar tendencias, identificar posibles agotamientos o simplemente entender la dinámica del precio en un vistazo. ¡Pruébalo y descubre las rachas del mercado!
Entropy [ScorsoneEnterprises]This indicator calculates the entropy of price log returns over a user-defined lookback period, providing insights into market complexity and unpredictability. Entropy measures the randomness or disorder in price movements, helping traders identify periods of high or low market uncertainty.
How It Works
The indicator computes the entropy of log returns (log(close/close )) using a histogram-based approach with customizable bins. Log returns are stored in an array of size N (lookback period), and entropy is calculated by:
Binning the returns into bins intervals based on their range.
Computing the probability distribution across bins.
Calculating entropy as -Σ(p * log(p)), where p is the probability of each bin.
A reference Simple Moving Average (SMA) of the entropy, with a separate lookback period (SMA_N), is plotted to highlight trends in market complexity. The entropy plot uses a gradient color scheme (red for lower entropy, teal for higher), while the SMA color shifts based on whether entropy is above (teal) or below (red) the SMA.
Key Features
Inputs:
Lookback Period (default: 50): Number of bars for calculating log returns.
Reference SMA Lookback Period (default: 100): Period for the entropy SMA.
Number of Bins (default: 20): Number of histogram bins for entropy calculation.
Plots:
Entropy: Gradient-colored line reflecting market randomness.
Reference SMA: Trend line to compare entropy against its average.
Interpretation
High Entropy: Indicates chaotic, unpredictable price movements, often during volatile or trendless markets.
Low Entropy: Suggests more predictable, ordered price behavior, often in trending or stable markets.
Compare entropy to its SMA to gauge whether current market complexity is above or below its recent average.
Usage
Use this indicator to assess market regimes. High entropy may signal choppy, range-bound conditions, while low entropy could indicate trending opportunities. Combine with price action or other indicators for confirmation.
Examples
We see on this PEPPERSTONE:COCOA chart that when entropy is low it signals a strong trend, either up or down. High entropy signals indecision and choppiness in the market. We can determine this by noticing when the value is above or below its recent average.
Entropy is used in high frequency trading often. It is a nice tool for lower time frames to determine how predictable and strong a trend is.
Inputs
Users can enter the lookback value for entropy, bin count, and the look back for the entropy moving average.
No tool is perfect, the Entropy value is also not perfect and should not be followed blindly. It is good to use any tool along with discretion and price action.
Long-Term VWAP Mean Reversion SDCACore Idea:
This indicator is designed to support Strategic Dollar Cost Averaging (SDCA) for Bitcoin using a cumulative VWAP-based mean reversion model. It helps long-term investors identify high-conviction buy zones and overbought conditions using statistical deviation from the cumulative VWAP. This indicator evaluates how much price is stretched from the true market average price, weighted by cumulative volume over time.
Core Concepts and Formulas:
Cumulative VWAP (Volume Weighted Average Price):
VWAP cumulative = ∑(Price×Volume) / ∑Volume
A long-term anchor that reflects the average dollar cost of all market participants across all candles. This version does not reset daily, unlike intraday VWAP.
VWAP Deviation % :
Deviation% = Price - VWAP cumulative / VWAP cumulative x 100
Shows how far current price has diverged from the long-term fair value.
Z-Score of VWAP Deviation:
Z= (Price−VWAP)−μ / σ (lookback period: default 200)
SDCA Multiplier Mapping:
*Keep in mind in my Z-Score system, -2 represents the overbought level (white horizontal line) and +2 represents oversold (cyan horizontal line) conditions. So the scores on the Y axis and Z-score in the table are reversed.
| Z-Score Range | SDCA Multiplier |
---------------------------------------------
| ≤ -2 | 0.25×
| -1 to +1 | 1.0×
| > +2 | 2.0×
The pink line plots this multiplier. It’s meant to control buy weight at each time step.
How to Use This for SDCA:
-Buy normally when the multiplier is 1.0× (Z-score between -1 and +1)
-Accelerate buying when Z-score is deeply negative (price far below VWAP)
-Slow or pause buying when Z-score is high (price far above VWAP)
-Use the stats panel to track current Z-score, VWAP level, deviation %, and multiplier
-Watch the red/blue backgrounds as visual confirmation of oversold/overbought zones
Inputs:
Z-Score Lookback Length:
Default: 200 but can be adjusted.
Visuals:
Z-Score Line (cyan): shows current standardized deviation from VWAP
Multiplier Line (bright pink): your SDCA intensity signal
Background Zones: cyan = oversold, white = overbought
Horizontal Lines: +2 and -2 standard deviation thresholds
Stats Panel (bottom right): live values for Z-score, multiplier, price, VWAP, and the deviation formula
Suited For:
-Long-term Bitcoin investors
-SDCA Systems
-Mean reversion systems
-Macro-level buy/sell planning
Smarter Money Concepts - MTF IFVGs [PhenLabs]📊 Smarter Money Concepts - MTF IFVG
Version: PineScript™ v6
📌 Description
This multi-timeframe indicator identifies Inverse Fair Value Gaps (IFVGs) and their inversions across simultaneous chart intervals, helping traders spot liquidity voids and potential reversal zones. By analyzing price action through the lens of institutional order flow patterns, it solves the problem of manual gap tracking across timeframes while incorporating volatility-adjusted parameters and psychological level analysis for higher-probability setups.
🚀 Points of Innovation
• Multi-Timeframe Engine - Simultaneous analysis of 3 higher timeframes
• Adaptive Parameters - Auto-adjusts to market volatility conditions
• Quality Scoring System - Ranks gaps using RVI strength and size metrics
• Inversion Tracking - Monitors failed gaps for counter-trend signals
• Render Optimization - Prevents chart clutter with smart gap management
🔧 Core Components
FVG Detection Logic: Identifies gaps using customizable price source (Close/Wick)
Inversion Tracker: Manages failed gaps and generates counter signals
Multi-Timeframe Engine: Processes 3 independent higher timeframe analyses
Dashboard System: Real-time display of active gaps across all timeframes
🔥 Key Features
• Volatility-adjusted gap size filters (ATR-based)
• Customizable timeframe confluence analysis
• Color-coded quality scoring
• Non-repainting inversion signals
• Mobile-optimized visual rendering
🎨 Visualization
• Colored Boxes: Translucent zones show active gaps (green/bullish, red/bearish)
• Midline Plot: Dashed gray line marks gap midpoint for price targets
• Inversion Markers: Intense colors show failed gaps (dark red/bullish failure, bright green/bearish failure)
• HTF Differentiation: Higher timeframe gaps shown in blue/teal hues
📖 Usage Guidelines
Multi-Timeframe Settings
• Higher Timeframe 1
Default: 30 | Range: Any > Chart TF | Controls primary confluence timeframe
• Show All Timeframes
Default: True | Toggles multi-TF gap displays
Gap Settings
• Source
Default: Close | Options: | Determines gap measurement method
• RVI Period
Default: 14 | Range: 1-50 | Sets momentum confirmation sensitivity
• RVI Value
Default 0.1 | 0 to see all IFVGs | Increase min RVI to see the most powerful IFVGs
✅ Best Use Cases
• Identifying confluence across timeframes
• Spotting institutional order blocks
• High-probability reversal trading
• Trend continuation confirmation
• Volatility breakout setups
⚠️ Limitations
• Repaints historical gap zones
• Requires understanding of FVG concepts
• Higher timeframe data latency
• Quality scores rely on RVI/ATR settings
💡 What Makes This Unique
First FVG indicator with true multi-timeframe processing
Adaptive parameters that auto-adjust to volatility
Quantifiable quality scoring system
Professional-grade dashboard with HTF tracking
🔬 How It Works
Gap Detection: Identifies FVGs using price relationships and RVI confirmation
Inversion Tracking: Monitors price breaches to flag failed gaps
Quality Assessment: Scores gaps based on size, momentum, and location
Adaptive Filtering: Adjusts parameters using ATR-based volatility analysis
Multi-TF Synthesis: Correlates gaps across user-selected timeframes
Visual Rendering: Displays only relevant, active gaps to prevent clutter
💡 Note:
Start with default settings and gradually adjust parameters after observing market interactions. Focus on gaps with quality scores above 7 that align with higher timeframe trends. Combine with price action at psychological levels for highest-probability setups. Remember that higher timeframe gaps generally carry more significance than current chart gaps.
MTF PO (3TF)Title: SmartMA Multi-Timeframe Signal Strategy
Description (English):
This indicator provides buy/sell signals based on a multi-timeframe adaptive moving average. It allows traders to align short-term entries with higher time-frame trends. The script integrates a trend-following logic that reacts to price crossovers and adaptive MA slope, helping traders reduce noise and improve entry precision.
概要(日本語)
このインジケーターは、複数時間足の適応型移動平均線(SmartMA)を用いて売買シグナルを生成します。下位足でのエントリーが、上位足のトレンドと一致するよう設計されており、ノイズの除去とトレード精度の向上に貢献します。価格のクロスとMAの傾きを用いたトレンドフォロー型ロジックを搭載しています。
特徴
上位時間足の移動平均(SmartMA)と価格のクロスを検出
傾きフィルターによるトレンド整合性チェック
上位足に合わせて下位足のシグナルを制限
チャート上にシンプルなBuy/Sellラベルを表示
EMA, SMA, RMAなどのカスタム選択が可能
使用方法
チャートにインジケーターを追加し、上位足(例:1時間)と現在の時間足(例:5分)を設定
トレンド方向に沿ったタイミングでエントリーを検討
複数フィルターを用いることで、レンジ相場での誤認識を回避可能
注意事項
本インジケーターは補助的な分析ツールです。過去のパフォーマンスが将来を保証するものではありません。
スクリプトは再描画しない設計ですが、時間足の切り替え等で見た目が変わる可能性があります。
戦略構築には他のリスク管理指標との併用を推奨します。
sideways market for strangleThis Pine Script is designed to identify **sideways or range-bound markets**, which are often ideal conditions for trading **options strangle strategies**. Here's a breakdown of what the script does:
---
### 🛠 **Purpose:**
To **detect low-volatility, sideways market conditions** where price is not trending strongly in either direction — suitable for **neutral options strategies like short strangles**.
---
### 📌 **Key Components:**
#### 1. **Inputs:**
- `RSI Length`: Default 14 — used for calculating the Relative Strength Index (RSI).
- `ADX Length`: Default 14 — used for calculating the Average Directional Index (ADX), DI+ (positive directional movement), and DI- (negative directional movement).
#### 2. **RSI Calculation:**
- `rsiValue` is calculated using the built-in `ta.rsi(close, rsiLength)`.
- A **sideways market** is expected when RSI is in the **40–60 range**, indicating lack of strong momentum.
#### 3. **ADX and Directional Indicators (DI+ and DI-):**
- `diPlus` and `diMinus` are calculated based on recent price movements and the True Range.
- `dx` (Directional Index) measures the strength of trend direction using the difference between DI+ and DI-.
- `adx` is a smoothed version of `dx` and represents **overall trend strength**.
#### 4. **Sideways Market Conditions:**
- **RSI Condition**: RSI is between 40 and 60.
- **ADX Condition**:
- `adx <= 25` → Weak or no trend.
- `adx < diPlus` and `adx < diMinus` → Confirms ADX is lower than directional components, reducing likelihood of a trending market.
#### 5. **Signal Plot:**
- A **green label below the bar** (`shape.labelup`) is plotted when both conditions are met.
- Indicates potential sideways market conditions.
---
### ✅ **Use Case:**
- This signal can help identify **low-volatility zones** suitable for **short strangles** or **iron condors**, where you profit from time decay while expecting the price to stay within a range.
Fibonacci - RSI OscillatorIndicator Overview
The Fibonacci RSI Oscillator calculates the Relative Strength Index (RSI) based on a dynamically adjusting level derived from recent price action and a fixed Fibonacci ratio (0.236). This differs from standard RSI, which is calculated directly on the closing price. The objective is to measure momentum relative to a level that adapts to recent peaks and valleys.
Core Calculation Mechanism
Peak/Valley Tracking: The script identifies the highest high (state_peak) and lowest low (state_valley) since the last detected change in short-term directional bias (state_dir).
Dynamic Level Calculation: A level (state_dyn_level) is calculated using a fixed 0.236 Fibonacci ratio relative to the tracked peak and valley:
If bias is up: state_dyn_level = state_peak - (state_peak - state_valley) * 0.236
If bias is down: state_dyn_level = state_valley + (state_peak - state_valley) * 0.236
This level adjusts automatically when a new peak or valley is established in the current directional bias. If price crosses the dynamic level against the current bias, the bias flips, and the level recalculates.
Optional Source Smoothing: The calculated state_dyn_level can optionally be smoothed using a user-selected moving average (SMA, EMA, WMA, HMA, RMA) before the RSI calculation.
RSI Calculation: The standard RSI formula is applied to the (optionally smoothed) state_dyn_level series to produce the primary oscillator value (val_primary_osc).
Signal Line: A moving average (type and length configurable) is calculated on the val_primary_osc to generate the val_sig_line.
Key Features & Components
Dynamic Fibonacci Level: The core input for the RSI calculation, based on recent peaks/valleys and the 0.236 ratio.
Fibonacci Level RSI: The primary oscillator line representing the RSI of the dynamic level.
Signal Line: A moving average of the primary RSI line.
Overbought/Oversold Levels: User-defined threshold lines.
Optional Source Smoothing: Configurable MA smoothing applied to the dynamic level before RSI calculation.
Gradient RSI Color : Option to color the primary RSI line based on its value relative to OB/Mid/OS levels.
Zone & OB/OS Fills: Visual fills for the 0-50 / 50-100 zones and specific fills when the RSI enters OB/OS territory.
Background Gradient: Optional vertical background color gradient based on the RSI's position between 0 and 100.
Configurable Parameters: Inputs for lengths, MA types, OB/OS levels, colors, line widths, and feature toggles.
Visual Elements Explained
Fibonacci Level RSI Line: The main plotted oscillator (color/gradient/width configurable).
Signal Line: The moving average of the RSI line (color/width/MA type configurable).
OB/OS Lines: Horizontal lines plotted at the set OB/OS levels (color/width configurable).
Mid-Line (50): Horizontal line plotted at 50 (color/width configurable).
Zone Fills:
Background fill between 0-50 and 50-100 (colors configurable).
Conditional fill between the RSI line and the 50 line when RSI > OB level or RSI < OS level (colors configurable).
Background Gradient: Optional background coloring where transparency varies vertically with the RSI level (base colors and transparency range configurable).
Configuration Options
Users can adjust the following parameters in the indicator settings:
Smoothing: Enable/disable dynamic level smoothing; set length and MA type.
RSI: Set the RSI calculation length.
Signal Line: Set the signal line smoothing length and MA type.
Levels: Define Overbought and Oversold numeric thresholds.
Visuals: Configure colors and widths for the RSI line, signal line, OB/OS lines, mid-line, zone fills, and OB/OS fills.
Gradients: Enable/disable and configure colors for the RSI line gradient; enable/disable and configure colors/transparency for the background gradient.
Interpretation Notes
The oscillator reflects the momentum of the dynamic Fibonacci level, not directly the price. Divergences, OB/OS readings, and signal line crossovers should be interpreted in this context.
The behavior may differ from standard RSI, potentially offering a smoother output or highlighting different momentum patterns depending on market structure and volatility.
As with any indicator, signals should be used in conjunction with other analysis methods and risk management practices. It is not designed as a standalone trading system.
Risk Disclaimer:
Trading involves significant risk. This indicator is provided for analytical purposes only and does not constitute financial advice. Past performance is not indicative of future results. Use sound risk management practices and never trade with capital you cannot afford to lose.
NR4 & NR7 with Breakouts [LuxAlgo]NR4 & NR7 with Breakouts is a simple indicator that utilizes the NR4 and NR7 candle patterns to display candle ranges and signals from range breakouts.
🔶 USAGE
The Narrow Range Patterns are candle formations determined by the last candle having a narrower (high-low) range than the previous number. This indicator showcases the 2 most recognized Narrow Range Patterns, which are the 4 and 7 bar variants (NR4 and NR7).
These patterns, introduced by Toby Crabel, are thought to provide insight for potential market breakouts by identifying periods of low volatility indicated by a candle with a small range. This is due to the idea that markets often move from periods of low volatility (contraction) to high volatility (expansion), and the NR4 and NR7 patterns help spot these transitions.
By utilizing these patterns, traders are better able to anticipate and respond to market shifts for better decision-making and risk management.
NOTE: These patterns have traditionally been studied on the Daily Timeframe Chart. This indicator allows the user to select a timeframe to generate these patterns from. It is suggested to be mindful of this when considering these patterns.
In this indicator, on the bar after the pattern is detected, the Narrow Range Bar will be highlighted with a zone, and lines displaying the range will extend from it. These ranges are helpful for providing levels to set limit orders and for managing risk.
Users are able to adjust which pattern they want visualized on their chart, please note;
All NR7s are NR4s but not all NR4s are NR7s.
Because of this, you will notice that when selecting "NR4" to display, the colors will change, but the detected ranges will not change.
🔹 Signals
When a Narrow Range Bar is detected, the script will wait for the price to close outside of the Range, then a signal will fire indicating the direction of exit. The signals are produced from the last NR4 or NR7 and will have the potential to fire from that range until a new NR4 or NR7 is detected.
After a signal fires, the logic goes into a "reset" period where it will wait for the price to reach the Range Mean before firing another signal.
These signals can be anticipated by considering the underlying logic and watching price approach the range extremities, and can be improved by utilizing other market information for confluence.
🔶 SETTINGS
Timeframe: Choose which timeframe to identify the NR4 and NR7 Pattern on. This must be Higher than the chart timeframe.
Pattern Type: Choose which (or all) patterns to display.