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!
30minboxesCandlestick analysis

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明