OPEN-SOURCE SCRIPT

David_30-Minute Boxes

업데이트됨
This indicator draws boxes for 30-minute intervals on the chart, highlighting significant price movements. The boxes begin at 00:00 and end at 22:00. Each box is color-coded according to price action:

Green Box: The closing price at the end of the 30-minute period is above the opening price.
Red Box: The closing price at the end of the 30-minute period is below the opening price.
Dark Green Box: The closing price at the end of the box is higher than the high of the previous box.
Dark Red Box: The closing price at the end of the box is lower than the low of the previous box.
The boxes dynamically adjust within each 30-minute interval to reflect the high and low of the period. The border of each box is fully transparent for a clean and uncluttered visual display.

Optional Candle Numbering
In the indicator settings, you can enable or disable the numbering of individual candles within each box. The numbering restarts at 1 for each new box, helping to track the progression of individual 30-minute intervals.

Use Cases
This indicator is particularly useful for traders who want to analyze short-term movements and the dynamics within 30-minute intervals. The color-coding of the boxes provides quick visual insights into the strength of price action within a time interval, making it easier to spot momentum shifts or important support and resistance levels.
릴리즈 노트
Accurate Open and Close Capture: The color logic has been updated to accurately capture the opening price of the first candle and the closing price of the tenth candle within each 30-minute box. This ensures more precise box coloring and reliable signaling.

Improved Outside Bar Color Logic: Box colors have been optimized. If the tenth candle's closing price exceeds the high or low of the previous box, the box color is darkened (darker green for higher, darker red for lower).

Enhanced Candle Numbering Display: The option to display candle numbering within each box is now configurable, providing a clearer overview.

This update improves the script's accuracy and user experience. Happy trading!
릴리즈 노트
Accurate Open and Close Capture: The color logic has been updated to accurately capture the opening price of the first candle and the closing price of the tenth candle within each 30-minute box. This ensures more precise box coloring and reliable signaling.

Improved Outside Bar Color Logic: Box colors have been optimized. If the tenth candle's closing price exceeds the high or low of the previous box, the box color is darkened (darker green for higher, darker red for lower).

Enhanced Candle Numbering Display: The option to display candle numbering within each box is now configurable, providing a clearer overview.

This update improves the script's accuracy and user experience. Happy trading!
릴리즈 노트
Changes in the Code:
openPrice and closePrice reassigned:
openPrice is now set to the opening price of the first candle at the start of the 30-minute interval.
closePrice is updated within the interval and represents the close price of the last candle when the interval ends.
Coloring Logic: The coloring logic now relies on openPrice and closePrice being correctly assigned at the start and end of the interval.
Try running this code and observe whether the box now appears green if the closing price is higher than the opening price.
And that the color logic was adjusted accordingly.
30minboxesCandlestick analysis

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항