vnhilton

Remaining ATR [vnhilton]

vnhilton Cập nhật   
ATR levels can be used on a trading day to look for overextensions beyond the average, where you can look to take profits. Remaining ATR is calculated as the current day range subtracted by the previous day ATR. RATR is then plotted away from the high & low lines. All lines (except for the day open) are dynamic, so RATR lines will move according to how much RATR remains.

Note: This indicator only works on intraday timeframes

(FEATURES)
- Works on either RTH or ETH sessions
- Select Day ATR period, & 3 multipliers that will be applied to RATR values away from respective intraday high & low
- Extend current lines to the right
- Show recent lines only
- Change line style, colours within & out the intraday range, & thickness
- Change label offset, size, & colours within & out the intraday range
- Hide RATR lines & labels when within intraday range
- Plot fill between lines (note: RATR plot fills are from their lines to the intraday high & low, so there'll be overlapping)

To show more lines in the past, go to higher intraday timeframes.

Same chart & timeframe as above but on RTH session only.


Phát hành các Ghi chú:
- Added intraday range label that tracks the current candle with forms to choose from: multiplier, percent or price
- Improved plot fills, especially when RATR lines are hidden by the user
- Cleaned up labels, & for future updates (see below)

A future update is planned to solve some issues. These issues are:
- When running indicator from start of new day, ATR values aren't correct (but simply loading up the indicator or replaying mid-day shows correct lines) - this makes this indicator unreliable for now.
- I've included some code (disabled at the moment) to hide moving RATR lines when RATR < 0. Reason for disabled feature is that it works correctly when indicator ran from start of new day, but simply loading up the indicator or replaying mid-day will not work.

The next update should hopefully solve all of these issues.

Any help is appreciated.
Phát hành các Ghi chú:
- For OHL data, used intraday data instead of daily data as 1) OHLC from daily & intraday are inconsistent, & 2) indicator is applied on intraday only, so intraday data is more appropriate to use.
- By fixing data usage, also fixed all issues.

(NEW FEATURES)
- Hide moving RATR lines when RATR < 0 (see below for example).
On the left is the old version, on the right is the new version. Left window shows many RATR lines within the intraday range after RATR < 0 due to calculation & placement of RATR lines, which makes it messy. Right window shows new logic to solve this issue, & keeping relevant RATR lines for looking back in history.

THIS INDICATOR IS GOOD TO GO
Phát hành các Ghi chú:
- Fixed Open label
- Fixed issue which prevented indicator from running on RTH only
Phát hành các Ghi chú:
- Fixed labels so that they don't move when zooming in or out
- Used format.mintick for appropriate labels so that indicator works on all tickers of varying minimum tick values
Phát hành các Ghi chú:
-Increased max_lines_count to 500.
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 đồ?