OPEN-SOURCE SCRIPT
DMICROSS(Raw/EMACROSS VER.)

DMI Cross (Raw/EMA Supported)
A practical and lightweight Directional Movement Index (DMI) cross indicator that triggers signals when +DI crosses –DI.
You can freely choose between Raw +DI/–DI or EMA-smoothed +DI/–DI as the source for crossover detection.
Optional features include Raw plots, background highlighting on signals, and a reference ADX line.
Features
Signal Types
BUY: +DI crosses above –DI
SELL: +DI crosses below –DI
Selectable Signal Source
Use Raw DI for faster but noisier signals
Use EMA DI for smoother, more stable signals
Visual Options
Toggle Raw +DI / –DI plots
Constant EMA plots of +DI and –DI for clarity
Optional ADX line for trend strength reference
Background shading on BUY/SELL signals
Inputs
ADX Smoothing (lensig): smoothing length for ADX
DI Length (lenDI): calculation length for +DI/–DI
EMA Length (lenEMA): EMA smoothing length for +DI/–DI
Display Options
Show/hide Raw +DI or –DI
Background tint on signals
Signal Source
Choose between Raw or EMA for crossover detection
Alerts
Four alert conditions are included:
BUY: +DI crossed above –DI (Raw)
SELL: +DI crossed below –DI (Raw)
BUY: +DI crossed above –DI (EMA)
SELL: +DI crossed below –DI (EMA)
Alerts only trigger for the currently selected signal source.
Tips
Use Raw DI for quick reversal detection (more noise).
Use EMA DI for trend-following with fewer false signals.
Combine with ADX filters or higher timeframe trend bias for best results.
Works across all markets and timeframes (adjust parameters as needed).
Disclaimer
This script is provided for educational and informational purposes only.
It does not constitute financial advice. Please trade responsibly.
Would you like me to also write a short “one-liner tagline” (like “Lightweight DMI crossover tool with Raw/EMA options”) for the TradingView title/summary field? That helps it look polished in the public library.
A practical and lightweight Directional Movement Index (DMI) cross indicator that triggers signals when +DI crosses –DI.
You can freely choose between Raw +DI/–DI or EMA-smoothed +DI/–DI as the source for crossover detection.
Optional features include Raw plots, background highlighting on signals, and a reference ADX line.
Features
Signal Types
BUY: +DI crosses above –DI
SELL: +DI crosses below –DI
Selectable Signal Source
Use Raw DI for faster but noisier signals
Use EMA DI for smoother, more stable signals
Visual Options
Toggle Raw +DI / –DI plots
Constant EMA plots of +DI and –DI for clarity
Optional ADX line for trend strength reference
Background shading on BUY/SELL signals
Inputs
ADX Smoothing (lensig): smoothing length for ADX
DI Length (lenDI): calculation length for +DI/–DI
EMA Length (lenEMA): EMA smoothing length for +DI/–DI
Display Options
Show/hide Raw +DI or –DI
Background tint on signals
Signal Source
Choose between Raw or EMA for crossover detection
Alerts
Four alert conditions are included:
BUY: +DI crossed above –DI (Raw)
SELL: +DI crossed below –DI (Raw)
BUY: +DI crossed above –DI (EMA)
SELL: +DI crossed below –DI (EMA)
Alerts only trigger for the currently selected signal source.
Tips
Use Raw DI for quick reversal detection (more noise).
Use EMA DI for trend-following with fewer false signals.
Combine with ADX filters or higher timeframe trend bias for best results.
Works across all markets and timeframes (adjust parameters as needed).
Disclaimer
This script is provided for educational and informational purposes only.
It does not constitute financial advice. Please trade responsibly.
Would you like me to also write a short “one-liner tagline” (like “Lightweight DMI crossover tool with Raw/EMA options”) for the TradingView title/summary field? That helps it look polished in the public library.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.