Machine Learning Key Levels [AlgoAlpha]🟠 OVERVIEW
This script plots Machine Learning Key Levels on your chart by detecting historical pivot points and grouping them using agglomerative clustering to highlight price levels with the most past reactions. It combines a pivot detection, hierarchical clustering logic, and an optional silhouette method to automatically select the optimal number of key levels, giving you an adaptive way to visualize price zones where activity concentrated over time.
🟠 CONCEPTS
Agglomerative clustering is a bottom-up method that starts by treating each pivot as its own cluster, then repeatedly merges the two closest clusters based on the average distance between their members until only the desired number of clusters remain. This process creates a hierarchy of groupings that can flexibly describe patterns in how price reacts around certain levels. This offers an advantage over K-means clustering, since the number of clusters does not need to be predefined. In this script, it uses an average linkage approach, where distance between clusters is computed as the average pairwise distance of all contained points.
The script finds pivot highs and lows over a set lookback period and saves them in a buffer controlled by the Pivot Memory setting. When there are at least two pivots, it groups them using agglomerative clustering: it starts with each pivot as its own group and keeps merging the closest pairs based on their average distance until the desired number of clusters is left. This number can be fixed or chosen automatically with the silhouette method, which checks how well each point fits in its cluster compared to others (higher scores mean cleaner separation). Once clustering finishes, the script takes the average price of each cluster to create key levels, sorts them, and draws horizontal lines with labels and colors showing their strength. A metrics table can also display details about the clusters to help you understand how the levels were calculated.
🟠 FEATURES
Agglomerative clustering engine with average linkage to merge pivots into level groups.
Dynamic lines showing each cluster’s price level for clarity.
Labels indicating level strength either as percent of all pivots or raw counts.
A metrics table displaying pivot count, cluster count, silhouette score, and average pivots per cluster.
Optional silhouette-based auto-selection of cluster count to adaptively find the best fit.
🟠 USAGE
Add the indicator to any chart. Choose how far back to detect pivots using Pivot Length and set Pivot Memory to control how many are kept for clustering (more pivots give smoother levels but can slow performance). If you want the script to pick the number of levels automatically, enable Auto No. Levels ; otherwise, set Number of Levels . The colored horizontal lines represent the calculated key levels, and circles show where pivots occurred colored by which cluster they belong to. The labels beside each level indicate its strength, so you can see which levels are supported by more pivots. If Show Metrics Table is enabled, you will see statistics about the clustering in the corner you selected. Use this tool to spot areas where price often reacts and to plan entries or exits around levels that have been significant over time. Adjust settings to better match volatility and history depth of your instrument.
指標和策略
Initial Balance Wave Map📊 Initial Balance Wave Map – Powered by VWAP Wave
The Initial Balance Wave Map is your visual roadmap for navigating the first hour of trading like a pro. Built to align with the VWAP Wave System, this indicator automatically plots the Initial Balance (IB) high and low, calculates real-time IB extensions, and layers in key midpoints and volume-based structure to map out high-probability zones for both reversals and breakouts. This upgraded indicator builds upon the open-source foundation by @noop-noop, with enhancements and user-facing labels tailored for Auction Market Theory, scalping, and structure-based trade setups.
🔍 Key Features:
✅ Automatically plots IB High/Low based on session times (customizable)
🔁 Displays +1x / +2x IB extensions and midpoints for precision targeting
📐 Integrated with VWAP Wave strategy: use with deviation bands for full context
🎯 Works across futures, forex, and crypto — universal structure map
🎨 Optional visual highlights for calculation window and labeling
💡 How to Use:
Fade setups: Look for price rejection at ±1x or ±2x IB extensions inside a balanced market.
Breakout setups: Combine IB breaks with VWAP Wave price discovery for high-momentum plays.
Return to value: When price rejects extension levels and rotates, target the IB midpoint or VWAP.
Whether you’re scalping futures like NQ & ES, swinging gold, or analyzing forex pairs, the Initial Balance Wave Map gives you the structural clarity to react instead of guess.
For more information, visit vwapwave.com and find the VWAP Wave System official published book on Amazon.com .
🙌 Credits:
This script builds upon the excellent open-source work by @noop-noop. Original script available here .
fadi ffa This script is for educational purposes only. It draws historical pivot points and labels them on the chart to help users visualize price levels. It does not provide trading signals, recommendations, or any financial advice. Use at your own risk. The author is not responsible for any decisions made based on this script.
VEP - Volume Explosion Predictor💥 VEP - Volume Explosion Predictor
General Overview
The Volume Explosion Predictor (VEP) is an advanced indicator that analyzes volume peaks to predict when the next volume explosion might occur. Using statistical analysis on historical patterns, it provides accurate probabilities on moments of greater trading activity.
MAIN FEATURES
🎯 Intelligent volume peak detection
Automatically identifies significant volume peaks
Anti-consecutive filter to avoid redundant signals
Customizable threshold for detection sensitivity
📊 Advanced statistical analysis
Calculates the average distance between volume peaks
Monitors the number of sessions without peaks
Tracks the maximum historical range without activity
🔮 Predictive system
Dynamic probability: Calculates the probability of an imminent peak
Visual indicators: Background colors that change based on probability
Time forecasts: Estimates remaining sessions to the next peak
📈 Visual signals
Colored arrows: Green for bullish peaks, red for bearish peaks
Statistics table: Complete real-time overview
ALERT SYSTEM
🚨 Three Alert Levels
New Valid Volume Peak: New peak detected
Approaching Prediction: Increasing probability
High Peak Probability: High probability of explosion
HOW TO USE IT
📋 Recommended setup
Timeframe : Works on all timeframes but daily, weekly or monthly timeframe usage is recommended. In any case, it should always be used consistently with your time horizon
Markets : Stocks, crypto, forex, commodities
Threshold for volume peak realization : It's recommended to start with 2.0x (i.e., twice the volume average) for normal markets, 1.5x for more volatile markets. This parameter can be set in the settings as desired
🎨 Visual interpretation
Green Arrows : Peak during bullish candle
Red Arrows : Peak during bearish candle
Red Background : High probability (>90%) of new peak
Yellow Background : Medium probability (50-70%)
📊 STATISTICS TABLE
The table shows:
Total peaks analyzed
Average distance between peaks
Current sessions without peaks
Forecast remaining sessions
Percentage probability
Volume threshold needed for peak realization
STRATEGIC ADVANTAGES
🎯 For Day Traders
Anticipates moments of greater volatility for analysis, supporting the evaluation of trading setups and providing context on low volume periods
📈 For Swing Traders
Identifies high-probability volume patterns, supporting breakout analysis with volume and improving understanding of market timing
🔍 For Technical Analysts
Understands the stock's volume patterns.
Helps evaluate the historical market interest and supports quantitative research and analysis
OTHER THINGS TO KNOW...
A) Anti-Consecutive Algorithm : allows to avoid multiple and consecutive volume signals and peaks at close range
B) Statistical Validation : Uses standard deviation for accuracy
C) Memory Management : Limits historical data for optimal performance
D) Compatibility : Works with all TradingView chart types
⚠️ IMPORTANT DISCLAIMER
This indicator is exclusively a technical analysis tool for studying volume patterns. It does not provide investment advice, trading signals or entry/exit points. All trading decisions are at the complete discretion and responsibility of the user. Always use in combination with other technical and fundamental analysis and proper risk management.
DESCRIZIONE IN ITALIANO
💥 VEP - Volume Explosion Predictor
Panoramica Generale
Il Volume Explosion Predictor (VEP) è un indicatore avanzato che analizza i picchi di volume per prevedere quando potrebbe verificarsi la prossima esplosione di volume. Utilizzando analisi statistiche sui pattern storici, fornisce probabilità accurate sui momenti di maggiore attività di trading.
CARATTERISTICHE PRINCIPALI
🎯 Rilevamento intelligente dei picchi di volume
- Identifica automaticamente i picchi di volume significativi
- Filtro anti-consecutivo per evitare segnali ridondanti
- Soglia personalizzabile per la sensibilità del rilevamento
📊 Analisi statistica avanzata
Calcola la distanza media tra i picchi di volume
Monitora il numero di sessioni senza picchi
Traccia il range massimo storico senza attività
🔮 Sistema predittivo
Probabilità dinamica: Calcola la probabilità di un imminente picco
Indicatori visivi: Colori di sfondo che cambiano in base alla probabilità
Previsioni temporali: Stima delle sessioni rimanenti al prossimo picco
📈 Segnali visivi
1) Frecce colorate: Verdi per picchi rialzisti, rosse per ribassisti
2) Tabella statistiche: Panoramica completa in tempo reale
SISTEMA DI ALERT
🚨 Tre Livelli di Alert
1) New Valid Volume Peak: Nuovo picco rilevato
2) Approaching Prediction: Probabilità in aumento
3) High Peak Probability: Alta probabilità di esplosione
COME UTILIZZARLO
📋 Setup consigliato
- Timeframe : Funziona su tutti i timeframe ma è consigliabile un utilizzo su timeframe giornaliero, settimanale o mensile. In ogni caso va sempre utilizzato coerentemente con il proprio orizzonte temporale
- Mercati : Azioni, crypto, forex, commodities
- Limite affinché si realizzi il picco di volumi : Si consiglia di iniziare con 2.0x (ovvero due volte la media dei volumi) per mercati normali, 1.5x per mercati più volatili. Questo parametro può essere settato nelle impostazioni a proprio piacimento
🎨 Interpretazione visuale
Frecce Verdi : Picco durante candela rialzista
Frecce Rosse : Picco durante candela ribassista
Sfondo Rosso : Alta probabilità (>90%) di nuovo picco
Sfondo Giallo : Probabilità media (50-70%)
📊 TABELLA STATISTICHE
La tabella mostra:
1. Totale picchi analizzati
2. Distanza media tra picchi
3. Sessioni attuali senza picchi
4. Previsione sessioni rimanenti
5. Probabilità percentuale
6. Soglia volume necessaria affinché si realizzi il picco di volumi
VANTAGGI STRATEGICI
🎯 Per Day Traders
Anticipa i momenti di maggiore volatilità per analisi, supportando la valutazione dei setup di trading e fornendo al contempo un contesto sui periodi di basso volume
📈 Per Swing Traders
1. Identifica pattern di volume ad alta probabilità, supportando l'analisi dei breakout con volume e migliorando la comprensione dei tempi di mercato
🔍 Per Analisti Tecnici
Comprende i pattern di volume del titolo.
Aiuta a fare una valutazione dell'interesse storico del mercato ed è di supporto alla ricerca e analisi quantitativa
ALTRE COSE DA SAPERE...
A) Algoritmo Anti-Consecutivo : permette di evitare segnali e picchi di volume multipli e consecutivi multipli a distanza ravvicinata
B) Validazione Statistica : Utilizza deviazione standard per l'accuratezza
C) Gestione Memoria : Limita i dati storici per performance ottimali
D) Compatibilità : Funziona con tutti i tipi di grafico TradingView
⚠️ DISCLAIMER IMPORTANTE
Questo indicatore è esclusivamente uno strumento di analisi tecnica per lo studio dei pattern di volume. Non fornisce consigli di investimento, segnali di trading o punti di ingresso/uscita. Tutte le decisioni di trading sono a completa discrezione e responsabilità dell'utente. Utilizzare sempre in combinazione con altre analisi tecniche, fondamentali e una adeguata gestione del rischio.
ZF RSI PLOT1. How RSI Is Calculated
RSI is typically computed over 14 periods (days, hours, etc.) using the formula:
RSI=100−1001+RS
RSI=100−1+RS100
where
RS=Average Gain over N periodsAverage Loss over N periods
RS=Average Loss over N periodsAverage Gain over N periods
2. Overbought (> 70)
Definition: An RSI reading above 70 suggests that the instrument has experienced relatively large gains and may be “overbought.”
Interpretation:
Potential Reversal: Prices may have risen too far, too fast, and could be due for a pullback or consolidation.
Exit/Take Profits: Traders often trim long positions or tighten stops as RSI climbs above 70.
Confirmation Needed:
Bearish “RSI divergence” (price makes a higher high while RSI makes a lower high).
Price action signals (e.g., bearish candlestick patterns).
Volume drying up on advances.
3. Oversold (< 30)
Definition: An RSI reading below 30 suggests that the instrument has experienced relatively large losses and may be “oversold.”
Interpretation:
Potential Bounce: Prices may have fallen too far, too fast, and could be due for a rebound or consolidation.
Buying Opportunity: Traders often look to initiate or add to long positions as RSI drops below 30.
Confirmation Needed:
Bullish “RSI divergence” (price makes a lower low while RSI makes a higher low).
Price action signals (e.g., hammer candlesticks, support levels).
Volume picking up on declines.
4. Divergences
Bullish Divergence: Price ↓ makes a lower low, RSI ↑ makes a higher low ⇒ possible trend change to the upside.
Bearish Divergence: Price ↑ makes a higher high, RSI ↓ makes a lower high ⇒ possible trend change to the downside.
5. Adjustments & Variations
Stronger Trends: Use 80/20 thresholds to avoid early signals in very strong up- or down-trends.
Shorter/Longer Periods: Adjust the look-back period (e.g., 9 for more sensitivity, 21 for smoother signals) depending on your time frame.
6. Limitations & Best Practices
Can Stay Extreme: In strong trends, RSI may remain overbought/oversold for extended periods—don’t trade it in isolation.
Combine with Other Tools: Use trend filters (moving averages, ADX), support/resistance, and volume to confirm entries.
Risk Management: Always set stops and manage position size; RSI signals can fail.
7. Putting It All Together
Identify Trend: Is the market in an uptrend, downtrend, or range?
Watch RSI Extremes: Note when RSI crosses above 70 or below 30.
Seek Confirmation: Look for divergences, candlestick/pricing signals, and supporting volume.
Execute & Manage: Enter with clear stop-loss levels, consider scaling, and lock in profits appropriately.
By understanding both the raw threshold signals and the nuances—like divergences and trend-context—you can harness RSI’s simplicity while mitigating its pitfalls.
Momentum Regression [BackQuant]Momentum Regression
The Momentum Regression is an advanced statistical indicator built to empower quants, strategists, and technically inclined traders with a robust visual and quantitative framework for analyzing momentum effects in financial markets. Unlike traditional momentum indicators that rely on raw price movements or moving averages, this tool leverages a volatility-adjusted linear regression model (y ~ x) to uncover and validate momentum behavior over a user-defined lookback window.
Purpose & Design Philosophy
Momentum is a core anomaly in quantitative finance — an effect where assets that have performed well (or poorly) continue to do so over short to medium-term horizons. However, this effect can be noisy, regime-dependent, and sometimes spurious.
The Momentum Regression is designed as a pre-strategy analytical tool to help you filter and verify whether statistically meaningful and tradable momentum exists in a given asset. Its architecture includes:
Volatility normalization to account for differences in scale and distribution.
Regression analysis to model the relationship between past and present standardized returns.
Deviation bands to highlight overbought/oversold zones around the predicted trendline.
Statistical summary tables to assess the reliability of the detected momentum.
Core Concepts and Calculations
The model uses the following:
Independent variable (x): The volatility-adjusted return over the chosen momentum period.
Dependent variable (y): The 1-bar lagged log return, also adjusted for volatility.
A simple linear regression is performed over a large lookback window (default: 1000 bars), which reveals the slope and intercept of the momentum line. These values are then used to construct:
A predicted momentum trendline across time.
Upper and lower deviation bands , representing ±n standard deviations of the regression residuals (errors).
These visual elements help traders judge how far current returns deviate from the modeled momentum trend, similar to Bollinger Bands but derived from a regression model rather than a moving average.
Key Metrics Provided
On each update, the indicator dynamically displays:
Momentum Slope (β₁): Indicates trend direction and strength. A higher absolute value implies a stronger effect.
Intercept (β₀): The predicted return when x = 0.
Pearson’s R: Correlation coefficient between x and y.
R² (Coefficient of Determination): Indicates how well the regression line explains the variance in y.
Standard Error of Residuals: Measures dispersion around the trendline.
t-Statistic of β₁: Used to evaluate statistical significance of the momentum slope.
These statistics are presented in a top-right summary table for immediate interpretation. A bottom-right signal table also summarizes key takeaways with visual indicators.
Features and Inputs
✅ Volatility-Adjusted Momentum : Reduces distortions from noisy price spikes.
✅ Custom Lookback Control : Set the number of bars to analyze regression.
✅ Extendable Trendlines : For continuous visualization into the future.
✅ Deviation Bands : Optional ±σ multipliers to detect abnormal price action.
✅ Contextual Tables : Help determine strength, direction, and significance of momentum.
✅ Separate Pane Design : Cleanly isolates statistical momentum from price chart.
How It Helps Traders
📉 Quantitative Strategy Validation:
Use the regression results to confirm whether a momentum-based strategy is worth pursuing on a specific asset or timeframe.
🔍 Regime Detection:
Track when momentum breaks down or reverses. Slope changes, drops in R², or weak t-stats can signal regime shifts.
📊 Trade Filtering:
Avoid false positives by entering trades only when momentum is both statistically significant and directionally favorable.
📈 Backtest Preparation:
Before running costly simulations, use this tool to pre-screen assets for exploitable return structures.
When to Use It
Before building or deploying a momentum strategy : Test if momentum exists and is statistically reliable.
During market transitions : Detect early signs of fading strength or reversal.
As part of an edge-stacking framework : Combine with other filters such as volatility compression, volume surges, or macro filters.
Conclusion
The Momentum Regression indicator offers a powerful fusion of statistical analysis and visual interpretation. By combining volatility-adjusted returns with real-time linear regression modeling, it helps quantify and qualify one of the most studied and traded anomalies in finance: momentum.
BB + RSI & Volume FilterThis script overlays three sets of technical filters on your price chart and generates signals when conditions align:
Bollinger Bands
Calculates upper, middle, and lower bands using either SMA or EMA.
Buy signal when price crosses up through the lower band.
Sell signal when price crosses down through the upper band.
Volume Filter
Computes a simple moving average of volume.
Ensures breakout moves have sufficient volume by requiring current volume > SMA(volume) × multiplier.
RSI Filter
Computes RSI on the chosen source.
Buy when RSI crosses above the oversold threshold.
Sell when RSI crosses below the overbought threshold.
Only plots RSI signals that pass the volume filter.
You get:
Bollinger entry/exit shapes (labeled “BB ↑/↓”).
RSI entry/exit shapes (labeled “RSI”) only when volume confirms the move.
Alerts for each signal type.
This combination reduces false breakouts by requiring both volatility (Bollinger) or momentum (RSI) and volume confirmation
Liquidity Zone IndicatorLiquidity Zone Indicator
This PineScript indicator for TradingView identifies liquidity zones in the market where significant trading activity occurs, based on volume spikes and price levels. It highlights areas where large orders may be filled, useful for day traders and scalpers.
Features:
Detects bullish and bearish liquidity zones using a lookback period (default: 50 bars) and volume threshold (default: 1.5x average volume).
Displays zones as shaded boxes or diamond markers above/below bars, customizable by color.
Option to extend zones until price breaks through, with dynamic transparency for better visualization.
Includes an alert for when a liquidity zone is hit.
Settings:
Liquidity Lookback: Number of bars to analyze for high/low price levels.
Volume Threshold: Multiplier for detecting volume spikes.
Display as Zone: Toggle between zone boxes or markers.
Extend Zone: Keep zones active until price crosses them.
Zone Color: Customize the color of zones or markers.
Ideal for traders looking to spot potential reversal or breakout areas driven by liquidity.
Volume bar range# Volume Bar Range (VBR) Indicator
## Overview
The Volume Bar Range indicator identifies key support and resistance levels based on high-volume price bars. It creates a visual range that represents significant price levels where the market has shown strong interest through volume confirmation.
## Features
### Visual Range Display
- **Blue/Aqua Area**: Shows the price range of the highest volume bar within the lookback period
- **Dynamic Color**: The fill color changes to indicate whether the range is stable (aqua) or newly updated (white)
- **Boundary Lines**: Invisible white lines mark the upper and lower boundaries of the range
### Trading Signals
- **BUY Signal**: Blue upward arrow appears when price breaks above the resistance level with volume confirmation
- **SELL Signal**: Black downward arrow appears when price breaks below the support level with volume confirmation
## How to Use
### Setup
1. Apply the indicator to any chart
2. The indicator automatically identifies the highest volume bar in the last 55 periods
3. The price range of this high-volume bar becomes your support/resistance zone
### Trading Strategy
- **Range Trading**: Trade within the identified support/resistance range
- **Breakout Trading**: Enter positions when price breaks above resistance (BUY) or below support (SELL)
- **Volume Confirmation**: Only take signals when current volume exceeds the 21-period average
### Signal Interpretation
- **BUY Signal**: Price closes above the resistance level with above-average volume
- **SELL Signal**: Price closes below the support level with above-average volume
- **No Signal**: Price remains within the range or volume is insufficient
## Key Parameters
- **Lookback Period**: 55 bars (automatically identifies the highest volume bar)
- **Volume MA**: 21-period simple moving average for volume confirmation
- **Signal Size**: Tiny markers to avoid chart clutter
## Best Practices
- Use on multiple timeframes for confirmation
- Combine with other technical indicators for stronger signals
- Pay attention to the color changes in the range area
- Consider market context and overall trend direction
## Ideal Markets
- Works well on liquid markets with consistent volume patterns
- Effective on stocks, forex, and crypto markets
- Best suited for swing trading and medium-term analysis
This indicator is particularly useful for traders who rely on volume analysis and want to identify key price levels where the market has shown significant interest.
Rolling Log Returns [BackQuant]Rolling Log Returns
The Rolling Log Returns indicator is a versatile tool designed to help traders, quants, and data-driven analysts evaluate the dynamics of price changes using logarithmic return analysis. Widely adopted in quantitative finance, log returns offer several mathematical and statistical advantages over simple returns, making them ideal for backtesting, portfolio optimization, volatility modeling, and risk management.
What Are Log Returns?
In quantitative finance, logarithmic returns are defined as:
ln(Pₜ / Pₜ₋₁)
or for rolling periods:
ln(Pₜ / Pₜ₋ₙ)
where P represents price and n is the rolling lookback window.
Log returns are preferred because:
They are time additive : returns over multiple periods can be summed.
They allow for easier statistical modeling , especially when assuming normally distributed returns.
They behave symmetrically for gains and losses, unlike arithmetic returns.
They normalize percentage changes, making cross-asset or cross-timeframe comparisons more consistent.
Indicator Overview
The Rolling Log Returns indicator computes log returns either on a standard (1-period) basis or using a rolling lookback period , allowing users to adapt it to short-term trading or long-term trend analysis.
It also supports a comparison series , enabling traders to compare the return structure of the main charted asset to another instrument (e.g., SPY, BTC, etc.).
Core Features
✅ Return Modes :
Normal Log Returns : Measures ln(price / price ), ideal for day-to-day return analysis.
Rolling Log Returns : Measures ln(price / price ), highlighting price drift over longer horizons.
✅ Comparison Support :
Compare log returns of the primary instrument to another symbol (like an index or ETF).
Useful for relative performance and market regime analysis .
✅ Moving Averages of Returns :
Smooth noisy return series with customizable MA types: SMA, EMA, WMA, RMA, and Linear Regression.
Applicable to both primary and comparison series.
✅ Conditional Coloring :
Returns > 0 are colored green ; returns < 0 are red .
Comparison series gets its own unique color scheme.
✅ Extreme Return Detection :
Highlight unusually large price moves using upper/lower thresholds.
Visually flags abnormal volatility events such as earnings surprises or macroeconomic shocks.
Quantitative Use Cases
🔍 Return Distribution Analysis :
Gain insight into the statistical properties of asset returns (e.g., skewness, kurtosis, tail behavior).
📉 Risk Management :
Use historical return outliers to define drawdown expectations, stress tests, or VaR simulations.
🔁 Strategy Backtesting :
Apply rolling log returns to momentum or mean-reversion models where compounding and consistent scaling matter.
📊 Market Regime Detection :
Identify periods of consistent overperformance/underperformance relative to a benchmark asset.
📈 Signal Engineering :
Incorporate return deltas, moving average crossover of returns, or threshold-based triggers into machine learning pipelines or rule-based systems.
Recommended Settings
Use Normal mode for high-frequency trading signals.
Use Rolling mode for swing or trend-following strategies.
Compare vs. a broad market index (e.g., SPY or QQQ ) to extract relative strength insights.
Set upper and lower thresholds around ±5% for spotting major volatility days.
Conclusion
The Rolling Log Returns indicator transforms raw price action into a statistically sound return series—equipping traders with a professional-grade lens into market behavior. Whether you're conducting exploratory data analysis, building factor models, or visually scanning for outliers, this indicator integrates seamlessly into a modern quant's toolbox.
X ORTX ORT — Opening Range & Time Reference Tool
Overview
The X ORT indicator is a precision tool designed for intraday traders seeking to anchor their trading decisions to high-probability price levels. It captures key market reference points including Opening Ranges, Settlement Prices, and Time-Specific Opens, all based on New York time, to help identify potential pivots and directional bias in the market.
Key Features & Usage
🔹 Opening Range Boxes (ORs)
The indicator defines up to two customizable Opening Ranges (e.g., 9:30–9:59 and 8:20–8:49 ET). Each range dynamically tracks the high, low, and midpoint price as the session unfolds, and continues to extend those levels forward throughout the day.
Use as Pivots: The high and low of the Opening Range often act as intraday support and resistance zones. A breakout above the ORH (Opening Range High) may signal bullish intent, while a drop below the ORL (Opening Range Low) may suggest bearish momentum.
Use for Directional Bias: If price remains above or below the range after completion, it may indicate a continuation in that direction. The midpoint (dashed line) serves as a mean-reversion or fair value pivot.
🔸 Settlement Price Anchors
The indicator optionally plots Daily, Weekly, and Monthly Settlement Prices, which are significant institutional reference points.
Use as Market Anchors: Settlement prices are often used by professionals to gauge positioning. Price acceptance above or below settlement can signal strength or weakness and guide directional trades.
Historical weekly and monthly settlements help define multi-day or swing levels for broader context.
🔹 Time-Based Open Levels
X ORT also draws horizontal lines at the open price of specific time points: Midnight, 8:30 AM, 9:30 AM, and 1:30 PM ET.
Use for Session Anchors: These reference opens are useful for understanding session shifts, aligning with key economic releases (like 8:30 AM), and gauging session-to-session continuity.
Why Use X ORT?
Objective Structure: Provides rule-based levels to avoid emotional trading.
Visual Clarity: Transparent, extendable boxes and labeled lines help traders focus on key decision zones.
Multi-Time Context: Blends intraday and higher timeframe levels to support short-term and swing traders.
Whether you're breakout trading, fading range extremes, or gauging market bias, X ORT offers a reliable structural foundation that aligns with how professionals track price behavior throughout the trading day.
Lyrae/SMC 6-EMA StackLyrae/SMC EMA Stack — Usage & Functionality
This script plots six core EMAs used in the Lyrae/ATS/Smart Money Concepts strategy. Each EMA serves a specific role for institutional structure, trend bias, and execution:
EMA 5 (Yellow) — Microstructure Flow / Scalper Trigger:
Tracks immediate momentum and short-term price reversals.
Used for “commitment dot” entries and aggressive intrabar scalp signals.
Sharp move away from EMA5 often indicate exhaustion or liquidity sweeps.
EMA 21 (Blue) — Short-Term Bias / Sentiment Guide:
Defines the fast-moving market structure.
Confluence of EMA5 and EMA21 (stacked) confirms high conviction trends.
Ideal for pullback entries and early reversals.
EMA 50 (Orange) — Institutional Support/Resistance (Dynamic Order Block):
Key institutional level for pullbacks, mitigations, and liquidity grabs.
Price reacts here for most SMC mitigation setups and “expansion box” targets.
Also serves as a dynamic volatility anchor for dynamic stop placement.
EMA 63 (Green) — Session Mean Reversion / Volatility Filter:
Used to filter trend exhaustion and session mean reversion.
Great for identifying mid-session traps and SMC “liquidity void” re-tests.
Confluence with EMA50 often signals major pivots.
EMA 84 (Purple) — Higher Session Bias / Institutional Anchor:
Maps slow sessional trend changes and large institutional order flow.
Key for swing scalp entries and “order block defense” in trending markets.
Provides premium/discount levels relative to session range.
EMA 200 (Red) — Macro Trend / Smart Money Bias:
The ultimate directional filter — marks overall market regime.
Only take buys above EMA200 (unless strong reversal SMC context); only take sells below.
Major structure shifts and break-of-structure (BOS) signals are most powerful when occurring at/near EMA200.
How to Use:
EMA Stacking: The more EMAs stacked in order, the stronger the institutional trend conviction.
Pullbacks: Highest-probability entries occur at EMA50/63/84 with SMC structure alignment.
Momentum Breaks: Commitment candles breaking EMA5/21 often signal the start of high-RR moves.
Risk Management: Use EMA50/63 as dynamic stops and break-even triggers.
Best Timeframes:
Stack is valid for all timeframes; optimized for M1–M15 for entry precision, H1+ for trend bias.
Pro Tip:
Combine this EMA stack with order blocks, liquidity zones, and volume spikes for the highest accuracy and trap avoidance in volatile markets.
Multi-Timeframe PivotDescription:
This script provides an advanced tool for multi-timeframe pivot point
analysis. It identifies swing points based on a candle's relationship to
its neighbors. The default strength settings of 1 align with the Inner
Circle Trader (ICT) concept of market structure.
The ICT concept defines a swing point based on a simple 3-candle pattern:
- A swing high is a candle where the candles to the immediate left and right
both have lower highs.
- A swing low is a candle where the candles to the immediate left and right
both have higher lows.
A key feature is its ability to accurately calculate and translate pivot
points from up to five higher timeframes (HTFs) and display them
precisely on a lower timeframe (LTF) chart.
NOTE: This indicator is designed to show HTF data on an LTF chart.
If you select a timeframe in the settings that is lower than your
current chart's timeframe, it will show pivots for the chart's
timeframe instead.
Core Features:
- Up to five independent higher timeframes.
- Per-timeframe customization for pivot strength (left/right bars) and color.
- Optional "Watchlines" that project the price of each pivot forward,
complete with a text label identifying the timeframe.
- An optional "Alignment Model" that colors the background when price is
aligned across all active timeframes (requires at least 2 TFs to be enabled).
Default State:
For a clean initial application, the Watchlines and Alignment Model features
are disabled by default but can be enabled in the settings.
+ ATR Table and BracketsHi, all. I'm back with a new indicator—one I firmly believe could be one of the most valuable indicators you keep in your indicator toolshed—based around true range.
This is a simple, streamlined indicator utilizing true range and average true range that will help any trader with stoploss, trailing stoploss, and take-profit placement—things that I know many traders use average true range for. It could also be useful for trade entries as well, depending on the trader's style.
Typically, most traders (or at least what I've seen recommended across websites, video tutorials on YouTube, etc.) are taught to simply take the ATR number and use that, and possibly some sort of multiplier, as your stoploss and take-profit. This is fine, but I thought that it might be possible to dive a bit deeper into these values. Because an average is a combination of values, some higher, some lower, and we often see ATR spikes during periods of high volatility, I thought wouldn't it be useful to know what value those ATR spikes are, and how do they relate to the ATR? Then I thought to myself, well, what about the most volatile candle within that ATR (the candle with the greatest true range)? Couldn't knowing that value be useful to a trader? So then the idea of a table displaying these values, along with the ATR and the ATR times some multiplier number, would be a useful, simple way to display this information. That's what we have here.
The table is made up of two columns, one with the name of the metric being measured, and the other with its value. That's it. Simple.
As nice as this was, I thought an additional, great, and perhaps better, way to visualize this information would be in the form of brackets extending from the current bar. These are simply lines/labels plotted at the price values of the ATR, ATR times X, highest ATR, highest ATR times X, and highest TR value. These labels supply the actual values of the ATR, etc., but may also display the price if you should choose (both of these values are toggleable in the 'Inputs' section of the indicator.). Additionally, you can choose to display none of these labels, or all five if you wish (leaves the chart a bit cluttered, as shown in the image below), though I suspect you'll determine your preferences for which information you'd like to see and which not.
Chart with all five lines/labels displayed. I adjusted the ATRX value to 3 just to make the screenshot as legible as possible. Default is set to 1.5. As you can see, the label doesn't show the multiplier number, but the table does.
Here's a screenshot of the labels showing the price in addition to the value of the ATR, set to "Previous Closing Price," (see next paragraph for what that means) and highest TR. Personally, I don't see the value in the displaying the price, but I thought some people might want that. It's not available in the table as of now, but perhaps if I get enough requests for it I will add it.
That's basically it, but one last detail I need to go over is the dropdown box labeled "Bar Value ATR Levels are Oriented To." Firstly, this has no effect on Highest ATR, Highest ATRX, and Highest TR levels. Those are based on the ATR up to the last closed candle, meaning they aren't including the value of the currently open candle (this would be useless). However, knowing that different traders trade different ways it seemed to me prudent to allow for traders to select which opening or closing value the trader wishes to have the ATR brackets based on. For example, as someone who has consumed much No Nonsense Forex content I know that traders are urged to enter their trades in the last fifteen minutes of the trading day because the ATR is unlikely to change significantly in that period (ATR being the centerpiece of NNFX money management), so one of three selections here is to plot the brackets based on the ATR's inclusion of this value (this of course means the brackets will move while the candle is still open). The other options are to set the brackets to the current opening price, or the previous closing price. Depending on what you're trading many times these prices are virtually identical, but sometimes price gaps (stocks in particular), so, wanting your brackets placed relative to the previous close as opposed to the current open might be preferable for some traders.
And that's it. I really hope you guys like this indicator. I haven't seen anything closely similar to it on TradingView, and I think it will be something you all will find incredibly handy.
Please enjoy!
AZ Dynamic Trend Indicator with Heikin-Ashi### Dynamic Trend Indicator with Heikin-Ashi (v2.7)
**Effortlessly identify trends and reversals** with this versatile tool combining multi-timeframe analysis, adaptive moving averages, and Heikin-Ashi smoothing. Here's what it offers:
#### 🔍 **Core Features**
1. **Dual Timeframe Analysis**:
- Track trends on higher timeframes (e.g., 1H/D) while viewing signals on your current chart.
- Toggle between **Heikin-Ashi** or standard candles for cleaner trend visualization.
2. **8 Customizable MAs**:
- Choose from **ALMA, HMA, SMA, SWMA, VWMA, WMA, ZLEMA, or EMA** with adjustable periods.
- Unique "Trend Strength" metric: `(MA_Close - MA_Open) / (MA_High - MA_Low)` highlights momentum direction.
3. **Smart Signals**:
- **Entry/Exit**: Triangles mark crossovers between MA Close/Open.
- **Reversal Alerts**: Detects counter-trend moves within a user-defined window (default: 3 bars) after signals.
- Color-coded plots: Bullish (🟢), Bearish (🔴), Reversal Bull (🔵), Reversal Bear (🟠).
#### 🎨 **Visual Customization**
- Toggle **High/Low MA lines**, **Close line**, and **fill colors**.
- Adjust colors for all elements to match your chart theme.
- Hide signals or reversal markers as needed.
#### ⚙️ **Practical Use**
- **Trend Following**: Use the MA Close/Open crossover with trend fill colors to confirm direction.
- **Reversal Trading**: Capitalize on pullbacks with reversal signals (e.g., after a bearish signal, watch for Bull Reversal markers).
- **Multi-Timeframe Confirmation**: Avoid false signals by aligning higher-timeframe trends with your entries.
*Ideal for swing traders and trend riders!*
**Note**: Adjust `MA Period`, `Reversal Window`, and `Trend Timeframe` for your strategy. Disable Heikin-Ashi in choppy markets for faster reactions.
---
*Code v2.7 updates: Optimized reversal logic, added ALMA/ZLEMA support, and enhanced visual controls.*
[eLm] 0-1-2# 📈 Market Structure Indicator – Counter System
This indicator dynamically analyzes price action to detect key market structure shifts and trend strength using four essential formations:
## 🔍 Detected Structures
- **Higher High (HH):** A candle forming a new high above recent peaks
- **Lower Low (LL):** A candle forming a new low below recent bottoms
- **Higher Low (HL):** A higher dip, indicating potential trend continuation
- **Lower High (LH):** A lower peak, signaling potential weakness
## 🧠 Structure Protection Logic
After a HH or LL is formed, if price does not breach that level within a user-defined number of candles, the level is considered **"protected."**
This provides insight into trend strength and market reaction.
## 🔢 HL / LH Counter System
- Each HL or LH increases a counter.
- A new HH or LL **resets** the corresponding counter to zero.
> This helps visualize how many consecutive HL or LH structures have occurred — useful for measuring trend momentum.
## 🎯 Use Cases
- Trend following and confirmation
- Early trend reversal detection
- Building structure-based trading strategies
- Understanding price behavior and market intent
---
> **Note:** This indicator does not provide financial advice. It is designed to support technical analysis with clear, structure-based visual signals.
Khalid's Custom ForecastThe indicator printed on the chart is as expected beads on the information for last 5 years , this indicator could be linked to others to give future price actions
EMA 21, 55, 200 with Small LabelsThis is a combination of ema21/50/200. Helps to identify market trends. It comes with small labels so it won't confuse which line is which. I hope it helps and good luck with your trading!
SupertrendWill generate Good Signals but be remembered that you can only use when Breakout market is there
FVG IndicatorYet another indicator allowing you to plot FVGs with the following specific features:
FVG Detection: It automatically identifies bullish (BISI) and bearish (SIBI) FVGs based on the relationship between candle highs and lows.
Clear Visualization: It draws boxes to represent the FVGs and adds a median line for each FVG, making them easier to identify.
Dynamic Styles: The indicator adapts the appearance of FVGs (color and border style) based on their current state:
Untested: When the price has not yet interacted with the FVG.
Tested (Partially Traversed): When the price has entered the FVG.
Fully Traversed (Unmitigated): When the price has completely crossed the FVG but has not yet "invalidated" it (closed beyond the FVG).
Mitigated: When the FVG is invalidated by price action, it disappears from the chart to avoid clutter. This disappearance only occurs after the closing of the mitigating candle.
Full Customization: You can adjust all colors and border styles for each FVG state via the indicator's settings, as well as the maximum number of FVGs displayed.
----------------------------------------------------------------------------------------------------------------------
ATR Stop-Loss with Fibonacci Take-Profit [jpkxyz]ATR Stop-Loss with Fibonacci Take-Profit Indicator
This comprehensive indicator combines Average True Range (ATR) volatility analysis with Fibonacci extensions to create dynamic stop-loss and take-profit levels. It's designed to help traders set precise risk management levels and profit targets based on market volatility and mathematical ratios.
Two Operating Modes
Default Mode (Rolling Levels)
In default mode, the indicator continuously plots evolving stop-loss and take-profit levels based on real-time price action. These levels update dynamically as new bars form, creating rolling horizontal lines across the chart. I use this mode primarily to plot the rolling ATR-Level which I use to trail my Stop-Loss into profit.
Characteristics:
Levels recalculate with each new bar
All selected Fibonacci levels display simultaneously
Uses plot() functions with trackprice=true for price tracking
Custom Anchor Mode (Fixed Levels)
This is the primary mode for precision trading. You select a specific timestamp (typically your entry bar), and the indicator locks all calculations to that exact moment, creating fixed horizontal lines that represent your actual trade levels.
Characteristics:
Entry line (blue) marks your anchor point
Stop-loss calculated using ATR from the anchor bar
Fibonacci levels projected from entry-to-stop distance
Lines terminate when price breaks through them
Includes comprehensive alert system
Core Calculation Logic
ATR Stop-Loss Calculation:
Stop Loss = Entry Price ± (ATR × Multiplier)
Long positions: SL = Entry - (ATR × Multiplier)
Short positions: SL = Entry + (ATR × Multiplier)
ATR uses your chosen smoothing method (RMA, SMA, EMA, or WMA)
Default multiplier is 1.5, adjustable to your risk tolerance
Fibonacci Take-Profit Projection:
The distance from entry to stop-loss becomes the base unit (1.0) for Fibonacci extensions:
TP Level = Entry + (Entry-to-SL Distance × Fibonacci Ratio)
Available Fibonacci Levels:
Conservative: 0.618, 1.0, 1.618
Extended: 2.618, 3.618, 4.618
Complete range: 0.0 to 4.764 (23 levels total)
Multi-Timeframe Functionality
One of the indicator's most powerful features is timeframe flexibility. You can analyze on one timeframe while using stop-loss and take-profit calculations from another.
Best Practices:
Identify your entry point on execution timeframe
Enable "Custom Anchor" mode
Set anchor timestamp to your entry bar
Select appropriate analysis timeframe
Choose relevant Fibonacci levels
Enable alerts for automated notifications
Example Scenario:
Analyse trend on 4-hour chart
Execute entry on 5-minute chart for precision
Set custom anchor to your 5-minute entry bar
Configure timeframe setting to "4h" for swing-level targets
Select appropriate Fibonacci Extension levels
Result: Precise entry with larger timeframe risk management
Visual Intelligence System
Line Behaviour in Custom Anchor Mode:
Active levels: Lines extend to the right edge
Hit levels: Lines terminate at the breaking bar
Entry line: Always visible in blue
Stop-loss: Red line, terminates when hit
Take-profits: Green lines (1.618 level in gold for emphasis)
Customisation Options:
Line width (1-4 pixels)
Show/hide individual Fibonacci levels
ATR length and smoothing method
ATR multiplier for stop-loss distance
RSI-BBGun-v6.1RSI BB Gun – Operator's Guide
“Eyes on target. Wait for the right moment. Then strike.”
________________________________________
🎯 Mission Objective
RSI BB Gun identifies extreme market conditions using RSI and Bollinger Bands, then overlays trend and volatility intelligence so you know when the setup is real.
The ❌ is your target acquisition signal—price just moved from an extreme zone back into play. Now you’ve got a clean radar lock.
________________________________________
📡 How to Operate
🟣 Step 1: Watch for the ❌'s (Black X = RSI & Bollinger Band Extremes Encountered)
• The Purple X means price and RSI are both stretched—and just snapped back into range.
• The target is now in the cross hairs and potentially ready for engagement.
🟥 Step 2: Confirm the Trend
• The thick ribbon tells you if the trend is with you:
o 🟢 Green = Uptrend. Focus on long setups.
o 🔴 Red = Downtrend. Focus on puts or short plays.
• Align with trend. Only engage when the field favors your position.
🔺 Step 3: Evaluate Signal Context
• Green Triangles = price just crossed below lower Bollinger Band (oversold).
• Red Triangles = price crossed above upper Band (overbought).
• Horizontal Lines Disappeared = The bar after the green or red horizontal line disappears means its time. We patiently wait for this as it means the momentum may be changing.
• These are your early indicators—they scout the setup on the GO / NO GO DECISION.
• ❌ + triangle + trend = clean shot.
________________________________________
☁️ Avoid These Situations
• ❌ in a choppy/no-trend zone = false alarm. Don’t engage.
• Repeated black ❌s without a purple ❌confirmation = low conviction. Let it go.
________________________________________
________________________________________
🪖 Operator's Mindset
“You don’t chase trades. You stalk them. When the ❌ flashes, the system has found a target. What you do next is up to your discipline, your tools, and your plan.”
________________________________________
Note: This is a free version. Upcoming paid version includes multi-timeframes working together. Multiple strategies. Volatility meter. Make money and master the BB Gun so that you can elevate to the Snipers weapon.
🔒 Want More Firepower?
Upgraded version coming soon. Unlocks next-gen targeting tools:
• Multi-timeframe RSI intelligence in a live dashboard
• Precision-timed combo signals based on layered volatility + RSI logic
• Advanced trend filters, trade zone overlays, and sniper-level entry indicators
• Ideal for swing traders and options strategists who want clarity under pressure
💥 Budget-friendly. No subscription. Upgrade when you're ready to go Pro.
Tip: Make 4+ trades mastering this setup. Then use a small portion of the trades to gain more features. Always be in a position you cannot lose.
🆚 Why This Beats Standard RSI/BB Tools
Mission Feature Basic Indicators RSI Ribbon Lite
Trend Confirmation ❌ ✅ Ribbon Overlay
Multi-Timeframe Awareness ❌ ✅ 5-Timeframe RSI Grid
Volatility Confirmation ❌ ✅ Weighted ATR Scoring
Combo Signal Alerts ❌ ✅ ❌ Reentry Combo Alerts
TradingView Alerts ❌ ✅ Built-In Radar Ping
#rsi #bb #bollingerbands #hull ma #trend