OPEN-SOURCE SCRIPT

Directional Indicator Crossovers v1[JopAlgo]

330
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.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.