Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

can't draw line at time

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

    can't draw line at time

    Hi,
    Why won't this draw?

    TheTime = DateTime.Parse("09:30", System.Globalization.CultureInfo.InvariantCulture) ;
    }
    else if (State == State.Configure)
    {
    }
    }

    protected override void OnBarUpdate()
    {
    if (Times[0][0].TimeOfDay == TheTime.TimeOfDay)
    {
    Draw.VerticalLine(this, "myLine", 0, Brushes.Snow, DashStyleHelper.Dash, 2);
    }

    #2
    Hello trader3000a,

    Are you certain the condition is becoming true? You can double check that the object is being drawn by accessing the draw objects menu in the charts right click -> Drawing tools. Alternatively you could add a Print to verify that the condition was true.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    57 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    78 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    39 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    101 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    61 views
    0 likes
    Last Post PaulMohn  
    Working...
    X