PROTECTED SOURCE SCRIPT
Directional Movement Histogram

What the Indicator Is
Your script builds a Directional Movement Histogram. This is a visual tool that shows whether buyers (bulls) or sellers (bears) are currently stronger in the market.
How It Works in Simple Terms
It looks at how much prices are moving upward versus downward over a chosen period (default is 14 bars).
From that, it calculates two measures:
+DI (Directional Indicator Plus): strength of upward moves.
–DI (Directional Indicator Minus): strength of downward moves.
Then it compares the two by subtracting one from the other.
If the result is positive, it means upward strength is greater.
If the result is negative, it means downward strength is greater.
What You See on the Chart
The script plots a histogram (bar chart).
Blue bars appear when upward strength dominates (bullish).
Red bars appear when downward strength dominates (bearish).
The height of the bars shows how strong the dominance is.
Why It’s Useful
Instead of looking at two separate lines (+DI and –DI), you get a single, easy‑to‑read histogram.
It quickly tells you who’s in control:
Blue = buyers are stronger.
Red = sellers are stronger.
This can help in spotting shifts in market momentum and potential trend changes.
Your script builds a Directional Movement Histogram. This is a visual tool that shows whether buyers (bulls) or sellers (bears) are currently stronger in the market.
How It Works in Simple Terms
It looks at how much prices are moving upward versus downward over a chosen period (default is 14 bars).
From that, it calculates two measures:
+DI (Directional Indicator Plus): strength of upward moves.
–DI (Directional Indicator Minus): strength of downward moves.
Then it compares the two by subtracting one from the other.
If the result is positive, it means upward strength is greater.
If the result is negative, it means downward strength is greater.
What You See on the Chart
The script plots a histogram (bar chart).
Blue bars appear when upward strength dominates (bullish).
Red bars appear when downward strength dominates (bearish).
The height of the bars shows how strong the dominance is.
Why It’s Useful
Instead of looking at two separate lines (+DI and –DI), you get a single, easy‑to‑read histogram.
It quickly tells you who’s in control:
Blue = buyers are stronger.
Red = sellers are stronger.
This can help in spotting shifts in market momentum and potential trend changes.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.