HabibiBudo

Exponential ADR with Price Targets

This script is designed to help you analyze price movements in the financial markets by calculating the Average Daily Range (ADR), adjusting it based on exponentiality and generating price targets based on that range.

The ADR represents the average range between the highest and lowest prices of a trading instrument during a specific period. It gives you an idea of how much the price typically moves in a day. In this script, we calculate the ADR using Simple Moving Averages (SMA) of the high and low prices over a certain length of time. You can customize this length according to your preference.

To make the ADR smoother and more responsive to recent price changes, we apply an Exponential Moving Average (EMA) to the ADR values. The EMA places more weight on recent data, giving you a more up-to-date measure of the ADR. The length of the EMA is also adjustable.

Once we have the Exponential ADR, we can generate price targets based on it. Price targets are potential levels where the price may reach in the future. We calculate these targets by adding or subtracting a certain multiple of the Exponential ADR from the current closing price. The multiple is determined by a parameter called the "Target Multiplier." You can adjust this value to control the distance of the price targets from the closing price.

In addition to plotting the Exponential ADR as a histogram on the chart, we create a table that displays the price targets. The table shows three bullish (positive) targets and three bearish (negative) targets. The targets are labeled as "Bull Target" or "Bear Target" followed by a number indicating the target's order. For each target, we display the corresponding price level.

To estimate the potential price levels, we used a formula that takes into account the current closing price and a value called the Exponential Average Daily Range (Exponential ADR). The Exponential ADR represents the average range of price movement over a specific period.

To calculate the price targets, we multiplied the Exponential ADR by a user-defined value called the target multiplier. This target multiplier allows traders to control the distance of the price targets from the current price. The resulting value indicates the desired distance from the current price for each target level.

For bullish targets, we added the calculated value to the current closing price. This suggests potential upward movement in the price. On the other hand, for bearish targets, we subtracted the calculated value from the current closing price. This indicates potential downward movement in the price.

By providing multiple target levels, such as level 1, level 2, and level 3, traders can assess different scenarios and potential price outcomes. These target levels help traders identify possible price levels where they might consider taking profit or adjusting their trading positions.

It's important to note that these price targets are not guaranteed to be reached, but they serve as reference points based on historical price behavior and the Exponential ADR. Traders can use them as part of their overall trading strategy and decision-making process.

Adjust the input parameters according to your desired settings, such as the ADR length, EMA length, target multiplier, table position, and table style. The indicator will then calculate and display the Exponential ADR and price targets on the chart, helping you identify potential levels of support and resistance for your trading decisions.
오픈 소스 스크립트

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

면책사항

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

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