OPEN-SOURCE SCRIPT
Directional Movement Oscillator (DMI)

The DMI Oscillator is a technical indicator which uses values of DMI in order to predict miscellaneous sides of market behavior.
Two components of DMI are used in calculation: DI+ and DI-; the DMI oscillator calculates the difference between these components and represents it as both a line and a histogram.
According to the rules described by Barbara Star in her article "The DMI Stochastic", the following market conditions can be predicted:
When the oscillator is positive and decreasing, a consolidation or pullback might take place. When price is in uptrend and the oscillator is positive but makes lower highs, a bearish divergence might be identified.
Conversely, when price is in downtrend and the oscillator is negative but keeps moving up, a bullish divergence might take place.
Trend continuation might be identified when the oscillator moves to the zero line and then rebounds from it.
In quiet markets, oscillator values fluctuating near the zero line (approx. -10 to +10 range) might signify sideways or rangebound price action.
Two components of DMI are used in calculation: DI+ and DI-; the DMI oscillator calculates the difference between these components and represents it as both a line and a histogram.
According to the rules described by Barbara Star in her article "The DMI Stochastic", the following market conditions can be predicted:
When the oscillator is positive and decreasing, a consolidation or pullback might take place. When price is in uptrend and the oscillator is positive but makes lower highs, a bearish divergence might be identified.
Conversely, when price is in downtrend and the oscillator is negative but keeps moving up, a bullish divergence might take place.
Trend continuation might be identified when the oscillator moves to the zero line and then rebounds from it.
In quiet markets, oscillator values fluctuating near the zero line (approx. -10 to +10 range) might signify sideways or rangebound price action.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.