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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    78 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X