OPEN-SOURCE SCRIPT
Directional Indicator Crossovers v1[JopAlgo]

Directional Indicator Crossovers v1 [JopAlgo] — the classic DMI, made clearer and easier to act on
We'd like to introduce you to a more relaxed, streamlined version of DI. While it may not seem like it at first glance, we've taken the D+/D- method as a starting point and developed our own version of this indicator: two lines, a smooth green/red field indicating who's in control, and clear crossover alerts for a flip. We deliberately chose the step line representation because it closely matches the candlestick patterns on the chart. Designed to help you react faster—without clutter.
What you’ll see
+DI (green) and −DI (red) using classic Wilder smoothing.
A soft control zone between the lines: green when +DI dominates, red when −DI dominates.
Crossover alerts (no labels, no background flooding)—just the turning points.
Why this helps
Instant bias: the shaded field tells you who’s in control without reading values.
Cleaner execution: minimal visuals keep focus on the handoff (+DI↔−DI) and your price levels.
Actionable by design: built-in alerts fire right at the flip to route into your workflow.
How to read it
Bias: Green zone → buyers lead. Red zone → sellers lead.
Trigger: Consider entries on the DI crossover that aligns with your higher-timeframe context (trend, S/R, OB).
Patience in chop: If flips are frequent in tight ranges, wait for sustained zone dominance or confirm on a higher TF.
Exit/flip: Opposite crossover or a clear loss of dominance.
Settings that matter
DI Length (default 14): Higher = calmer, fewer flips. Lower = faster, more signals.
Visuals: Keep the control zone on for quick reads; hide crossover marks if you prefer pure lines.
Alerts: Enable bullish and bearish DI cross alerts; connect to notifications or webhooks as needed.
Starter presets
Intraday (15m–1H): DI Length 12–14 for quicker handoffs.
Swing (4H–1D): DI Length 14–20 for cleaner signals.
Choppy assets: Nudge length higher to dampen noise.
Where it shines (and limits)
Best: Liquid markets (crypto majors, indices, large caps) where handoffs matter.
Works elsewhere: Still useful on slower pairs; extend length for stability.
Limit: Frequent flips in low-range sessions—pair with HTF bias or structure.
Alerts included
Bullish DI Crossover: +DI crosses above −DI.
Bearish DI Crossover: −DI crosses above +DI.
Attribution & License
Built on the Directional Movement Index concept by J. Welles Wilder Jr. (1978).
Independent Pine v6 implementation (not derived from TradingView’s built-in source).
Released as Open Source (MPL-2.0)—please keep the license header intact.
Disclaimer
For educational purposes only; not financial advice. Trading involves risk. Test first, use clear levels, and manage risk. This project is independent and not affiliated with or endorsed by TradingView.
We'd like to introduce you to a more relaxed, streamlined version of DI. While it may not seem like it at first glance, we've taken the D+/D- method as a starting point and developed our own version of this indicator: two lines, a smooth green/red field indicating who's in control, and clear crossover alerts for a flip. We deliberately chose the step line representation because it closely matches the candlestick patterns on the chart. Designed to help you react faster—without clutter.
What you’ll see
+DI (green) and −DI (red) using classic Wilder smoothing.
A soft control zone between the lines: green when +DI dominates, red when −DI dominates.
Crossover alerts (no labels, no background flooding)—just the turning points.
Why this helps
Instant bias: the shaded field tells you who’s in control without reading values.
Cleaner execution: minimal visuals keep focus on the handoff (+DI↔−DI) and your price levels.
Actionable by design: built-in alerts fire right at the flip to route into your workflow.
How to read it
Bias: Green zone → buyers lead. Red zone → sellers lead.
Trigger: Consider entries on the DI crossover that aligns with your higher-timeframe context (trend, S/R, OB).
Patience in chop: If flips are frequent in tight ranges, wait for sustained zone dominance or confirm on a higher TF.
Exit/flip: Opposite crossover or a clear loss of dominance.
Settings that matter
DI Length (default 14): Higher = calmer, fewer flips. Lower = faster, more signals.
Visuals: Keep the control zone on for quick reads; hide crossover marks if you prefer pure lines.
Alerts: Enable bullish and bearish DI cross alerts; connect to notifications or webhooks as needed.
Starter presets
Intraday (15m–1H): DI Length 12–14 for quicker handoffs.
Swing (4H–1D): DI Length 14–20 for cleaner signals.
Choppy assets: Nudge length higher to dampen noise.
Where it shines (and limits)
Best: Liquid markets (crypto majors, indices, large caps) where handoffs matter.
Works elsewhere: Still useful on slower pairs; extend length for stability.
Limit: Frequent flips in low-range sessions—pair with HTF bias or structure.
Alerts included
Bullish DI Crossover: +DI crosses above −DI.
Bearish DI Crossover: −DI crosses above +DI.
Attribution & License
Built on the Directional Movement Index concept by J. Welles Wilder Jr. (1978).
Independent Pine v6 implementation (not derived from TradingView’s built-in source).
Released as Open Source (MPL-2.0)—please keep the license header intact.
Disclaimer
For educational purposes only; not financial advice. Trading involves risk. Test first, use clear levels, and manage risk. This project is independent and not affiliated with or endorsed by TradingView.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
@jopalgo | [JopAlgo] — Indicators & strategies. Clear rules, no chasing. Education only. Not financial advice.
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
@jopalgo | [JopAlgo] — Indicators & strategies. Clear rules, no chasing. Education only. Not financial advice.
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。