TradingView
KINSKI
2021年6月4日下午1點23分

KINSKI ADX 

Bitcoin / U. S. DollarKraken

描述

This ADX indicator (Average Directional Index) tries to estimate the strength of a trend. The Average Directional Index is derived from the positive (+DI) and the negative directional indicator (-DI). The direction of movement is determined by comparing the highs and lows of the current and past periods.

As soon as the indicator determines a trend strength for upward or downward trend, a label is displayed. An upward trend is labelled "Bullish Trend". The downward trend bears the label "Bearish Trend".

The clouds in the background represent the movements of the Average Directional Index High/Low:
  • Color orange: neutral, uncertain in which direction it is going.
  • Color green: upward trend
  • Color red: downward trend


The line represents the average value of the ADX signal:
  • Color orange: neutral: still uncertain in which direction it is going
  • Color green / outgoing line: upward trend
  • Color green / descending line: weakening upward trend
  • Color red / exiting line: downward trend
  • Color red / descending line: weakening downward trend


The following configurable options are possible:
  • "ADX Smoothing
  • Directional Index Length
  • Level Range
  • Level Trend

發布通知

Here's a nice little update on that. Normally the ADX calculations are calculated with the moving average "Running Moving Average (RMA)". Under the settings you can now select different MA types via the option "Type of Moving Average". With this new, interesting possibilities are then available.

Selectable MA variants:
"COVWMA", "DEMA", "EMA", "EHMA", "FRAMA", "HMA", "KAMA", "RMA", "SMA", "SMMA", "VIDYA", "VWMA", "WMA"

發布通知

  • Convert to PineScript5

發布通知

  • add Style Options
  • add new MA Types => "TEMA" (Triple EMA), "Karobein"

發布通知

  • Refactor Code
評論
mrabd
What an indicator, thank you so much!
KINSKI
@mrabd,

Thank you for the support!
ckoen01
I want to setup an alert. The options on the condition is direction up trend, direction downtrend and ADX. Then the next drop down list is for crossing, crossing up, crossing down, greater than, less than, entering channel, exiting channel, inside channel. outside channel, moving up, moving down, moving up % and moving down % . Then you can pick 'KINSKI ADX" again and then drop down list with direction downtrend, adx, direction uptrend. How do I set an alert for when the market is in a uptrend?
UnknownUnicorn10087866
hi i am using below adx script. I want to just set a alert msg based on DI+ and DI- line values. Can you please guide how to set alert msg. I tried POSTSHAPE but when i apply it I loose my both DI+ / DI- lines. not successfull.

Please guide....

If DI+ values ...
//0-25=Absent or Weak Trend
//25-50=Strong Trend
//50-75=Very Strong Trend
//75-100=Extremely Strong Trend
If DI+ values ...
//0-25=Absent or Weak Trend
//25-50=Strong Trend
//50-75=Very Strong Trend
//75-100=Extremely Strong Trend

---------------

script i am using...

//ADX Value for Trend Strength
//0-25=Absent or Weak Trend
//25-50=Strong Trend
//50-75=Very Strong Trend
//75-100=Extremely Strong Trend

study("KarmIndic_ADX")
len = input(title="Length", type=integer, defval=14)
th = input(title="threshold", type=integer, defval=25)
//avg = input(title="SMA", type=integer, defval=10)

TrueRange = max(max(high-low, abs(high-nz(close[1]))), abs(low-nz(close[1])))
DirectionalMovementPlus = high-nz(high[1]) > nz(low[1])-low ? max(high-nz(high[1]), 0): 0
DirectionalMovementMinus = nz(low[1])-low > high-nz(high[1]) ? max(nz(low[1])-low, 0): 0

SmoothedTrueRange = nz(SmoothedTrueRange[1]) - (nz(SmoothedTrueRange[1])/len) + TrueRange
SmoothedDirectionalMovementPlus = nz(SmoothedDirectionalMovementPlus[1]) - (nz(SmoothedDirectionalMovementPlus[1])/len) + DirectionalMovementPlus
SmoothedDirectionalMovementMinus = nz(SmoothedDirectionalMovementMinus[1]) - (nz(SmoothedDirectionalMovementMinus[1])/len) + DirectionalMovementMinus

DIPlus = SmoothedDirectionalMovementPlus / SmoothedTrueRange * 100
DIMinus = SmoothedDirectionalMovementMinus / SmoothedTrueRange * 100
DX = abs(DIPlus-DIMinus) / (DIPlus+DIMinus)*100
//ADX = sma(DX, len)
//SMA = sma(ADX, avg)

plot(DIPlus, color=green, title="DI+")
plot(DIMinus, color=red, title="DI-")
//plot(ADX, color=yellow, title="ADX")
//plot(SMA, color=white, title="SMA")
hline(th, color=yellow, linestyle=dashed)
fannytradz
This is the kind of ADX I needed for a long time .... Thanks for sharing
SK_CPS
Nice, work, I have added this to my favorite indicators, waiting to observe in live market.
KINSKI
@SK_CPS,

Thank You!
更多