OPEN-SOURCE SCRIPT
업데이트됨 HighLow Box Highlight between Earnings

HighLow Box Highlight between Earnings
This is an indicator to highlight area between two earning periods and their highest and lowest points.
Note: This was requested by user Meatpye on a forum.
This is an indicator to highlight area between two earning periods and their highest and lowest points.
- It also alternates the highlight color in each subsequent block.
- Tested to work in 1D charts and 1M charts
- Just drop a message, if you want this further developed with more features.
Note: This was requested by user Meatpye on a forum.
릴리즈 노트
v2 - To avoid Error: Study references too many candles in history, set max candles to 1000. NOTE: If you cannot see beginning boxes, tradingView (tV) has garbage disposal service, so after drawing max number of boxes, it will start to delete old ones to accommodate new ones in FIFO method i.e. First In First Out(delete).
릴리즈 노트
- Added Custom Box Inputs.
e.g. Input Dates 20210901,20211101,20211205,20220201
e.g. Input Colors e.g. orange,clear,purple
Separate dates and colors by commas
Input in form of DATE, DATE,.... DATE where DATE=yyyymmdd - Supported colors are blue, yellow, green, purple, orange, gray, red, olive, clear
- Added Error Handling of Inputs and Output Error in Top Center
- ERROR in Custom Inputs:
1.Make sure dates are formatted as yyyymmdd.
2.Number of colors is one less than number of dates.
3.Dates are in ascending order.
4. There must be atleast 2 dates.
릴리즈 노트
Updated the Chart to show custom boxes as Orange and Purple using inputs as:Dates: 20210901,20211101,20211205,20220201
Colors: orange,clear,purple
Also updated Input Color Tooltip text
릴리즈 노트
v5 - Updated TagsUpdated error message
릴리즈 노트
v6 - Fixed a bug where lowest and highest were sometimes not being updated correctly. Had to reset them after each box drawing.릴리즈 노트
v7 - Cleaned color part of the code - It is a separate function and less lines of code
- Added error check so it removes blank spaces from color input i.e. spaces after comma separated colors do not result in error
- Added option to choose which boxes to display, you can choose "both" to display earnings and custom boxes, or select either to display as stand alone
- Just to clarify - Custom box input takes dates in form of yyyymmdd. Each two dates next to each other represent a range.
e.g. 20210601,20210901,20220101,20220201 - This represents three time periods, one from Jun2021 to Sep2021, the next as Sep2021 to Jan2022, and last as Jan2022 to Feb2022
For the colors as there are 3 time periods, we need to input only 3 colors (even though 4 dates are specified), e.g. green, clear, purple - This will color first time period in green, next as blank, and the other as purple
So if you input the color as "clear" it will not highlight that period which can be used to ignore periods between input dates
// - Added error check, so it removes blanks from color string input
// - Added option to choose which boxes to display
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.