OPEN-SOURCE SCRIPT

David_30-Minute Boxes

Mis à jour
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.
Notes de version
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!
Notes de version
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

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité