Inspired by the indicator DR/IDR V1 from TheMas7er tradingview.com/u/TheMas7er/ I programmed this variant myself. I have observed that the trading times RDR (Regular Daytime), ADR (Afternoon Daytime) and ODR (Overnight Daytime) can be reasonably averaged. This average then serves as a support and resistance line in the subsequent Lines Time. If the Close value falls below this average, the background in this indicator is colored red and if the Close value rises above this average, the background in this indicator is colored green.
This Pine script is an indicator for trading areas that allows the user to define different trading periods for a symbol based on specific times. It plots three lines on the chart representing the average price movements during each of the defined trading periods, RDR (Regular Daytime), ADR (Afternoon Daytime), and ODR (Overnight Daytime). The script also shades the chart to highlight when the current price is above or below each of the three lines, and it draws dotted lines and labels to mark the start of each trading period. The indicator is customizable, allowing the user to adjust the time periods and the UTC timezone offset.
For more information on TheMas7er Trading Strategy's DR/IDR V1, please refer to the original indicator.
Best regards Chervolino
릴리즈 노트
Added comments
릴리즈 노트
sevencampbell ask me to add Automatic Fibonacci Retracement. Inspired by the Tradingview Indicator Auto Fib Levels, I inserted the automatic fibonacci retracement function. Please activate this in the settings for use. This function calculates the Fibonacci retracement from the max and min value of the current Lines Time.
릴리즈 노트
Thanks to onlym1998, the update includes the addition of an option to disable the vertical lines and disable session labels
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.