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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 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