All typesAll types Open-source onlyMost recentMost popularHiddenRidder - 3 DMI - 3 in 1 OverlayHow the 3‑Layer DMI Stack Works as a Single Story Think of it like watching traffic from a skyscraper: Top layer = your current lane (1–5 min) Fast, noisy, perfect for scalping entries and exits. Middle layer = the next road over (5–15 min) Slower, more stable, shows whether the short‑term move has “real backing.” Bottom layer = the highway (15–30 min) The big picture. If this layer flips direction, everything above eventually follows. This structure gives you a “top‑down confirmation” without switching charts. 🧭 What Each Layer Represents 1. Top Layer — Current DMI (1m, 3m, or 5m) This is your execution layer. It tells you: When DI+ crosses above DI− → short‑term bullish burst When DI− crosses above DI+ → short‑term bearish burst When ADX rises → momentum is strengthening When ADX falls → momentum is fading Use case: Perfect for scalpers who need to time entries to the second. Example: You’re trading BTC on the 1‑minute chart. DI+ crosses up sharply while ADX spikes. You know buyers are stepping in right now. 2. Middle Layer — 5m DMI This is your trend confirmation layer. It filters out noise from the top layer. If the middle layer agrees with the top → high‑probability continuation If it disagrees → expect chop, fakeouts, or reversals Example: Top layer shows bullish DI+ cross, but the middle layer is still bearish. This tells you: “Be careful—this pump may be a scalp only, not a trend shift.” 3. Bottom Layer — 15m DMI This is your directional anchor. It tells you the underlying pressure in the market. If bottom layer is bullish → dips on lower timeframes are buyable If bottom layer is bearish → pumps on lower timeframes are shortable If ADX is rising → a real trend is forming If ADX is flat → expect sideways action Example: Bottom layer ADX is rising while DI− is dominant. This means: “The market is entering a stronger downtrend. Short setups on 1m and 5m will work better.” 🎯 How to Use All 3 Layers Together (The Real Power) 1. Scalping With Trend Alignment The best scalps happen when: Bottom layer = trend direction Middle layer = confirming Top layer = giving the entry signal Example Setup: 15m DMI → bearish 5m DMI → bearish 1m DMI → DI− crosses up + ADX rising → Enter short with confidence. This is where the indicator shines. 2. Catching Reversals Early Reversals start at the top layer and cascade downward. Sequence to watch: Top layer flips bullish Middle layer begins to flatten Bottom layer ADX drops (trend weakening) Bottom layer DI+ crosses up later This gives you a “heads‑up” before the market turns. 3. Avoiding Fakeouts If the top layer flips but the middle and bottom layers disagree, it’s usually a trap. Example: 1m DMI shows bullish DI+ cross 5m DMI still bearish 15m DMI strongly bearish with rising ADX → This is a classic bull trap. → Best action: wait or short the top. 🧠 A Simple Story to Remember It Imagine you’re driving: Top layer is your dashboard — tells you what’s happening right now. Middle layer is the road signs — tells you what’s coming next. Bottom layer is the GPS — tells you the real destination. When all three agree, you drive fast and confidently. When they disagree, you slow down or stop trading.Pine Script® indicatorby HiddenRidderUpdated 1Ben Bot Entry AlertsThis indicator is for $IWM. Take the same entries that Ben Bot is designed to take with this indicator OR automate the entire trade with PeakBot.Pine Script® indicatorby bcolabella17Multi-Index VWAP DashboardTo post this on the TradingView Community Scripts, you want a description that highlights its multi-instrument correlation and institutional session data. It’s not just a VWAP indicator; it’s a "Tape Reading" dashboard for index traders. Here is a structured description you can copy and paste: Description Overview The Multi-Index Institutional VWAP Dashboard is a high-performance Tape Reading tool designed for NQ, ES, and YM traders. It provides a real-time "at-a-glance" matrix of how the three major US Indices are performing relative to critical institutional benchmarks. Instead of cluttering your main chart with dozens of lines, this dashboard compiles the data into a clean, Bookmap-inspired UI. Key Benchmarks Tracked The dashboard monitors price action for NQ, ES, and YM against: NY VWAP: Anchored specifically to the New York Open (09:30 AM ET). PD NY VWAP: The closing value of the previous day's New York session VWAP—a major level for institutional mean reversion. LOD/HOD Anchored VWAP: Dynamic VWAPs that re-anchor automatically to the current Day's High and Day's Low. 15m Opening Range (OR): Detects if price is trading Inside, Above (▲), or Below (▼) the first 15 minutes of the NY session. Trend Matrix: A real-time momentum filter for each index to identify cross-market divergence. Features Bookmap Style Visuals: Uses custom bubble icons (◎) for a modern, heat-map aesthetic. Timezone Optimized: Hard-coded for New York Session hours while respecting your local chart offset. Customizable Layout: Full control over dashboard position (Top/Bottom/Corners) and text sizing to fit any monitor resolution. Cross-Index Correlation: Easily spot "SMT Divergence" (e.g., when NQ is above its NY VWAP but ES is below it). How to Use Bullish Confirmation: Look for "All Green" bubbles across all three indices, specifically price holding above the NY VWAP and OR High. Mean Reversion: Use the PD NY VWAP and HOD/LOD VWAP as targets or areas of interest for potential reversals. Trend Divergence: If NQ is showing "Bullish" while YM is showing "Bearish," exercise caution as the indices are decoupled. Settings Tips Position: Move the dashboard to the "Bottom Right" if you have other indicators at the top. Style: Toggle between "Solid," "Bubble," or "Ring" icons in the script settings to match your chart's theme.Pine Script® indicatorby bansheecapital11Directional Movement Index - DMI | TR🎯 Overview Directional Movement Index - DMI | TR is a comprehensive trend strength and direction indicator that measures the strength and direction of price movement. Developed by Tiagorocha1989, this enhanced version of Welles Wilder's classic DMI system offers multiple visualization modes, customizable moving averages, and comprehensive visual features to help traders identify trend direction, measure trend strength, and generate clear entry and exit signals. 🔧 How It Works The DMI system consists of three key components: the Positive Directional Indicator (+DI), the Negative Directional Indicator (-DI), and the Average Directional Index (ADX). The relationship between +DI and -DI determines trend direction, while ADX measures trend strength regardless of direction. Core Calculation Logic: The indicator calculates directional movement by comparing current price highs and lows with previous periods to determine: +DI (Positive Directional Indicator): Measures upward price pressure -DI (Negative Directional Indicator): Measures downward price pressure ADX (Average Directional Index): Smoothed average of the directional movement, indicating trend strength The relationship between +DI and -DI creates the primary signals: When +DI crosses above -DI → Bullish trend developing When -DI crosses above +DI → Bearish trend developing The spread between them indicates trend strength Additionally, the indicator calculates DMI as the difference between +DI and -DI (+DI minus -DI), creating an oscillator that oscillates around zero: Positive DMI values → Bullish momentum ( +DI above -DI) Negative DMI values → Bearish momentum (-DI above +DI) ✨ Key Features 🔹 Multiple Display Modes DMI Average Mode: Shows the DMI oscillator (+DI minus -DI) with signal line, providing a clean, oscillator-style view of directional balance Normal DMI Mode: Displays the classic +DI and -DI lines for traditional analysis ADX Mode: Shows the Average Directional Index for trend strength measurement All modes can be combined for comprehensive analysis 🔹 Dual Operating Modes for Signals Zero Line Mode: Signals occur when the DMI oscillator crosses above or below the zero line DMI MA Mode: Enhanced mode where signals occur when DMI crosses its own moving average, providing filtered entries 🔹 Flexible Moving Average Selection Choose from six MA types for the DMI MA mode: EMA, SMA, RMA, WMA, VWMA, and HMA 🔹 Customizable DMI Parameters Length: Lookback period for DMI calculation (default 8) ADX Smoothing: Additional smoothing for ADX calculation (default 1) 🔹 Customizable Color Themes Eight distinct color schemes to match your charting preferences: Classic – Green for bullish, Red for bearish Modern – White for bullish, Purple for bearish Robust – Amber for bullish, Maroon for bearish Accented – Violet for bullish, Pink for bearish Monochrome – Light gray for bullish, Dark gray for bearish Moderate – Green for bullish, Red for bearish Aqua – Blue for bullish, Orange for bearish Cosmic – Pink for bullish, Purple for bearish 🔹 Comprehensive Visual Feedback DMI Oscillator: Colored line showing the difference between +DI and -DI Signal Line: Yellow line for MA-based signals Gradient Fill Zones: Clear visualization of extreme readings Dynamic Zone Fills: Semi-transparent fills showing when DMI is above or below the signal line +DI and -DI Lines: Optional display of classic directional indicators ADX Line: Optional blue line showing trend strength Color-Coded Candles: Bars reflect current trend direction based on +DI/-DI relationship Signal Markers: Triangle up/down symbols at crossover points Live Value Display: Floating labels showing current values for each enabled component Trend Table: Bullish/Bearish status displayed on the chart 🔹 Ready-to-Use Alerts Built-in alert conditions trigger LONG signals when +DI crosses above -DI, and SHORT signals when +DI crosses below -DI. ⚙️ Settings Summary Color Choice: Select from eight visual themes (Default: Classic) DMI Display: Toggle to show the DMI Average oscillator (Default: Enabled) Length: Lookback period for DMI calculation (Default: 8) Entry/Exit Signal: Choose between zero line or DMI MA mode (Default: Zero Line) Length MA: Moving average period for DMI MA mode (Default: 365) DMI MA Type: Moving average method for signal line (Default: EMA) Normal DMI: Toggle to show classic +DI and -DI lines (Default: Disabled) ADX Smoothing: Toggle to show ADX with adjustable smoothing (Default: Disabled) 📈 Practical Applications 🔹 Trend Direction Identification The primary use of the DMI system is identifying trend direction: +DI above -DI → Bullish trend -DI above +DI → Bearish trend The wider the separation, the stronger the trend 🔹 Trend Strength Measurement The ADX component quantifies trend strength regardless of direction: ADX below 20 → Weak or non-trending market ADX between 20-40 → Trending market with moderate strength ADX above 40 → Strong trend (can signal trend exhaustion in some cases) 🔹 Crossover Signals Crossovers between +DI and -DI provide classic entry signals: +DI crosses above -DI → Potential LONG entry -DI crosses above +DI → Potential SHORT entry 🔹 DMI Oscillator Analysis The DMI oscillator (+DI minus -DI) offers additional insights: Positive values indicate bullish dominance Negative values indicate bearish dominance Crossovers of the zero line confirm trend changes Crossovers of the moving average provide filtered signals 🔹 Trend Exhaustion Detection When ADX reaches very high levels (above 50-60) after a prolonged trend, it may indicate trend exhaustion and potential reversal. Combined with a narrowing spread between +DI and -DI, this can signal trend weakening. 🔹 Multiple Timeframe Confirmation Compare DMI readings across different timeframes: Higher timeframe DMI confirms primary trend direction Lower timeframe DMI identifies entry timing 🎯 Ideal For ✅ Trend Traders seeking to identify and follow established trends ✅ Swing Traders wanting to capture medium-term directional moves ✅ System Developers needing reliable trend direction signals ✅ Multi-Timeframe Analysts comparing trend strength across periods ✅ Risk Managers assessing whether markets are trending or ranging 📌 Key Takeaways Comprehensive Trend Analysis: Combines direction (+DI/-DI), strength (ADX), and oscillator views in one indicator Multiple Display Modes: Choose between classic +DI/-DI lines, DMI oscillator, or ADX based on your analysis style Dual-Mode Signal Generation: Zero line crossovers for classic signals or MA-smoothed signals for filtered entries Rich Visual Feedback: Color themes, gradient fills, candles, and floating labels provide immediate market awareness Alert-Ready: Built-in alerts for trend change signals when +DI crosses -DI ⚠️ Important Notes The DMI system works best in trending markets and can produce false signals in ranging conditions. ADX does not indicate direction, only strength; always use it in conjunction with +DI/-DI. The 365-day MA default in DMI MA mode is designed for longer-term trend context on daily charts. Consider using ADX above 20-25 to filter for trending conditions before taking crossover signals. Always combine with proper risk management and additional confirmation for best results. Disclaimer: This indicator is provided for educational and informational purposes only. Past performance is not indicative of future results. Always conduct thorough testing and align with your risk management strategy before live deployment.Pine Script® indicatorby Tiagorocha1989Updated 115Momentum ChecklistMomentum Checklist - Visual Trading Dashboard A clean, easy-to-read dashboard that displays key momentum indicators in one convenient table. This indicator helps traders quickly determine the directional bias of price action by combining ADX, Directional Movement Index (DMI), and Money Flow Index (MFI). What It Shows: ADX (Average Directional Index): Measures trend strength. Green checkmark appears when ADX ≥ 20, indicating a strong trending market DI+ (Positive Directional Indicator): Tracks upward price movement DI- (Negative Directional Indicator): Tracks downward price movement MFI (Money Flow Index): Volume-weighted momentum indicator. When > 50 indicates bullish money flow Bias: Automatically calculates directional bias: LONG: When DI+ > 25 and DI- < 20 SHORT: When DI- > 25 and DI+ < 20 NEUTRAL: When conditions are mixed Trading Strategy: This indicator helps determine the bias of price movement in a certain direction. When coupled with Bollinger Bands, it becomes a very powerful combination to catch those big explosive moves up or down. The momentum confirmation from this checklist combined with Bollinger Band squeezes or breakouts can significantly improve entry timing. Recommended Usage: Timeframes: 5-minute to 15-minute charts for optimal performance Best Assets: US30, XAUUSD (Gold), BTCUSD, and most major indices Works exceptionally well on volatile instruments with strong directional moves Features: Color-coded cells for instant visual confirmation Customizable position (Top Right, Top Left, Bottom Right, Bottom Left) Adjustable text size (Tiny, Small, Normal) Configurable ADX, DMI, and MFI period settings Perfect for day traders and scalpers looking for quick momentum confirmation before entering trades! Feel free to adjust any part of this description to match your style! 🎯Pine Script® indicatorby krishnaperi9520Directional Movement Index (DMI)This Pine Script is a Directional Movement Index (DMI) indicator for TradingView that provides a comprehensive visualization of trend direction and strength with several enhanced visual features. 📊 Core Indicator Components: 1. Directional Indicators: +DI (Green line): Measures upward trend momentum -DI (Red line): Measures downward trend momentum ADX (Blue line, optional): Measures overall trend strength (can be toggled on/off) 2. Key Calculations: Uses built-in ta.dmi() function to calculate all three components isBull condition: Determines current bias based on which DI line is higher Bull signal: When +DI crosses above -DI Bear signal: When +DI crosses below -DI 🎨 Visual Design Features: 1. Chart Plotting: Thick lines (width=3) for +DI and -DI for better visibility Color-coded plots: Green (+DI), Red (-DI), Blue (ADX) 2. Background Highlighting: Light green background on bullish crossovers Light red background on bearish crossovers Uses 60% transparency for subtle visual cues 3. Real-time Status Panel: Fixed table in the middle-right of the chart Displays "↑ Bullish" (green) or "↓ Bearish" (red) in huge text Updates on every bar to show current market bias 4. Line Labels: Text labels at the right edge identifying each line Color-matched to their respective indicators ADX label only appears when ADX is enabled ⚙️ User Controls: ADX toggle: Show/hide the ADX line DI Length: Adjust calculation period (default 17) ADX Smoothing: Fine-tune ADX smoothing (default 1) 📈 Trading Application: Trend Identification: Which direction has stronger momentum Signal Generation: Crossovers indicate potential trend changes Trend Strength: ADX (when shown) indicates if a trend is strong (>25) or weak Visual Clarity: Multiple visual cues make signals easy to spot 🖥️ Display Logic: The script intelligently handles what to display based on user settings When ADX is disabled, it plots na (not available) to avoid scale distortion All visual elements update dynamically with each new bar 🎯 Unique Aspects: Multi-layered visualization: Combines lines, background colors, labels, and a status table Clean separation: Uses box-drawing characters to organize code sections Right-edge labeling: Makes indicator identification clear even on crowded charts Immediate bias recognition: The large text table provides instant market bias assessment This indicator is particularly useful for traders who want a clear, visually rich representation of trend direction without needing to interpret multiple lines simultaneously. The color-coded background and status panel provide quick visual confirmation of market conditions.Pine Script® indicatorby Tiagorocha1989Updated 9ADX DMI SqueezeOverview This indicator combines: ADX / DMI → Measures trend strength and direction ADX Squeeze Histogram → Shows when the trend is accelerating or “squeezing” for a breakout Triangles → Highlight potential expansion points Optional DI+ / DI− lines → Show bullish/bearish dominance ADX Threshold Lines (15 / 20) → Help filter weak trends Early ADX Acceleration Dots → Provide an early heads-up before a squeeze fires It can be used standalone or alongside other trend tools like VWAP for better entry timing. Entry Guidelines Long Trades (Buy): Histogram above 0 Green triangle appears ADX rising or above threshold (15/20 recommended) Optional: DI+ > DI− confirms bullish strength Short Trades (Sell): Histogram above 0 Red triangle appears ADX rising or above threshold (15/20 recommended) Optional: DI− > DI+ confirms bearish strength Avoid trades if: Histogram negative Triangles appear but ADX below threshold or trend not confirmed by DI linesOptional Filters Require ADX acceleration: Only shows signals when ADX is increasing → avoids late or false entries VWAP Bias: Session-anchored institutional positioning (best for open & intraday scalps). MA Bias: Time-based trend direction (best for continuation & trend days). Tips Best on 30-min or higher timeframes for swing/short-term trend trades Can be combined with VWAP Moving averages , support/resistance, or Bollinger Bands Use DI lines toggle if you want extra visual trend confirmation Adjust DMI length (sensitivity) and ADX smoothing for your preferred timeframe Interpretation Histogram turning green above 0 + triangle → strong bullish move forming Histogram turning red above 0 + triangle → strong bearish move forming ADX above 20 → strong trend, more reliable ADX below 15 → weak trend, signals less reliable In short: Long = Green bars above 0 + Green triangle Short = Red bars above 0 + Red triangle Confirm with ADX above threshold and optionally DI lines yesterday Pine Script® indicatorby Simon20cent23Hull DMI - MattesHull DMI - Mattes A Directional Movement Index enhanced with Hull Moving Average smoothing for refined trend detection. This indicator reimagines the classic Directional Movement Index (DMI) by incorporating Hull Moving Average (HMA) smoothing on high and low prices. It calculates the +DI and -DI components based on changes in these hulled values, then derives the ADX for trend strength. The core plot displays the difference between +DI and -DI, colored to indicate bullish (blue) or bearish (purple) dominance when ADX is rising. Additionally, it overlays colored candles on the price chart to visually represent the prevailing trend direction. Key Features: Hull-Smoothed Inputs: Applies HMA to highs and lows before computing directional changes, reducing noise and lag compared to standard DMI. Customizable Lengths: Adjustable periods for HMA, DI, and ADX smoothing to suit various timeframes and assets. Trend Visualization: Plots DI difference with dynamic coloring and overlays trend-colored candles for at-a-glance analysis. Alert Conditions: Built-in alerts for long (bullish) and short (bearish) signals when conditions shift. How It Differs from Standard DMI/ADX: Unlike the traditional DMI, which uses raw price changes and true range, this version employs Hull Moving Averages on highs and lows for smoother, more responsive directional calculations. This minimizes whipsaws in choppy markets while preserving sensitivity to genuine trends. The ADX is integrated to filter signals, ensuring color changes and alerts only occur during strengthening trends, setting it apart from basic oscillator-based indicators. Why It's Useful: Enhanced Trend Identification: The HMA smoothing provides clearer signals in volatile environments, helping traders spot emerging trends earlier. Visual Clarity: Colored DI plot and candle overlays make it easy to interpret market bias without cluttering the chart. Versatility: Suitable for stocks, forex, crypto, and more; excels in trend-following strategies or as a filter for other systems. Risk Management Aid: By focusing on ADX-confirmed moves, it reduces false signals, potentially improving win rates in systematic trading. This Hull DMI variant offers several practical advantages that can directly improve trading decisions and performance: Reduced Lag with Smoother Signals: By applying Hull Moving Average smoothing to highs and lows, the indicator responds faster to genuine trend changes than the standard DMI while filtering out much of the noise that causes false signals in ranging or choppy markets. Traders get earlier entries into trending moves without excessive whipsaws. Built-in Trend Strength Filter: The optional ADX confirmation (enabled by default) ensures bullish signals and blue coloring only activate when trend strength is increasing (ADX rising). This helps traders avoid entering long positions during weakening or sideways trends, focusing capital on higher-probability setups. Clear Visual Bias at a Glance: The single oscillator line (+DI – -DI) centered on zero, combined with dynamic blue/purple coloring and full candle overlay on the price chart, instantly shows the dominant trend direction. No need to interpret multiple lines—traders can quickly assess market bias across multiple charts or timeframes. Versatile Across Markets and Styles: Works effectively on stocks, forex, futures, and cryptocurrencies. Trend-following traders can use it standalone for entries/exits, swing traders can use it for bias confirmation, and scalpers/day traders benefit on lower timeframes due to the reduced lag. Improved Risk Management: By prioritizing ADX-confirmed directional moves, the indicator naturally filters low-conviction setups. This can lead to higher win rates and better risk-reward ratios when used systematically, especially when combined with proper stop-loss placement below/above recent swings. Easy Integration: Built-in alert conditions and simple long/short logic make it straightforward to incorporate into automated strategies, watchlists, or as a confirming filter alongside other indicators (e.g., moving averages, RSI, volume profile). Customizable Sensitivity: Separate inputs for Hull length, DI period, and ADX smoothing allow traders to optimize the indicator for specific assets, volatility regimes, or personal trading horizons—making it adaptable rather than one-size-fits-all. Signals & Interpretation The oscillator plots the difference between +DI and -DI (positive = bullish dominance, negative = bearish). Bullish Signal (Long): +DI crosses above -DI, and (if ADX confirmation enabled) ADX is rising — triggers blue coloring, candle overlay, and long alert. Bearish Signal (Short): -DI crosses above +DI — triggers purple coloring, candle overlay, and short alert. Zero line acts as neutrality; crossings indicate potential trend shifts. Best used in trending markets; ADX rising filter helps avoid whipsaws. // Example Usage in Strategy strategy("Hull DMI Strategy Example", overlay=true) if L strategy.entry("Long", strategy.long) if S strategy.entry("Short", strategy.short) Great Inventions Require great care Disclaimer: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Past performance is not indicative of future results. Always backtest thoroughly on your specific assets and timeframes, and consult a qualified financial advisor before making trading decisions. The author assumes no responsibility for any losses incurred from its use.Pine Script® indicatorby Mattes00270Dragon Indicator by MatejIndicator prints buy and sell signals and prints exit trade suggestion.Pine Script® strategyby matej45131Relative Strength Index_YJ//@version=5 indicator(title="MACD_YJ", shorttitle="MACD_YJ",format=format.price, precision=2) source = close useCurrentRes = input.bool(true, title="Use Current Chart Resolution?") resCustom = input.timeframe("60", title="Use Different Timeframe? Uncheck Box Above") smd = input.bool(true, title="Show MacD & Signal Line? Also Turn Off Dots Below") sd = input.bool(false, title="Show Dots When MacD Crosses Signal Line?") sh = input.bool(true, title="Show Histogram?") macd_colorChange = input.bool(true, title="Change MacD Line Color-Signal Line Cross?") hist_colorChange = input.bool(true, title="MacD Histogram 4 Colors?") // === Divergence inputs === grpDiv = "Divergence" calculateDivergence = input.bool(true, title="Calculate Divergence", group=grpDiv, tooltip="피벗 기반 정/역배 다이버전스 탐지 및 알람 사용") lookbackRight = input.int(5, "Lookback Right", group=grpDiv, minval=1) lookbackLeft = input.int(5, "Lookback Left", group=grpDiv, minval=1) rangeUpper = input.int(60, "Bars Range Upper", group=grpDiv, minval=1) rangeLower = input.int(5, "Bars Range Lower", group=grpDiv, minval=1) bullColor = input.color(color.new(#4CAF50, 0), "Bull Color", group=grpDiv) bearColor = input.color(color.new(#F23645, 0), "Bear Color", group=grpDiv) textColor = color.white noneColor = color.new(color.white, 100) res = useCurrentRes ? timeframe.period : resCustom fastLength = input.int(12, minval=1) slowLength = input.int(26, minval=1) signalLength= input.int(9, minval=1) fastMA = ta.ema(source, fastLength) slowMA = ta.ema(source, slowLength) macd = fastMA - slowMA signal = ta.sma(macd, signalLength) hist = macd - signal outMacD = request.security(syminfo.tickerid, res, macd) outSignal = request.security(syminfo.tickerid, res, signal) outHist = request.security(syminfo.tickerid, res, hist) // 가격도 같은 res로 hi_res = request.security(syminfo.tickerid, res, high) lo_res = request.security(syminfo.tickerid, res, low) // ── Histogram 색 histA_IsUp = outHist > outHist and outHist > 0 histA_IsDown = outHist < outHist and outHist > 0 histB_IsDown = outHist < outHist and outHist <= 0 histB_IsUp = outHist > outHist and outHist <= 0 macd_IsAbove = outMacD >= outSignal plot_color = hist_colorChange ? (histA_IsUp ? color.new(#00FF00, 0) : histA_IsDown ? color.new(#006900, 0) : histB_IsDown ? color.new(#FF0000, 0) : histB_IsUp ? color.new(#670000, 0) : color.yellow) : color.gray macd_color = macd_colorChange ? color.new(#00ffff, 0) : color.new(#00ffff, 0) signal_color = color.rgb(240, 232, 166) circleYPosition = outSignal // 골든/데드 크로스 (경고 해결: 먼저 계산) isBullCross = ta.crossover(outMacD, outSignal) isBearCross = ta.crossunder(outMacD, outSignal) cross_color = isBullCross ? color.new(#00FF00, 0) : isBearCross ? color.new(#FF0000, 0) : na // ── 플롯 plot(sh and outHist ? outHist : na, title="Histogram", color=plot_color, style=plot.style_histogram, linewidth=5) plot(smd and outMacD ? outMacD : na, title="MACD", color=macd_color, linewidth=1) plot(smd and outSignal? outSignal: na, title="Signal Line", color=signal_color, style=plot.style_line, linewidth=1) plot(sd and (isBullCross or isBearCross) ? circleYPosition : na, title="Cross", style=plot.style_circles, linewidth=3, color=cross_color) hline(0, "0 Line", linestyle=hline.style_dotted, color=color.white) // ===================== // Divergence (정배/역배) - 피벗 비교 // ===================== _inRange(cond) => bars = ta.barssince(cond) rangeLower <= bars and bars <= rangeUpper plFound = false phFound = false bullCond = false bearCond = false macdLBR = outMacD if calculateDivergence // 정배: 가격 LL, MACD HL plFound := not na(ta.pivotlow(outMacD, lookbackLeft, lookbackRight)) macdHL = macdLBR > ta.valuewhen(plFound, macdLBR, 1) and _inRange(plFound ) lowLBR = lo_res priceLL = lowLBR < ta.valuewhen(plFound, lowLBR, 1) bullCond := priceLL and macdHL and plFound // 역배: 가격 HH, MACD LH phFound := not na(ta.pivothigh(outMacD, lookbackLeft, lookbackRight)) macdLH = macdLBR < ta.valuewhen(phFound, macdLBR, 1) and _inRange(phFound ) highLBR = hi_res priceHH = highLBR > ta.valuewhen(phFound, highLBR, 1) bearCond := priceHH and macdLH and phFound // 시각화 (editable 파라미터 삭제) plot(plFound ? macdLBR : na, offset=-lookbackRight, title="Regular Bullish (MACD)", linewidth=2, color=(bullCond ? bullColor : noneColor), display=display.pane) plotshape(bullCond ? macdLBR : na, offset=-lookbackRight, title="Bullish Label", text=" Bull ", style=shape.labelup, location=location.absolute, color=bullColor, textcolor=textColor, display=display.pane) plot(phFound ? macdLBR : na, offset=-lookbackRight, title="Regular Bearish (MACD)", linewidth=2, color=(bearCond ? bearColor : noneColor), display=display.pane) plotshape(bearCond ? macdLBR : na, offset=-lookbackRight, title="Bearish Label", text=" Bear ", style=shape.labeldown, location=location.absolute, color=bearColor, textcolor=textColor, display=display.pane) // 알람 alertcondition(bullCond, title="MACD Regular Bullish Divergence", message="MACD 정배 다이버전스 발견: 현재 봉에서 lookbackRight 만큼 좌측.") alertcondition(bearCond, title="MACD Regular Bearish Divergence", message="MACD 역배 다이버전스 발견: 현재 봉에서 lookbackRight 만큼 좌측.") Pine Script® indicatorby Donggrimon4Directional Movement Index (SHADED)Shaded red in between DMI lines when DMI- > DMI+ Shaded blue in between DMI lines when DMI+ > DMI-Pine Script® indicatorby luvmenot1156Rahul Prakash's BUY/SELL signal for momentum tradeBuy or Sell signal with just on one confirmation candle. Show a Buy singal then wait for the confirmation candle, is a strong Buy signal. Show a Sell singal then wait for the confirmation candle, is a strong Sell signal. You can use as a free version and earn money. Please are taking lots of price for this type of indicator.Pine Script® indicatorby rahulmanariya2010Updated 30Directional Movement Index - HistogramModified standard DMI to have histogram instead of standard lines Pine Script® indicatorby PandaChaser3DMI Toolbox StrategyThe Directional Movement Index (DMI) was originally developed by J. Welles Wilder Jr. in 1978. Wilder introduced the DMI along with the Average Directional Index (ADX) in his book, “New Concepts in Technical Trading Systems,” which became a foundational reference for technical analysis. The indicator can offer a myriad of signals for building a trading strategy. In an effort to provide the user with a meaningful way to evaluate these signals, this DMI Toolbox Strategy offers the chance to back-test various combinations and permutations of DMI signals on long trades. By default it will open a long position on the +DI (upward movement) crossing above the -DI (downward movement). By default, It exits long positions when the ADX (trend strength) reverses. Suggested Use Try a wide variety of long entry and exit signals across many different timeframes to see what is most effective for the item you wish to trade. There is a table in the upper right corner that will give a quick view of which signal is dominant across 5 timeframes, based on your current settings. Adjust the pyramidding, slippage, and commission values to more closely match your situation. Visual Helpers The DMI indicator has been altered to include a smoothed version of the ADX, as well as a colored background to show which signal is dominant (+DI or -DI). Small up arrows call your attention to ADX crossovers that may indicate a significant threshold in trend strength. Pine Script® strategyby Chart0bserverUpdated 33103DMI Histogram IndicatorThe Directional Movement Index (DMI) was originally developed by J. Welles Wilder Jr. in 1978. Wilder introduced the DMI along with the Average Directional Index (ADX) in his book, “New Concepts in Technical Trading Systems,” which became a foundational reference for technical analysis. The indicator can be a bit intimidating for people to interpret if they aren't familiar with it. So this DMI Histogram uses the underlying DMI data to present a different way to visualize the price movement and trend. The goal is to help provide insight into the rising or falling momentum behind the price, at times when the chart itself may not be as obvious. This could potentially help spot a momentum divergence before it plays out on the chart. The user has the option of displaying ADX reversals as red and green arrows. The ADX is the trend indicator portion of the DMI. When it changes direction, that sometimes leads to shift in who is exerting the most influence on the price, buyers or sellers. The user also has the option of coloring the candlesticks to match the histogram. This indicator is meant to be combined with other indicators and other chart analysis tools.Pine Script® indicatorby Chart0bserverUpdated 53FibADX MTF Dashboard — DMI/ADX with Fibonacci DominanceFibADX MTF Dashboard — DMI/ADX with Fibonacci Dominance (φ) This indicator fuses classic DMI/ADX with the Fibonacci Golden Ratio to score directional dominance and trend tradability across multiple timeframes in one clean panel. What’s unique • Fibonacci dominance tiers: • BULL / BEAR → one side slightly stronger • STRONG when one DI ≥ 1.618× the other (φ) • EXTREME when one DI ≥ 2.618× (φ²) • Rounded dominance % in the +DI/−DI columns (e.g., STRONG BULL 72%). • ADX column modes: show the value (with strength bar ▂▃▅… and slope ↗/↘) or a tier (Weak / Tradable / Strong / Extreme). • Configurable intraday row (30m/1H/2H/4H) + D/W/M toggles. • Threshold line: color & width; Extended (infinite both ways) or Not extended (historical plot). • Theme presets (Dark / Light / High Contrast) or full custom colors. • Optional panel shading when all selected TFs are strong (and optionally directionally aligned). How to use 1. Choose an intraday TF (30/60/120/240). Enable D/W/M as needed. 2. Use ADX ≥ threshold (e.g., 21 / 34 / 55) to find tradable trends. 3. Read the +DI/−DI labels to confirm bias (BULL/BEAR) and conviction (STRONG/EXTREME). 4. Prefer multi-TF alignment (e.g., 4H & D & W all strong bull). 5. Treat EXTREME as a momentum regime—trail tighter and scale out into spikes. Alerts • All selected TFs: Strong BULL alignment • All selected TFs: Strong BEAR alignment Notes • Smoothing selectable: RMA (Wilder) / EMA / SMA. • Percentages are whole numbers (72%, not 72.18%). • Shorttitle is FibADX to comply with TV’s 10-char limit. Why We Use Fibonacci in FibADX Traditional DMI/ADX indicators rely on fixed numeric thresholds (e.g., ADX > 20 = “tradable”), but they ignore the relationship between +DI and −DI, which is what really determines trend conviction. FibADX improves on this by introducing the Fibonacci Golden Ratio (φ ≈ 1.618) to measure directional dominance and classify trend strength more intelligently. ⸻ 1. Fibonacci as a Natural Strength Threshold The golden ratio φ appears everywhere in nature, growth cycles, and fractals. Since financial markets also behave fractally, Fibonacci levels reflect natural crowd behavior and trend acceleration points. In FibADX: • When one DI is slightly larger than the other → BULL or BEAR (mild advantage). • When one DI is at least 1.618× the other → STRONG BULL or STRONG BEAR (trend conviction). • When one DI is 2.618× or more → EXTREME BULL or EXTREME BEAR (high momentum regime). This approach adds structure and consistency to trend classification. ⸻ 2. Why 1.618 and 2.618 Instead of Random Numbers Other traders might pick thresholds like 1.5 or 2.0, but φ has special mathematical properties: • φ is the most irrational ratio, meaning proportions based on φ retain structure even when scaled. • Using φ makes FibADX naturally adaptive to all timeframes and asset classes — stocks, crypto, forex, commodities. ⸻ 3 . Trading Advantages Using the Fibonacci Golden Ratio inside DMI/ADX has several benefits: • Better trend filtering → Avoid false DI crossovers without conviction. • Catch early momentum shifts → Spot when dominance ratios approach φ before ADX reacts. • Consistency across markets → Because φ is scalable and fractal, it works everywhere. ⸻ 4. How FibADX Uses This FibADX combines: • +DI vs −DI ratio → Measures directional dominance. • φ thresholds (1.618, 2.618) → Classifies strength into BULL, STRONG, EXTREME. • ADX threshold → Confirms whether the move is tradable or just noise. • Multi-timeframe dashboard → Aligns bias across 4H, D, W, M. ⸻ Quick Blurb for TradingView FibADX uses the Fibonacci Golden Ratio (φ ≈ 1.618) to classify trend strength. Unlike classic DMI/ADX, FibADX measures how much one side dominates: • φ (1.618) = STRONG trend conviction • φ² (2.618) = EXTREME momentum regime This creates an adaptive, fractal-aware framework that works across stocks, crypto, forex, and commodities. ⚠️ Disclaimer : This script is provided for educational purposes only. It does not constitute financial advice. Use at your own risk. Always do your own research before making trading decisions. Created by @nomadhedge Pine Script® indicatorby nomadhedgeUpdated 1161DMI-LuminateIndicator Description: DMI-Luminate (DMI-LMT) DMI-Luminate is an enhanced version of the Directional Movement Index (DMI) indicator that combines multiple moving averages for smoothing and offers various options to customize the calculation of ADX, +DM, -DM, DX, and ADXR. It is ideal for traders looking to analyze trend strength and equilibrium points between buyers and sellers. Components and Features +DM and -DM: Indicators measuring positive and negative directional movement, helping identify trend direction. DX (Directional Movement Index): Measures the relative difference between +DM and -DM, indicating the current trend strength. ADX (Average Directional Index): A smoothed line showing trend strength regardless of direction. Values above 25 generally indicate a strong trend. ADXR (Average Directional Movement Rating): A moving average of ADX that detects trend strength changes with less sensitivity. Equilibrium Points: Visual markers (blue circles) that appear when +DM and -DM cross, signaling potential reversals or changes in trend strength. Customizable Settings DM Length: The period used to calculate directional movements. ADX Smoothing: The smoothing period for ADX. MA Type Universal: Select the moving average type used for smoothing calculations. Options include SMA, EMA, WMA, ALMA, T3, and advanced averages like DNA⚡ and RNA🐢. T3 Hot Factor: Parameter to adjust the intensity of the T3 moving average (when selected). Show Lines: Toggle the display of ADX, ADXR, DX, and +DM/-DM lines as you prefer. Show Equilibrium Points: Enable to visualize crossing points between +DM and -DM. Background Color and Offset: Customize the background color and offset for better visibility. How to Use Trend Identification Watch the ADX line to gauge trend strength. When ADX is above 25, the trend is considered strong. The +DM and -DM lines indicate if the trend is bullish (+DM > -DM) or bearish (-DM > +DM). Entry/Exit Signals Use the equilibrium points (blue circles) to identify potential reversals or changes in trend dynamics based on +DM and -DM crossings. Moving Average Selection Experiment with different moving averages to smooth the data and tailor the indicator to your trading style and asset. Faster averages like EMA react better in volatile markets, while SMMA and ALMA suit more stable conditions. Using ADXR ADXR offers a smoother view of trend strength to avoid false signals during sideways markets. Visual Customization Adjust colors and background to improve readability, especially across different chart themes. Recommendations Combine DMI-Luminate with other indicators (e.g., volume, RSI, chart patterns) to confirm entries and exits. Adjust DM Length and ADX Smoothing according to the timeframe you trade. Use different moving average types to find the setup that works best for your asset and strategy.Pine Script® indicatorby Canhoto-Medium22Directional Movement Index (DMI) + AlertsThis is a Study with associated visual indicators and Bullish/Bearish Alerts for Directional Movement (DMI). It consists of an Average Directional Index (ADX), Plus Directional Indicator (+DI) and Minus Directional Indicator (-DI). Published by J. Welles Wilder in 1978 for use with currencies and commodities which are typically more volatile than stocks and have stronger trends. Development Notes --------------------------- This indicator, and most of the descriptions below, were derived largely from the TradingView reference manual. Feedback and suggestions for improvement are more than welcome, as well are recommended Input settings and best practices for use. tradingview.com/chart/?solution=43000502250 Strategy Description --------------------------- ADX defines whether or not there is a trend present; +DI and -DI compliment the ADX by taking direction into account. An ADX above 25 indicates a strong trend, and a Bullish alert is subsequently triggered when +DI is above -DI and a Bearish alert when -DI is above +DI. Note that the Bullish or Bearish crossover alert will only trigger if ADX is simultaneously above 25 during the crossover event. If ADX later rises to 25 and +DI is still greater than -DI, or -DI greater than +DI, then a delayed alert will not trigger by design. Basic Use --------------------------- Acceptable DMI values are up to the trader's interpretation and may change depending on the financial instrument being examined. Recommend not changing any default values without being first familiar with their purpose and impact on the indicator at large. Confidence in price action and trend is higher when two or more indicators are in agreement -- therefore we recommend not using this indicator by itself to determine entry or exit trade opportunities. Recommend also choosing 'Once Per Bar Close' when creating alerts. Inputs --------------------------- ADX Smoothing - the time period to be used in calculating the ADX which has a smoothing component (14 is the Default). DI Length - the time period to be used in calculating the DI (14 is the Default). Key Level - any trade with the ADX above the key level is a strong indicator that it is trending (23 to 25 is the suggested setting). Sensitivity - an incremental variable to test whether the past n candles are in the same bullish or bearish state before triggering a delayed crossover alert (3 is the Default). Filter out some noise and reduces active alerts. Show ADX Option - two visual styles are provided for user preference, a visible ADX line or a background overlay (green or red when ADX is above the key level, for bullish or bearish, and gray when below). Color Candles - an option to transpose the bullish and bearish crossovers to the main candle bars. Can be turned off in the Style Tab by deselecting 'Bar Colors'. Dark blue is bullish, dark purple is bearish, and the black inner color is neutral. Note that the outer red and green border will still be distinguished by whether each individual candle is bearish or bullish during the specified timeframe. Indicator Visuals --------------------------- Bullish or Bearish plot based on DMI strategy (ADX and +/-DI values). Visual cues are intended to improve analysis and decrease interpretation time during trading, as well as to aid in understanding the purpose of this study and how its inclusion can benefit a comprehensive trading strategy. Trend Strength --------------------------- To analyze trend strength, the focus should be on the ADX line and not the +DI or -DI lines. An ADX reading above 25 indicates a strong trend, while a reading below 20 indicates a weak or non-existent trend. A reading between those two values would be considered indeterminable. Though what is truly a strong trend or a weak trend depends on the financial instrument being examined; historical analysis can assist in determining appropriate values. Bullish DI Cross --------------------------- 1. ADX must be over 25 (strong trend) (value is determined by the trader) 2. +DI cross above -DI 3. Set Stop Loss at the current day's low (any +DI cross-backs below -DI should be ignored) 4. Set trailing stop if ADX strengthens (i.e., signal rises) Bearish DI Cross --------------------------- 1. ADX must be over 25 (strong trend) (value is determined by the trader) 2. -DI cross above +DI 3. Set Stop Loss at the current day's high (any -DI cross-backs below +DI should be ignored) 4. Set trailing stop if ADX strengthens (i.e., signal rises) Disclaimer --------------------------- This post and the script are not intended to provide any financial advice. Trade at your own risk. No known repainting. Version 1.1 ------------------------- - Added multi-timeframe resolution using PineCoders secure security function to eliminate repainting. - Cleaned up option for selecting ADX view; and added a colored line as a choice, based on same bullish, bearish, or neutral colors as the background. - Added exit crossover indicator to aid in an overall strategy development. This ability pairs better with my CHOP Zone Entry Strategy which relies on DMI Exits. Note that exit conditions don't employ the sensitivity variable. Green labels are for Bullish exits and red are for Bearish. -- Exit condition is triggered if in an active Bullish or Bearish position and ADX drops below 25, Or if either the -DI crosses above +DI (for previously Bullish) or +DI crosses above -DI (for previously Bearish). - Added reverse position determination. Triggers when a Bullish entry occurs on the same candle as a Bearish exit, or vice versa. Green labels are for Bullish reverses and red are for Bearish. - Added selectable option to choose visible labels -- Bearish, Bullish, Both, Exits, Reverses, or All. -- Note that a reverse label will only show if the opposing entry and exit labels are set to show, otherwise the reverse will revert to the appropriate entry or exit on the chart. - Added alerts to account for new conditions. -- Note that alerts for crossovers, exits, and reverses will only be triggered if the associated labels are selected to be shown (i.e., what you choose to see on the chart is what you will be alerted to). Version 1.2 ------------------------- - Changed exit condition to be decided on by whether ADX is below 25 and on a +/-DI crossover. Versus being either or. The previous version had too many false triggers. This variety can now show multiple Bullish or Bearish alerts before an Exit condition too. I'm tempted to simply make this condition based on ADX, and not DI … thoughts? See lines 138 and 139. - Updated the Background view to have deeper shades of colors dependent upon the ADX trend strength. - Added an Oscillator view for the ADX and momentum computations to color the histogram by trend. DI lines are hidden. -- If ADX is Bullish, then the oscillator is colored light green in an uptrend and dark green in a downtrend; if Bearish, then its light red in an uptrend and dark redin a downtrend; if adx is below key level, then it is light gray in a downtrend and dark grey in the uptrend. - Added option to Hide ADX in case only the Directional lines are desired. This could be useful if you would like to have the ADX oscillator in one panel and +/-DI crossovers in another. - Added a Columnar view for the ADX. DI lines are hidden. This view is really simple and compact, with the trend strength still easily understood. Colors are the same as for the oscillator -- the deeper the shade of green or red, then the higher the ADX trend strength level. - Added a Trend Strength label. ADX Trend Strength Trade (Y/N) Setup Types 0 to 10 = Barely Breathing N N/A 10 to 20 = Weak Trend Y Range/Pre-Breakout 20 to 30 = Potentially Starting to Trend Y Early Stage Trend 30 to 50 = Strong Trend Y Ride the Wave 50 to 75 = Very Strong Trend N Exhaustion 75 to 100 = Extremely Strong Trend N N/A Version 1.3 ------------------------- Updated to Pine Script v5 to resolve errors from the deprecated v4 version. This is a reissue of a previously published script that was hidden due to a v4 compatibility issue. 'https://www.tradingview.com/script/9OoEHrv5-Directional-Movement-Index-DMI-Alerts/'Pine Script® indicatorby IronCasperUpdated 44ADX Divergence and Gap Monitor [theUltimator5]ADX Divergence and Gap Monitor is a custom technical analysis tool designed to visualize momentum imbalances and sudden shifts in trend participation using the ADX system. It combines traditional ADX, DI+ and DI− calculations with dynamic filtering and visual highlighting to help identify key moments of directional acceleration or weakening. 🔍 What It Does: This indicator builds on the Average Directional Index (ADX) system to detect conditions where market trend strength diverges significantly from directional input (DI) activity. It includes two major visual signals: Highlight Backgrounds These appear when the indicator detects a “gap” or sudden acceleration in DI values while ADX remains low, suggesting early-stage momentum bursts or signal noise spikes. The trigger threshold for DI change can be adjusted using the Gap Trigger Level input. A background highlight is shown when DI+ or DI− increases sharply, either from a low-ADX environment or from a rapid standalone spike. GAP Markers Optional yellow label markers display the word "GAP" just below the lowest line (ADX, DI+, or DI−) whenever a gap condition is triggered. These provide a more noticeable visual cue without crowding the chart. You can enable or disable the markers with the Show GAP Markers toggle. 🧠 Advanced Divergence Detection: The script also scans for dominant ADX divergence events, where ADX is significantly higher than DI+ or DI−, indicating strong trend force with weak directional participation. When these conditions are met: Red or green background fills appear depending on whether DI+ or DI− is being overpowered. These conditions are based on customizable moving averages and DI strength relationships. ⚙️ Key Inputs: ADX Length: Period for ADX calculation DI Moving Average: Smoothing length for directional index signals Gap Trigger Level: Minimum DI change needed to trigger a GAP highlight Show Highlight Backgrounds: Toggle to display or hide background signals Show GAP Markers: Toggle to show or hide text-based GAP labels 🧪 Use Cases: Spot early breakouts or reversals when DI activity spikes while ADX is still low Identify periods of trend exhaustion or false breakouts using divergence logic Confirm trade entry points when ADX begins to rise after a GAP event Pine Script® indicatorby TheUltimator5265Bottom and Top finder [theUltimator5]🧭 Bottom and Top Finder — Multi-Symbol Momentum Divergence Detector The Bottom and Top Finder by theUltimator5 is a highly configurable, momentum-based indicator designed to identify potential market reversal points using a multi-symbol relative strength comparison framework. It evaluates Directional Movement Index (DMI) values from up to three correlated or macro-influential assets to determine when the current instrument may be approaching a bottom (oversold exhaustion) or a top (overbought exhaustion). 🧠 How It Works This script computes both the +DI (positive directional index) and -DI (negative directional index) for: The currently selected chart symbol Up to three user-defined reference symbols (e.g., sector leaders, macro ETFs, currencies, volatility proxies) It uses a logarithmic percent-change approach to normalize all movement metrics, ensuring results are scale-invariant and price-neutral — meaning it works consistently whether a stock trades at $1 or $100,000. This makes the comparison between different assets meaningful, even if they trade on different scales or volatility levels. The indicator then: Compares the +DI values of the reference symbols to the current symbol’s +DI → seeking bottoming signals (suggesting the current symbol is unusually weak). Compares the -DI values of the reference symbols to the current symbol’s -DI → seeking topping signals (suggesting the current symbol is unusually strong on the downside). These comparisons are aggregated using a weighted average, where you control the influence (multiplier) of each reference symbol. 🔁 Trigger Logic The indicator generates two dynamic lines: Bot Line (Bottom Line): Based on reference +DI vs. current +DI Top Line: Based on reference -DI vs. current -DI If the Bot Line rises above the user-defined threshold, it may signal that capitulation or oversold conditions are developing. Similarly, if the Top Line rises above its threshold, it may indicate a blow-off top or overbought selling pressure. To avoid false positives, a second smoothing-based condition must also be met: The line must significantly exceed its moving average, confirming momentum divergence. When both conditions are true, the indicator highlights the background in light red (bottom alert) or green (top alert) for easy visual scanning. 🔧 Key Inputs & Customization You can fine-tune this tool using the following parameters: Smoothing Length: Controls how smooth or sensitive the DI values are. Reference Symbols: Up to 3 assets (default: RSP, HYG, DXY) — customizable for sector, macro, or inverse relationships. Influence Multipliers: Adjust the weight each symbol has on the overall signal. Display Options: Toggle to highlight the chart background during trigger conditions. Toggle to display a real-time table of reference symbols and their influence levels. 📈 Visual Output Two plotted lines: One for bottoms and one for tops Dynamically colored based on how far they exceed thresholds Background highlights to mark trigger zones Optional table displaying the current reference symbol setup and weights 🛠 Best Use Cases This tool is ideal for: Identifying short-term tops or bottoms using momentum exhaustion Spotting divergences between an asset and broader market or sector health Macro analysis with assets like SPY, QQQ, GME, MSFT, BTC, etc... Pair trading signals or market breadth confirmation/disagreement It complements other technical indicators like RSI, MACD, Bollinger Bands, or price structure patterns (double bottoms/tops, etc.)Pine Script® indicatorby TheUltimator5Updated 22589Multi-Time Frame DMI with Gradient Bar ColoringDisplays a table showing the Directional Movement Index (DMI) sentiment for multiple time frames based on the Average Directional Index (ADX) value for each time frame. Table Position and Text Size are configurable, with two styles (vertical or horizontal) available. Time frame labels can be toggled off for color-only table. Bars are colored based on the ADX value using a color gradient between the bullish and bearish color inputs. The neutral color is independent of the gradient for contrast.Pine Script® indicatorby intrdmnsnltrdr74140TASC 2024.12 Dynamic ADX Histogram█ OVERVIEW This script introduces a new version of the ADX oscillator, designed by Neil Jon Harrington and featured in the "Revisualizing The ADX Oscillator" article from the December 2024 edition of TASC's Traders' Tips . █ CONCEPTS The directional movement index (DMI+ and DMI−) and average directional index (ADX) indicators have long been popular with technical analysts. Developed by J. Welles Wilder in the 1970s, these indicators provide information about the direction and strength of price movements across bars. The DMI+ measures positive price movement, the DMI- measures negative price movement, and the ADX gauges the average strength of price trends. Although these indicators can provide helpful insights into price action and momentum, Neil Jon Harrington argues they are often misunderstood or misapplied. Harrington's indicator, the Dynamic ADX Histogram (DADX), applies directional information to the ADX based on DMI+ and DMI- values to create a single oscillator centered around 0. The indicator displays the oscillator as a histogram with dynamic colors based on ADX movements and user-defined strength thresholds. The author believes this modification of the ADX and DMI data offers a more intuitive visualization of the information provided by Wilder's calculations. An additional feature of the DADX is the option to use average (smooth) DMI+ and DMI- values in the oscillator's calculation, which reduces noise and choppiness at the cost of added lag. █ USAGE The "ADX Length" input determines the number of bars in the DMI and ADX calculation. The "DMI Smoothing Length" input controls the number of bars in the DMI smoothing calculation. Use a value of 1 for non-smoothed DMI data. The sign of the DADX indicates the direction of price movements based on the difference between the smoothed DMI+ and DMI- values. The absolute value of the oscillator corresponds to the ADX, representing the trend strength. The "Low Threshold" and "High Threshold" inputs define the ADX thresholds for categorizing trending, non-trending, and exhaustion states. The low threshold specifies the minimum absolute oscillator value required to indicate a trend, and the high threshold marks the absolute value where trend strength is excessive, possibly suggesting an upcoming consolidation or reversal. The indicator colors the histogram based on these thresholds and changes in the ADX, with brighter colors denoting a strengthening trend and darker colors signaling a weakening trend. Pine Script® indicatorby PineCodersTASC22565Dema DMI | viResearchDema DMI | viResearch Conceptual Foundation and Innovation The "Dema DMI" indicator integrates the Double Exponential Moving Average (DEMA) with the Directional Movement Index (DMI), creating a more responsive and precise trend-following system. The DEMA is used to smooth price data while minimizing lag, making it highly effective for trend detection. The DMI, on the other hand, measures the strength and direction of a trend by analyzing positive and negative directional movements. By combining these two elements, the "Dema DMI" offers traders a powerful tool for identifying trend changes and evaluating the strength of ongoing trends. This combination helps filter out noise in price data while maintaining sensitivity to market movements, providing better trend signals and decision-making opportunities. Technical Composition and Calculation The "Dema DMI" script uses two main components: the Double Exponential Moving Average (DEMA) and the Directional Movement Index (DMI). The DEMA is applied to both the high and low prices, creating smoothed versions of these prices based on a user-defined length. The DMI is then calculated by comparing changes in the smoothed high and low prices to measure directional movement. Positive directional movement (DM+) and negative directional movement (DM−) are calculated by evaluating whether the price is trending upward or downward, and the Average Directional Index (ADX) is computed to measure the strength of the trend. The ADX is smoothed to provide a more stable signal of trend strength. Features and User Inputs The "Dema DMI" script provides several customizable inputs, enabling traders to tailor the indicator to their strategies. The DEMA Length controls the period over which the DEMA is calculated for both high and low prices. The DMI Length sets the window for calculating directional movement, while the ADX Smoothing Length determines how smooth the ADX line appears, making it easier to assess whether a trend is strengthening or weakening. The script also includes customizable bar colors and alert conditions, providing traders with clear visual cues and notifications when a trend change occurs. Practical Applications The "Dema DMI" indicator is designed for traders looking to assess trend strength and direction more effectively. The DEMA smooths price movements, while the DMI highlights shifts in directional movement, providing early signals of potential trend reversals. The ADX helps gauge whether a trend is gaining momentum, allowing traders to improve the timing of trade entries and exits. Additionally, the customizable inputs make the indicator adaptable to different market conditions, ensuring its usefulness in both trending and ranging environments. Advantages and Strategic Value The "Dema DMI" script offers significant value by merging the smoothing effects of DEMA with the directional analysis of the DMI. This combination reduces the lag commonly associated with trend-following indicators, providing more timely and accurate trend signals. The ADX further enhances the indicator’s utility by measuring the strength of the trend, helping traders filter out weak signals and stay aligned with stronger trends. This makes the "Dema DMI" an ideal tool for traders seeking to improve their trend-following strategies and optimize their market positioning. Alerts and Visual Cues The script includes alert conditions that notify traders when a significant trend change occurs. The "Dema DMI Long" alert is triggered when the indicator detects an upward trend, while the "Dema DMI Short" alert signals a potential downward trend. Visual cues, such as changes in the bar color and the difference between positive and negative directional movement, help traders quickly identify trend shifts and act accordingly. Summary and Usage Tips The "Dema DMI | viResearch" indicator combines the smoothing benefits of the DEMA with the directional analysis of the DMI, providing traders with a reliable tool for detecting trend changes and confirming trend strength. By incorporating this script into your trading strategy, you can improve your ability to detect early trend reversals, confirm trend direction, and reduce noise in price data. The "Dema DMI" is a flexible and adaptable solution for traders looking to enhance their technical analysis in various market conditions. Note: Backtests are based on past results and are not indicative of future performance.Pine Script® indicatorby viResearchUpdated 901Show more publications1122334455…999999