Login Page - Create Account

Support Board


Date/Time: Tue, 24 Jun 2025 23:57:53 +0000



Post From: Add Text Above parallel line or on top of bar

[2022-01-25 14:22:00]
JohnR - User831573 - Posts: 333
I would create a study with conditional logic for bar time and then draw a rectangle using a desired start bar/ date&time to this bar or one prior. This will have one rectangle on each day.

in initialization code set draw_my_rect = 1
if current bar time >= my_end_time and draw_my_rect == 1
draw_my_rect = 0
code to set attributes and draw rectangle

if current bar time < my_end_time and draw_my_rect == 0
draw_my_rect = 1

Just my thoughts
JohnR