Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing lines in the future

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

    Drawing lines in the future

    I'm trying to draw a vertical line on a chart at a date sometime in the future say 30 days for example. The problem I'm running into is that if the date I try to draw the line falls on a holiday or weekend the line is not drawn and I need to draw the line on the nearest day.

    Is there an easy way to tell if a date sometime in the future will be on the chart? I'm thinking there should be because if I drag the chart to the left and hover my mouse over the chart I can see that certain dates are missing. I know I can easily write a function to tell if the day is a weekend but that doesn't help for holidays and I really don't want to have to make a list of holidays since that would require manual updates. I'm really hoping to avoid that with some built-in function or something...

    I was thinking I could do a DrawObjects.Count before and after I draw the line and if they're equal then assume the line didn't draw but I haven't tried that yet so I'm not sure if it would work and I'm really hoping there's a more elegant solution than that.

    #2
    LorneCash, thanks for the post - would at this time unfortunately not be aware of a more elegant way than a manual weekend / holiday check to ensure there would be a date. A dedicated holiday management tied to the session templates used is on our list for the next major platform upgrade.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X