Adaptive ATR-ADX Trend

Constructs the trailing ATR stop above or below the price, and switches directions when the source price breaks the ATR stop. Uses the Average Directional Index ( ADX ) to switch between ATR multipliers. The higher multiplier is used when the ADX is rising, and the lower ATR multiplier is used with the ADX is falling. This ADX criteria further widens the gap between the source price and the trailing ATR stop when the price is trending, and lessens the gap between the ATR and the price when then price is not trending.

The ATR-ADX stop is effectively a double adaptive stop that trails the price, by both adapting to the true range of the price, and the average directional change. When the stop is below the price (long trade) the value never decreases until the price intersects the stop, and it reverses to being above the price (short trade). When the stop is above the price it will never increase until it is intersected by the price. As the true range and ADX change, the stop will move more quickly or more slowly.

Depicted are two instances of the Adaptive ATR Trend Indicator on the chart. One uses a constant 4.0 ATR multiplier (21-TR lookback for both) and the other switches between 4.0 ( ADX Rising) and 1.5 ( ADX Falling). This is to highlight the difference between using a constant ATR multiplier vs. using one that is adjusts based on the "trendiness" of the ADX .
從常用腳本中移除 新增至常用腳本


Will be following up with a buy/sell strategy soon based on this. Just playing around with the numbers for now on major tickers. Works the best obviously with high beta stocks like NFLX, AMZN, GOOGL, XOP, GDX, etc.
+2 回覆
Recent trades on NFLX 15min chart.
+1 回覆
Thank you for this great indicator. I have been using it for a while now and it works very well. Did you by any chance made a version of it for MetaTrader 4?
mortdiggiddy LifeDecoded
@LifeDecoded, No I do not know that language sorry.
thanks alot for this great work.
im messing with your code a bit on my own and getting an error startign at line:
sTR = nz(sTR) - nz(sTR) / adxLen + tr

sTR is undeclared and then it goes all red

any idear ?
New version here:
Thanks for this. Really great work. Would you mind sharing the ADX indicator on the bottom of the chart?
mortdiggiddy venneapril
@venneapril, There are many, I did not create it. Click the "Indicators" Tab at the top of your Trading View window. Type 'ADX', without quotes. This particular version is the top of the list with highest view count, located here:
+1 回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 代幣 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出