OPEN-SOURCE SCRIPT

Directional Movement Index with double exponential moving averag

The Directional system is a trend-following method developed by J. Welles Wilder,
in the mid-1970s. It identifies trends and shows
when a trend is moving fast enough to make it worth following. It helps traders to
profit by taking chunks out of the middle of important trends.
Trading Rules
1. Trade only from the long side when the positive Directional line is above the
negative one. Trade only from the short side when the negative Directional line
is above the positive one. The best time to trade is when the ADX is rising, show-
ing that the dominant group is getting stronger.
2. When ADX declines, it shows that the market is becoming less directional. There
are likely to be many whipsaws. When ADX points down, it is better not to use
a trend-following method.
3. When ADX falls below both Directional lines, it identifies a flat, sleepy mar-
ket. Do not use a trend-following system but get ready to trade, because major
trends emerge from such lulls.
4. The single best signal of the Directional system comes after ADX falls below
both Directional lines. The longer it stays there, the stronger the base for the
next move. When ADX rallies from below both Directional lines, it shows that
the market is waking up from a lull. When ADX rises by four steps
from its lowest point below both Directional lines, it “rings a bell” on a
new trend . It shows that a new bull market or bear market is being
born, depending on what Directional line is on top.
5. When ADX rallies above both Directional lines, it identifies an overheated mar-
ket. When ADX turns down from above both Directional lines, it shows that the
major trend has stumbled. It is a good time to take profits on a directional trade.
If you trade large positions, you definitely want to take partial profits.


This particular version uses DEMA (double exponential moving averages) in attempt to catch moves sooner.
ADXdoubleexponentialmovingaveragesMoving AveragesTrend Analysistrendfollowing

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm