Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simple indicator question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Simple indicator question

    I'm trying to draw a horizontal rectangle at a given time to end of session.

    So say I have the 9:30time frame - I want to draw a horizontal rectangle from current high and low of the closing bar to end of session EACH day.
    I can currently get it to work for the given day but I can't get it to show up for each session or prior day. How can I do this?

    Curerntly I'm doing something like this and it works for the current day but I'd prefer to have this so it starts at my Time and ends at the end of the session and then only starts again on the next day at the specific time as well but I want to see it on all prior sessions also.

    Code:
    if(ToTime(Time[0]) == ToTime(9,0,0) ) {
    
    Draw.Rectangle(this, "startTime", Time[0], Low[0] - TickSize, Time[0].AddHours(+8.00), High[0] + TickSize, Brushes.Blue);
    }

    #2
    Never Mind - I realized what my issue was. I needed to update my tag name so that it had a unique id for each day. So simple.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    646 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    367 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    107 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    569 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X