Historical Volatility with HV Average & High/Low Trendlines
### 📊 **Indicator Title**: Historical Volatility with HV Average & High/Low Trendlines
**Version**: Pine Script v5
**Purpose**:
This script visualizes market volatility using **Historical Volatility (HV)** and enhances analysis by:
* Showing a **moving average** of HV to identify volatility trends.
* Marking **high and low trendlines** to highlight extremes in volatility over a selected period.
---
### 🔧 **Inputs**:
1. **HV Length (`length`)**:
Controls how many bars are used to calculate Historical Volatility.
*(Default: 10)*
2. **Average Length (`avgLength`)**:
Number of bars used for calculating the moving average of HV.
*(Default: 20)*
3. **Trendline Lookback Period (`trendLookback`)**:
Number of bars to look back for calculating the highest and lowest values of HV.
*(Default: 100)*
---
### 📈 **Core Calculations**:
1. **Historical Volatility (`hv`)**:
$$
HV = 100 \times \text{stdev}\left(\ln\left(\frac{\text{close}}{\text{close} }\right), \text{length}\right) \times \sqrt{\frac{365}{\text{period}}}
$$
* Measures how much the stock price fluctuates.
* Adjusts annualization factor depending on whether it's intraday or daily.
2. **HV Moving Average (`hvAvg`)**:
A simple moving average (SMA) of HV over the selected `avgLength`.
3. **HV High & Low Trendlines**:
* `hvHigh`: Highest HV value over the last `trendLookback` bars.
* `hvLow`: Lowest HV value over the last `trendLookback` bars.
---
### 🖍️ **Visual Plots**:
* 🔵 **HV**: Blue line showing raw Historical Volatility.
* 🔴 **HV Average**: Red line (thicker) indicating smoothed HV trend.
* 🟢 **HV High**: Green horizontal line marking volatility peaks.
* 🟠 **HV Low**: Orange horizontal line marking volatility lows.
---
### ✅ **Usage**:
* **High HV**: Indicates increased risk or potential breakout conditions.
* **Low HV**: Suggests consolidation or calm markets.
* **Cross of HV above Average**: May signal rising volatility (e.g., before breakout).
* **Touching High/Low Levels**: Helps identify volatility extremes and possible reversal zones.
Bands and Channels
CM_Williams_Vix_Fix v5The Kompas Volatility Signal (KVS) is a smart volatility-based indicator powered by the Williams Vix Fix (WVF) method. It’s designed to detect moments of heightened market fear or extreme price compression — often signaling potential reversal zones or deep pullbacks.
Key Features:
⚡️ Histogram spikes that react to price capitulation
📈 Optional Bollinger Bands and percentile thresholds for filtering extremes
🔄 Dual EMA smoothing (WVF EMA 10 & 50) to track volatility momentum
🛠️ Flexible settings for advanced traders to adjust sensitivity
How to Use: Use KVS to identify volatility spikes that align with oversold conditions or after major downswings. When paired with other momentum tools (like RSI or MACD), it becomes a powerful signal for early trend reversals or accumulation zones.
TR37The 377-day EMA is a long-term trend indicator, giving more weight to recent prices compared to an SMA. Traders may use it to:
Identify long-term trends (e.g., price above EMA = bullish, below = bearish).
Spot potential support/resistance levels.
Confirm trend direction for swing or position trading.
Squeeze & Breakout Confirmation StrategyThis strategy focuses on identifying periods of low volatility (Bollinger Band Squeeze) and then confirming the direction of the subsequent breakout with momentum, volume, and candle strength.
Concepts Applied: Bollinger Bands (Squeeze), RSI (Momentum), Market Volume (Conviction), Candle Size (Strength)
Buy Signal:
Bollinger Band Squeeze: Look for a period where the Bollinger Bands contract significantly, indicating low volatility and consolidation. The bands should be very close to the price action.
RSI Breakout: After the squeeze, wait for the price to break decisively above the upper Bollinger Band. Simultaneously, the RSI should break above 60 (or even 70), indicating strong bullish momentum.
Volume Surge: The breakout candle should be accompanied by a significant increase in trading volume, ideally above its recent average, confirming strong buying interest.
Strong Bullish Candle: The breakout candle itself should be a large, bullish candle (e.g., a strong green candle with a small upper wick or a bullish engulfing pattern), demonstrating buyer conviction.
Sell Signal (Short):
Bollinger Band Squeeze: Look for a period where the Bollinger Bands contract significantly.
RSI Breakdown: After the squeeze, wait for the price to break decisively below the lower Bollinger Band. Simultaneously, the RSI should break below 40 (or even 30), indicating strong bearish momentum.
Volume Surge: The breakdown candle should be accompanied by a significant increase in trading volume, ideally above its recent average, confirming strong selling interest.
Strong Bearish Candle: The breakdown candle itself should be a large, bearish candle (e.g., a strong red candle with a small lower wick or a bearish engulfing pattern), demonstrating seller conviction.
Poprzedni Dzień – Box 5M + gruba środkowa liniaThe script draws a box which has bottom at the low of the previous trading day and high at the top of the previous trading day.
Advanced VWAP (Webull-style + Bands + Anchor)//@version=6
//© 2025 YourNameHere (optional)
//This script plots an advanced VWAP with optional bands and anchoring
/*
────────────────────────────────────────────────────────────
🔹 Advanced VWAP (Webull-style + Bands + Anchor)
────────────────────────────────────────────────────────────
This indicator replicates Webull-style VWAP behavior by:
• Calculating VWAP during only regular trading hours (9:30 AM – 4:00 PM ET)
• Optionally including pre-market and post-market sessions
• Supporting VWAP bands at ±1σ and ±2σ for volatility analysis
• Optional anchor feature to start VWAP from a custom price level
────────────────────────────────────────────────────────────
📌 Features:
────────────────────────────────────────────────────────────
✅ VWAP calculated using (High + Low + Close) / 3
✅ Optional inclusion of extended hours
✅ Toggleable ±1σ and ±2σ bands (standard deviation)
✅ Anchor VWAP to any price breakout (e.g., yesterday's high)
────────────────────────────────────────────────────────────
🛠 How to Use:
────────────────────────────────────────────────────────────
1. Toggle "Include Extended Hours" to match your broker (like Webull).
2. Use anchor mode to begin VWAP when price crosses a key level.
3. Use bands to identify overbought/oversold zones.
4. Combine with price action for momentum/bounce trades.
────────────────────────────────────────────────────────────
🔔 Tips:
────────────────────────────────────────────────────────────
• Use this VWAP on 1m–15m charts for intraday momentum.
• Set anchor to a specific price like previous day open/high/low.
• Bands are useful for scalping and mean-reversion entries.
────────────────────────────────────────────────────────────
📧 Created by: Adebola| © 2025
────────────────────────────────────────────────────────────
*/
Rainbow Price Chart This indicator is a technical and on-chain analysis tool for Bitcoin, designed to help investors better understand the different phases of the market cycle and underlying sentiment. It directly overlays on the price chart (overlay=true).
Indicator Name: "Rainbow Price Chart & V/T Ratio Signals"
General Purpose:
It combines two popular methodologies for visualizing Bitcoin's value and sentiment: the classic "Rainbow Price Chart" and signals derived from the "Value per Transaction Ratio" (V/T Ratio) based on blockchain data. It is ideal for long-term investors looking for strategic entry/exit points.
Main Components:
Rainbow Price Chart:
Concept: Divides Bitcoin's price range into different market "sentiment zones" (e.g., "Bubble Zone," "FOMO Zone," "HODL Zone," "Accumulation Zone," "Buy Zone," "Fire Sale Zone") using colored bands. These bands are calculated as ascending and descending multiples of a base Exponential Moving Average (EMA), configurable by default to 200 periods.
Visualization: The zones are represented with transparent color fills on the price chart. A detailed legend in the top right corner of the chart explains the meaning of each color and sentiment zone.
Important Note: This type of chart is designed to be viewed and analyzed correctly on a logarithmic price scale. The indicator includes a visual reminder to activate this scale.
Value per Transaction (V/T) Ratio Signals:
Concept: Measures the average value per transaction on the Bitcoin blockchain by dividing the total transacted volume in USD by the number of transactions. This ratio is smoothed with an Exponential Moving Average (by default, 7 periods) and is framed within a dynamic Linear Regression Channel (LRC) based on standard deviation.
Signal Generation: Based on the position of the smoothed V/T Ratio within this LRC channel, the indicator generates signals directly on the price chart, such as:
"BOTTOM": Low price, V/T Ratio in the lower band of the LRC.
"SEMI-LOW" / "SEMI-HIGH": Intermediate phases within the channel.
"ATH" (All-Time High): Potentially overvalued price, V/T Ratio in the upper band of the LRC.
On-Chain Data: The indicator requests external daily on-chain data for total transacted volume (TVTVR) and number of transactions (NTRAN) from the Bitcoin blockchain.
Diagnostic Panes: Includes plots of the raw on-chain data (volume and number of transactions) in a separate pane, which are useful for debugging or verifying the data source. The lines for the V/T Ratio itself and its LRC channel are not plotted by default but can be activated in the code for deeper analysis.
Ideal for:
Bitcoin investors and "hodlers" who desire a visual tool that combines price-based market cycle context with fundamental signals derived from on-chain activity, to help identify key moments for accumulation or potential distribution.
Considerations:
Relies on the availability of external on-chain data (QUANDL:BCHAIN) within TradingView.
Functions best on a daily timeframe.
SOFIA - Kısa Vade Saldırı GöstergesiOf course babe! 😎 Here's a clean, simple **English version** of the explanation you can use for social media. Short, punchy, and sounds smart without being boring. Ready? 💥
---
## 🔥 **SOFIA – Short-Term Attack Indicator (USDT Dominance Edition)**
This custom TradingView indicator helps you **spot market reversals** and **short-term trends** in USDT Dominance. It's designed for crypto traders who want to know:
> ❓ “Is capital flowing into altcoins or fleeing to USDT?”
---
### 🧩 **What’s Inside?**
1. ### 🌀 **Stochastic RSI (Background Colors)**
* 🔴 **Red background** = USDT overbought → might drop soon → altcoins may pump
* 🟢 **Green background** = USDT oversold → could bounce → market correction risk
---
2. ### 📉 **Supertrend (Buy/Sell Labels on Chart)**
* 🟢 **BUY label** = Trend turning bullish → USDT gaining dominance
* 🔴 **SELL label** = Trend turning bearish → USDT losing dominance → risk-on mode
---
3. ### ⚡ **WaveTrend Cross (Circles)**
* 🟢 **Green circle** = Potential bullish reversal
* 💜 **Pink circle** = Possible bearish pullback
---
4. ### 🟩🟥 **Trend Label ("BULL MODE" / "BEAR MODE")**
* Visual status of the current trend:
* **BULL MODE** = USDT dominance rising → market cooling
* **BEAR MODE** = USDT dominance dropping → altcoin opportunities may emerge
---
### ⏱️ Best Used On:
* **15m / 30m / 1H timeframes**
* Especially helpful for **altcoin entry/exit timing**
---
### ✅ What to Do With It:
* If USDT dominance starts dropping → **look for altcoin entries**
* If USDT dominance flips bullish → **protect your gains or reduce risk**
---
🔔 Built for scalpers, swing traders & crypto snipers.
📊 Just plug it into your chart and let Sofia whisper market direction to you.
---
**Want the code or setup tutorial?**
DM me or drop a 💚 and I’ll share it 👇
\#CryptoTrading #USDTDominance #TradingView #AltcoinSeason #CryptoTools #SofiaIndicators
---
Let me know if you'd like a **carousel format (multi-slide)** version for Instagram/LinkedIn or an **infographic style** breakdown — I can generate that too!
The SW Volume IndicatorWhitwell testing purposes to test some things. Uses metrics to make changes on chart.
Rolling VWAP LevelsRolling VWAP Levels Indicator
Overview
Dynamic horizontal lines showing rolling Volume Weighted Average Price (VWAP) levels for multiple timeframes (7D, 30D, 90D, 365D) that update in real-time as new bars form.
Who This Is For
Day traders using VWAP as support/resistance
Swing traders analyzing multi-timeframe price structure
Scalpers looking for mean reversion entries
Options traders needing volatility bands for strike selection
Institutional traders tracking volume-weighted fair value
Risk managers requiring dynamic stop levels
How To Trade With It
Mean Reversion Strategies:
Buy when price is below VWAP and showing bullish divergence
Sell when price is above VWAP and showing bearish signals
Use multiple timeframes - enter on shorter, confirm on longer
Target opposite VWAP level for profit taking
Breakout Trading:
Watch for price breaking above/below key VWAP levels with volume
Use 7D VWAP for intraday breakouts
Use 30D/90D VWAP for swing trade breakouts
Confirm breakout with move beyond first standard deviation band
Support/Resistance Trading:
VWAP levels act as dynamic support in uptrends
VWAP levels act as dynamic resistance in downtrends
Multiple timeframe VWAP confluence creates stronger levels
Use standard deviation bands as additional S/R zones
Risk Management:
Place stops beyond next VWAP level
Use standard deviation bands for position sizing
Exit partial positions at VWAP levels
Monitor distance table for overextended moves
Key Features
Real-time Updates: Lines move and extend as new bars form
Individual Styling: Custom colors, widths, styles for each timeframe
Standard Deviation Bands: Optional volatility bands with custom multipliers
Smart Labels: Positioned above, below, or diagonally relative to lines
Distance Table: Shows percentage distance from each VWAP level
Alert System: Get notified when price crosses VWAP levels
Memory Efficient: Automatically cleans up old drawing objects
Settings Explained
Display Group: Show/hide labels, font size, line transparency, positioning
Individual VWAP Groups: Color, line width (1-5), line style for each timeframe
Standard Deviation Bands: Enable bands with custom multipliers (0.5, 1.0, 1.5, 2.0, etc.)
Labels Group: Position (8 options including diagonal), custom text, price display
Additional Info: Distance table, alert conditions
Technical Implementation
Uses rolling arrays to maintain sliding windows of price*volume data. The core calculation function processes both VWAP and standard deviation efficiently. Lines are created dynamically and updated every bar. Memory management prevents object accumulation through automatic cleanup.
Best Practices
Start with 7D and 30D VWAP for most strategies
Add 90D/365D for longer-term context
Use standard deviation bands when volatility matters
Position labels to avoid chart clutter
Enable distance table during high volatility periods
Set alerts for key VWAP level breaks
Market Applications
Forex: Major pairs during London/NY sessions
Stocks: Large cap names with good volume
Crypto: Bitcoin, Ethereum, major altcoins
Futures: ES, NQ, CL, GC with continuous volume
Options: Use SD bands for strike selection and volatility assessment
Opening Range Breakout (15 mins Range)Take the guesswork out of your trading with the Opening Range Breakout Pro script. This tool automatically marks the high and low of the first 15 minutes of the NYSE session, then highlights the first candle to break out above or below this range—removing ambiguity from your trade entries.
The opening range is one of the most powerful concepts in day trading. By identifying the price range set during the market’s first minutes, you gain a clear framework for your trades. When price breaks out above the range, it often signals a strong bullish move; a break below signals bearish momentum. This script visually marks these moments, so you can react quickly and confidently.
Why use Opening Range Breakout Pro?
• Defined Entry and Exit Points: The script gives you clear, objective breakout levels—no more guessing when to enter a trade.
• Removes Emotional Trading: With visual cues for breakouts, you can follow a systematic approach and avoid hesitation or FOMO.
• Backtested, Time-Tested Strategy: The opening range breakout has been used by professional traders for decades to capture early trends and maximize profit potential.
• High Reward Potential: By capitalizing on the volatility and momentum of the opening session, traders often catch the best moves of the day.
• Easy to Use: Just add to your chart—no configuration needed. The script works on any NYSE stock, on a 5-minute chart.
How it works:
• Draws the opening 15-minute high and low as orange lines.
• Labels the range prices for quick reference.
• Marks the first candle to close above the range with an orange ▲, and the first to close below with an orange ▼.
Take control of your trading day, remove uncertainty, and trade with confidence—just like the pros.
TZADIKAOTTZA1.2 - Triple Convergence🚀 *TZADIK – Triple Convergence*
The ultimate convergence indicator that brings clarity through the power of consensus.
*What’s Inside?*
A smart fusion of *3 powerful momentum-based indicators*:
* *SMI (Stochastic Momentum Index)*
* *Stochastic RSI*
* *CCI Stochastic*
📊 Each one generates its own buy/sell signal — and TZADIKAOT combines them into a clear, unified consensus:
* ✅ *3/3 BUY / SELL* – Strong entry signals
* ⚠ *2/3 BUY / SELL* – Moderate signals worth watching
* ⚪ *Neutral* – No consensus yet
🎯 *Features*:
✔ Dynamic score histogram
✔ Color-coded background zones
✔ Visual arrows + status labels
✔ Real-time signal table
✔ Built-in alerts for full consensus
*Who is it for?*
Traders who want structured, data-driven signals instead of noise — and a single, trustworthy indicator to guide their decisions.
💡 Designed for clarity, precision, and ease of use on *any timeframe*. No more guesswork. Just signals that matter.
First 15-Min Candle High/Low with Breakout AlertsDescription (for Publishing on TradingView):
This Pine Script automatically plots the high and low of the first 15-minute candle of each trading day.
✅ Features:
🟢 Green horizontal line for High
🔴 Red horizontal line for Low
Automatically resets each day
Designed for Indian markets (IST), with market open at 09:15 AM
💡 These levels are commonly used by intraday traders as breakout zones, support/resistance, or reference points for scalping and price action strategies.
📊 Best Used On:
1-min, 5-min, or 15-min timeframes
Instruments like Bank Nifty, Nifty, major NSE stocks, and global markets with adjustable timing
📌 For custom time zones, adjust the session timestamps.
First 15-min Candle High/LowFirst 15-Min Candle High/Low – Intraday Range Indicator
This script plots the High and Low of the first 15-minute candle of the trading day using:
🟢 Green horizontal line for the first 15-min High
🔴 Red horizontal line for the first 15-min Low
These levels are commonly used by intraday traders as:
Breakout zones
Support/resistance levels
Entry/exit reference points
The script is designed to reset daily and is especially helpful for index and equity traders operating during market open volatility.
⏰ Optimized for markets operating in IST (Indian Standard Time), such as NSE/BSE, starting at 09:15 AM.
🛠️ How to Use:
Apply on 15-minute or lower timeframes
Ideal for breakout strategies, opening range setups, or volatility scalping
Volatility-Adjusted Momentum Score (VAMS) [QuantAlgo]🟢 Overview
The Volatility-Adjusted Momentum Score (VAMS) measures price momentum relative to current volatility conditions, creating a normalized indicator that identifies significant directional moves while filtering out market noise. It divides annualized momentum by annualized volatility to produce scores that remain comparable across different market environments and asset classes.
The indicator displays a smoothed VAMS Z-Score line with adaptive standard deviation bands and an information table showing real-time metrics. This dual-purpose design enables traders and investors to identify strong trend continuation signals when momentum persistently exceeds normal levels, while also spotting potential mean reversion opportunities when readings reach statistical extremes.
🟢 How It Works
The indicator calculates annualized momentum using a simple moving average of logarithmic returns over a specified period, then measures annualized volatility through the standard deviation of those same returns over a longer timeframe. The raw VAMS score divides momentum by volatility, creating a risk-adjusted measure where high volatility reduces scores and low volatility amplifies them.
This raw VAMS value undergoes Z-Score normalization using rolling statistical parameters, converting absolute readings into standardized deviations that show how current conditions compare to recent history. The normalized Z-Score receives exponential moving average smoothing to create the final VAMS line, reducing false signals while preserving sensitivity to meaningful momentum changes.
The visualization includes dynamically calculated standard deviation bands that adjust to recent VAMS behavior, creating statistical reference zones. The information table provides real-time numerical values for VAMS Z-Score, underlying momentum percentages, and current volatility readings with trend indicators.
🟢 How to Use
1. VAMS Z-Score Bands and Signal Interpretation
Above Mean Line: Momentum exceeds historical averages adjusted for volatility, indicating bullish conditions suitable for trend following
Below Mean Line: Momentum falls below statistical norms, suggesting bearish conditions or downward pressure
Mean Line Crossovers: Primary transition signals between bullish and bearish momentum regimes
1 Standard Deviation Breaks: Strong momentum conditions indicating statistically significant directional moves worth following
2 Standard Deviation Extremes: Rare momentum readings that often signal either powerful breakouts or exhaustion points
2. Information Table and Market Context
Z-Score Values: Current VAMS reading displayed in standard deviations (σ), showing how far momentum deviates from its statistical norm
Momentum Percentage: Underlying annualized momentum displayed as percentage return, quantifying the directional strength
Volatility Context: Current annualized volatility levels help interpret whether VAMS readings occur in high or low volatility environments
Trend Indicators: Directional arrows and change values provide immediate feedback on momentum shifts and market transitions
3. Strategy Applications and Alert System
Trend Following: Use sustained readings beyond the mean line and 1σ band penetrations for directional trades, especially when VAMS maintains position in upper or lower statistical zones
Mean Reversion: Focus on 2σ extreme readings for contrarian opportunities, particularly effective in sideways markets where momentum tends to revert to statistical norms
Alert Notifications: Built-in alerts for mean crossovers (regime changes), 1σ breaks (strong signals), and 2σ touches (extreme conditions) help monitor multiple instruments for both continuation and reversal setups
Breakout Strategy with Dynamic SL LabelDescription:
This script identifies breakout trading opportunities using adaptive support and resistance levels, adjusted dynamically based on market volatility. A trade signal is generated only when a breakout candle is followed by a confirming close in the same direction. The signal is displayed on the chart as a labeled marker that includes a suggested stop-loss level based on the highest high or lowest low of the past 10 bars, ensuring structure-aware risk management.
🧩 How it Works:
Adaptive S/R Zones: Based on volatility-normalized swing highs/lows using ATR. These zones automatically adjust to changing market conditions.
Confirmation Logic: Trade signals only appear after the second candle confirms the breakout, helping reduce false signals.
Single Signal Rule: Only one buy or sell label is printed per breakout level, avoiding repeated triggers.
Embedded Stop Loss in Label: SL value is calculated from the 10-bar high (for shorts) or low (for longs) and included in the signal label.
⚙️ User Inputs Explained:
Base Swing Strength: Controls the pivot sensitivity; higher values detect stronger reversal points.
Line Duration: Number of bars that horizontal S/R levels remain visible.
ATR Period: Length used to calculate volatility for adaptive S/R logic.
Volatility Sensitivity: Adjusts how responsive the S/R zone strength is to volatility. Higher = more responsive.
Stop-Loss Lookback (Bars): Defines the number of candles to reference when calculating SL from high/low structure.
Max Lines Stored: Controls chart clutter by limiting how many S/R zones are kept active.
🟩 Ideal for:
Breakout traders who value clean structure, confirmation, and built-in risk logic.
Scalpers and swing traders looking for adaptive, low-latency signals without repainting.
Chartists who want minimal indicators but maximum signal clarity.
Uptrick: Fusion Trend Reversion SystemOverview
The Uptrick: Fusion Trend Reversion System is a multi-layered indicator designed to identify potential price reversals during intraday movement while keeping traders informed of the dominant short-term trend. It blends a composite fair value model with deviation logic and a refined momentum filter using the Relative Strength Index (RSI). This tool was created with scalpers and short-term traders in mind and is especially effective on lower timeframes such as 1-minute, 5-minute, and 15-minute charts where price dislocations and quick momentum shifts are frequent.
Introduction
This indicator is built around the fusion of two classic concepts in technical trading: identifying trend direction and spotting potential reversion points. These are often handled separately, but this system merges them into one process. It starts by computing a fair value price using five moving averages, each with its own mathematical structure and strengths. These include the exponential moving average (EMA), which gives more weight to recent data; the simple moving average (SMA), which gives equal weight to all periods; the weighted moving average (WMA), which progressively increases weight with recency; the Arnaud Legoux moving average (ALMA), known for smoothing without lag; and the volume-weighted average price (VWAP), which factors in volume at each price level.
All five are averaged into a single value — the raw fusion line. This fusion acts as a dynamically balanced centerline that adapts to price conditions with both smoothing and responsiveness. Two additional exponential moving averages are applied to the raw fusion line. One is slower, giving a stable trend reference, and the other is faster, used to define momentum and cloud behavior. These two lines — the fusion slow and fusion fast — form the backbone of trend and signal logic.
Purpose
This system is meant for traders who want to trade reversals without losing sight of the underlying directional bias. Many reversal indicators fail because they act too early or signal too frequently in choppy markets. This script filters out noise through two conditions: price deviation and RSI confirmation. Reversion trades are considered only when the price moves a significant distance from fair value and RSI suggests a legitimate shift in momentum. That filtering process gives the trader a cleaner, higher-quality signal and reduces false entries.
The indicator also visually supports the trader through colored bars, up/down labels, and a filled cloud between the fast and slow fusion lines. These features make the market context immediately visible: whether the trend is up or down, whether a reversal just occurred, and whether price is currently in a high-risk reversion zone.
Originality and Uniqueness
What makes this script different from most reversal systems is the way it combines layers of logic — not just to detect signals, but to qualify and structure them. Rather than relying on a single MA or a raw RSI level, it uses a five-MA fusion to create a baseline fair value that incorporates speed, stability, and volume-awareness.
On top of that, the system introduces a dual-smoothing mechanism. It doesn’t just smooth price once — it creates two layers: one to follow the general trend and another to track faster deviations. This structure lets the script distinguish between continuation moves and possible turning points more effectively than a single-line or single-metric system.
It also uses RSI in a more refined way. Instead of just checking if RSI is overbought or oversold, the script smooths RSI and requires directional confirmation. Beyond that, it includes signal memory. Once a signal is generated, a new one will not appear unless the RSI becomes even more extreme and curls back again. This memory-based gating reduces signal clutter and prevents repetition, a rare feature in similar scripts.
Why these indicators were merged
Each moving average in the fusion serves a specific role. EMA reacts quickly to recent price changes and is often favored in fast-trading strategies. SMA acts as a long-term filter and smooths erratic behavior. WMA blends responsiveness with smoothing in a more balanced way. ALMA focuses on minimizing lag without losing detail, which is helpful in fast markets. VWAP anchors price to real trade volume, giving a sense of where actual positioning is happening.
By combining all five, the script creates a fair value model that doesn’t lean too heavily on one logic type. This fusion is then smoothed into two separate EMAs: one slower (trend layer), one faster (signal layer). The difference between these forms the basis of the trend cloud, which can be toggled on or off visually.
RSI is then used to confirm whether price is reversing with enough force to warrant a trade. The RSI is calculated over a 14-period window and smoothed with a 7-period EMA. The reason for smoothing RSI is to cut down on noise and avoid reacting to short, insignificant spikes. A signal is only considered if price is stretched away from the trend line and the smoothed RSI is in a reversal state — below 30 and rising for bullish setups, above 70 and falling for bearish ones.
Calculations
The script follows this structure:
Calculate EMA, SMA, WMA, ALMA, and VWAP using the same base length
Average the five values to form the raw fusion line
Smooth the raw fusion line with an EMA using sens1 to create the fusion slow line
Smooth the raw fusion line with another EMA using sens2 to create the fusion fast line
If fusion slow is rising and price is above it, trend is bullish
If fusion slow is falling and price is below it, trend is bearish
Calculate RSI over 14 periods
Smooth RSI using a 7-period EMA
Determine deviation as the absolute difference between current price and fusion slow
A raw signal is flagged if deviation exceeds the threshold
A raw signal is flagged if RSI EMA is under 30 and rising (bullish setup)
A raw signal is flagged if RSI EMA is over 70 and falling (bearish setup)
A final signal is confirmed for a bullish setup if RSI EMA is lower than the last bullish signal’s RSI
A final signal is confirmed for a bearish setup if RSI EMA is higher than the last bearish signal’s RSI
Reset the bullish RSI memory if RSI EMA rises above 30
Reset the bearish RSI memory if RSI EMA falls below 70
Store last signal direction and use it for optional bar coloring
Draw the trend cloud between fusion fast and fusion slow using fill()
Show signal labels only if showSignals is enabled
Bar and candle colors reflect either trend slope or last signal direction depending on mode selected
How it works
Once the script is loaded, it builds a fusion line by averaging five different types of moving averages. That line is smoothed twice into a fast and slow version. These two fusion lines form the structure for identifying trend direction and signal areas.
Trend bias is defined by the slope of the slow line. If the slow line is rising and price is above it, the market is considered bullish. If the slow line is falling and price is below it, it’s considered bearish.
Meanwhile, the script monitors how far price has moved from that slow line. If price is stretched beyond a certain distance (set by the threshold), and RSI confirms that momentum is reversing, a raw reversion signal is created. But the script only allows that signal to show if RSI has moved further into oversold or overbought territory than it did at the last signal. This blocks repetitive, weak entries. The memory is cleared only if RSI exits the zone — above 30 for bullish, below 70 for bearish.
Once a signal is accepted, a label is drawn. If the signal toggle is off, no label will be shown regardless of conditions. Bar colors are controlled separately — you can color them based on trend slope or last signal, depending on your selected mode.
Inputs
You can adjust the following settings:
MA Length: Sets the period for all moving averages used in the fusion.
Show Reversion Signals: Turns on the plotting of “Up” and “Down” labels when a reversal is confirmed.
Bar Coloring: Enables or disables colored bars based on trend or signal direction.
Show Trend Cloud: Fills the space between the fusion fast and slow lines to reflect trend bias.
Bar Color Mode: Lets you choose whether bars follow trend logic or last signal direction.
Sens 1: Smoothing speed for the slow fusion line — higher values = slower trend.
Sens 2: Smoothing speed for the fast line — lower values = faster signal response.
Deviation Threshold: Minimum distance price must move from fair value to trigger a signal check.
Features
This indicator offers:
A composite fair value model using five moving average types.
Dual smoothing system with user-defined sensitivity.
Slope-based trend definition tied to price position.
Deviation-triggered signal logic filtered by RSI reversal.
RSI memory system that blocks repetitive signals and resets only when RSI exits overbought or oversold zones.
Real-time tracking of the last signal’s direction for optional bar coloring.
Up/Down labels at signal points, visible only when enabled.
Optional trend cloud between fusion layers, visualizing current market bias.
Full user control over smoothing, threshold, color modes, and visibility.
Conclusion
The Fusion Trend-Reversion System is a tool for short-term traders looking to fade price extremes without ignoring trend bias. It calculates fair value using five diverse moving averages, smooths this into two dynamic layers, and applies strict reversal logic based on RSI deviation and momentum strength. Signals are triggered only when price is stretched and momentum confirms it with increasingly strong behavior. This combination makes the tool suitable for scalping, intraday entries, and fast market environments where precision matters.
Disclaimer
This indicator is for informational and educational purposes only. It does not constitute financial advice. All trading involves risk, and no tool can predict market behavior with certainty. Use proper risk management and do your own research before making trading decisions.
ZY Legend StrategyThe ZY Legend Strategy indicator is a trading indicator and clearly shows the buy/sell zones on the chart. In this indicator, which does not have an SL order, transaction entries should be made at the cash/8 rate for each signal, and when a transaction that hedges this transaction is opened while the main transaction is open and this hedge transaction becomes TP, the profit obtained from the hedge transaction should be deducted from the TP target of the main transaction.
Contrarian with 5 Levels5 Levels application was inspired and adapted from Predictive Ranges indicator developed by Lux Algo. So much credit to their work.
Indicator Description: Contrarian with 5 Levels
Overview
The "Contrarian with 5 Levels" indicator is a powerful tool designed for traders seeking to identify potential reversal points in the market by combining contrarian trading principles with dynamic support and resistance levels. This indicator overlays a Simple Moving Average (SMA) shadow and five adaptive price levels, integrating Institutional Concepts of Structure (ICT) such as Break of Structure (BOS) and Market Structure Shift (MSS) to provide clear buy and sell signals. It is ideal for traders looking to capitalize on overextended price movements, particularly on the daily timeframe, though it is adaptable to other timeframes with proper testing.
How It Works
The indicator operates on two core components:
Contrarian SMA Shadow: A shaded region between the SMA of highs and lows (default length: 100) acts as a dynamic zone to identify overbought or oversold conditions. When the price moves significantly outside this shadow, it signals potential exhaustion, aligning with contrarian trading principles.
Five Adaptive Levels: Using a modified ATR-based calculation, the indicator plots five key levels (two resistance, one average, and two support) that adjust dynamically to market volatility. These levels serve as critical zones for potential reversals.
ICT Structure Analysis: The indicator incorporates BOS and MSS logic to detect shifts in market structure, plotting bullish and bearish breaks with customizable colors for clarity.
Buy and sell signals are generated when the price crosses key levels while outside the SMA shadow, indicating potential reversal opportunities. The signals are visualized as small circles above (sell) or below (buy) the price bars, making them easy to interpret.
Mathematical Concepts
SMA Shadow: The indicator calculates the SMA of the highest highs and lowest lows over a user-defined period (default: 100). This creates a dynamic range that highlights extreme price movements, which contrarian traders often target for reversals.
Five Levels Calculation: The five levels are derived using a volatility-adjusted formula based on the Average True Range (ATR). The average level (central pivot) is calculated as a smoothed price, with two upper (resistance) and two lower (support) levels offset by a multiple of the ATR (default multiplier: 6.0). This adaptive approach ensures the levels remain relevant across varying market conditions.
ICT BOS/MSS Logic: The indicator identifies pivot highs and lows on a user-defined timeframe (default: daily) to detect structural breaks. A BOS occurs when the price breaks a prior pivot high (bullish) or low (bearish), while an MSS signals a shift in market direction, providing context for potential reversals.
Entry and Exit Rules
Buy Signal (Blue Dot Below Bar): Triggered when the closing price is below both the SMA shadow (smaLow) and the average level (avg), and the price crosses under either the first or second support level (prS1 or prS2). This suggests the market may be oversold, indicating a potential reversal upward.
Sell Signal (White Dot Above Bar): Triggered when the closing price is above both the SMA shadow (smaHigh) and the average level (avg), and the price crosses over either the first or second resistance level (prR1 or prR2). This suggests the market may be overbought, indicating a potential reversal downward.
Recommended Usage
This indicator is optimized for the daily timeframe, where it has been designed to capture significant reversal opportunities in trending or ranging markets. However, it can be adapted to other timeframes (e.g., 1H, 4H, 15M) with proper testing of settings such as SMA length, ATR multiplier, and structure timeframe. Users are encouraged to backtest and optimize parameters to suit their trading style and asset class.
Customization Options
SMA Length: Adjust the SMA period (default: 100) to control the sensitivity of the shadow.
Five Levels Length and Multiplier: Modify the length (default: 200) and ATR multiplier (default: 6.0) to fine-tune the support/resistance levels.
Timeframe Settings: Set separate timeframes for structure analysis and five levels to align with your trading strategy.
Color and Signal Display: Customize colors for BOS/MSS lines and toggle buy/sell signals on or off for a cleaner chart.
Why Use This Indicator?
The "Contrarian with 5 Levels" indicator combines the power of contrarian trading with dynamic levels and market structure analysis, offering a unique perspective for identifying high-probability reversal setups. Its intuitive design, customizable settings, and clear signal visualization make it suitable for both novice and experienced traders. Whether you're trading forex, stocks, or cryptocurrencies, this indicator provides a robust framework for spotting potential turning points in the market.
We hope you find the "Contrarian with 5 Levels" indicator a valuable addition to your trading toolkit! Happy trading!
Please leave feedback in the comments section.
MTF Pivot Zones
## 📘 **User Guide: MTF Pivot Zones**
**Script Name:** MTF Pivot Zones
Multi Time Frame Pivot
---
### 🧭 Overview
**MTF Pivot Zones** is a multi-timeframe analysis tool that detects and merges swing highs and lows across four key timeframes:
**Weekly, Daily, 4H, and 1H**.
It plots clear **Support** and **Resistance** zones on the chart based on pivot point clustering. Zones are displayed as dashed lines, color-coded by type.
---
### ⚙️ Settings
| Input Name | Description |
| ---------------------- | --------------------------------------------------------------------- |
| `Lookback Bars Per TF` | Number of bars to scan for pivot highs/lows per timeframe |
| `Pivot Left Bars` | Number of bars to the left required to confirm a pivot |
| `Pivot Right Bars` | Number of bars to the right required to confirm a pivot |
| `Merge Tolerance ($)` | Distance threshold in dollars to merge nearby pivot levels into zones |
| `Show TF Labels` | Toggle the text label next to each zone (e.g., “Res Zone”) |
---
### 🛠️ How It Works
1. **Pivot Detection**
The script scans each timeframe using `ta.pivothigh()` and `ta.pivotlow()`.
2. **Zone Merging**
Pivot levels within the specified `Merge Tolerance` are averaged and treated as a single zone.
3. **Zone Plotting**
* **Red dashed lines** = Resistance Zones
* **Green dashed lines** = Support Zones
* Optional labels show zone type if `Show TF Labels` is enabled
---
### 📈 Usage Tips
* Use zones to guide entries, exits, and stop-loss placement.
* Combine with trend tools or candlestick confirmation near zones.
* Adjust merge tolerance to match instrument volatility and timeframe.
---
Let me know if you want this formatted for **TradingView publishing**, or included in a `study()` title block comment.