How It Works
Renko Box Initialization:
The Renko box starts at the current price (close).
It dynamically updates based on the box_size input.
Dynamic Boundaries:
The box expands upward or downward as the price moves outside the current Renko brick boundaries.
Box Drawing:
The line.new function is used to draw the four sides of the Renko box.
The previous box lines are deleted on every bar to avoid clutter.
Live Price Tracking:
The live price is plotted as a red line within the Renko box.
Inputs
box_size: Defines the size of the Renko box in price units.
box_color: Controls the fill color of the box.
border_color: Controls the color of the box borders.
Visualization
Dynamic Renko Box:
A box tracks the price’s progress inside the current Renko brick.
Updates dynamically as the price moves.
Live Price Marker:
A red line tracks the current price inside the Renko brick.
Let me know if you’d like any enhancements, such as adding labels or alerts! 😊