SPX to ES Gamma Level ConverterConverts SPX levels to ES and MES. User Inputs.
Converts SPX levels to ES and MES. User Inputs.
Converts SPX levels to ES and MES. User Inputs.
Converts SPX levels to ES and MES. User Inputs.
樞軸點和水平
Equal High/Low (EQH/EQL) [AlgoAlpha]OVERVIEW
This script detects and visualizes Equal High (EQH) and Equal Low (EQL) zones—key liquidity areas where price has previously stalled or reversed. These levels often attract institutional interest due to the liquidity buildup around them. The indicator is built to highlight such zones using dynamic thresholding, overbought/oversold RSI filtering, and adaptive mitigation logic to manage zone relevance over time.
CONCEPTS
Equal Highs/Lows are price points where the market has repeatedly failed to break past a certain high or low, hinting at areas where stop orders and pending interest may be concentrated. These areas are often prime targets for liquidity grabs or reversals. By combining this with RSI filtering, the script avoids false signals during neutral conditions and instead focuses on zones where market pressure is more directional.
FEATURES
Detection Logic: The script identifies EQH and EQL zones by comparing the similarity between recent highs or lows with a dynamic volatility threshold. The `tolerance` input allows users to control how strict this comparison is.
RSI Filtering: If enabled, it only creates zones when RSI is significantly overbought or oversold (based on the `state_thresh` input). This helps ensure zones form only in meaningful market conditions.
Zone Display: Bullish (EQL) zones are shown in grey, while bearish (EQH) zones are in blue. Two horizontal lines mark the zone using wick and body extremes, and a filled area visualizes the zone between them.
Zone Management: Zones automatically extend with price until they’re invalidated. You can choose whether a zone is removed based on wick or body sweeps and whether it requires one or two candle confirmations. Zones also expire after a customizable number of bars.
Alerts: Four alert conditions are built in—when a new EQH/EQL is formed and when one is mitigated—making it easy to integrate into alert-based workflows.
USAGE
Equal highs/lows can be used as liquidity markers, either as entry points or as take-profit targets.
This tool is ideal for liquidity-based strategies and helps traders map out possible reversal or sweep zones that often precede aggressive moves.
NY Key Open Lines (True UTC-4)📌 NY Key Open Lines (UTC-4 Based) — Indicator Description
This TradingView indicator automatically draws horizontal lines at four key New York session opening times:
08:30, 09:30, 10:30, and 18:00 (based on New York time, UTC-4).
✅ Key Features
Auto-draws lines at:
Custom line length per time: You can independently set how far each line extends to the right (in number of bars).
Label above line: Each line shows a clean time label (e.g., 09:30) slightly above the right edge of the line.
Customizable style:
Line color
Line width
Label font size
Label vertical offset
Really Key Levels█ OVERVIEW
This indicator shows the most useful and universally used key trading levels (and only those) in a visually appealing way. Its originality lies in the fact that it was developed due to being unable to find an indicator that wasn't cluttered with other features or far less relevant levels, or one that would indicate the bar causing the level (i.e., not just using a horizontal line over the whole chart), or one that was well-programmed and didn’t frequently refresh for many seconds for no obvious reason, taking far too long to do so for such a seemingly simple indicator.
█ FEATURES
Shows the most frequently used key levels in a visually appealing way
Indicates the bar that causes the level, with the line starting at that bar
Works correctly and consistently on both RTH and ETH charts
Lines can be optionally extended both left and right, if the user prefers
Works with US/European stocks and US futures (at least)
Configurable futures regular session (default time is for CME futures, e.g., ES/NQ, etc.)
Users can configure line colour, style, and thickness
Adjustable label locations to prevent overlap with other indicator labels
Nice defaults that look good, and a well-contrasting label text colour
Well-documented, high-quality, open-source code for those who are interested
█ CONCEPTS
The indicator shows the following levels by a line starting at the bar that causes them:
Current Day RTH High/Low (visible and updated only during RTH; visible with no further updates in the post-market)
Current Day RTH Open (only after the RTH open)
Pre-Market High/Low (as it develops in the pre-market and fixed after RTH open)
Previous Day RTH Close
Previous Day RTH High/Low
Previous Day Pre-Market High-Low
Two Days Ago RTH Close
Other levels may be added in future versions, if requested and if they are Really Key Levels.
Regarding futures: despite being a 23-hour market (for CME futures, 5 p.m. the previous day to 4 p.m. the current day), most trading activity takes place together with the RTH on stock exchanges in New York, 08:30 to 3 p.m. Central (Chicago) time. Therefore, a user-configurable regular market is defined at those times, with times before this (from 5 p.m. the previous day) being considered pre-market, and times after this (until 4 p.m.) being considered post-market.
Care was taken so that the code uses no hard-coded time zones, exchanges, or session times. For this reason, it can in principle work globally. However, it very much depends on the information provided by the exchange, which is reflected in built-in Pine Script variables (see Limitations below).
█ LIMITATIONS
Pre-market levels are not shown when viewing an RTH chart.
The indicator was developed and tested on US/European stocks and US futures. It may or may not work for stocks and futures in other countries (depending on their pre- and post-market definitions and what information the exchange provides to TradingView via the relevant built-in Pine Script variable). It does not work on other security types, especially those with a 24-hour market that don't have a uniquely defined daily close, implicit H/L time window, or a pre-market.
Hourly FVG with Swing Signals + Alertshighlights fair value gaps at the top of each hour during New york session. buy and sell signals with swing highs/ lows in the FVG.
Order Block Detector MacedoEnglish
This indicator automatically detects Order Blocks — zones where institutional players have previously acted. These areas behave as liquidity magnets, and price often revisits them before continuing its directional move.
After an OB is formed, the price tends to retrace between 90% and 50% of the previous leg before continuation. The most accurate entries occur when price returns to the origin, not when it breaks through.
When applied to assets with real volume data, analyze volume behavior as price approaches the OB:
For a bullish OB: if price approaches from above with strong selling volume, it’s often a bullish sign.
For a bearish OB: if price approaches from below with strong buying volume, it's usually a bearish signal.
A weak approach (low volume) in either case also suggests likely reversal.
Note: The cleaner and more untested the OB, the more likely price is to return and “clear” that liquidity zone.
Reversal Pro IndicatorReversal Pro Indicator
Buy-Sell indicator.
A. Long entry on Buy Hold till sell Signal
B. Long exit on Sell Signal
c. Short entry on Sell signal hold till buy signal
d. Short Exit on Buy signal
ETH to RTH Gap DetectorETH to RTH Gap Detector
What It Does
This indicator identifies and tracks custom-defined gaps that form between Extended Trading Hours (ETH) and Regular Trading Hours (RTH). Unlike traditional gap definitions, this indicator uses a specialized approach - defining up gaps as the space between previous session close high to current session initial balance low, and down gaps as the space from previous session close low to current session initial balance high. Each detected gap is monitored until it's touched by price.
Key Features
Detects custom-defined ETH-RTH gaps based on previous session close and current session initial balance
Automatically identifies both up gaps and down gaps
Visualizes gaps with color-coded boxes that extend until touched
Tracks when gaps are filled (when price touches the gap area)
Offers multiple display options for filled gaps (color change, border only, pattern, or delete)
Provides comprehensive statistics including total gaps, up/down ratio, and touched gap percentage
Includes customizable alert system for real-time gap filling notifications
Features toggle options for dashboard visibility and weekend sessions
Uses time-based box coordinates to avoid common TradingView drawing limitations
How To Use It
Configure Session Times : Set your preferred RTH hours and timezone (default 9:30-16:00 America/New York)
Set Initial Balance Period : Adjust the initial balance period (default 30 minutes) for gap detection sensitivity
Monitor Gap Formation : The indicator automatically detects gaps between the previous session close and current session IB
Watch For Gap Fills : Gaps change appearance or disappear when price touches them, based on your selected style
Check Statistics : View the dashboard to see total gaps, directional distribution, and touched percentage
Set Alerts : Enable alerts to receive notifications when gaps are filled
Settings Guide
RTH Settings : Configure the start/end times and timezone for Regular Trading Hours
Initial Balance Period : Controls how many minutes after market open to calculate the initial balance (1-240 minutes)
Display Settings : Toggle gap boxes, extension behavior, and dashboard visibility
Filled Box Style : Choose how filled gaps appear - Filled (color change), Border Only, Pattern, or Delete
Color Settings : Customize colors for up gaps, down gaps, and filled gaps
Alert Settings : Control when and how alerts are triggered for gap fills
Weekend Session Toggle : Option to include or exclude weekend trading sessions
Technical Details
The indicator uses time-based coordinates (xloc.bar_time) to prevent "bar index too far" errors
Gap boxes are intelligently limited to avoid TradingView's 500-bar drawing limitation
Box creation and fill detection use proper range intersection logic for accuracy
Session detection is handled using TradingView's session string format for reliability
Initial balance detection is precisely calculated based on time difference
Statistics calculations exclude zero-division scenarios for stability
This indicator works best on futures markets with extended and regular trading hours, especially indices (ES, NQ, RTY) and commodities. Performs well on timeframes from 1-minute to 1-hour.
What Makes It Different
Most gap indicators focus on traditional open-to-previous-close gaps, but this tool offers a specialized definition more relevant to ETH/RTH transitions. By using the initial balance period to define gap edges, it captures meaningful price discrepancies that often provide trading opportunities. The indicator combines sophisticated gap detection logic with clean visualization and comprehensive tracking statistics. The customizable fill styles and integrated alert system make it practical for both chart analysis and active trading scenarios.
MomentumBreak AI SwiftEdgeMomentumbreak AI SwiftEdge
Overview
This indicator combines two powerful concepts: Pivot Trendlines by HoanGhetti and the Squeeze Momentum Oscillator by AlgoAlpha. The goal of this mashup is to provide traders with a tool that identifies key trendline breakouts while simultaneously gauging market momentum through a dynamic gradient overlay. By integrating these two elements, the indicator offers a unique perspective on price action, helping traders spot high-probability breakout opportunities that align with momentum shifts.
How It Works
Pivot Trendlines:
The indicator uses HoanGhetti's Pivot Trendlines to identify pivot highs and lows based on user-defined settings (Pivot Length and Pivot Type).
Trendlines are drawn between these pivots, and breakouts are detected when the price crosses above (bullish) or below (bearish) the trendline.
Breakouts are visually highlighted with gradient boxes and an "AI: BREAK ⚡" label for clarity.
Squeeze Momentum Oscillator:
The Squeeze Momentum Oscillator calculates market momentum using a combination of volatility and price movement.
A dynamic midline (price_mid) is plotted, with its color indicating squeeze conditions (yellow for hypersqueeze, orange for normal squeeze, gray otherwise).
A gradient overlay is added above or below the midline to reflect momentum:
Green gradient for bullish momentum (vf > 0), placed below candles in an uptrend (close > price_mid) or above in a downtrend (close < price_mid).
Red gradient for bearish momentum (vf < 0), placed above candles in an uptrend or below in a downtrend.
The gradient's intensity increases as the price moves further from the midline, visually emphasizing momentum strength.
Breakout Confirmation:
Breakout signals are only generated when the momentum aligns with the breakout direction:
Bullish breakouts require bullish momentum (vf > 0).
Bearish breakouts require bearish momentum (vf < 0).
This alignment ensures that breakouts are more reliable and reduces false signals.
Default Settings
Pivot Length: 20 (determines the lookback period for identifying pivot points)
Pivot Type: Normal (can be set to "Fast" for more frequent pivots)
Repainting: True (trendlines may repaint as new pivots form; can be disabled)
Target Levels: False (optional horizontal levels at pivot points; can be enabled)
Extend: None (trendline extension; options: none, right, left, both)
Trendline Style: Dotted (options: dotted, dashed, solid)
Underlying Momentum Oscillator Length: 10
Swing Momentum Oscillator Length: 20
Squeeze Calculation Period: 14
Squeeze Smoothing Length: 7
Squeeze Detection Length: 14
Hyper Squeeze Detection Length: 5
Usage
This indicator is ideal for traders who want to combine trendline breakouts with momentum analysis:
Trendline Breakouts: Look for gradient boxes and "AI: BREAK ⚡" labels to identify confirmed breakouts. Bullish breakouts are marked with green boxes, and bearish breakouts with red boxes.
Momentum Confirmation: The gradient overlay (green for bullish, red for bearish) helps confirm the strength of the trend. Stronger gradients (less transparent) indicate stronger momentum.
Midline Crosses: Small triangles below (bullish) or above (bearish) candles indicate when the price crosses the dynamic midline, providing additional entry/exit signals.
Why This Combination?
The integration of Pivot Trendlines and Squeeze Momentum Oscillator creates a synergy that enhances trade decision-making:
Pivot Trendlines identify key structural levels in the market, making breakouts significant events.
The Squeeze Momentum Oscillator adds a momentum filter, ensuring that breakouts are supported by underlying market strength.
Together, they provide a more holistic view of price action, filtering out low-probability breakouts and highlighting opportunities where trendline breaks align with strong momentum.
Notes
This indicator does not use request.security() or barmerge.lookahead_on, so there is no risk of lookahead bias.
The script is designed to provide clear visual cues without making unrealistic claims about performance. It is intended as a tool for analysis, not a guaranteed trading system.
ZONE ZERO📊 Overview:
The "ZONE ZERO" indicator is a multi-functional trading overlay built to enhance price action analysis. It overlays:
- OHLC lines from a user-defined higher timeframe
- EMAs and SMAs for trend direction
- Two anchored VWAPs with customizable periods
- Custom candle coloring based on body structure ("stacking")
- This is ideal for traders who analyze confluence zones, trend strength, and want contextual
guidance from higher timeframes.
🛠️ User Inputs and Configuration
✅ Primary Inputs:
- Lookback (lb): Determines which historical bar from the higher timeframe (HTF) is referenced (e.g., 0 = current HTF bar, 1 = previous).
- Timeframe (tf): Selects the higher timeframe used to extract OHLC data.
🎨 Line Customization Inputs:
- Each HTF price level (open, high, low, close, midpoint) can be customized via:
- Line style (Solid, Dashed, Dotted)
📈 EMA Inputs:
- EMA 1: Fast EMA (default: 8)
- EMA 2: Medium EMA (default: 15)
- EMA 3: Long EMA (default: 200)
🧮 SMA Inputs:
- 4 daily SMAs (20, 50, 100, 200) calculated from the close price by default.
⚖️ VWAP Anchoring Options:
- Two anchored VWAPs, each with independent anchor options:
Session
Week
Month
Quarter
Year
📏 Technical Logic and Features
🔹 HTF OHLC + Midpoint Lines:
- Fetches open, high, low, close from the higher timeframe using request.security().
- Calculates the midpoint as (high + low)/2.
- Plots persistent horizontal lines for each level starting from the HTF bar timestamp.
- Each line is drawn dynamically from the HTF bar's origin to its end using line.set_xy1() and line.set_xy2().
🔸 EMA Plotting:
- EMAs are plotted on the current chart using ta.ema().
- Provides a real-time view of market momentum and directional bias.
🔸 Daily SMAs on Intraday Charts:
- Daily timeframe SMAs are fetched and plotted even on intraday charts using request.security().
- Allows higher timeframe trend overlays during intraday trading.
🔸 Anchored VWAPs (Volume-Weighted Average Price):
- VWAPs are calculated using (high + low)/2 instead of the default hlc3, providing a price-action centric view.
- Reset logic is based on the selected anchor (e.g., session reset, weekly, etc.).
- VWAP line color dynamically changes:
- Colors 1/2 when price is above VWAP
- Colors 3/4 when price is below
- This gives instant visual feedback on whether price is trading with or against volume-weighted trend direction.
🔸 Custom Candle Coloring (Stacked Candle Logic):
- Bullish Stacked Candle:
Current open is above midpoint of previous body
Current close is above open
- Bearish Stacked Candle:
Current open is below midpoint of previous body
Current close is below open
These conditions highlight strong continuation candles, and are colored:
- Green for bullish stacking
- Red for bearish stacking
- All other candles are not affected.
⚠️ Warning System
A smart warning label appears if the user selects a lower timeframe than the chart's resolution (e.g., selecting 1H on a daily chart), which can cause errors in data visibility.
✅ Best Use Cases:
- Intraday traders seeking HTF context
- Swing traders wanting EMA + VWAP confluence
- Price action traders spotting structure-based momentum
- Scalpers using stacked candle setups in combination with VWAP/EMA
Volume Peak BarsThis indicator helps identify the highest volume areas in a given time period. I've found that typically price is attracted to high volume areas. This indicator is based on the same principles as the Opening Range Breakout theory however instead of setting a "time" the indicator sets this range based on high volume. These levels also tend to be very strong support and resistance areas as lots of liquidity lies in these high volume pockets.
This indicator will automatically adjust the highest volume area for that given trading day.
You can also adjust the Time frame depending on your trading style - Swing vs. Scalp. ie. If you want to see a 1, 5 minute volume high for scalpers, or if you are more interested in a 15,30, 60 etc. minute range for swing trading.
The indicator also allows you to see 1 previous zone. All of this can be selected or unselected in the settings.
Thanks! Good Luck.
Liquidity Sweep + BoS + FVG (Up & Down)Description of the Alert – Liquidity Sweep + Break of Structure + Fair Value Gap (FVG)
This custom TradingView indicator is designed to identify high-probability market reversal or continuation setups based on smart money concepts (SMC). Specifically, it detects a 3-step price action pattern:
1. Liquidity Sweep:
A candle breaks above recent highs (buy-side liquidity) or below recent lows (sell-side liquidity), indicating that liquidity has been grabbed.
2. Break of Structure (BoS):
After the sweep, price breaks above a significant previous high (bullish BoS) or below a significant previous low (bearish BoS), confirming a directional shift.
3. Fair Value Gap (FVG):
A price imbalance is created — typically a gap between candle bodies — showing where price may return before continuing in the new direction.
When all three conditions occur in the correct sequence within a short timeframe, the indicator generates a visual alert on the chart and optionally triggers a TradingView alert notification.
How to Use It
1. Add the Script to Your Chart:
Save and add it to your chart.
2. Set Alerts:
Right-click on the chart or open the “Alerts” tab.
Choose the condition:
Buy Setup → Bullish liquidity sweep + BoS + FVG
Sell Setup → Bearish liquidity sweep + BoS + FVG
Choose how you want to be notified (popup, sound, email, mobile push).
3. Trading Strategy:
Buy Setup: Look for long positions when the indicator shows a green box and “BUY Setup” label. Wait for price to revisit the FVG zone and look for confirmation (e.g., bullish engulfing candle).
Sell Setup: Look for short positions when a red box and “SELL Setup” label appear. Confirm on price return to the bearish FVG zone.
4. Timeframe:
Best used on 1H, 4H or Daily charts for cleaner structure and stronger setups.
**Note:
This is a pattern-based alert, not a full entry system. Combine it with your own confirmations (e.g., MACD, RSI, candlestick formations) and risk management plan.
Automated Trading Session: London KillzoneAutomated Trading Session: London Killzone (Timezone & DST Aware)
This indicator automatically tracks the London Killzone session using intraday data and real-time timezone adjustments. Designed for traders who use session-based strategies, it draws the high/low box of the session and highlights it visually on the chart.
Key Features
Timezone & DST Support
Automatically adjusts to your selected timezone, accounting for daylight saving time changes to ensure accurate session timing.
Custom Session Input
Allows you to define the start and end time of the London Killzone to suit your trading style.
Visual Session Boxes
Draws a dynamic box marking the session's high and low after it ends, with optional background coloring and session labeling.
Alert Trigger
Built-in alert condition that notifies you when the session ends—helpful for automation or manual review.
Info Table Overlay
Displays the active session time and timezone directly on the chart for quick reference.
Suggested Use
This tool is useful for identifying significant market ranges formed during the London Killzone, which is often associated with institutional activity and early market volatility.
Asia Session Range @mrxautrades🗺️ Asia Session Range @mrxautrades
This indicator visually highlights the Asian session range and its potential extensions during the New York session open. It's perfect for traders who build strategies around price action during key sessions.
📌 Key Features:
✅ Asian Session Range
Automatically draws a box showing the high and low of the Asian session (default: 19:00 to 00:01).
Customizable color, visibility, and extension duration of the range lines.
✅ Deviations (Extensions)
Optionally plots multiple deviation levels above and below the range (based on range size), acting as projected support/resistance levels.
✅ Lines & Labels
Displays horizontal lines for HIGH, LOW, and MID of the Asian range once the session ends, with customizable label styles and colors.
✅ Conditional Display by Timeframe
You can limit visibility of the indicator based on chart timeframe (default: only visible on 60-minute or lower timeframes).
⚙️ Customizable Inputs:
Time ranges for Asia and NY sessions
Box, line, and label colors
Number of deviation levels
Label style: plain text or with background
Line duration (in hours)
🧠 Best for:
Strategies based on Asian range breakouts
Using prior session levels as support/resistance
Forex, index, or crypto intraday traders
ORB фон (США + Европа, 5 мин)The opening of the European and American session is displayed with vertical highlighting. 5 minute tf
Открытие европейской и американской сессии отображается вертикальной подсветкой. 5 минутный тф
Liquidity Sweep AlertThis alert script detects liquidity sweeps, which occur when price briefly breaks above a recent high or below a recent low, then quickly reverses. These events often indicate institutional stop hunts and potential market reversals. The alert is triggered when a candle exceeds a defined high/low range but fails to close beyond it—signaling a failed breakout. It's ideal for identifying high-probability reversal zones in both trending and ranging markets.
Multi-Confluence Adv. Rejection ID - v5Combines Order Blocks, Single Candle Order Blocks, and Fair Value Gaps along with buy and sell signals. The premise is identifying zones where these things overlap, price reentering that zone, and rejecting with higher than average volume. Rejection is defined as entering zone being drawn based on the parameters of identifying the order block types, etc, price reentering either from above or below and then exiting with higher than average volume support
VAPI with MA (no ta.sum)## 📘 Indicator: **VAPI with MA (no ta.sum)**
This custom indicator is a version of the **Volume Adjusted Price Indicator (VAPI)** combined with a selectable **moving average (MA)**. It manually computes the volume-weighted price momentum over a period and smooths it with a chosen type of moving average. The purpose is to assess directional volume pressure and potential trend shifts.
---
### 🔧 Inputs:
* **VAPI Length (`length`)**: Number of bars used for calculating the VAPI.
* **MA Length (`maLength`)**: Number of bars for smoothing VAPI with a moving average.
* **MA Type (`maType`)**: Type of moving average to apply (options: SMA, EMA, WMA, RMA, HMA, VWMA).
---
### 📈 Calculation Logic:
1. **x = (2 × close − high − low) / (high − low)**
Measures where the closing price lies within the candle range:
* Close at high → x = 1
* Close at low → x = -1
* Close in the middle → x = 0
A small constant (0.0001) is used to avoid division by zero.
2. **volX = volume × x**
This adjusts volume based on the candle's directional momentum.
3. **Manual summation over `length` bars** (instead of using `ta.sum`):
* `tva` accumulates the volume-adjusted values (`volX`)
* `tv` accumulates the total volume
4. **VAPI = 100 × (tva / tv)**
Gives a percentage-style oscillator:
* Positive values → bullish pressure
* Negative values → bearish pressure
5. **MA = Moving Average of VAPI**
Type of MA is user-defined (SMA, EMA, WMA, RMA, HMA, or VWMA).
---
### 📊 Plots:
* **VAPI Line** — Gray line (shows raw volume-adjusted price impulse).
* **MA Line** — Orange line (smoothed VAPI).
* **Zero Line** — Dashed horizontal reference at 0:
* Crossovers may suggest trend direction changes.
---
### 💡 Use Cases:
* **Volume momentum analysis**: Shows if volume supports current price action.
* **Divergence spotting**: Compare VAPI behavior against price movements.
* **Trend filtering**: The MA smooths out noise for clearer signals.
* **Entry/exit signals**: Use crossovers of VAPI/MA or zero line as potential triggers.
[WellaG] High/Low Key LevelsA Key Level Indicator
- Asia and London High and lows
- Previous Daily, Weekly, Monthly HIgh and lows
- Daily Pivots
Money Flow Index (mit Pivot-Divergenzen)SKb_
This indicator enhances the traditional Money Flow Index (MFI) by adding a pivot-based divergence detection system and visual background signals for overbought and oversold conditions.
✨ Key Features:
✅ Money Flow Index (MFI) Plot:
Plots the MFI value with customizable length (default 14).
✅ Overbought/Oversold Highlighting:
Automatically shades the background light green when MFI > 80 and light red when MFI < 20 for better visual alerts.
✅ Pivot-Based Divergence Detection:
Detects both bullish and bearish divergences between MFI and price using pivot highs and lows (configurable pivot strength).
– Bullish divergence: price makes a lower low, MFI makes a higher low
– Bearish divergence: price makes a higher high, MFI makes a lower high
✅ Divergence Signals Plotted on Chart:
Plots lime green triangles below bars for bullish divergence and red triangles above bars for bearish divergence.
✅ Customizable Pivot Sensitivity:
The pivotLen input allows you to adjust how significant a swing high/low must be to qualify as a pivot.
Usage:
This indicator helps traders spot potential trend reversals by combining momentum (MFI) with divergence signals based on pivot points.
It can be used standalone or as a confirmation tool alongside other technical indicators.
Recommended for swing traders, momentum traders, or anyone wanting to identify divergences with a reduced noise level compared to bar-by-bar divergence detection.
Prophet Profits Combo ReversalThis mixes smart money concept candles with reversal signals and also an ema to show consolidation forming.
Unified ATR Zones### 🧠 **Purpose of the Script**
This indicator draws **ATR-based support and resistance levels** directly on the price chart (overlay). It's a clean and minimal visualization of current volatility zones derived from the **ATR (Average True Range)**.
---
### ⚙️ **1. User Inputs**
```pinescript
atr_length = input.int(14, "ATR Period", minval=1)
smoothing = input.string("RMA", "Smoothing", options= )
use_prev_close = input(false, "Use Previous Close")
```
* `atr_length`: The number of bars to calculate the ATR (default 14).
* `smoothing`: Type of moving average used to smooth the ATR.
* `use_prev_close`: If true, use the previous close (`close `) as the base level. If false, use the current close.
---
### 📐 **2. ATR Calculation**
```pinescript
true_range = ta.tr(true)
atr_value = ma_function(true_range, atr_length)
```
* `true_range`: Measures the maximum of:
* High - Low
* High - Previous Close
* Low - Previous Close
* `atr_value`: Smoothed version of `true_range` using the selected MA type.
---
### 📏 **3. Base Level**
```pinescript
base_level = use_prev_close ? close : close
```
* This is the price reference point for plotting zones:
* Can be today's close or yesterday’s close, based on user input.
---
### 🧱 **4. Zone Plotting**
```pinescript
plot(base_level, "Base", color=color.gray, linewidth=1)
plot(base_level + atr_value, "1 ATR Long", color=color.green)
plot(base_level + atr_value * 1.5, "1.5 ATR Long", color=color.blue)
plot(base_level - atr_value, "1 ATR Short", color=color.red)
plot(base_level - atr_value * 1.5, "1.5 ATR Short", color=color.maroon)
```
* **Base level** is plotted in gray.
* **+1 ATR and +1.5 ATR levels** are shown above as resistance or targets (green/blue).
* **–1 ATR and –1.5 ATR levels** are plotted below as support or potential reversal zones (red/maroon).
---
### 📋 **5. Info Panel**
```pinescript
var table info_table = table.new(position.top_right, 2, 1)
table.cell(info_table, 0, 0, "ATR: " + str.tostring(atr_value, "#.##"), bgcolor=color.new(color.gray, 90))
```
* A small **table in the top-right corner** shows the current ATR value.
* Background is semi-transparent gray for a clean look.
---
### ✅ **Use Case**
This script is useful for:
* Visualizing real-time **volatility zones**.
* Planning entries/exits or managing risk based on market volatility.
* Identifying breakout or retracement opportunities at dynamic ATR-based levels.
---
Would you like to add **alerts** when price touches any of these zones, or include more zone levels (e.g. 0.5 ATR)?