IALGO Composite Ema BIST ScreenerIALGO Composite EMA BIST Screener™ is a precision-engineered trend analysis and screener tool built for traders who seek clarity, structure, and actionable signals in the dynamic Turkish equity markets. Combining normalized multi-timeframe EMAs with a proprietary algorithm, it creates a comprehensive decision matrix by filtering these trends through momentum and MACD conditions—offering refined insight into market opportunities.
What sets IALGO Composite EMA apart is its focus on identifying potential Major Opportunities, uncovering early-stage trends, spotting oversold bottoming stocks, and signaling potential exit zones, all while highlighting different types of trends and helping confirm their validity. This screener covers the entire BIST stock universe with a built-in comprehensive group list and also allows users to create custom watchlists, set alarms, and monitor them effortlessly.
Rather than manually checking each chart, IALGO provides traders with a strategic overview of where a stock stands technically—helping to assess opportunities without getting lost in market noise. It also takes into account trend-aligned Fibonacci levels, presented visually within the same matrix for deeper context in trend-based decisions.
🔶 FEATURE HIGHLIGHTS
The script includes a range of advanced features tailored for efficient trend trading:
• 🔁 Normalized Multi-Period EMAs
Unique algorithmic blending of different EMA timeframes for clearer trend mapping.
• 📊 MACD & Momentum Filtering
Enhances signal quality by confirming with momentum strength and trend acceleration.
• 🚀 Big Opportunity Detection
Captures high-potential setups during trend transitions or accumulation zones.
• 📉 Oversold Stock Scanner
Identifies bottoms or undervalued assets using EMA-momentum cross-referencing.
• 🌀 Trend Start & Exit Signal Zones
Flags key reversal and exhaustion points based on composite readings.
• 🔍 Dynamic Trend Type Classifier
Detects and categorizes different market trend conditions in real time.
• 📈 Integrated Fibonacci Trend Zones
Visualizes Fib levels aligned with the ongoing trend in one consolidated view.
• 🧭 Full BIST Coverage & Group Management
Includes BIST Tüm list by default and supports custom group creation and tracking.
• 🔔 Built-in Alerts & Custom Watchlists
Track your favorites and get notified instantly when critical conditions arise.
IALGO Composite EMA BIST Screener™ is not just a visual tool; it's a disciplined method to reduce subjectivity in chart analysis. While it doesn’t promise profits, it brings structure, speed, and statistical awareness to your decision-making process—giving you a consistent edge in Turkish equity markets.
🧠 Because understanding a trend is good. But recognizing the right trend at the right time? That’s IALGO.
🔶 HOW TO GET ACCESS
You can see detailed instructions on Authors description to get instant access to this indicator & and related contact information
Osciladores Centrados
IALGO BIST SMART INDEX KAHIN v4IALGO BIST SMART INDEX KÂHİN™
Your Algorithmic Oracle for Turkish Index Trends
IALGO BIST SMART INDEX KÂHİN™ is a purpose-built hybrid system functioning both as an indicator and a full-fledged strategy, specifically tailored for BIST index tracking. Designed to combine EMA logic, MACD filtering, and momentum strength, this tool offers a data-driven and intuitive approach to reading the rhythm of Turkish markets.
Crafted with a proprietary algorithm, it doesn’t just show signals — it thinks in sequences, providing both buy/sell entries and a performance table for backtesting and real-time strategy analysis. In this way, KÂHİN acts like a modern oracle — aiming to anticipate market direction before it becomes obvious to the crowd.
Unlike generic indicators, KÂHİN empowers users to prepare for market shifts ahead of time, both in uptrends and downturns. With integrated Fibonacci-based breakout zones, users gain a trader’s perspective on critical levels, offering insights into where price action may pivot next.
🔶 FEATURE HIGHLIGHTS
• 🔁 EMA-Based Core Logic
Built upon a dynamic EMA framework with optimized smoothing.
• 📊 MACD + Momentum Filters
Filters out false signals with dual-layered confirmation.
• 🧠 Smart Signal Sequencing
Strategically timed buy & sell signals, not random alerts.
• 📉 Full Strategy Mode
Includes built-in performance table to assess historical signal quality.
• 📈 Index-Focused Fibonacci Zones
Overlayed levels for visualizing probable breakout or rejection areas.
• 🔮 Real-Time Directional Guidance
Aims to capture early trend shifts—like a true oracle.
• 💻 Educational by Design
Helps users learn structured, logic-based trend tracking.
⚠️ USAGE RESTRICTION
IALGO BIST SMART INDEX KÂHİN™ is strictly built for use on BIST indices only.
It is not intended for individual stocks, crypto, forex, or any other asset class.
Using it outside of its scope will lead to invalid signals and incorrect results.
This tool is ideal for traders looking to understand market structure, test systematic strategies, and gain edge in timing trend shifts on BIST indices.
Whether you're swing trading or monitoring macro conditions, KÂHİN™ offers an advantage with logic—not guesswork.
🧠 Because in markets, the smartest trader isn't the one who reacts the fastest—it's the one who prepares before others even see the change coming.
🔶 HOW TO GET ACCESS
You can see detailed instructions on Authors description to get instant access to this indicator & and related contact information
-Türkce-
IALGO BIST SMART INDEX KÂHİN™
Borsa İstanbul XU100 Endeks İçin Algoritmik Öngörü Aracidir (BIST:XU100) - Günlük periyotta kullanilmalidir.
IALGO BIST SMART INDEX KÂHİN™, yalnızca BIST endeksleri için özel olarak tasarlanmış, hem bir gösterge hem de strateji olarak çalışan hibrit bir sistemdir. EMA temelli algoritma, MACD filtresi ve momentum analizi ile birleştirilen bu yapı, Türk piyasalarının ritmini daha net ve yapısal biçimde okumanızı sağlar.
Kendine özgü algoritması sayesinde KÂHİN, yalnızca sinyal üretmez — sıralı ve stratejik alım-satım noktaları sunar. Dahili performans tablosu sayesinde geçmiş veriler üzerinde test yapabilir, stratejinizin başarısını anlık olarak izleyebilirsiniz. Bu özelliğiyle bir kahin gibi, piyasanın yönünü kalabalıktan önce sezmeyi hedefler.
Genel göstergelerin ötesine geçerek KÂHİN, trend dönüşlerine önceden hazırlanmanız için size güç verir — ister yükseliş, ister düşüş döneminde olun. Entegre Fibonacci kırılım bölgeleri, fiyat hareketlerinin muhtemel dönüş ya da sıçrama noktalarını grafik üzerinde görsel olarak sunar.
🔶 TEMEL ÖZELLİKLER
• 🔁 EMA Tabanlı Çekirdek Algoritma
Optimize edilmiş EMA yapısıyla trend takibi.
• 📊 MACD ve Momentum Filtreleri
Yanıltıcı sinyalleri filtrelemek için ikili onay sistemi.
• 🧠 Akıllı Sinyal Sıralaması
Rastgele değil; zamanlaması mantıkla belirlenmiş al-sat sinyalleri.
• 📉 Strateji Modu ve Performans Tablosu
Gerçek zamanlı strateji testi ve geçmiş başarı analizi.
• 📈 Endekse Özgü Fibonacci Seviyeleri
Kırılım ve tepki bölgelerini grafik üzerinde anlık görme.
• 🔮 Gerçek Zamanlı Yön Tespiti
Trend dönüşlerini erkenden yakalama hedefi.
• 💻 Öğretici Yapı
Yapılandırılmış ve mantığa dayalı işlem mantığını kullanıcıya kazandırır.
⚠️ KULLANIM UYARISI
IALGO BIST SMART INDEX KÂHİN™, yalnızca BIST endekslerinde kullanılmak üzere geliştirilmiştir.
Hisse senetleri, kripto paralar, forex ya da başka varlıklarda kullanılamaz.
Bu sınırın dışına çıkmak, geçersiz sinyaller ve yanlış sonuçlar doğuracaktır.
Bu araç, piyasa yapısını anlamak, sistematik stratejileri test etmek ve trend dönüşlerini zamanında fark etmek isteyen yatırımcılar için idealdir.
İster kısa vadeli işlem yapın, ister makro düzeyde yön arayın — KÂHİN™ size sezgiyle değil, mantıkla avantaj kazandırır.
🧠 Çünkü piyasada en hızlı tepki veren değil, daha değişim gelmeden hazır olan kazanır.
🔶 NASIL ERİŞİM SAĞLANIR
Bu göstergeye anında erişim sağlamak ve ilgili iletişim bilgilerine ulaşmak için, yazarın açıklama bölümündeki yönergeleri detaylı bir şekilde inceleyebilirsiniz.
Volume Delta Percentage OscillatorInterpreting the Oscillator
Range: The oscillator fluctuates between -100 and +100.
Positive Values (0 to +100):
Indicate that estimated buying volume exceeds selling volume.
Higher positive values suggest stronger buying pressure.
Negative Values (-100 to 0):
Indicate that estimated selling volume exceeds buying volume.
Lower negative values suggest stronger selling pressure.
Zero Line:
A reading near zero suggests that buying and selling volumes are approximately equal.
Potential Uses:
Divergence Detection:
Identify potential reversals when the price is making new highs/lows but the oscillator isn't confirming.
Overbought/Oversold Conditions:
Use levels like +80 and -80 to identify extreme buying or selling conditions.
Trend Confirmation:
Confirm the strength of a trend when the oscillator moves in the same direction as the price.
HMA 200/150 Trading StrategyThis strategy uses the Hull Moving Average (HMA) to generate buy and sell signals based on price action relative to the HMA 200, with take profit signals based on the HMA 150. It includes a configurable date range for backtesting, allowing users to test the strategy over specific periods.
How It Works
Entry Signals:
Buy: Triggered when the price closes above the HMA 200.
Sell: Triggered when the price closes below the HMA 200.
Take Profit Signals:
Buy Take Profit: Exits the buy position when the price closes below the HMA 150.
Sell Take Profit: Exits the sell position when the price closes above the HMA 150.
Backtest Period: Users can set start and end dates (year, month, day) to limit the strategy’s execution to a specific time range for backtesting purposes.
Settings
Start Year/Month/Day: Set the start date for backtesting (default: January 1, 2023).
End Year/Month/Day: Set the end date for backtesting (default: December 31, 2025).
Visuals
HMA 200: Plotted in blue, used for entry signals.
HMA 150: Plotted in orange, used for take profit signals.
Buy Signal: Green triangle below the bar.
Sell Signal: Red triangle above the bar.
Take Profit Signals: Yellow diamonds (above for buy TP, below for sell TP).
Usage
Add the strategy to your chart.
Adjust the backtest period in the settings to analyze performance over a specific time frame.
Monitor the plotted HMA lines and signals for potential trade entries and exits.
Backtest on your preferred timeframe and asset to evaluate performance.
Notes
This strategy is designed for trend-following and works best in trending markets.
Always test the strategy on a demo account before using it in live trading.
Performance may vary depending on the asset, timeframe, and market conditions.
Disclaimer
This strategy is for educational purposes only and should not be considered financial advice. Trading involves risk, and past performance is not indicative of future results. Always conduct your own research and risk management.
BG Ichimoku Tenkan & RSI MTF (Optimized)BG Ichimoku Tenkan & RSI MTF (Optimized)
The "BG Ichimoku Tenkan & RSI MTF (Optimized)" is a powerful and versatile TradingView indicator designed to provide multi-timeframe insights into market momentum using both the Tenkan-sen component of the Ichimoku Kinko Hyo and the Relative Strength Index (RSI). Developed by BAB & GINO, this tool helps traders quickly gauge trends and potential reversals across various timeframes directly on their chart.
Key Features and Functionality
This indicator combines visual clarity with comprehensive data presentation in a customizable table, making it easier to monitor multiple market dynamics at a glance.
Tenkan-sen Analysis
The Tenkan-sen (turning line) is a crucial part of the Ichimoku Kinko Hyo, calculated as the average of the highest high and lowest low over the past 9 periods. It serves as a short-term trend indicator.
Main Tenkan-sen Plot: The indicator displays the main Tenkan-sen line on your chart, colored dynamically to match the active chart's timeframe color for easy identification.
Multi-Timeframe (MTF) Tenkan Lines: You can enable additional Tenkan-sen lines for up to seven user-defined timeframes (e.g., 1m, 3m, 5m, 15m, 30m, 60m, 240m). These lines extend from the current bar with an adjustable offset, helping you visualize higher or lower timeframe Tenkan-sen levels relative to the current price.
MTF Line Labels: Each MTF Tenkan line can have a corresponding label indicating its timeframe (e.g., "1m", "3m"), with customizable size and offset for optimal visibility.
Tenkan Trend in Table: The indicator's integrated table clearly shows the current relationship between the Tenkan-sen and the price for each selected timeframe. An "🔼" symbol indicates the Tenkan-sen is above the price (bullish signal), while a "🔽" symbol indicates it's below (bearish signal), along with the Tenkan-sen's rounded value.
RSI Analysis
The Relative Strength Index (RSI) is a momentum oscillator that measures the speed and change of price movements. It typically ranges from 0 to 100 and is used to identify overbought or oversold conditions.
Customizable RSI Levels: You can set standard high (e.g., 60) and low (e.g., 40) RSI levels, as well as extreme high (e.g., 80) and extreme low (e.g., 20) levels to define zones of interest.
RSI Status in Table: The table provides a quick overview of the RSI value for each chosen timeframe, accompanied by intuitive emojis and symbols:
"🥵": Extremely overbought (above extreme high level)
"↑": Overbought (above high level)
"🥶": Extremely oversold (below extreme low level)
"↓": Oversold (below low level)
"-": Neutral (between high and low levels) The RSI value is also displayed, rounded to two decimal places.
Customizable Settings
The indicator offers extensive customization options through its input panel:
Table Position: Choose where the information table appears on your chart (Top Left, Top Right, Bottom Left, Bottom Right, Bottom Center).
Tenkan-sen Display: Toggle the visibility of the main Tenkan-sen line and the MTF Tenkan lines.
Line Offset: Adjust how far the MTF Tenkan lines extend from the current price bar.
MTF Label Settings: Control the visibility, size, and pixel offset of the MTF Tenkan line labels.
RSI Configuration: Define the RSI length and the thresholds for high, low, extreme high, and extreme low levels.
Table Text Size: Customize the font size within the indicator's table (Tiny, Small, Normal, Large).
Timeframe Selection: Independently set up to seven specific timeframes (in minutes) for both Tenkan and RSI analysis.
Timeframe Colors: Assign unique colors to each of the seven selected timeframes. These colors are used for the MTF Tenkan lines on the chart, the main Tenkan-sen line when its timeframe matches the chart, and the header cells in the information table, providing a consistent visual theme.
This "BG Ichimoku Tenkan & RSI MTF (Optimized)" indicator is a valuable tool for traders looking to enhance their market analysis with multi-timeframe confirmation, aiding in better-informed trading decisions.
MultiTF Squeeze MomentumOverview:
This indicator provides a comprehensive view of market momentum and potential breakout "squeeze" conditions across three distinct timeframes: Short-Term, Mid-Term, and Long-Term. It adapts the core concepts of the Squeeze Momentum Indicator by LazyBear, offering a multi-faceted perspective to help traders identify prevailing trends, potential reversals, and periods of market consolidation.
How It Works:
The indicator calculates momentum and squeeze conditions for each of the three user-defined timeframes.
Momentum: Visualized as a histogram for each timeframe.
Positive momentum (typically colored aqua, green, or lime) suggests bullish pressure.
Negative momentum (typically colored purple, fuchsia, or red) suggests bearish pressure.
Squeeze: Indicated by dots (typically blue, gray, and yellow) on the zero line. A squeeze condition occurs when Bollinger Bands are inside Keltner Channels, suggesting a period of low volatility that often precedes a significant price movement.
Key Features:
Multi-Timeframe Analysis: Simultaneously view short, mid, and long-term momentum and squeeze states. This helps in aligning trades with broader market trends or identifying counter-trend opportunities.
Customizable Lengths & Multipliers: Users can adjust the lengths and multipliers for Bollinger Bands (BB) and Keltner Channels (KC) for each of the three timeframes, allowing for fine-tuning to different assets and trading styles.
Clear Visual Summary Table: A concise table displays the current momentum status (uptrend, downtrend, or neutral) for each timeframe using color-coded emojis (🟢, 🔴, ⚪). It also provides an overall summary interpretation of the combined signals (e.g., "All Timeframes Uptrend," "Correction in Long-Term Uptrend").
Optional On-Pane Summary Label: A textual summary of the overall market condition can be displayed directly on the indicator pane (configurable in settings).
How to Interpret:
🟢 🟢 🟢 (All Timeframes Uptrend): Strong bullish sentiment across all analyzed periods.
🔴 🔴 🔴 (All Timeframes Downtrend): Strong bearish sentiment across all analyzed periods.
🔴 🟢 🟢 (Correction in Long-Term Uptrend): Short-term pullback within a broader mid and long-term uptrend; potentially a buying opportunity.
🟢 🟢 🔴 (Bounce in Major Downtrend): Short-term rally within a broader mid and long-term downtrend; potentially a selling opportunity or a sign of a weakening downtrend.
Mixed Signals / Unclear: Indicates conflicting signals across timeframes, suggesting market indecision or a ranging environment. Caution is advised.
Squeeze Dots: The appearance of squeeze dots signals a build-up of energy. Monitor the direction of the momentum histogram when the squeeze "fires" (dots disappear) for potential entry signals.
Acknowledgements:
This indicator is heavily inspired by and builds upon the foundational work of the Squeeze Momentum Indicator by LazyBear. Full credit and sincere thanks go to LazyBear for their invaluable contribution to the TradingView community and for sharing their innovative trading tools. The multi-timeframe perspective and summary table in this version are designed to enhance the utility of the original concept.
Disclaimer:
Trading involves substantial risk of loss and is not suitable for every investor. The information provided by this indicator is for educational and informational purposes only and should not be considered financial advice. Always do your own research and consider your risk tolerance before making any trading decisions.
Triple EMA Momentum Oscillator (TEMO) HistogramThis Pine Script code replicates the Python indicator you provided, calculating the Triple EMA Momentum Oscillator (TEMO) and generating signals based on its value and momentum.
Explanation of the Code:
User Inputs:
Allows you to adjust the periods for the short, mid, and long EMAs.
Calculate EMAs:
Computes the Exponential Moving Averages for the specified periods.
Calculate EMA Spreads (Distances):
Finds the differences between the EMAs to understand the spread between them.
Calculate Spread Velocities:
Determines the change in spreads from the previous period, indicating momentum.
Composite Strength Score:
Weighted calculation of the spreads normalized by the EMA values.
Velocity Accelerator:
Weighted calculation of the velocities normalized by the EMA values.
Final TEMO Oscillator:
Combines the spread strength and velocity accelerator to create the TEMO.
Generate Signals:
Signals are generated when TEMO is positive and increasing (buy), or negative and decreasing (sell).
Plotting:
Zero Line: Helps visualize when TEMO crosses from positive to negative.
TEMO Oscillator: Plotted with green for positive values and red for negative values.
Signals: Displayed as a histogram to indicate buy (1) and sell (-1) signals.
Usage:
Buy Signal: When TEMO is above zero and increasing.
Sell Signal: When TEMO is below zero and decreasing.
Note: This oscillator helps identify momentum changes based on EMAs of different periods. It's useful for detecting trends and potential reversal points in the market.
AKC Strategy with MACD + RSI + ATR Filters [FAILED]This strategy is built around a mean-reversion concept using Higher Timeframe (HTF) Keltner Channels overlaid on a 5-minute chart.
Entry Conditions:
• Long when price pierces the lower HTF band
• Short when price pierces the upper HTF band
• Confirmed by:
• MACD histogram direction
• RSI above 50 (for longs) / below 50 (for shorts)
• ATR must be above its 20-bar average (filters low-volatility chop)
Exit Conditions:
• Stop-loss: 1%
• Take-profit: 2% (fixed R:R of 1:2)
Customization:
• Timeframe input for Keltner calculation (default: 4H)
• Adjustable filter thresholds and SL/TP levels
Backtest Result (In-Sample: Feb–Apr 2023):
• Total Trades: 138
• Win Rate: ~27%
• Profit Factor: ~0.85
• Still underperforming overall but built as a modular base for refinement.
Clean XRP/USDT Alert & MarkerClean XRP/USDT Alert & Marker is a precision trading tool designed for futures traders. It highlights high-probability entry zones using visual markers and real-time alerts for both short and long breakouts.
🔍 Features:
Visual markers for short entry and long breakout
Real-time alerts at key levels (configurable)
Ideal for 1H and 4H strategies
Clean layout optimized for fast decision-making
Built for leverage-based futures trading
Use this script to improve timing, reduce noise, and trade XRP/USDT with clearer setups and better risk management.
Ferrari Bot - Alerts + TP/SL LabelsAI assisted indicator created by myself with ChatGPT - 4's help
🚀 Ferrari Bot - Smart 4H Trading Signal System
Description:
Ferrari Bot is a precision-engineered crypto trading indicator designed to identify high-probability long and short setups on the 4-hour chart. It uses a multi-layered confluence strategy to filter trades with clarity, discipline, and edge.
This indicator is built for traders who value:
✅ Clear visual trade signals
✅ Strong risk/reward logic (3:1 & 5:1)
✅ Built-in market structure + momentum filters
✅ Manual trading alerts that actually work
Core Logic Includes:
📈 Trend filtering with the 200 EMA
🔍 RSI momentum checks (zone-based or crossover)
⚡ Flexible MACD confirmation for breakout momentum
📊 ATR-based volatility filter
🕯️ Price action + candle strength validation
🧪 Configurable filtering modes (None, Moderate, Strict)
🎯 Visual TP/SL plots and labeled targets
Alerts & Labels:
🔔 Long & Short signal alerts
🏷️ Automatic TP/SL labels for manual execution
📉 Stop-loss levels calculated via ATR
📈 Target levels shown for both 3:1 and 5:1 R:R
*** i noticed it tends to be stopped out at least once rather often due to it's SL being rather tight and then the deviation occurs. i recommend looking for the deviation move then entering the trade - not financial advice; please use at your own risk!
//@version=6
//AI assisted multi-confluence 4HR swing trade indicator
indicator("Ferrari Bot - Alerts + TP/SL Labels", overlay=true)
// === USER INPUTS ===
timeframe = input.timeframe("240", "Strategy Timeframe")
atrMultiplier = input.float(1.2, title="ATR Multiplier for Stop-Loss (Tighter)", minval=0.5)
rsiSource = input.source(close, "RSI Source")
rsiPeriod = input.int(14, "RSI Period")
emaPeriod = input.int(200, "EMA Period")
macdShort = input.int(12, "MACD Fast")
macdLong = input.int(26, "MACD Slow")
macdSignal = input.int(9, "MACD Signal")
filterMode = input.string("Moderate", title="Filter Mode", options= )
volumeWindow = filterMode == "Strict" ? 20 : filterMode == "Moderate" ? 15 : 1
atrThreshold = filterMode == "Strict" ? 0.01 : filterMode == "Moderate" ? 0.003 : 0.0
priceActionFilterEnabled = input.bool(true, title="Enable Price Action Filter")
candleBodyStrengthFilter = input.bool(true, title="Enable Candle Body Strength Filter")
rsiCrossoverFilter = input.bool(true, title="Use RSI Crossover Entry")
macdFlexibleConfirm = input.bool(true, title="MACD Flexible Confirmation (Last 2 Bars)")
// === INDICATORS ===
ema = ta.ema(close, emaPeriod)
rsi = ta.rsi(rsiSource, rsiPeriod)
= ta.macd(close, macdShort, macdLong, macdSignal)
atr = ta.atr(14)
volumeMA = ta.sma(volume, volumeWindow)
// === TREND CONDITIONS ===
uptrend = close > ema
downtrend = close < ema
// === RSI ENTRY CONDITIONS ===
rsiLongCrossover = ta.crossover(rsi, 45)
rsiShortCrossover = ta.crossunder(rsi, 55)
rsiLongZone = rsi < 50
rsiShortZone = rsi > 50
// === MACD FLEXIBLE CONDITIONS ===
macdBullish = histLine > 0 and histLine < 0
macdBearish = histLine < 0 and histLine > 0
macdBullishConfirm = macdBullish or (histLine > 0 and histLine > 0)
macdBearishConfirm = macdBearish or (histLine < 0 and histLine < 0)
// === FILTER CONDITIONS ===
volCondition = filterMode == "None" or volume > volumeMA
atrCondition = filterMode == "None" or (atr / close) > atrThreshold
insideBar = high <= high and low >= low
priceActionValid = not priceActionFilterEnabled or not insideBar or volume > volumeMA
body = math.abs(close - open)
candleRange = high - low
strongBody = body > (candleRange * 0.5)
candleStrengthValid = not candleBodyStrengthFilter or strongBody
// === ENTRY CONDITIONS ===
longCondition = uptrend and
(rsiCrossoverFilter ? rsiLongCrossover : rsiLongZone) and
(macdFlexibleConfirm ? macdBullishConfirm : macdBullish) and
volCondition and atrCondition and priceActionValid and candleStrengthValid
shortCondition = downtrend and
(rsiCrossoverFilter ? rsiShortCrossover : rsiShortZone) and
(macdFlexibleConfirm ? macdBearishConfirm : macdBearish) and
volCondition and atrCondition and priceActionValid and candleStrengthValid
// === ALERTS ===
alertcondition(longCondition, title="Long Signal", message="🚀 Long Setup Confirmed on {{ticker}} @ {{close}} (4H). SL and TP levels plotted.")
alertcondition(shortCondition, title="Short Signal", message="📉 Short Setup Confirmed on {{ticker}} @ {{close}} (4H). SL and TP levels plotted.")
// === PERSISTENT TP/SL STORAGE ===
var float longSL = na
var float longTP3 = na
var float longTP5 = na
var float shortSL = na
var float shortTP3 = na
var float shortTP5 = na
if (longCondition)
longSL := close - atr * atrMultiplier
longTP3 := close + (close - longSL) * 3
longTP5 := close + (close - longSL) * 5
if (shortCondition)
shortSL := close + atr * atrMultiplier
shortTP3 := close - (shortSL - close) * 3
shortTP5 := close - (shortSL - close) * 5
// === PLOTTING PERSISTENT LEVELS ===
plot(longSL, title="Long SL", color=color.red, linewidth=1, style=plot.style_linebr)
plot(longTP3, title="Long TP 3:1", color=color.green, linewidth=1, style=plot.style_linebr)
plot(longTP5, title="Long TP 5:1", color=color.green, linewidth=2, style=plot.style_linebr)
plot(shortSL, title="Short SL", color=color.red, linewidth=1, style=plot.style_linebr)
plot(shortTP3, title="Short TP 3:1", color=color.green, linewidth=1, style=plot.style_linebr)
plot(shortTP5, title="Short TP 5:1", color=color.green, linewidth=2, style=plot.style_linebr)
// === TP/SL LABELS ===
if (longCondition)
label.new(bar_index, longSL, text="Long SL", style=label.style_label_down, color=color.red, textcolor=color.white)
label.new(bar_index, longTP3, text="TP 3:1", style=label.style_label_up, color=color.green, textcolor=color.white)
label.new(bar_index, longTP5, text="TP 5:1", style=label.style_label_up, color=color.green, textcolor=color.white)
if (shortCondition)
label.new(bar_index, shortSL, text="Short SL", style=label.style_label_up, color=color.red, textcolor=color.white)
label.new(bar_index, shortTP3, text="TP 3:1", style=label.style_label_down, color=color.green, textcolor=color.white)
label.new(bar_index, shortTP5, text="TP 5:1", style=label.style_label_down, color=color.green, textcolor=color.white)
// === PLOT SIGNALS ===
plotshape(longCondition, title="Long Entry", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(shortCondition, title="Short Entry", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
Strategy with DI+/DI-, ADX, RSI, MACD, EMA + Time Stop [FAILED]I built this strategy combining trend strength (ADX, DI+/DI-), momentum (MACD, RSI), candle filters, and EMA direction with a time-based stop and fixed SL/TP.
Backtested on BTCUSDT (5-min) from Jan–Apr 2023 using TradingView Premium’s deep data.
🟥 Results:
• 5 trades, 0 wins
• -14.45% total P&L
• All trades hit stop-loss (1.5%)
• Profit factor: 0.00
Despite logical layering, the entry timing didn’t capture profitable moves. Possibly overfiltered or too delayed.
💡 Sharing this for transparency and learning. Not every test wins — but every test teaches. On to the next.
Supply In Profit Z-ScoreZ-score of BTC Supply in Profit.
Supply in Profit is an On-Chain BTC indicator that shows the percentage of BTC in profit.
In this indicator you can choose to use a Z-Score or not.
BTC Thermocap Z-ScoreBTC Thermocap Indicator Overview
The BTC Thermocap is a specialized on-chain ratio indicator designed to provide deeper insight into Bitcoin's market valuation relative to its cumulative issuance. By comparing the current market price of Bitcoin to the total value of all BTC ever mined (also known as "thermocap"), this indicator helps identify potential overvaluation or undervaluation periods within the Bitcoin market cycle.
Key Features and Customizable Inputs:
Moving Average Length (MA Length)
Moving Average Type (MA Type) - SMA or EMA
Z-Score Calculation Length
Z-Score Toggle (Use Z-Score)
MACD + RSI + EMA + BB + ATR Day Trading StrategyEntry Conditions and Signals
The strategy implements a multi-layered filtering approach to entry conditions, requiring alignment across technical indicators, timeframes, and market conditions .
Long Entry Requirements
Trend Filter: Fast EMA (9) must be above Slow EMA (21), price must be above Fast EMA, and higher timeframe must confirm uptrend
MACD Signal: MACD line crosses above signal line, indicating increasing bullish momentum
RSI Condition: RSI below 70 (not overbought) but above 40 (showing momentum)
Volume & Volatility: Current volume exceeds 1.2x 20-period average and ATR shows sufficient market movement
Time Filter: Trading occurs during optimal hours (9:30-11:30 AM ET) when market volatility is typically highest
Exit Strategies
The strategy employs multiple exit mechanisms to adapt to changing market conditions and protect profits :
Stop Loss Management
Initial Stop: Placed at 2.0x ATR from entry price, adapting to current market volatility
Trailing Stop: 1.5x ATR trailing stop that moves up (for longs) or down (for shorts) as price moves favorably
Time-Based Exits: All positions closed by end of trading day (4:00 PM ET) to avoid overnight risk
Best Practices for Implementation
Settings
Chart Setup: 5-minute timeframe for execution with 15-minute chart for trend confirmation
Session Times: Focus on 9:30-11:30 AM ET trading for highest volatility and opportunity
Super Oscilador by RouroSuper Oscillator by Rouro
A high-precision composite momentum indicator that brings together five classic oscillators—RSI, Stochastic %K, CCI, Rate of Change (ROC) with ATR-based dynamic thresholds, and Williams %R—into a single, unified tool:
Normalized & Smoothed
• Each oscillator is scored (+1 overbought, –1 oversold, 0 neutral), averaged into a –1…+1 range and smoothed with an EMA for a clean, comparable line.
Intuitive Color Coding
• Oscillator line turns red in overbought territory, green in oversold, and blue in neutral zones.
Traffic-Light State Table
• A compact on-chart table shows each indicator’s real-time status (green/red/gray), so you can verify which signals are aligned.
Non-Repainting Buy/Sell Signals
• Arrows appear on confirmed exits from overbought/oversold levels (using barstate.isconfirmed), and can be hooked to TradingView alerts via built-in alertcondition.
Fully Customizable
• Choose manual ROC thresholds or let ATR dynamically adjust sensitivity. You get full control over periods, levels and smoothing to fit any asset or timeframe.
This all-in-one oscillator helps you spot confluence across multiple momentum tools at a glance, with zero repaint. Great for entries, exits and automated alerting.
Advanced Holy Grail Strategy with filtersAdvanced Holy Grail Strategy with Filters
This strategy is a robust trend-trading system designed for TradingView, leveraging a unique combination of momentum, volatility, volume, and institutional pivot filters to maximize high-probability entries and exits.
Key Features:
Multi-Timeframe MACD & RSI Filters:
Uses MACD and RSI on user-selected timeframes for advanced momentum confirmation. Long trades require both bullish MACD and RSI above 50; short trades require bearish MACD and RSI below 40.
Camarilla Pivots Integration:
Filters entries based on price location relative to Camarilla R3 (for longs) and S3 (for shorts), helping to align trades with institutional-level support/resistance.
Volume Filter:
Confirms trades only when volume exceeds its 20-bar simple moving average, adding a participation/confirmation filter.
Fake Rally Detection:
Identifies and visually marks “fake rallies” (sudden moves exceeding a configurable ATR-based threshold) to help traders avoid chasing unsustainable moves.
Configurable Cooldown:
Prevents overtrading by spacing out entries.
Intelligent Exits:
Uses both RSI and MACD momentum shifts for closing trades, aiming to capture larger trend moves while protecting gains.
Visuals & Alerts:
Plots fake rally bars (FR) directly on the chart for both long and short scenarios.
Customizable alerts for entries and exits (long, short, close), ready for automation or notifications.
Customizable Inputs:
User can configure MACD, RSI, ATR, fake rally threshold, and volume filter parameters, as well as MACD and RSI timeframes.
Use Case:
Ideal for traders seeking a confluence-based system that filters out weak or risky setups, with added institutional logic and protection against news-driven price spikes or “fakeouts.”
Disclaimer: No strategy is guaranteed. Test thoroughly before live trading. Use position sizing and risk management at all times.
FibMACDEMACrossThis custom TradingView indicator identifies high-confidence buy signals by combining a 21/200 EMA Golden Cross with a MACD bullish crossover, and further filters entries using optional conditions: volume above its 20-period average, RSI between 30–70, and price trading above the 200 EMA. It highlights potential buy zones with a shaded Fibonacci retracement area (between the 50% and 61.8% levels), and plots clean, intuitive markers directly on the price chart to avoid clutter. Designed for visual clarity and discretionary decision-making, this tool helps traders focus only on the strongest momentum-backed, trend-aligned opportunities.
Paul_BDT Osc. MACD, ADX, CHOP, RSI & CVD🔧 Overview
Modular multi-oscillator engine designed for actionable and filtered trading signals. It combines the power of MACD, ADX, CHOP, RSI, and CVD, integrates advanced divergence detection, a multi-timeframe dashboard, and a built-in risk management system.
⸻
🚨 Alert System
Alerts are organized by signal type, oscillator used, and timeframe block, with precision controls for filtering and sensitivity.
1. Oscillator Alerts (Osc.)
Triggers ▲ / ▼ triangle markers based on trend momentum shifts detected on the selected oscillator:
• MACD: triggers when histogram crosses 0 with bullish or bearish slope
• ADX: triggers on directional breakout with increasing trend strength
• CHOP: signals trend resumption after choppy market phase
• RSI: breakout from dynamic support/resistance using pivot detection
• CVD: shift in buy/sell pressure based on aggregated volume delta
✅ All signals optionally trigger on bar close only (if enabled)
2. Divergence Alerts (Div.)
Automatic detection of:
• 🔼 Regular Divergences
• Bullish: Lower lows in price, higher lows in oscillator
• Bearish: Higher highs in price, lower highs in oscillator
• 🔁 Hidden Divergences
• Hidden Bullish: Higher lows in price, lower lows in oscillator
• Hidden Bearish: Lower highs in price, higher highs in oscillator
Alert trigger logic:
• Divergences only trigger if confirmed by price action:
→ breakout from wick or close beyond BB/RSI dynamic bands
• Alerts are non-repeating (fires only on signal change)
🔔 divergeUP and divergeDN are fired when divergence AND price condition are met.
3. Reversal Alerts (Rev.)
Strict combo alert:
• reverseUP = divergeUP AND bullish wick breakout
• reverseDN = divergeDN AND bearish wick breakout
🧠 These are high-conviction signals, ideal for swing entries or reversion trades.
📊 Multi-Timeframe Support (4 Blocks)
4 independent blocks:
• Scalp, Intra, Swing, Custom
• Each block accepts 3 sorted timeframes
• You can individually enable:
• Oscillator alerts
• Divergences
• Reversals
Example:
• Scalp: RSI only, no divergence
• Intra: CVD + reversal only
• Swing: MACD + divergence + reversal
Each timeframe is dynamically sorted and shown in a structured dashboard grid (TF01 to TF12), making the multi-timeframe readout seamless.
⸻
⚙️ Additional Features
• Full visual panel with color-coded trend indicators
• Take Profit/Exit Alerts available on a custom timeframe
• Built-in Money Management:
• % or USD risk
• Configurable R/R ratio
• Minimum PnL threshold (filter out low-return setups)
⸻
✅ Best Use Cases
• High-frequency scalping (1s–1min) with real-time oscillator breakouts
• Structured intraday/swing planning using divergence + reversal logic
• Manual backtesting and alert-based discretionary entries
⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻⸻
🧠 Fonctionnalités
• Oscillateurs personnalisables : activez un indicateur à la fois (MACD, ADX, CHOP, RSI, ou CVD) pour une analyse ciblée et lisible.
• Détection des divergences :
• Divergences classiques (bullish/bearish),
• Divergences cachées (hidden bullish/bearish),
• Filtres avancés pour ne détecter que les signaux pertinents (crossover/crossunder + break de mèche).
• Multi-timeframes :
• Jusqu’à 4 blocs configurables (scalp, intra, swing, custom),
• Tri automatique des UT,
• Alertes différenciées par bloc et par type de signal.
• Visualisation modulaire :
• Tableau de synthèse personnalisable, affichant l’état de chaque indicateur par UT,
• Affichage hors graphique ou directement sur le chart,
• Couleurs dynamiques pour les signaux haussiers, baissiers ou neutres.
• Gestion du risque intégrée :
• Paramétrez le risque en % du capital ou en valeur absolue (USD),
• Ratio risk/reward configurable pour filtrer les signaux,
• Seuil de profit minimum (PnL) configurable pour filtrer les signaux.
• Support de volumes agrégés multi-exchange pour CVD : compatible avec les plateformes crypto (BITGET, BINANCE, etc).
⸻
⚙️ Personnalisation
• Choix du type de moyenne mobile (EMA, RMA, VWAP, etc.).
• Activation sélective des signaux (Oscillateur, Divergence, Renversement) pour chaque bloc de timeframes.
⸻
📈 Alertes intégrées
• Compatibles avec les alertes automatiques de TradingView,
• Détection de signaux d’entrée (achat/vente), divergences, renversements,
• Configuration des alertes par type de signal et par timeframe (scalp/intra/swing/custom).
⸻
🔍 Utilisations recommandées
• Scalping haute fréquence (1s à 1min),
• Intraday en multi-UT (5 à 30min),
• Swing trading (1H à 1D),
• Analyse technique avancée sur crypto, indices, forex ou actions.
⸻
📌 Conclusion
Ce script combine précision algorithmique et flexibilité de personnalisation.
Divergence + OBV + Supertrend Combo [Enhanced]Feature Description
🔹 OBV Plot on Chart Blue/Orange dots below/above bars based on OBV vs OBV MA
🔸 Early Signal Green triangle (bullish) or Red triangle (bearish) appears before Supertrend flips
🔺 Divergences Green/Red labels when RSI divergence occurs
✅ Supertrend Line Clear visual for current trend (Green = Up, Red = Down)
Reversal Trap Sniper – Verified VersionReversal Trap Sniper
Overview
Reversal Trap Sniper is a counterintuitive momentum-following strategy that identifies "reversal traps"—situations where traders expect a market reversal based on RSI, but the price continues trending. By detecting these failed reversal signals, the strategy enters trades in the trend direction, often catching strong follow-through moves.
How It Works
The system monitors the Relative Strength Index (RSI). When RSI moves above the overbought level (e.g., 70) and then drops back below it, many traders interpret this as a sell signal.
However, this strategy treats such moves with caution. If the RSI pulls back below the overbought threshold but the price continues to rise, the system considers it a "reversal trap"—a fakeout.
In such cases, instead of going short, the strategy enters a long position, assuming that the trend is still valid and those betting on a reversal may fuel a breakout.
Similarly, if RSI rises above the oversold level from below, but price continues falling, a short trade is triggered.
Entries are followed by ATR-based stop-loss and dynamic take-profit (2× risk), with a fallback time-based exit after 30 bars.
Key Features
- Detects failed RSI-based reversals ("traps")
- Follows momentum after the trap is triggered
- Uses ATR for dynamic stop-loss and take-profit
- Auto-exit after a fixed bar count (30 bars)
- Visual markers on chart for transparency
- Realistic trading assumptions: 0.05% commission, slippage, and capped pyramiding
Parameter Explanation
RSI Length (14): Standard RSI calculation period
Overbought/Oversold Levels (70/30): Common thresholds used by many traders
ATR Length (14): Used to define stop-loss and target dynamically
Risk-Reward Ratio (2.0): Take-profit is set at 2× the stop-loss distance
Max Holding Bars (30): Ensures trades don’t remain open indefinitely
Pyramiding (10): Allows scaling into trades, simulating real-world strategy stacking
Originality Note
This strategy inverts traditional RSI logic. Instead of treating overbought/oversold conditions as signals for reversal, it waits for those signals to fail. Only after such failures, confirmed by continued price action in the same direction, does the system enter trades. This logic is based on the behavioral observation that failed reversal signals often trigger stronger trend continuation—making this strategy uniquely positioned to exploit trap scenarios.
Disclaimer
This script is for educational and research purposes only. Trading involves risk, and past performance does not guarantee future results. Always test thoroughly before applying with live capital.
Candle Breakout Oscillator [LuxAlgo]The Candle Breakout Oscillator tool allows traders to identify the strength and weakness of the three main market states: bullish, bearish, and choppy.
Know who controls the market at any given moment with an oscillator display with values ranging from 0 to 100 for the three main plots and upper and lower thresholds of 80 and 20 by default.
🔶 USAGE
The Candle Breakout Oscillator represents the three main market states, with values ranging from 0 to 100. By default, the upper and lower thresholds are set at 80 and 20, and when a value exceeds these thresholds, a colored area is displayed for the trader's convenience.
This tool is based on pure price action breakouts. In this context, we understand a breakout as a close above the last candle's high or low, which is representative of market strength. All other close positions in relation to the last candle's limits are considered weakness.
So, when the bullish plot (in green) is at the top of the oscillator (values above 80), it means that the bullish breakouts (close below the last candle low) are at their maximum value over the calculation window, indicating an uptrend. The same interpretation can be made for the bearish plot (in red), indicating a downtrend when high.
On the other hand, weakness is indicated when values are below the lower threshold (20), indicating that breakouts are at their minimum over the last 100 candles. Below are some examples of the possible main interpretations:
There are three main things to look for in this oscillator:
Value reaches extreme
Value leaves extreme
Bullish/Bearish crossovers
As we can see on the chart, before the first crossover happens the bears come out of strength (top) and the bulls come out of weakness (bottom), then after the crossover the bulls reach strength (top) and the bears weakness (bottom), this process is repeated in reverse for the second crossover.
The other main feature of the oscillator is its ability to identify periods of sideways trends when the sideways values have upper readings above 80, and trending behavior when the sideways values have lower readings below 20. As we just saw in the case of bullish vs. bearish, sideways values signal a change in behavior when reaching or leaving the extremes of the oscillator.
🔶 DETAILS
🔹 Data Smoothing
The tool offers up to 10 different smoothing methods. In the chart above, we can see the raw data (smoothing: None) and the RMA, TEMA, or Hull moving averages.
🔹 Data Weighting
Users can add different weighting methods to the data. As we can see in the image above, users can choose between None, Volume, or Price (as in Price Delta for each breakout).
🔶 SETTINGS
Window: Execution window, 100 candles by default
🔹 Data
Smoothing Method: Choose between none or ten moving averages
Smoothing Length: Length for the moving average
Weighting Method: Choose between None, Volume, or Price
🔹 Thresholds
Top: 80 by default
Bottom: 20 by default
Volatility Pulse with Dynamic ExitVolatility Pulse with Dynamic Exit
Overview
This strategy, Volatility Pulse with Dynamic Exit, is designed to capture impulsive price moves following volatility expansions, while ensuring risk is managed dynamically. It avoids trades during low-volatility periods and uses momentum confirmation to enter positions. Additionally, it features a time-based forced exit system to limit overexposure.
How It Works
A position is opened when the current ATR (Average True Range) significantly exceeds its 20-period average, signaling a volatility expansion.
To confirm the move is directional and not random noise, the strategy checks for momentum: the close must be above/below the close of 20 bars ago.
Low volatility zones are filtered out to avoid chop and poor trade entries.
Upon entry, a dynamic stop-loss is set at 1x ATR, while take-profit is set at 2x ATR, offering a 2:1 reward-to-risk ratio.
If the position remains open for more than 42 bars, it is forcefully closed, even if targets are not hit. This prevents long-lasting, stagnant trades.
Key Features
✅ Volatility-based breakout detection
✅ Momentum confirmation filter
✅ Dynamic stop-loss and take-profit based on real-time ATR
✅ Time-based forced exit (42 bars max holding)
✅ Low-volatility environment filter
✅ Realistic settings with 0.05% commission and slippage included
Parameters Explanation
ATR Length (14): Captures recent volatility over ~2 weeks (14 candles).
Momentum Lookback (20): Ensures meaningful price move confirmation.
Volatility Expansion Threshold (0.5x): Strategy activates only when ATR is at least 50% above its average.
Minimum ATR Filter (1.0x): Avoids entries in tight, compressed market ranges.
Max Holding (42 bars): Trades are closed after 42 bars if no exit signal is triggered.
Risk-Reward (2.0x): Aiming for 2x ATR as profit for every 1x ATR risk.
Originality Note
While volatility and momentum have been used separately in many strategies, this script combines both with a time-based dynamic exit system. This exit rule, combined with an ATR-based filter to exclude low-activity periods, gives the system a practical edge in real-world use. It avoids classic rehashes and integrates real trading constraints for better applicability.
Disclaimer
This is a research-focused trading strategy meant for backtesting and educational purposes. Always use proper risk management and perform due diligence before applying to real funds.
Zero Lag Multi Timeframe MACDCommon parts of the Multi Time Frame MACD
Why This MACD is Special
Traditional MACD (Moving Average Convergence Divergence) is a powerful trend-following indicator, but it has a key limitation: it only reflects price action on a single timeframe. Traders who rely on top-down analysis—analyzing higher timeframes first before moving to lower ones—often face a frustrating delay.
The Problem with Traditional Multi-Timeframe MACD with top down analysis:
If you’re on a 5-minute chart and want to see the 1-hour MACD, you must wait for 12 candles (1 hour) to close before the MACD updates.
This lag means you miss real-time signals and react too late to trend changes.
The Zero Lag Multi-Timeframe MACD solves this by using a custom time-adjusted formula (developed by CoffeeShopCrypto) that projects higher timeframe MACD values onto lower timeframe charts in real time.
How Traders Normally Use MACD
Single-Timeframe MACD (Traditional Approach)
Used for trend identification (bullish/bearish).
Crossovers (MACD line crossing signal line) signal potential entries.
Divergences (price vs. MACD direction) warn of trend exhaustion.
Top-Down Analysis with Standard MACD (Manual Switching)
1. Check higher timeframe (e.g., 1-hour) for trend direction.
2. Switch to lower timeframe (e.g., 5-minute) for entries.
Problem: You must constantly switch charts and wait for higher timeframe candles to close.
This MACD Eliminates the Need for Switching
Higher timeframe MACD is plotted in real time on your lower timeframe chart.
No waiting for candle closes—instant trend confirmation.
Single-chart top-down analysis without switching timeframes.
How to Use This MACD for Trading
Since the MACD is an averaging indicator, it works best when trading with the trend. This version enhances that by showing two trends at once:
Lower Timeframe (LTF) MACD – Your current chart’s trend.
Higher Timeframe (HTF) MACD – The dominant trend.
Key Trading Rules
1. Strong Uptrend Setup (Best for Long Entries)
HTF MACD line is rising & above zero (strong bullish momentum).
LTF MACD line is also rising (confirms alignment).
Entry: Look for LTF MACD to cross above signal line.
Long Entry Confirmation:
When both the High Timeframe and Low Timeframe MACD Lines are moving in the same direction, this is a confirmation that both the HTF is matching the direction of the LTF.
In this example both MACD Lines are moving long so we are only looking to take long entries at this point forward.
Short Entry Confirmation:
When both the High Timeframe and Low Timeframe MACD Lines are moving in the same direction, this is a confirmation that both the HTF is matching the direction of the LTF.
In this example both MACD Lines are moving short so we are only looking to take long entries at this point forward.
2. Potential Reversal or Weak Uptrend
Trend Divergence Confirmation
This example shows you a confirmation of divergence between the trends. Its best to watch for a continuation of the previous major trend. In this example, we just came off a downtrend with a GAP DOWN.
How to see it: (Trend Divergence)
Two things will help you confirm this divergence
1.Notice the LTF and HTF MACD are moving away from each other.
2. Both the HTF and LTF Histogram are shrinking.
This is an expression of lack of trend.
What to do:
High Timeframe Trends are always the lead so wait for the Low Timeframe to catch up to the High Timeframe trend.
Limitations:
The Exponential Moving Average calculation can only be applied to the Low Timeframe MACD because of the way its weighted against more recent price action and closing values.
This same EMA calculation can not be applied to the High Timeframe MACD as its being recalculated and the result means you can not weigh values against its current plot point.
Low Timeframe MACD can use EMA / SMA
High Timeframe MACD can only use SMA
CCI Divergence Detector
A technical analysis tool that identifies divergences between price action and the Commodity Channel Index (CCI) oscillator. Unlike standard divergence indicators, this system employs advanced gradient visualization, multi-layer wave effects, and comprehensive customization options to provide traders with crystal-clear divergence signals and market momentum insights.
Core Detection Mechanism
CCI-Based Analysis: The indicator utilizes the Commodity Channel Index as its primary oscillator, calculated from user-configurable source data (default: HLC3) with adjustable length parameters. The CCI provides reliable momentum readings that effectively highlight price-momentum divergences.
Dynamic Pivot Detection: The system employs adaptive pivot detection with three sensitivity levels (High/Normal/Low) to identify significant highs and lows in both price and CCI values. This dynamic approach ensures optimal divergence detection across different market conditions and timeframes.
Dual Divergence Analysis:
Regular Bullish Divergences: Detected when price makes lower lows while CCI makes higher lows, indicating potential upward reversal
Regular Bearish Divergences: Identified when price makes higher highs while CCI makes lower highs, signaling potential downward reversal
Strength Classification System: Each detected divergence is automatically classified into three strength categories (Weak/Moderate/Strong) based on:
-Price differential magnitude
-CCI differential magnitude
-Time duration between pivot points
-User-configurable strength multiplier
Advanced Visual System
Multi-Layer Wave Effects: The indicator features a revolutionary wave visualization system that creates depth through multiple gradient layers around the CCI line. The wave width dynamically adjusts based on ATR volatility, providing intuitive visual feedback about market conditions.
Professional Color Gradient System: Nine independent color inputs control every visual aspect:
Bullish Colors (Light/Medium/Dark): Control oversold areas, wave effects, and strong bullish signals
Bearish Colors (Light/Medium/Dark): Manage overbought zones, wave fills, and strong bearish signals
Neutral Colors (Light/Medium/Dark): Handle table elements, zero line, and transitional states
Intelligent Color Mapping: Colors automatically adapt based on CCI values:
Overbought territory (>100): Bearish color gradients with increasing intensity
Neutral positive (0 to 100): Blend from neutral to bearish tones
Oversold territory (<-100): Bullish color gradients with increasing intensity
Neutral negative (-100 to 0): Transition from neutral to bullish tones
Key Features & Components
Advanced Configuration System: Eight organized input groups provide granular control:
General Settings: System enable, pivot length, confidence thresholds
Oscillator Selection: CCI parameters, overbought/oversold levels, normalization options
Detection Parameters: Divergence types, minimum strength requirements
Sensitivity Tuning: Pivot sensitivity, divergence threshold, confirmation bars
Visual System: Line thickness, labels, backgrounds, table display
Wave Effects: Dynamic width, volatility response, layer count, glow effects
Transparency Controls: Independent transparency for all visual elements
Smoothing & Filtering: CCI smoothing types, noise filtering, wave smoothing
Professional Alert System: Comprehensive alert functionality with dynamic messages including:
-Divergence type and strength classification
-Current CCI value and confidence percentage
-Customizable alert frequency and conditions
Enhanced Information Table: Real-time display showing:
-Current CCI length and value
-Market status (Overbought/Normal/Oversold)
-Active sensitivity setting
Configurable table positioning (4 corner options)
Visual Elements Explained
Primary CCI Line: Main oscillator plot with gradient coloring that reflects market momentum and CCI intensity. Line thickness is user-configurable (1-8 pixels).
Wave Effect Layers: Multi-layer gradient fills creating a dynamic wave around the
CCI line:
-Outer layers provide broad market context
-Inner layers highlight immediate momentum
-Core layers show precise CCI movement
-All layers respond to volatility and momentum changes
Divergence Lines & Labels:
-Solid lines connecting divergence pivot points
-Color-coded based on divergence type and strength
-Labels displaying divergence type and strength classification
-Customizable transparency and size options
Reference Lines:
-Zero line with neutral color coding
-Overbought level (default: 100) with bearish coloring
-Oversold level (default: -100) with bullish coloring
Background Gradient: Optional background coloring that reflects CCI intensity and market conditions with user-controlled transparency (80-99%).
Configuration Options
Sensitivity Controls:
Pivot sensitivity: High/Normal/Low detection levels
Divergence threshold: 0.1-2.0 sensitivity range
Confirmation bars: 1-5 bar confirmation requirement
Strength multiplier: 0.1-3.0 calculation adjustment
Visual Customization:
Line transparency: 0-90% for main elements
Wave transparency: 0-95% for fill effects
Background transparency: 80-99% for subtle background
Label transparency: 0-50% for text elements
Glow transparency: 50-95% for glow effects
Advanced Processing:
Five smoothing types: None/SMA/EMA/RMA/WMA
Noise filtering with adjustable threshold (0.1-10.0)
CCI normalization for enhanced gradient scaling
Dynamic wave width with ATR-based volatility response
Interpretation Guidelines
Divergence Signals:
Strong divergences: High-confidence reversal signals requiring immediate attention
Moderate divergences: Reliable signals suitable for most trading strategies
Weak divergences: Early warning signals best combined with additional confirmation
Wave Intensity: Wave width and color intensity provide real-time volatility and momentum feedback. Wider, more intense waves indicate higher market volatility and stronger momentum.
Color Transitions: Smooth color transitions between bullish, neutral, and bearish states help identify market regime changes and momentum shifts.
CCI Levels: Traditional overbought (>100) and oversold (<-100) levels remain relevant, but the gradient system provides more nuanced momentum reading between these extremes.
Technical Specifications
Compatible Timeframes: All timeframes supported
Maximum Labels: 500 (for divergence marking)
Maximum Lines: 500 (for divergence drawing)
Pine Script Version: v5 (latest optimization)
Overlay Mode: False (separate pane indicator)
Usage Recommendations
This indicator works best when:
-Combined with price action analysis and support/resistance levels
-Used across multiple timeframes for confirmation
-Integrated with proper risk management protocols
-Applied in trending markets for divergence-based reversal signals
-Utilized with other technical indicators for comprehensive analysis
Risk Disclaimer: Trading involves substantial risk of loss. This indicator is provided for analytical purposes only and does not constitute financial advice. Divergence signals, while powerful, are not guaranteed to predict future price movements. Past performance is not indicative of future results. Always use proper risk management and never trade with capital you cannot afford to lose.