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.
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?