OPEN-SOURCE SCRIPT
Cập nhật Near & Far Relative Strength

Define a near time frame base and a far time frame base to compare the selected symbol RS. This helps in situations were you could keep the far RS length to a fixed value and the near RS length to a more recent "event" in the market and it's subsequent movement.
For example, if the market index has made a recovery from a deep crash 80 sessions ago, set the near RS length to 80 and keep the far RS length to a fixed value say, 123 corresponding to 6 months. This will help you gauge the historical vs the recovery strength of your interested symbol before and after the "event".
For example, if the market index has made a recovery from a deep crash 80 sessions ago, set the near RS length to 80 and keep the far RS length to a fixed value say, 123 corresponding to 6 months. This will help you gauge the historical vs the recovery strength of your interested symbol before and after the "event".
Phát hành các Ghi chú
Added input source for comparison with other source values.Phát hành các Ghi chú
- Added reference label dates
- Increased line widths of plots
- Changed default values of near and far RS length
Phát hành các Ghi chú
- Added toggle color option on crossovers
- Fixed bug on label display, even when plot option was disabled
Though there is option added to show color toggle, in a dual RS plot it can become very intimidating to get a clear view when both the RS whipsaw near the zero line. Therefore the option is turned off by default. When enabled, it is recommended to disable one of the plots to get the best effect.
Phát hành các Ghi chú
- Plots sequence aligned with input sequence for better clarity in summary info.
Phát hành các Ghi chú
- Possible to set alert
Using the new alert() function, it is now possible to set alarms on ARS and SRS plots whenever a configured threshold is crossed.
Phát hành các Ghi chú
- Added more flexibility to configuring alerts
Alert Condition :
Crossing => Trigger only when there is a crossover or crossunder
"Greater or Less" => Trigger when the value is less or greater than the threshold
Alert on Candle:
Start => Trigger at the start of the candle formation
Close => Trigger at the end of the candle formation
Phát hành các Ghi chú
- Changed default ARS length to reflect new ARS date
Phát hành các Ghi chú
- Change default Far Date (96 as of today's date)
- Current CRS color to purple
Phát hành các Ghi chú
- Updated for new ARS Date 16-Feb-2021
Phát hành các Ghi chú
- Pine 5
- Update far length to most recent
Phát hành các Ghi chú
- Default ARS length
New ARS Date: 18th May 2021
Phát hành các Ghi chú
- Auto calculation of the ARS length
With the capability provided by Pinescript to "look ahead" at the last candle, it is now possible to calculate the ARS length on the ARS date. Therefore the need to increment the count by 1 day everyday is not required with this version.
With this feature, however, historical plots of ARS will not be available since the length of ARS will be known only after crossing the ARS date. In essence, ARS plot before the ARS date, doesn't mean anything anyways, since it is comparison of a future price-action on a past date.
Also, I have now renamed, "Near RS" to "Static RS" and "Far RS" to "Adaptive RS". So it is easier to read and mark them on the plots.
Phát hành các Ghi chú
- New ARS - 3rd Aug 2021
Phát hành các Ghi chú
- New ARS Date - 18th Oct 2021
Phát hành các Ghi chú
- Added manual override of ARS date - It is possible to define the adaptive length manually
A manual override will help the use case in case you need to analyse historical plots.
Phát hành các Ghi chú
- Change ARS Date to 7th March 2022
Phát hành các Ghi chú
- New ARS Date - 03 June 2022
Phát hành các Ghi chú
- New ARS Date - 13 Sep 2022
Phát hành các Ghi chú
- New ARS Date: 01 Dec 2022
Phát hành các Ghi chú
- New ARS Date: 16 Feb 2023
Phát hành các Ghi chú
- New ARS Date: 20 Jul 2023
Phát hành các Ghi chú
- Updated ARS Date to 10 May 2024
- Pine Script version bumped up to 6
Phát hành các Ghi chú
- alertconditions for screene
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.