ErdemDemir

ADX with Signals

This indicator basicly usind ADX ( Average Directional Index )

ADX can show us how trend is strong

ADX below 20: the market is currently not trending

ADX crosses above 20: signifies that a new trend is emerging. Traders may start placing sell or buy orders in the direction of the price movement.

ADX between 20 and 40: When the ADX is growing between 20 and 40 it is considered as a confirmation of an emerging trend. Traders should use this opportunity to buy or short sell in the trend's direction.

ADX above 40: the trend is very strong.

ADX crosses 50: the trend is extremely strong.

ADX crosses 70: a very rare occasion, which is called a “Power Trend.”

If we use ADX with DI+ and DI+ indactor can tell us to buy.

How can we calculate this all?


Directional Movement (DI) is defined as the largest part of the current period’s price range that lies outside the previous period’s price range. For each period calculate:

+DI = positive or plus DI = High - Previous High

-DI = negative or minus DI = Previous Low - Low

The smaller of the two values is reset to zero, i.e., if +DI > -DI , then -DI = 0. On an inside bar (a lower high and higher low), both +DI and -DI are negative values, so both get reset to zero as there was no directional movement for that period.

The True Range ( TR ) is calculated for each period, where:

TR = Max of ( High - Low ), ( High -PreviousClose ), ( PreviousClose - Low )

The +DI , -DI and TR are each accumulated and smoothed using a custom smoothing method proposed by Wilder. For an n period smoothing, 1/n of each period’s value is added to the total each period, similar to an exponential smoothing:

+DIt = (+DIt-1 - (+DIt-1 / n)) + (+DIt)

-DIt = (-DIt-1 - (-DIt-1 / n)) + (-DIt)

TRt = (TRt-1 - (TRt-1 / n)) + ( TRt )

Compute the positive/negative Directional Indexes, +DI and -DI , as a percentage of the True Range:

+DI = ( +DI / TR ) * 100

-DI = ( -DI / TR ) * 100

Compute the Directional Difference as the absolute value of the differences: DIdiff = | (( +DI ) - ( -DI )) |

Sum the directional indicator values: DIsum = (( +DI ) + ( -DI )) .

Calculate the Directional Movement index: DX = ( DIdiff / DIsum ) * 100 . The DX is always between 0 and 100.

Finally, apply Wilder’s smoothing technique to produce the final ADX value:

ADXt = ( ( ADXt-1 * ( n - 1) ) + DXt ) / n

When indicator tell us to buy?

If when DI+ crosses DI- and ADX is bigger than DI- indicator tell us to buy.

오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?