Göstergeler ve stratejiler
Mark Minervini SEPA Swing TradingMark Minervini Complete Technical Strategy with buy signals and full dashboard showing all the parameters.
bows//@version=5
indicator("NQ EMA+RSI+ATR Alerts with SL/TP", overlay=true, shorttitle="NQ Alerts SLTP")
// === Inputs ===a
fastLen = input.int(9, "Fast EMA", minval=1)
slowLen = input.int(21, "Slow EMA", minval=1)
rsiLen = input.int(14, "RSI Length", minval=1)
rsiLongMax = input.int(70, "Max RSI to allow LONG", minval=50, maxval=90)
rsiShortMin = input.int(30, "Min RSI to allow SHORT", minval=10, maxval=50)
atrLen = input.int(14, "ATR Length", minval=1)
atrMultSL = input.float(1.5, "ATR Stop-Loss Multiplier", step=0.1)
atrMultTP = input.float(2.5, "ATR Take-Profit Multiplier", step=0.1)
// === Indicator calculations ===
price = close
fastEMA = ta.ema(price, fastLen)
slowEMA = ta.ema(price, slowLen)
rsiVal = ta.rsi(price, rsiLen)
atr = ta.atr(atrLen)
// === Entry signals ===
longSignal = ta.crossover(fastEMA, slowEMA) and rsiVal < rsiLongMax
shortSignal = ta.crossunder(fastEMA, slowEMA) and rsiVal > rsiShortMin
// === SL/TP Levels ===
longSL = price - atr * atrMultSL
longTP = price + atr * atrMultTP
shortSL = price + atr * atrMultSL
shortTP = price - atr * atrMultTP
// === Plotting ===
plot(fastEMA, color=color.orange, title="Fast EMA")
plot(slowEMA, color=color.blue, title="Slow EMA")
plotshape(longSignal, title="Buy Signal", style=shape.triangleup, color=color.new(color.green, 0), location=location.belowbar, size=size.tiny)
plotshape(shortSignal, title="Sell Signal", style=shape.triangledown, color=color.new(color.red, 0), location=location.abovebar, size=size.tiny)
// Optional visualization of SL/TP
plot(longSignal ? longSL : na, "Long Stop-Loss", color=color.new(color.red, 50), style=plot.style_linebr)
plot(longSignal ? longTP : na, "Long Take-Profit", color=color.new(color.green, 50), style=plot.style_linebr)
plot(shortSignal ? shortSL : na, "Short Stop-Loss", color=color.new(color.red, 50), style=plot.style_linebr)
plot(shortSignal ? shortTP : na, "Short Take-Profit", color=color.new(color.green, 50), style=plot.style_linebr)
// === Alerts with SL/TP info ===
alertcondition(longSignal, title="BUY Signal",
message="BUY Alert — NQ LONG: Entry @ {{close}} | SL: {{plot_1}} | TP: {{plot_2}} | {{ticker}}")
alertcondition(shortSignal, title="SELL Signal",
message="SELL Alert — NQ SHORT: Entry @ {{close}} | SL: {{plot_3}} | TP: {{plot_4}} | {{ticker}}")
// === Visual labels ===
if (longSignal)
label.new(bar_index, low, "BUY SL: " + str.tostring(longSL, format.mintick) + " TP: " + str.tostring(longTP, format.mintick),
style=label.style_label_up, color=color.new(#be14c4, 0), textcolor=color.white)
if (shortSignal)
label.new(bar_index, high, "SELL SL: " + str.tostring(shortSL, format.mintick) + " TP: " + str.tostring(shortTP, format.mintick),
style=label.style_label_down, color=color.new(color.red, 0), textcolor=color.white)
Pulse & Trend AnalysisPulse & Trend Analysis
The Pulse & Trend Analysis indicator is designed to help traders quickly identify potential trend shifts using the crossover and crossunder of EMA 20 and EMA 50.
When EMA 20 crosses above or below EMA 50, the indicator highlights it visually with colored arrows and “Pulse” signals, making trend changes easy to spot.
How the Script Works?
When EMA 20 crosses above EMA 50 and corresponding Candle close into Green color, the script generates a Pulse Positive signal,
shown with: Blue Arrow Up, Text: “PULSE POSITIVE”
When EMA 20 crosses below EMA 50 and corresponding Candle close into Red color, the script generates a Pulse Negative signal, shown with:
Red Arrow Down, Text: “PULSE NEGATIVE”
These signals help traders visually detect potential bullish or bearish momentum shifts.
How Users Can Benefit From This Indicator?
The Trend & Pulse Analysis indicator allows traders to quickly understand the prevailing market direction by analyzing the interaction between EMA 20 and EMA 50. When a Pulse Positive (bullish crossover) occurs, it signals increasing upward momentum, helping traders focus on long opportunities. Similarly, a Pulse Negative (bearish crossunder) highlights weakening trend strength and supports short-side setups.
This indicator becomes even more powerful when combined with Demand & Supply Zones.
By integrating trend direction, momentum pulses, and zone-based confluence, users can make more informed decisions.
What Makes This Indicator Unique?
The Trend & Pulse Analysis indicator stands out because it adds an important layer of price-action confirmation to traditional EMA crossover signals. Unlike standard crossover tools that trigger signals on every EMA interaction, this indicator filters out weak setups by checking candle strength and direction at the moment of crossover.
A Pulse Positive signal is triggered only when the crossover occurs on a bullish (green) candle.
A Pulse Negative signal is triggered only when the cross under occurs on a bearish (red) candle.
This built-in candle-confirmation mechanism makes the signals more reliable, reduces noise, and gives traders higher-confidence trend continuation.
Additionally, when combined with supply & demand concepts—
Pulse Positive with Demand Zone → strengthens bullish conviction
Pulse Negative with Supply Zone → strengthens bearish conviction
This fusion of EMA trend logic + candle confirmation + supply-demand confluence is what makes the indicator truly unique and powerful for smart traders.
How This Indicator Is Original?
The Trend & Pulse Analysis indicator is completely original because it is built on a custom-designed logic that goes beyond a simple EMA crossover system. While standard indicators only detect crossover/crossunder of moving averages, this tool introduces a dual-filter confirmation approach:
Directional Candle Validation
A Pulse Positive signal is triggered only when EMA20 crosses above EMA50 AND the same candle closes bullish (green).
A Pulse Negative signal is triggered only when EMA20 crosses below EMA50 AND the same candle closes bearish (red).
Custom Pulse System (Not a Standard EMA Indicator)
The “Pulse Positive / Pulse Negative” framework is a uniquely designed concept that combines trend direction, momentum shift, and candle strength.
Manual Programming & Original Condition Set
Every rule, filter, and plotting condition is hand-coded — not copied from open-source scripts.
The system uses:
Custom plotting rules
Custom conditional checks
Custom text + arrow logic
Combined trend + candle behavior analysis
This makes the indicator fully original and not a replica of any existing public script.
Disclaimer:
This indicator is created for educational and analytical purposes.
It does not provide buy or sell signals, financial advice, or guaranteed trading outcomes.
All trading decisions are solely your responsibility.
Market trading involves risk; always use proper risk management.
Fibonacci Golden Zone Auto-DrawDisclaimer: This script is for educational purposes only and does not constitute financial advice. Use at your own risk.
Fibonacci Golden Zone Auto Draw is a smart tool that automatically detects the most recent market swing and highlights the high probability reversal area known as the Golden Zone (0.618 to 0.65 retracement).
Key Features
Auto Detection : Instantly finds the active High Low or Low High swing leg using customizable pivot sensitivity.
Golden Zone Visualization : Draws a clean color coded box (green for bullish, red for bearish) exactly where price is likely to reverse.
Dynamic Updates : Adjusts in real time as new pivots form, so your chart always shows the latest relevant levels.
How to Use
Pivot Left Bars : Sets how many bars to the left of a candle must be lower for a high or higher for a low to register as a pivot. Larger values find more significant longer term swings.
Pivot Right Bars : Sets how many bars to the right must confirm the pivot. Lower values detect pivots faster but may be less stable, while higher values wait for stronger confirmation.
Perfect for traders who want to spot retracement entries without manually drawing Fibonacci tools on every setup.
Patrice - GC M1 Bot (MACD EMA RSI)//@version=6
indicator("Patrice - GC M1 Bot (MACD EMA RSI)", overlay = true)
//----------------------
// Inputs (optimisés GC)
//----------------------
emaLenFast = input.int(9, "EMA rapide")
emaLenSlow = input.int(14, "EMA lente")
rsiLen = input.int(14, "RSI length")
atrLen = input.int(14, "ATR length")
volLen = input.int(20, "Volume moyenne")
slMult = input.float(0.4, "SL = ATR x", step = 0.1)
tpMult = input.float(0.7, "TP = ATR x", step = 0.1)
minAtr = input.float(0.7, "ATR minimum pour trader", step = 0.1)
maxDistEmaPct = input.float(0.3, "Distance max EMA9 (%)", step = 0.1)
//----------------------
// Indicateurs
//----------------------
ema9 = ta.ema(close, emaLenFast)
ema14 = ta.ema(close, emaLenSlow)
= ta.macd(close, 12, 26, 9)
hist = macdLine - signalLine
rsi = ta.rsi(close, rsiLen)
atr = ta.atr(atrLen)
volMa = ta.sma(volume, volLen)
//----------------------
// Session 9:30 - 11:00 (NY)
//----------------------
hourSession = hour(time, "America/New_York")
minuteSession = minute(time, "America/New_York")
inSession = (hourSession == 9 and minuteSession >= 30) or
(hourSession > 9 and hourSession < 11) or
(hourSession == 11 and minuteSession == 0)
//----------------------
// Filtres vol / ATR / distance EMA
//----------------------
volFilter = volume > volMa
atrFilter = atr > minAtr
distEmaPct = math.abs(close - ema9) / close * 100.0
distFilter = distEmaPct < maxDistEmaPct
//----------------------
// Tendance
//----------------------
bullTrend = close > ema9 and close > ema14 and ema9 > ema14
bearTrend = close < ema9 and close < ema14 and ema9 < ema14
//----------------------
// MACD : 2e barre
//----------------------
bullSecondBar = hist > 0 and hist > 0 and hist <= 0
bearSecondBar = hist < 0 and hist < 0 and hist >= 0
//----------------------
// Filtres RSI
//----------------------
rsiLongOk = rsi < 70 and rsi >= 45 and rsi <= 65
rsiShortOk = rsi > 30 and rsi >= 35 and rsi <= 55
//----------------------
// Gestion du risque (simple pour l'instant)
//----------------------
canTradeRisk = true
//----------------------
// Conditions d'entrée
//----------------------
longCond = bullTrend and bullSecondBar and rsiLongOk and inSession and volFilter and atrFilter and distFilter and canTradeRisk
shortCond = bearTrend and bearSecondBar and rsiShortOk and inSession and volFilter and atrFilter and distFilter and canTradeRisk
//----------------------
// SL / TP (info seulement, pas d'ordres)
//----------------------
slPoints = atr * slMult
tpPoints = atr * tpMult
longSL = close - slPoints
longTP = close + tpPoints
shortSL = close + slPoints
shortTP = close - tpPoints
//----------------------
// Visuels
//----------------------
plot(ema9, title = "EMA 9")
plot(ema14, title = "EMA 14")
plotshape(longCond, title = "Signal Long", style = shape.triangleup, location = location.belowbar, size = size.tiny, text = "L")
plotshape(shortCond, title = "Signal Short", style = shape.triangledown, location = location.abovebar, size = size.tiny, text = "S")
//----------------------
// Conditions d'ALERTE
//----------------------
alertcondition(longCond, title = "ALERTE LONG", message = "Signal LONG Patrice GC bot")
alertcondition(shortCond, title = "ALERTE SHORT", message = "Signal SHORT Patrice GC bot")
Income Engine - Daily Supertrend Covered Call SignalsWhat This Indicator Does
1. Identifies the safest time to sell a 1-week covered call
The script uses the Daily Supertrend as a primary trend filter.
When the trend turns bearish or weak, the indicator highlights a Sell Zone, signaling a statistically safer window to sell a covered call.
Covered calls perform best when price is:
Sideways
Weak
Trending down
Not likely to surge upward
The Sell Zone captures exactly this behavior.
Green line=Let the stock run.
Red line=safe to sell calls without assignment. Gererate income while stock falters.
Raja_Intraday: Bull/Bear Logic SetupBased on Candle high low/PDH-PDL break out, in combination with other indicators.
Focus is more on accuracy than on higher frequency of trades. Enjoy!!
Multi-Asset: Complete AnalysisDescription:
Comprehensive performance analysis tool for comparing multiple assets or custom weighted portfolios against benchmarks. Calculates Sharpe ratios across multiple timeframes (30d, 90d, 180d, 252d), total returns, CAGR, and normalized values starting from $100.
Key Features:
Build custom weighted portfolios (default: 50/30/20 allocation)
Compare against SPY, QQQ, and other benchmarks
Dynamic risk-free rate from ^IRX or manual input
Multi-period Sharpe ratio analysis to validate strategy consistency
Total return and annualized return (CAGR) metrics
All assets normalized to common start date for accurate comparison
Toggle individual assets on/off for cleaner chart viewing
Use Case:
Perfect for evaluating whether your custom portfolio allocation justifies its complexity versus simply buying SPY/QQQ. If your risk-adjusted returns (Sharpe) and absolute returns aren't beating the benchmarks, you're overcomplicating your strategy.
Ideal for: Portfolio managers, factor investors, and anyone building custom allocations who need proof their strategy actually works.
MKL ComboNOTE to Tradingview Moderators - this current usage pattern (offsetting pivot + using lookahead_off for HTF signals and historical past-levels) does not leak future data and prevents repainting, therefore should be fine for public invite-only publication.
OVERVIEW :
This all-in-one trading indicator seamlessly integrates three professional-grade analytical tools to provide a complete market perspective. It combines dynamic trend Buy Or Sell signals, institutional-style daily support/resistance levels , and an adaptive volumetric-weighted core . Designed for traders who need clear, actionable insights without clutter, this indicator helps identify precise entry points, key price levels, and overall market direction across any timeframe.
Key Components:
1. Swinger 3.0 Signals (Multi-Timeframe)
A sophisticated trend-following system that detects trend reversals with high accuracy:
- Buy Signals (B): Orange labels printed below price bars when the trend shifts bullish
- Sell Signals (S): Blue labels printed above price bars when the trend shifts bearish
- Flexible Timeframe Analysis: Calculate signals on any timeframe while viewing them on your current chart. (For example, generate reliable 1-hour signals while trading on a 5-minute chart for precision entries)
- Smart Daily Filter: Optional filter that only shows signals when price is appropriately positioned relative to the daily pivot middle line (above for sells, below for buys), improving signal quality
2. Daily Range Levels (Institutional Levels)
Professional-grade support and resistance levels calculated from daily volume weighted points, used by institutional traders:
- Resistance Levels (Red): R1, R2, and R3 lines with automatic price labels
- Support Levels (Green): S1, S2, and S3 lines with automatic price labels
- Previous Day Extremes: Gray lines marking yesterday's high and low for additional context
- Visual Zones: Colored shading for extreme R3 and S3 areas to highlight overbought/oversold conditions
- No Trade Zone(Inflection Zone): A prominent yellow central zone representing the main volumetric area with most number of buyers/sellers, (everyone looking for a fair price for the day). This critical zone acts as a daily magnet for price and separates bullish from bearish territory.
3. Core Moving Average
An adaptive volumetric core that provides smooth, responsive trend directions (to be used as a confluence for the Swinger 3.0 signals & should NOT be used independently):
- Dynamic Color Coding: Green when trending upward, Red when trending downward
- Optimal Settings: Fixed period length for balance between responsiveness and noise reduction
- Trend Confirmation: Use it to filter signals and trade only in the direction of the prevailing trend
How to Use This Indicator:
1. Trend Trading Strategy:
- Identify the primary trend using the Core MA color (Green = Bullish, Red = Bearish)
- In bullish trends (Green), look for Swinger buy signals near support levels (S1, S2, S3)
- In bearish trends (Red), look for Swinger sell signals near resistance levels (R1, R2, R3)
- Place stops below/above the nearest level and target the next level(s) in your direction, or use signal candle high/low or swing high/low as the stoploss.
2. Level-Based Strategy:
- Watch for price reactions at daily levels (bounces or breakouts)
- The No-trade zone will act as main intraday infleciton point
- R3 and S3 zones indicate extreme conditions—consider taking profits here
- Combine level analysis with Swinger signals for high-probability setups.
3. Multi-Timeframe Strategy:
- Set Swinger to a higher timeframe (e.g., 15m on a 1m chart, or 1h on a 15m chart)
- Only take signals that align with the higher timeframe trend
- This approach dramatically reduces false signals and improves risk/reward ratios
Input Settings Explained:
- Signal Timeframe : Leave empty to use your chart's timeframe, or enter a higher timeframe (e.g., "15m", "1h", "D") for multi-timeframe analysis.
- Enable Levels Filter : Toggle on to see ONLY Buy Signals at support levels (below no-trade zone) and only Sell Signals at resistance levels (above no-trade zone).
- Lookback Period : Calculation period for Swinger calculations (default 10)—lower values = more signals, higher values = fewer but stronger signals
- Core Bullish/Bearish Colors : Customize the moving average colors to match your chart theme
Technical Features:
- Clean Signal Plotting: Only one signal per bar—no stacking or clustering
- Automatic Labeling: All levels show their exact price values with dynamic positioning
- Built-in Alerts: Ready-to-use alert conditions for buy and sell signals
- Universal Compatibility: Works on all timeframes, all asset classes (stocks, crypto, forex, futures)
- No Repainting : Signals are confirmed and do not disappear
Pro Tips for Best Results:
- The Core MA works best as a trend bias tool, not a standalone signal generator
- For volatile markets, increase the Lookback Period to reduce signal frequency
- Daily levels are most effective during regular trading hours when institutional volume is present. (Extended trading hours might cause problems with visibility of the levels).
Important Notes:
- Daily Range Levels are calculated from daily data and update only at the start of a new trading day (00:00 UTC)
- Swinger signals calculated on higher timeframes will lag by one bar on the lower timeframe—this is normal and prevents false signals
- The Core MA, is a lagging indicator—use it for confirmation, not prediction.
Complete Harmonic PatternOverview:
The ultimate harmonic XABCD pattern identification, prediction, and backtesting system.
Harmonic patterns are among the most accurate of trading signals, yet they're widely underutilized because they can be difficult to spot and tedious to validate. If you've ever come across a pattern and struggled with questions like "are these retracement ratios close enough to the harmonic ratios?" or "what are the Potential Reversal levels and are they confluent with point D?", then this tool is your new best friend. Or, if you've never traded harmonic patterns before, maybe it's time to start. Put away your drawing tools and calculators, relax, and let this indicator do the heavy lifting for you.
- Identification -
An exhaustive search across multiple pivot lengths ensures that even the sneakiest harmonic patterns are identified. Each pattern is evaluated and assigned a score, making it easy to differentiate weak patterns from strong ones. Tooltips under the pattern labels show a detailed breakdown of the pattern's score and retracement ratios (see the Scoring section below for details).
- Prediction -
After a pattern is identified, paths to potential targets are drawn, and Potential Reversal Zone (PRZ) levels are plotted based on the retracement ratios of the harmonic pattern. Targets are customizable by pattern type (e.g. you can specify one set of targets for a Gartley and another for a Bat, etc).
- Backtesting -
A table shows the results of all the patterns found in the chart. Change your target, stop-loss, and % error inputs and observe how it affects your success rate.
//------------------------------------------------------
// Scoring
//------------------------------------------------------
A percentage-based score is calculated from four components:
(1) Retracement % Accuracy - this measures how closely the pattern's retracement ratios match the theoretical values (fibs) defined for a given harmonic pattern. You can change the "Allowed fib ratio error %" in Settings to be more or less inclusive.
(2) PRZ Level Confluence - Potential Reversal Zone levels are projected from retracements of the XA and BC legs. The PRZ Level Confluence component measures the closeness of the closest XA and BC retracement levels, relative to the total height of the PRZ.
(3) Point D / PRZ Confluence - this measures the closeness of point D to either of the closest two PRZ levels (identified in the PRZ Level Confluence component above), relative to the total height of the PRZ. In theory, the closer together these levels are, the higher the probability of a reversal.
(4) Leg Length Symmetry - this measures the ΔX symmetry of each leg. You can change the "Allowed leg length asymmetry %" in settings to be more or less inclusive.
So, a score of 100% would mean that (1) all leg retracements match the theoretical fib ratios exactly (to 16 decimal places), (2) the closest XA and BC PRZ levels are exactly the same, (3) point D is exactly at the confluent PRZ level, and (4) all legs are exactly the same number of bars. While this is theoretically possible, you have better odds of getting struck by lightning twice on a sunny day.
Calculation weights of all four components can be changed in Settings.
//------------------------------------------------------
// Targets
//------------------------------------------------------
A hard-coded set of targets are available to choose from, and can be applied to each pattern type individually:
(1) .618 XA = .618 retracement of leg XA, measured from point D
(2) 1.272 XA = 1.272 retracement of leg XA, measured from point D
(3) 1.618 XA = 1.618 retracement of leg XA, measured from point D
(4) .618 CD = .618 retracement of leg CD, measured from point D
(5) 1.272 CD = 1.272 retracement of leg CD, measured from point D
(6) 1.618 CD = 1.618 retracement of leg CD, measured from point D
(7) A = point A
(8) B = point B
(9) C = point C
[IronXCharts] Frank Strategy 1.0 – Aggressive Player Contact me frankk886@live.it for purchase
Frank Strategy 1.0 is a structured trading system designed to filter noise and highlight only high-probability setups.
It combines trend, momentum, market structure (CHOCH/BOS), liquidity zones and ATR-based risk management to deliver precise entry signal
Micro/Mini P&L [LDT]Overview
Micro/Mini P&L is a risk and P&L visualization tool built primarily for futures traders.
It provides accurate dollar-based calculations for either micros or minis, regardless of which contract type you are currently charting.
The indicator automatically detects your instrument (NQ, MNQ, ES, MES, YM, RTY, CL, GC, etc.) and adjusts point-value data accordingly, allowing you to chart one contract while evaluating risk for another.
This removes the need for manual conversions and keeps your position data consistent at all times.
Although optimized for futures, the tool also works on any other asset for general trade-level visualization.
Features
• Automatic instrument detection for major futures markets including NQ/MNQ, ES/MES, YM/MYM, RTY/M2K, CL/MCL, GC/MGC and others.
Point-value logic adjusts instantly based on the detected symbol ensuring accurate calculations without manual configuration.
• Micro/Mini display toggle, allowing you to calculate dollar values for either contract type regardless of which contract is on your chart.
Useful for traders who prefer charting minis whilst trading micros or the opposite.
• Trade-level visualization, including Entry, Take Profit and Stop Loss levels with automatically drawn lines and optional TP/SL zone shading for clear and structured display on the chart.
• Dynamic P/L calculations, showing both point-based and dollar-based metrics in real time.
This includes TP/SL dollar values, points to target/stop, real-time P/L and an optional risk-reward ratio.
• Adaptive risk table, displaying contract counts from 1 up to your selected maximum, total dollar risk for each row and highlighting your chosen contract size.
This provides a straightforward method for evaluating risk, scaling and position sizing.
• Customizable display options, including color settings, label visibility, extension length, bar offsets and table positioning.
This allows the tool to remain clean, unobtrusive and easy to integrate into any chart layout.
Purpose
This tool is designed to give futures traders a clear, consistent and reliable way to view dollar-accurate risk per contract without performing manual conversions.
Whether you trade micros or minis, the displayed values always align with your selected contract type, even when charting the opposite market.
Multi-Timeframe Supertrend + MACD + MTF Dashboard if you like it click source code and save it in notepad for back up .
The Multi-Timeframe Supertrend Dashboard is a powerful tool designed to give traders a clear view of market trends across multiple timeframes, all from a single dashboard. This indicator leverages the Supertrend method to calculate buy and sell signals based on the direction of price relative to dynamically calculated support and resistance lines. The dashboard is optimized for dark mode and provides easy-to-interpret color-coded signals for each timeframe.
How It Works
The Supertrend indicator is a trend-following indicator that uses the Average True Range (ATR) to set upper and lower bands around the price, adapting dynamically as volatility changes. When the price is above the Supertrend line, the market is considered in an uptrend, triggering a "BUY" signal. Conversely, when the price falls below the Supertrend line, the market is in a downtrend, triggering a "SELL" signal.
This Multi-Timeframe Supertrend Dashboard calculates Supertrend signals for the following timeframes:
1 minute
5 minutes
15 minutes
1 hour
Daily
Weekly
Monthly
For each timeframe, the dashboard shows either a "BUY" or "SELL" signal, allowing traders to assess whether trends align across timeframes. A "BUY" signal displays in green, and a "SELL" signal displays in red, giving a quick visual reference of the overall trend direction for each timeframe.
Customization Options
ATR Period: Defines the period for the Average True Range (ATR) calculation, which determines how responsive the Supertrend lines are to changes in market volatility.
Multiplier: Sets the sensitivity of the Supertrend bands to price movements. Higher values make the bands less sensitive, while lower values increase sensitivity, allowing quicker reactions to changes in price.
How to Interpret the Dashboard
The Multi-Timeframe Supertrend Dashboard allows traders to see at a glance if trends across multiple timeframes are aligned. Here’s how to interpret the signals:
BUY (Green): The current timeframe’s price is in an uptrend based on the Supertrend calculation.
SELL (Red): The current timeframe’s price is in a downtrend based on the Supertrend calculation.
For example:
If all timeframes display "BUY," the asset is in a strong uptrend across multiple time horizons, which may indicate a bullish market.
If all timeframes display "SELL," the asset is likely in a strong downtrend, signaling a bearish market.
Mixed signals across timeframes suggest market consolidation or differing trends across short- and long-term periods.
Use Cases
Trend Confirmation: Use the dashboard to confirm trends across multiple timeframes before entering or exiting a position.
Quick Market Analysis: Get a snapshot of market conditions across timeframes without having to change charts.
Multi-Timeframe Alignment: Identify alignment across timeframes, which is often a strong indicator of market momentum in one direction.
Dark Mode Optimization
The dashboard has been optimized for dark mode, with white text and contrasting background colors to ensure easy readability on darker TradingView themes.
Nov 4, 2024
Release Notes
Multi-Timeframe Supertrend Dashboard with Alerts
Overview
The Multi-Timeframe Supertrend Dashboard with Alerts is a powerful indicator designed to give traders a comprehensive view of market trends across multiple timeframes. This dashboard uses the Supertrend method to calculate buy and sell signals based on the direction of price relative to dynamic support and resistance levels. The indicator is optimized for dark mode and provides a color-coded display of buy and sell signals for each timeframe, along with optional alerts for trend alignment.
How It Works
The Supertrend indicator is a trend-following indicator that uses the Average True Range (ATR) to set upper and lower bands around the price, adjusting dynamically with market volatility. When the price is above the Supertrend line, the market is considered in an uptrend, triggering a "BUY" signal. Conversely, when the price falls below the Supertrend line, the market is in a downtrend, triggering a "SELL" signal.
The Multi-Timeframe Supertrend Dashboard displays Supertrend signals for the following timeframes:
1 minute
5 minutes
15 minutes
1 hour
Daily
Weekly
Monthly
For each timeframe, the dashboard shows either a "BUY" or "SELL" signal, allowing traders to assess trend alignment across multiple timeframes with a single glance. A "BUY" signal displays in green, and a "SELL" signal displays in red.
Alerts for Trend Alignment
This indicator includes built-in alert conditions that allow traders to receive notifications when all timeframes simultaneously align in a "BUY" or "SELL" signal. This is particularly useful for identifying moments of strong trend alignment across short-term and long-term timeframes. The alerts can be set to notify the trader when:
All timeframes display a "BUY" signal, indicating a strong bullish alignment across all time horizons.
All timeframes display a "SELL" signal, signaling a strong bearish alignment.
Customization Options
ATR Period: Defines the period for the Average True Range (ATR) calculation, which determines how responsive the Supertrend lines are to changes in market volatility.
Multiplier: Sets the sensitivity of the Supertrend bands to price movements. Higher values make the bands less sensitive, while lower values increase sensitivity, allowing quicker reactions to changes in price.
How to Interpret the Dashboard
BUY (Green): The price is above the Supertrend line, indicating an uptrend for that timeframe.
SELL (Red): The price is below the Supertrend line, indicating a downtrend for that timeframe.
Examples:
If all timeframes display "BUY," the asset is in a strong uptrend across multiple time horizons, signaling potential buying opportunities.
If all timeframes display "SELL," the asset is likely in a strong downtrend, signaling potential selling opportunities.
Mixed signals suggest a consolidation phase or differing trends across short- and long-term periods.
Use Cases
Trend Confirmation: Use the dashboard to confirm trends across multiple timeframes before entering or exiting a position.
Alert Notifications: Set alerts to receive notifications when all timeframes align in a "BUY" or "SELL" signal.
Quick Market Analysis: Get an instant overview of market conditions without switching between charts.
Multi-Timeframe Alignment: Identify alignment across timeframes, often a strong indicator of market momentum in one direction.
Dark Mode Optimization
The dashboard has been optimized for dark mode, with white text and contrasting background colors to ensure easy readability on darker TradingView themes.
Nov 6, 2024
Release Notes
Multi-Timeframe Supertrend Dashboard with Custom Alerts
Description:
This Multi-Timeframe Supertrend Dashboard indicator provides a powerful tool for traders who want to monitor multiple timeframes simultaneously and receive alerts when all timeframes align on a single trend (either BUY or SELL). The indicator uses the popular Supertrend calculation, with customizable ATR (Average True Range) period and multiplier values to tailor sensitivity to your trading style.
Key Features:
Customizable Timeframes:
Track and display up to six timeframes, fully configurable to meet any trading strategy. The default timeframes include 1 Minute, 5 Minutes, 15 Minutes, 1 Hour, 1 Day, and 1 Week but can be changed to any intervals supported by TradingView.
Selective Display Options:
With a user-friendly display selection, you can choose which timeframes to show on the dashboard. For example, you may choose to view only Timeframe 1 through Timeframe 5 or any combination of the six.
Real-Time Alignment Alerts:
Alerts can be set to trigger when all selected timeframes align on a BUY or SELL signal. This feature enables traders to catch strong trends across timeframes without constant monitoring. Alerts are fully configurable, allowing for sound notifications, email alerts, or even webhook notifications to automated trading systems.
Custom Supertrend Settings:
Adjust the ATR Period and Multiplier values to control the Supertrend's sensitivity. Lower values result in more frequent trend changes, while higher values smooth out the trend and focus on larger market moves.
Intuitive Color-Coded Dashboard:
The dashboard is visually optimized for quick insights:
Green cells indicate a BUY trend.
Red cells indicate a SELL trend.
Background color changes when all selected timeframes align, giving an instant visual cue for strong trends.
How to Use:
Select Timeframes:
Go to the input settings to choose the timeframes you want to monitor. Each timeframe is labeled (e.g., Timeframe 1, Timeframe 2) for easy reference.
Configure Display Preferences:
Enable or disable specific timeframes to customize your dashboard view. This is useful for focusing only on timeframes relevant to your strategy.
Set ATR and Multiplier Values:
Adjust these settings to define the Supertrend calculation's responsiveness. This customization allows adaptation to various markets, including stocks, forex, and cryptocurrencies.
Enable Alerts:
Turn on alerts to receive notifications when all active timeframes align. Customize the alert type and delivery (sound, popup, email, etc.) to ensure you’re notified on time.
Ideal For:
Trend Traders who want confirmation of trends across multiple timeframes.
Scalpers and Day Traders looking for quick trend changes with smaller timeframes.
Swing Traders who want a broader overview of market alignment across hourly and daily frames.
Automated System Developers looking for reliable signals across multiple timeframes to integrate with other strategies.
[CT] Kurutoga MTF HistogramWhat is Kurutoga MTF Histogram?
The Kurutoga MTF Histogram is a multi-time-frame momentum and mean-deviation tool.
It measures how far the current close is trading away from a rolling midpoint of price and then displays that deviation as a color-coded histogram.
Instead of looking only at one lookback, this version plots three Kurutoga “leads” at the same time:
Kurutoga Lead (x1) – base length
Kurutoga Lead 2x – slower, 2 × base length
Kurutoga Lead 4x – slowest, 4 × base length
Each lead is calculated both on the chart’s timeframe (LTF) and on a Higher Time Frame (HTF) of your choice, so you can see short-term deviation inside a higher-time-frame structure.
4-color Kurutoga scheme
Each Kurutoga lead uses a 4-color MACD-style scheme:
For a given lead:
Up Light – divergence ≥ 0 and rising compared to the previous bar
Up Dark – divergence ≥ 0 and falling (positive but losing momentum)
Down Light – divergence < 0 and falling (bearish momentum increasing)
Down Dark – divergence < 0 and rising (negative but contracting)
By default the same four teal / red hues are shared across x1, x2, and x4. The only difference between the leads is transparency:
x1 = strongest (least transparent)
x2 = medium opacity
x4 = faintest
This lets you see all three layers at once without the chart becoming a solid block of color.
The HTF areas use the same palette but with an extra transparency offset applied, so they appear as soft background bands rather than competing with the histograms.
Inputs and how to use them
1. Base Length
Defines the lookback for the main Kurutoga Lead.
The script automatically creates:
len1 = baseLength
len2 = baseLength × 2
len3 = baseLength × 4
Smaller base lengths → faster, more reactive histograms.
Larger base lengths → smoother, trend-focused behavior.
2. Higher Time Frame
This is the HTF used for the area plots and HTF midpoints.
Examples:
5-minute chart with HTF = 30 or 60 minutes
15-minute chart with HTF = 4H or 1D
The idea is to trade on the lower timeframe while seeing how far price is stretched relative to a higher-time-frame range midpoint.
3. Show / Hide toggles
Under “Show / Hide” you can independently turn on/off:
Kurutoga Lead (x1)
Kurutoga Lead 2x
Kurutoga Lead 4x
HTF Lead, HTF Lead 2x, HTF Lead 4x
This lets you:
Run only a single Kurutoga if you want a clean panel, or
Stack multiple leads for a “multi-speed” view of extension and mean reversion.
4. Color Scheme (4-color Kurutoga)
Up Light / Up Dark / Down Light / Down Dark – base hues used for every lead.
Lead opacity (x1, 2x, 4x) – sets how strong or faint each lead appears.
x1 is usually your primary “trading speed.”
x2 and x4 can be faded so they act as context.
Extra transparency for HTF areas – additional opacity applied on top of each lead’s opacity when drawing HTF areas. This keeps the HTF layer subtle.
You can fine-tune the exact teal/red values here to match your personal palette.
Practical reading & trade ideas
Trend alignment
When all three Kurutoga leads (x1, 2x, 4x) are above zero, price is trading above its rolling mid-range on multiple speeds → bullish environment.
When all three are below zero, you have a multi-speed bearish environment.
Mixed readings (e.g., x1 above zero, x4 below zero) can signal transition or mean-reversion areas.
Momentum vs exhaustion
Up Light / Down Light (light colors) show momentum expanding in that direction.
Up Dark / Down Dark (dark colors) show momentum contracting – price still on that side of zero, but the push is weakening.
After a run of Up Light bars, a shift to Up Dark may hint at a stall or pullback.
After a run of Down Light bars, a shift to Down Dark may hint at short covering / bounce potential.
Multi-time-frame confluence
Use the HTF areas as a backdrop:
If LTF Kurutoga leads are above zero while the HTF area is also positive (and ideally expanding), that’s strong bullish alignment.
If LTF leads are trying to flip up while HTF divergence is still deeply negative, you may be looking at a counter-trend bounce rather than a true trend change.
Example setups
Trend-following entries:
Look for x2 & x4 leads on the same side of zero as the HTF area, then use x1 color shifts (from Down Dark → Up Light or vice versa) to fine-tune entries in the direction of that higher-time-frame bias.
Mean-reversion fades:
Watch for extreme Kurutoga values where x1/x2 are strongly extended beyond zero while color flips from Light to Dark (momentum stalling) against an opposing HTF backdrop .
Notes
The indicator is non-directional by itself – it measures distance from a rolling midpoint rather than trend structure or order flow. It works best when combined with your existing price action/trend tools (moving averages, HLBO, structure zones, etc.).
Because HTF values are brought down via request.security, choose HTF settings that make sense for your product and session (for example, don’t use very high HTFs on thin intraday markets).
Use the Kurutoga MTF Histogram as a visual scanner for extension, momentum regime, and multi-speed alignment, then layer your own entry/exit rules on top.
Volume Divergence(FULLAUTO)MINHPHUOCKBVolume Divergence( 5 COLOR)
BB50
AUTO TIME
bullishDivergence = color.lime
bearishDivergence =color.red
volSpike =color.rgb
volContraction = color.aqua
incVolTrend =color.new
decVolTrend =color.new
color.rgb
Stablecoin Total Index V4**Stablecoin Total Index V4 - Full History + Full Coverage**
This indicator provides the **best of both worlds**: long historical data AND complete stablecoin coverage.
**How it works:**
- **Before May 2025:** Manual sum of 35 major stablecoins (~90% coverage)
- **After May 2025:** Switches to STABLE.C index (100 stablecoins, 100% coverage)
**Why this approach?**
TradingView's official STABLE.C index was only created on May 19, 2025. This indicator gives you **years of historical data** going back to 2017-2018, then seamlessly transitions to the official index for complete accuracy.
**Note:** There is a ~$30B jump at the May 2025 transition point. This is NOT an error - it represents the ~65 smaller stablecoins that are included in STABLE.C but don't have individual CRYPTOCAP symbols for manual tracking.
**Pre-May 2025 Coverage (35 stablecoins):**
- **Tier 1:** USDT, USDC
- **Tier 2:** DAI, USDe, USDS, FDUSD
- **Tier 3:** TUSD, USDP, GUSD, FRAX, PYUSD, LUSD, BUSD
- **Tier 4 (2024-2025):** USD1, RLUSD, GHO, crvUSD, sUSDe, USDY, USDM
- **Tier 5 (Euro):** EURC, EURT, EURS
- **Tier 6 (DeFi):** USDD, MIM, DOLA, OUSD, alUSD, sUSD, cUSD
- **Tier 7:** HUSD, USDX, USTC
- **Gold-Backed:** PAXG, XAUT
**Post-May 2025:** Full STABLE.C (100 stablecoins)
**Features:**
- Green/Red color based on direction
- 20-period SMA
- Reference lines at $100B, $200B, $300B
**Best used on Daily timeframe or higher.**
Predictive Analysis Engine — Adaptive MACD Forecasting with R² SProfessional and Rule-Compliant Description (Ready for Publishing)
This description explains every component of the script in detail, highlights its originality, and provides traders with clear usage instructions — exactly what TradingView expects.
Predictive Analysis Engine (PAE)
This script is a predictive analysis model that combines trend filtering, linear forecasting, stability analysis (R²), and outlier filtering using ATR to produce an advanced, leading-style version of MACD rather than a traditional lagging one.
The indicator does not rely on random elements; it is built on four core components that work together:
1. Stability Measurement Using R²
The coefficient of determination (R²) is calculated based on the correlation between price and time, then normalized to a 0–1 scale.
A higher R² indicates more stable price movement, allowing the script to increase forecast accuracy.
Here, R² acts as a primary component of the Confidence Filter.
2. Forecasted Price Using Linear Regression
Instead of relying solely on the current price, the script uses:
Linear Regression
Weighted blending between the forecasted price and actual price
This enables the script to build a Leading MACD based on an “advanced” price that anticipates probable movement.
3. Advanced MACD With Adaptive Smoothing
MACD is applied to the blended (real + forecasted) price using:
Fast EMA
Slow EMA
MACD base
Optional TEMA for reducing signal lag
Adjustable histogram smoothing
This process makes MACD more responsive with significantly less lag, reacting faster to predicted movements.
4. Predictive MACD (Projected MACD)
Linear Regression is applied again — but this time to:
MACD
Signal
Histogram
to generate projected versions of each line (proj_macd, proj_signal), while proj_hist is used to produce early signals before the actual crossover occurs.
5. Volatility Filtering Using ATR & Volatility Ratio
ATR is used to evaluate:
Strength of movement
Overextension levels
Signal quality
ATR is combined with R² to compute:
Confidence = R² × Volatility Ratio
This suppresses weak signals and boosts high-quality, reliable ones.
6. Predictive Signals + Safety Filters
A signal is triggered when:
proj_hist crosses the 0 level
Confidence exceeds the required threshold
The real histogram is not excessively stretched (extra safety)
The script includes:
BUY / SELL
BUY_STRONG / SELL_STRONG
based on the smoothed histogram trend.
7. Coloring, Background & Visual Enhancements
The script colors:
The histogram
Chart background
Signal lines
to clearly highlight momentum direction and confidence conditions.
8. Built-In Alerts
The script provides ready-to-use alerts:
BUY Alert
SELL Alert
Both based on the predictive MACD model.
How to Use the Script
Add it to any timeframe and any market.
BUY/SELL signals are generated from the projected histogram crossover.
Higher Confidence = stronger signal.
Background colors help visualize trend transitions instantly.
Recommended to combine with support/resistance or price action.
Indicator Objective
This script is designed to deliver early insight into momentum shifts using a blend of:
Linear forecasting
Trend stability via R²
Signal quality filtering via ATR
A fast and adaptive advanced MACD
Daily AVWAPsDaily AVWAPs is designed for intraday and swing traders who track institutional volume benchmarks. Instead of a single "rolling" line that resets continuously, this indicator identifies the starting timestamp of the last 5 trading sessions and draws five distinct Anchored VWAPs from those exact moments.
This allows traders to see exactly where the average volume-weighted price stands for the current day (1D), yesterday (2D), and the three days prior (3D, 4D, 5D) simultaneously.
Key Features
Polyline Visualization: Unlike standard indicators that plot historical values for every bar (creating a messy "sawtooth" effect), this script uses Pine Script Polylines. It draws clean, static lines starting from the specific anchor point to the present price, mimicking the manual "Anchored VWAP" drawing tool.
Dynamic Session Detection: The script contains zero hardcoded dates. It automatically detects when a new trading day begins based on the chart data. It works seamlessly across all asset classes (Stocks, Crypto, Futures) and automatically adjusts for weekends, holidays, and irregular trading weeks without manual updates.
Unified Color Control: Input colors are synchronized. Changing a color in the settings menu updates both the chart line and the price scale label instantly.
Toggle Controls: Individual checkboxes allow you to toggle any specific VWAP (1D through 5D) on or off to keep your chart clean.
How to Use
Trend Strength: When the 1D, 2D, and 3D VWAPs are "fanning out" in alignment, the trend is strong.
Mean Reversion: In a sideways market, price often gravitates back to the 5-Day VWAP as a "value area."
Support & Resistance: Watch for price to respect the VWAP of a previous high-volume day (e.g., bouncing off the 3D VWAP during a pullback).
Settings
Source: Select the price data source (default is OHLC4) .
Colors & Toggles: Use the checkboxes to enable/disable specific lines. Customize the color for each specific day's AVWAP directly in the Inputs tab.
This indicator was adapted and repurposed from the original work by The_Last_Gentleman .
Technical Note: This indicator is optimized for intraday timeframes (1m, 5m, 15m, 1H). Because it uses polyline and array logic to scan specific session timestamps, it calculates exclusively on the most recent bar to maintain high performance.
TEMAA simple Pine Script indicator that plots three TEMA (Triple EMA) lines on the chart. Useful for trend direction, momentum shifts, and dynamic support/resistance.
MARKET Structure + MTF DashboardThis script automatically detects market structure shifts and visualizes:
Bullish BOS (Break of Structure)
Bearish BOS
Bullish CHoCH (Change of Character)
Bearish CHoCH
On top of that, it shows a multi-timeframe dashboard in the top-right corner of the chart, so you can instantly see the latest structure event on:
1m
6m
36m
216m
1D
regardless of which timeframe you are currently viewing.
Core Logic
The script is built around swing highs / swing lows using ta.pivothigh and ta.pivotlow.
Pivot Definition
A swing high / low is defined by:
lb = left bars
rb = right bars
A pivot high is a bar whose high is higher than the previous lb bars and the next rb bars.
A pivot low is a bar whose low is lower than the previous lb bars and the next rb bars.
Break Conditions
After a pivot is confirmed, the script waits at least N bars (minBarsAfterPivot) before accepting any break of that pivot level as a valid structure event.
You can choose how to define the break:
Close-based (닫기) – use candle close
Wick-based (없음 or 꼬리) – use high/low (full wick)
BOS vs CHoCH Classification
For each timeframe, the script tracks structure breaks and classifies them:
A move breaking above the last swing high → upward break
A move breaking below the last swing low → downward break
Then:
If the current break direction is the same as the previous break
→ it is classified as BOS (trend continuation)
If the current break direction is the opposite of the previous break
→ it is classified as CHoCH (trend reversal / change of character)
Return codes (internally):
1 = Bullish BOS
2 = Bullish CHoCH
-1 = Bearish BOS
-2 = Bearish CHoCH
0 = no event
Chart Annotations
On the active chart timeframe, the script can optionally show:
Structure lines:
Horizontal lines at the price level where BOS / CHoCH occurred
Lines extend to the left until the first candle that previously touched that price zone
Labels:
“Bull BOS”, “Bear BOS”, “Bull CHoCH”, “Bear CHoCH”
Fully color-customizable (line color, label background, text color, transparency)
You can also enable/disable pivot labels (HH, HL, LL, LH) for swing highs and lows, with separate toggles for:
HH / LL
HL / LH
Multi-Timeframe Dashboard
The dashboard in the top-right corner shows, for each timeframe:
1m / 6m / 36m / 216m / 1D
The last structure event (Bull BOS, Bull CHoCH, Bear BOS, Bear CHoCH, or None)
Colored background by event type:
Strong green / red for CHoCH
Softer green / red for BOS
Gray for None
The important part:
Each timeframe’s state is calculated inside that timeframe itself and then pulled via request.security().
That means:
No matter which chart timeframe you are currently on,
the dashboard always shows the same last event for each TF.
Inputs
Pivot lb / Pivot rb
Control how “wide” a swing must be to be accepted as a pivot.
Breakout 기준 (Confirm type)
Close-based or wick-based break logic.
피봇 이후 최소 대기 캔들 수 (Min bars after pivot)
Minimum number of bars that must pass after a pivot forms before a break can count as BOS / CHoCH.
This filters out very early / noisy breaks.
Toggles:
Show pivot balloons (HH/HL/LL/LH)
Show BOS
Show CHoCH
Visual:
Line colors for each event type
Line transparency
Label background transparency
Label text color
Alerts
The script defines alert conditions for:
Bullish BOS
Bearish BOS
Bullish CHoCH
Bearish CHoCH
You can use them to trigger notifications when a new structure event occurs on the active timeframe.
Notes & Usage
This is a market structure helper, not a complete trading system.
BOS / CHoCH should be used together with:
Liquidity zones
Volume / delta
Orderflow or higher-timeframe context
Parameters like lb, rb, and minBarsAfterPivot are intentionally exposed so you can tune:
Sensitivity vs. reliability
Scalping vs. swing-structure
This script is for educational purposes only and does not constitute financial advice.
Always backtest and combine with your own trading plan and risk management.
⚡ Hybrid Zero-Lag SuperTrend + Strength + Compression⚡ Hybrid Zero-Lag SuperTrend — Ultra-Early Trend Detection for Pro Traders
The Hybrid Zero-Lag SuperTrend is a next-generation trend engine built for traders who demand speed, accuracy, and clean signals. By combining Ehlers Zero-Lag smoothing, adaptive ATR bands, trend-strength scoring, and compression detection, this tool delivers trend flips 50–70% earlier than classic SuperTrend while filtering out noise and chop.
Perfect for scalpers, intraday traders, and high-volatility markets (NVDA, TSLA, NQ, ES, BTC).
Key Features
• Zero-Lag SuperTrend — reacts instantly to price shifts
• Trend Strength Score (0–100) — identifies strong vs weak trend conditions
• Compression Detection — highlights breakout zones before the move happens
• Hybrid Labels (last 10 only) — 📈 Strong Buy, 📉 Strong Sell, 🟡 Weak Trend, ⚪ Compression
• Adaptive Volatility Bands — tighten during consolidation, widen during expansion
• Neon trend heatmap — clean visual confirmation without lag
This indicator is engineered for fast markets, early entries, confident exits, and superior trend validation.
If you scalp or trade intraday momentum, this tool instantly becomes one of the most powerful signals on your chart.
Structural Liquidity ZonesTitle: Structural Liquidity Zones
Description:
This script is a technical analysis system designed to map market structure (Liquidity) using dynamic, volatility-adjusted zones, while offering an optional Trend Confluence filter to assist with trade timing.
Concept & Originality:
Standard support and resistance indicators often clutter the chart with historical lines that are no longer relevant. This script solves that issue by utilizing Pine Script Arrays and User-Defined Types to manage the "Lifecycle" of a zone. It automatically detects when a structure is broken by price action and removes it from the chart, ensuring traders only see valid, fresh levels.
By combining this structural mapping with an optional EMA Trend Filter, the script serves as a complete "Confluence System," helping traders answer both "Where to trade?" (Structure) and "When to trade?" (Trend).
Key Features:
1. Dynamic Structure (The Array Engine)
Pivot Logic: The script identifies major turning points using a customizable lookback period.
Volatility Zones: Instead of thin lines, zones are projected using the ATR (Average True Range). This creates a "breathing room" for price, visualizing potential invalidation areas.
Active Management: The script maintains a memory of active zones. As new bars form, the zones extend forward. If price closes beyond a zone, the script's garbage collection logic removes the level, keeping the chart clean.
2. Trend Confluence (Optional)
EMA System: Includes a Fast (9) and Slow (21) Exponential Moving Average module.
Signals: Visual Buy/Sell labels appear on crossover events.
Purpose: This allows for "Filter-based Trading." For example, a trader can choose to take a "Buy" bounce from a Support Zone only if the EMA Trend is also bullish.
Settings:
Structure Lookback: Controls the sensitivity of the pivot detection.
Max Active Zones: Limits the number of lines to optimize performance.
ATR Settings: Adjusts the width of the zones based on volatility.
Enable Trend Filter: Toggles the EMA lines and signals on/off.
Usage:
This tool is intended for structural analysis and educational purposes. It visualizes the relationship between price action pivots and momentum trends.






















