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

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明