Divergence IQ [TradingIQ]Hello Traders!
Introducing "Divergence IQ"
Divergence IQ lets traders identify divergences between price action and almost ANY TradingView technical indicator. This tool is designed to help you spot potential trend reversals and continuation patterns with a range of configurable features.
Features
Divergence Detection
Detects both regular and hidden divergences for bullish and bearish setups by comparing price movements with changes in the indicator.
Offers two detection methods: one based on classic pivot point analysis and another that provides immediate divergence signals.
Option to use closing prices for divergence detection, allowing you to choose the data that best fits your strategy.
Normalization Options:
Includes multiple normalization techniques such as robust scaling, rolling Z-score, rolling min-max, or no normalization at all.
Adjustable normalization window lets you customize the indicator to suit various market conditions.
Option to display the normalized indicator on the chart for clearer visual comparison.
Allows traders to take indicators that aren't oscillators, and convert them into an oscillator - allowing for better divergence detection.
Simulated Trade Management:
Integrates simulated trade entries and exits based on divergence signals to demonstrate potential trading outcomes.
Customizable exit strategies with options for ATR-based or percentage-based stop loss and profit target settings.
Automatically calculates key trade metrics such as profit percentage, win rate, profit factor, and total trade count.
Visual Enhancements and On-Chart Displays:
Color-coded signals differentiate between bullish, bearish, hidden bullish, and hidden bearish divergence setups.
On-chart labels, lines, and gradient flow visualizations clearly mark divergence signals, entry points, and exit levels.
Configurable settings let you choose whether to display divergence signals on the price chart or in a separate pane.
Performance Metrics Table:
A performance table dynamically displays important statistics like profit, win rate, profit factor, and number of trades.
This feature offers an at-a-glance assessment of how the divergence-based strategy is performing.
The image above shows Divergence IQ successfully identifying and trading a bullish divergence between an indicator and price action!
The image above shows Divergence IQ successfully identifying and trading a bearish divergence between an indicator and price action!
The image above shows Divergence IQ successfully identifying and trading a hidden bullish divergence between an indicator and price action!
The image above shows Divergence IQ successfully identifying and trading a hidden bearish divergence between an indicator and price action!
The performance table is designed to provide a clear summary of simulated trade results based on divergence setups. You can easily review key metrics to assess the strategy’s effectiveness over different time periods.
Customization and Adaptability
Divergence IQ offers a wide range of configurable settings to tailor the indicator to your personal trading approach. You can adjust the lookback and lookahead periods for pivot detection, select your preferred method for normalization, and modify trade exit parameters to manage risk according to your strategy. The tool’s clear visual elements and comprehensive performance metrics make it a useful addition to your technical analysis toolbox.
The image above shows Divergence IQ identifying divergences between price action and OBV with no normalization technique applied.
While traders can look for divergences between OBV and price, OBV doesn't naturally behave like an oscillator, with no definable upper and lower threshold, OBV can infinitely increase or decrease.
With Divergence IQ's ability to normalize any indicator, traders can normalize non-oscillator technical indicators such as OBV, CVD, MACD, or even a moving average.
In the image above, the "Robust Scaling" normalization technique is selected. Consequently, the output of OBV has changed and is now behaving similar to an oscillator-like technical indicator. This makes spotting divergences between the indicator and price easier and more appropriate.
The three normalization techniques included will change the indicator's final output to be more compatible with divergence detection.
This feature can be used with almost any technical indicator.
Stop Type
Traders can select between ATR based profit targets and stop losses, or percentage based profit targets and stop losses.
The image above shows options for the feature.
Divergence Detection Method
A natural pitfall of divergence trading is that it generally takes several bars to "confirm" a divergence. This makes trading the divergence complicated, because the entry at time of the divergence might look great; however, the divergence wasn't actually signaled until several bars later.
To circumvent this issue, Divergence IQ offers two divergence detection mechanisms.
Pivot Detection
Pivot detection mode is the same as almost every divergence indicator on TradingView. The Pivots High Low indicator is used to detect market/indicator highs and lows and, consequently, divergences.
This method generally finds the "best looking" divergences, but will always take additional time to confirm the divergence.
Immediate Detection
Immediate detection mode attempts to reduce lag between the divergence and its confirmation to as little as possible while avoiding repainting.
Immediate detection mode still uses the Pivots Detection model to find the first high/low of a divergence. However, the most recent high/low does not utilize the Pivot Detection model, and instead immediately looks for a divergence between price and an indicator.
Immediate Detection Mode will always signal a divergence one bar after it's occurred, and traders can set alerts in this mode to be alerted as soon as the divergence occurs.
TradingView Backtester Integration
Divergence IQ is fully compatible with the TradingView backtester!
Divergence IQ isn’t designed to be a “profitable strategy” for users to trade. Instead, the intention of including the backtester is to let users backtest divergence-based trading strategies between the asset on their chart and almost any technical indicator, and to see if divergences have any predictive utility in that market.
So while the backtester is available in Divergence IQ, it’s for users to personally figure out if they should consider a divergence an actionable insight, and not a solicitation that Divergence IQ is a profitable trading strategy. Divergence IQ should be thought of as a Divergence backtesting toolkit, not a full-feature trading strategy.
Strategy Properties Used For Backtest
Initial Capital: $1000 - a realistic amount of starting capital that will resonate with many traders
Amount Per Trade: 5% of equity - a realistic amount of capital to invest relative to portfolio size
Commission: 0.02% - a conservative amount of commission to pay for trade that is standard in crypto trading, and very high for other markets.
Slippage: 1 tick - appropriate for liquid markets, but must be increased in markets with low activity.
Once more, the backtester is meant for traders to personally figure out if divergences are actionable trading signals on the market they wish to trade with the indicator they wish to use.
And that's all!
If you have any cool features you think can benefit Divergence IQ - please feel free to share them!
Thank you so much TradingView community!
Indikator dan strategi
Çift Zamanlı Bollinger BandlarıMulti time frame bollinger bands which helps to follow trend from top to down.
Pelata CandleSImple script that paints engulfing candles only if the close beyond previous close/ open
Market Trend Levels Detector With Signals [BigBeluga]Added signals version
Market Trend Levels Detector With Signals
TRENDOGRAPH-GenAIIntroduction
Unlock the power of early trend detection with TRENDOGRAPH! This flexible and customizable indicator, developed with unique logic and AI support, leverages advanced prediction methods to provide early buy/sell signals, setting it apart from traditional indicators.
Key Features
MACD Histogram: Measures momentum changes.
MACD Reversal: Detects potential trend reversals.
RSI: Identifies overbought or oversold conditions.
Ichimoku: Analyzes support and resistance levels.
Stochastic: Highlights potential price reversals.
Supertrend: Confirms trend direction.
Customization
Adjust the weights of each indicator to find the most accurate combination for your trading strategy. Experiment with different parameters to optimize performance for various assets.
Warnings!
Each chart has unique characteristics.
Use different parameters for crypto and stocks for maximum accuracy.
Validate parameter weights and threshold levels with historical data for each asset.
This tool is designed to help you create your own unique indicator, not as a standalone solution.
Disclaimer: Use at your own risk. This indicator is for testing and comparison purposes only.
Heikin Ashi Actual Close Price [BarScripts]This indicator plots a dot on your Heikin Ashi chart at the actual raw candle close - revealing the true market close that can differ from the averaged price displayed by Heikin Ashi candles.
Options to show close price on all candles or last X candles.
Please follow BarScripts if you like the indicator.
GODMODE X VIP 🔥🚨Buy & Sell Signals ✅
Stop Loss + Take Profit ✅
Background Confirmation ✅
Non-Repaint ✅
Telegram + Email Alerts 🔥 (Coming Next Update)
Full Crypto + Forex + Stocks
NY & London Session + Daily Weekly Monthly High&LowThe indicator marks the NY & London session. The 1st 90min of each session are marked with a black dashed line while pre-open is marked with a dotted line.
NY session marked with blue.
London session marked with pink.
Note : the sessions are visible only on the 5min time frame or below. This is so the chart is not cluttered when on higher time frames.
------------------
Daily High and Low marked with green dashed lines
Weekly High and Low marked with orange dashed lines
Monthly High and Low marked with red dashed lines .
Ultimate Buy & Sell Indicator PRO 🔥sample No Repaint ✅
Automatic Buy & Sell Alerts ✅
Volume Spike Filter ✅
Stop Loss & Take Profit Auto Levels ✅
Background Color Confirmation ✅
Full Crypto + Forex + Stocks ✅
Scalping + Swing + Long Term
Candle Size Alert (Open-Close)This Pine Script is a TradingView indicator that checks the size of the previous candle's body (difference between the open and close prices) and triggers an alert if it exceeds a certain threshold.
Breakdown of the Script
1. Indicator Declaration
//@version=5
indicator("Candle Size Alert (Open-Close)", overlay=true)
//@version=5: Specifies that the script is using Pine Script v5.
indicator("Candle Size Alert (Open-Close)", overlay=true):
Creates an indicator named "Candle Size Alert (Open-Close)".
overlay=true: Ensures the script runs directly on the price chart (not in a separate panel).
2. User-Defined Threshold
candleThreshold = input.int(500, title="Candle Size Threshold")
input.int(500, title="Candle Size Threshold"):
Allows the user to set the threshold for candle body size.
Default value is 500 points.
3. Calculate Candle Size
candleSize = math.abs(close - open )
close and open :
close : Closing price of the previous candle.
open : Opening price of the previous candle.
math.abs(...):
Takes the absolute difference between the open and close price.
This gives the candle body size (ignoring whether it's bullish or bearish).
4. Check If the Candle Size Meets the Threshold
sizeCondition = candleSize >= candleThreshold
If the previous candle’s body size is greater than or equal to the threshold, sizeCondition becomes true.
5. Determine Candle Color
isRedCandle = close < open
isGreenCandle = close > open
Red Candle (Bearish):
If the closing price is less than the opening price (close < open ).
Green Candle (Bullish):
If the closing price is greater than the opening price (close > open ).
6. Generate Alerts
if sizeCondition
direction = isRedCandle ? "SHORT SIGNAL (RED)" : "LONG SIGNAL (GREEN)"
alertMessage = direction + ": Previous candle body size = " + str.tostring(candleSize) +
" points (Threshold: " + str.tostring(candleThreshold) + ")"
alert(alertMessage, alert.freq_once_per_bar)
If the candle body size exceeds the threshold, an alert is triggered.
direction = isRedCandle ? "SHORT SIGNAL (RED)" : "LONG SIGNAL (GREEN)":
If the candle is red, it signals a short (sell).
If the candle is green, it signals a long (buy).
The alert message includes:
Signal type (LONG/SHORT).
Candle body size.
The user-defined threshold.
How It Works in TradingView:
The script does not plot anything on the chart.
It monitors the previous candle’s body size.
If the size exceeds the threshold, an alert is generated.
Alerts can be used to notify the trader when big candles appear.
Price Above 20 DMA, 20 SMA, 200 SMA with Buy/Sell ConditionsGuyse Daily Indicator. Uses daily and weekly moving averages to provide buy conditions.
Trading ChecklistChecklist metodología de la academia Streetpips para las entradas. Donde estoy, Mapa de intención, tipo de movimiento (continuación, retroceso, Reversión) y el modelo de confirmación ( mod 1,2,3,4 y/o typ enseñados en la academia)
Spot - Fut spread v2The "Spot - Fut Spread v2"
indicator is designed to track the difference between spot and futures prices on various exchanges. It automatically identifies the corresponding instrument (spot or futures) based on the current symbol and calculates the spread between the prices. This tool is useful for analyzing the delta between spot and futures markets, helping traders assess arbitrage opportunities and market sentiment.
Key Features:
- Automatic detection of spot and futures assets based on the current chart symbol.
- Supports multiple exchanges, including Binance, Bybit, OKX, MEXC, BingX, Bitget, BitMEX, Deribit, Whitebit, Gate.io, and HTX.
- Flexible asset selection: the ability to manually choose the second asset if automatic selection is disabled.
- Spread calculation between futures and spot prices.
- Moving average of the spread for smoothing data and trend analysis.
Flexible visualization:
- Color indication of positive and negative spread.
- Adjustable background transparency.
- Text label displaying the current spread and moving average values.
- Error alerts in case of invalid data.
How the Indicator Works:
- Determines whether the current symbol is a futures contract.
- Based on this, selects the corresponding spot or futures symbol.
- Retrieves price data and calculates the spread between them.
- Displays the spread value and its moving average.
- The chart background color changes based on the spread value (positive or negative).
- In case of an error, the indicator provides an alert with an explanation.
Customization Parameters:
-Exchange selection: the ability to specify a particular exchange from the list.
- Automatic pair selection: enable or disable automatic selection of the second asset.
- Moving average period: user-defined.
- Colors for positive and negative spread values.
- Moving average color.
- Background transparency.
- Background coloring source (based on spread or its moving average).
Application:
The indicator is suitable for traders who analyze the difference between spot and futures prices, look for arbitrage opportunities, and assess the premium or discount of futures relative to the spot market.
Contact - t.me
3 Candle Reversal3 Candle Reversal Pattern as described by Stoic Trader (StoicTA)
Simple and to the point.
x.com
Estrategia RSI + EMAsIndicadores:
RSI: Calculado con un período de 14. Considera que está sobrecomprado cuando el valor es mayor a 70 y sobrevendido cuando es menor a 30.
EMA50 y EMA200: Son las medias móviles exponenciales con períodos de 50 y 200, respectivamente.
Condiciones de compra:
El RSI debe estar por debajo de 30 (condición de sobreventa).
La EMA 50 debe estar por encima de la EMA 200 (indica una tendencia alcista).
El precio debe cruzar hacia arriba la EMA 50.
Condiciones de venta:
El RSI debe estar por encima de 70 (condición de sobrecompra).
La EMA 50 debe estar por debajo de la EMA 200 (indica una tendencia bajista).
El precio debe cruzar hacia abajo la EMA 50.
Señales visuales:
Se muestra un label verde debajo de la barra cuando se genera una señal de compra (Long).
Se muestra un label rojo encima de la barra cuando se genera una señal de venta (Short).
Alertas:
El script también tiene configuradas alertas para que puedas configurar notificaciones cuando se cumplan las condiciones para compra o venta.
MACD with Holt–Winters Smoothing [AIBitcoinTrend]👽 MACD with Holt–Winters Smoothing (AIBitcoinTrend)
The MACD with Holt–Winters Smoothing is an momentum indicator that enhances traditional MACD analysis by incorporating Holt–Winters exponential smoothing. This adaptation reduces lag while maintaining trend sensitivity, making it more effective for detecting trend reversals and sustained momentum shifts. Additionally, the indicator includes real-time divergence detection and an ATR-based trailing stop system, helping traders manage risk dynamically.
👽 What Makes the MACD with Holt–Winters Smoothing Unique?
Unlike the standard MACD, which relies on simple exponential moving averages, this version applies Holt–Winters smoothing to better capture trends while filtering out market noise. Combined with real-time divergence detection and a trailing stop system, this indicator allows traders to:
✅ Identify trend strength with a dynamically smoothed MACD signal.
✅ Detect bullish and bearish divergences in real time.
✅Implement Crossover/Crossunder signals tied to ATR-based trailing stops for risk management
👽 The Math Behind the Indicator
👾 Holt–Winters Smoothing for MACD
Traditional MACD calculations use exponential moving averages (EMA) to identify momentum. This indicator improves upon it by applying Holt’s linear trend equations, which enhance signal accuracy by reducing lag and smoothing out fluctuations.
Key Features:
Alpha (α) - Controls the weight of the new data in smoothing.
Beta (β) - Determines how fast the trend component adapts to new changes.
The Holt–Winters Signal Line provides a refined MACD crossover system for better trade execution.
👾 Real-Time Divergence Detection
The indicator identifies bullish and bearish divergences between MACD and price action.
Bullish Divergence: Occurs when price makes a lower low, but MACD makes a higher low – signaling potential upward momentum.
Bearish Divergence: Occurs when price makes a higher high, but MACD makes a lower high – signaling potential downward momentum.
👾 Dynamic ATR-Based Trailing Stop
The indicator includes a trailing stop system based on ATR (Average True Range). This allows traders to manage positions dynamically based on volatility.
Bullish Trailing Stop: Triggers when MACD crosses above the Holt–Winters signal, with a stop placed at low - (ATR × Multiplier).
Bearish Trailing Stop: Triggers when MACD crosses below the Holt–Winters signal, with a stop placed at high + (ATR × Multiplier).
Trailing Stop Adjustments: Expands or contracts dynamically with market conditions, reducing premature exits while securing profits.
👽 How Traders Can Use This Indicator
👾 Divergence Trading
Traders can use real-time divergence detection to anticipate trend reversals before they occur.
Bullish Divergence Setup:
Look for MACD making a higher low, while price makes a lower low.
Enter long when MACD confirms upward momentum.
Bearish Divergence Setup:
Look for MACD making a lower high, while price makes a higher high.
Enter short when MACD confirms downward momentum.
👾 Trailing Stop & Signal-Based Trading
Bullish Setup:
✅ MACD crosses above the Holt–Winters signal.
✅ A bullish trailing stop is placed using low - ATR × Multiplier.
✅ Exit if the price crosses below the stop.
Bearish Setup:
✅ MACD crosses below the Holt–Winters signal.
✅ A bearish trailing stop is placed using high + ATR × Multiplier.
✅ Exit if the price crosses above the stop.
This systematic trade management approach helps traders lock in profits while reducing drawdowns.
👽 Why It’s Useful for Traders
Lag Reduction: Holt–Winters smoothing ensures faster and more reliable trend detection.
Real-Time Divergence Alerts: Identify potential reversals before they happen.
Adaptive Risk Management: ATR-based trailing stops adjust to volatility dynamically.
Works Across Markets & Timeframes: Effective for stocks, forex, crypto, and futures trading.
👽 Indicator Settings
MACD Fast & Slow Lengths: Adjust the MACD short- and long-term EMA periods.
Holt–Winters Alpha & Beta: Fine-tune the smoothing sensitivity.
Enable Divergence Detection: Toggle real-time divergence analysis.
Lookback Period for Divergences: Configure how far back pivot points are detected.
ATR Multiplier for Trailing Stops: Adjust stop-loss sensitivity to market volatility.
Trend Filtering: Enable signal filtering based on trend direction.
Disclaimer: This indicator is designed for educational purposes and does not constitute financial advice. Please consult a qualified financial advisor before making investment decisions.
Close A/B Previous Bar H/L After TBFind if price is closed above or below previous candle, can create alert based on the condition
Volatility Based Momentum by QTX Algo SystemsVolatility Based Momentum by QTX Algo Systems
Overview
This indicator is designed to determine whether a market trend is genuinely supported by both momentum and volatility. It produces per-candle signals when a smoothed momentum oscillator is above its moving average, a Price – Moving Average Ratio confirms overall trend strength by remaining above a preset level with a positive slope, and when at least one of two distinct volatility metrics is rising. This integrated approach offers traders a consolidated and dynamic view of market energy, delivering more actionable insights than a simple merger of standard indicators.
How It Works
The indicator fuses two complementary volatility measures with dual momentum assessments to ensure robust signal generation. One volatility metric evaluates long-term market behavior by analyzing the dispersion of logarithmic price changes, while the other—derived from a Bollinger Band Width Percentile—captures recent price variability and confirms that market volatility remains above a minimum threshold. A trading signal is generated only when at least one of these volatility measures shows a sustained upward trend over several candles.
For momentum, a double‐smoothed Stochastic Momentum Index provides a refined, short-term view of price action, filtering out market noise. In addition, the PMARP serves as a confirmation tool by comparing the current price to its moving average, requiring that its value remains above a defined level with a positive slope to indicate a strong trend. Together, these elements ensure that a signal is only produced when both the market’s momentum and volatility are in alignment.
Although the components used are based on well-known technical analysis methods, the thoughtful integration of these elements creates a tool that is more than the sum of its parts. By combining long-term volatility assessment with a real-time measure of recent price variability—and by merging short-term momentum analysis with a confirmation of overall trend strength—the indicator delivers a more reliable and comprehensive view of market energy. This holistic approach distinguishes it from standard indicators.
How to Use
Traders can adjust the volatility threshold setting to tailor the indicator to their preferred market or timeframe. The indicator displays per-candle signals when both the refined momentum criteria and the dynamic volatility conditions are met. These signals are intended to be used as part of a broader trading strategy, in conjunction with other technical analysis tools for confirming entries and exits.
Disclaimer
This indicator is for educational purposes only and is intended to support your trading strategy. It does not guarantee performance, and past results are not indicative of future outcomes. Always use proper risk management and perform your own analysis before trading.
Continuation Opportunity Indicator by QTX Algo SystemsContinuation Opportunity Indicator by QTX Algo Systems
Overview
This indicator is designed to pinpoint key moments within an established trend when a pullback is likely just a temporary consolidation rather than a reversal. It distinguishes phases of reduced volatility—suggesting a pause or consolidation—from moments when volatility subsequently increases, confirming that the prevailing trend is resuming. This integrated approach combines multiple classical elements into a unique tool that offers traders clear insight into trend continuity.
How It Works
The indicator marries two types of volatility measurements with dual momentum assessments and a trend filter to generate continuation signals. Two complementary volatility metrics are used: one assesses long-term price dispersion to gauge overall market behavior, while the other employs a percentile-based method to capture recent variability and ensure that overall market volatility meets a minimum threshold. A critical part of the signal generation is that the pullback must occur during a period of reduced volatility, indicating consolidation, and then be followed by an increase in volatility, which confirms the resumption of the trend.
For momentum analysis, a double‐smoothed oscillator provides a refined, short-term view of price action, and a Price – Moving Average Ratio (PMARP) confirms the trend’s strength by requiring that it remains above or below a set threshold with a positive or negative slope, respectively. Signals are produced based on crossover events in the momentum oscillator that occur after a pullback, with the subsequent rise in volatility validating the trend continuation. A moving average-based trend filter further ensures that these signals align with the broader market direction.
While the individual components—volatility measures, momentum oscillators, and trend filters—are standard in technical analysis, their deliberate integration in this script results in a tool that is greater than the sum of its parts. Rather than merely merging indicators, this system is crafted to filter out false signals and clearly differentiate between temporary consolidations and genuine trend continuations. By providing a holistic view of market behavior, it offers traders actionable insight into when a pullback is simply a pause before the trend resumes.
How to Use
Traders should monitor the chart for opportunity signals. These signals indicate that a consolidation phase is ending and that the overall trend is likely to continue. Adjust the volatility parameters as needed to suit your market or timeframe, and use these signals in conjunction with other technical analysis tools to confirm optimal entry and exit points.
Disclaimer
This indicator is for educational purposes only and is intended to support your trading strategy. It does not guarantee performance, and past results are not indicative of future outcomes. Always use proper risk management and perform your own analysis before trading.
MOST with Filterswith various filters RSI, price, trend change
trying to filter fluctuations during consolidation periods
AL60 CandlesThis script marks out all candle flips (a bullish candle followed by a bearish candle or a bearish candle followed by a bullish candle).
This is very useful on M15 and above to help you frame reversals on lower timeframes.
I use this tool to backtest reversal times during the day.
Best timeframes: H1, H3, H4