Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

objects only shown on latest day

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

    objects only shown on latest day

    HI NT experts,
    I have a simple indicator code to draw line at 7:00 Am each day. However, it only draws a line at 7:00 AM at the last day.
    if (ToTime(Time[0]) == 70000)
    {
    DrawVerticalLine("7:00AM", Time[0], Color.Black, DashStyle.DashDot, 1);

    }
    Any suggestions?

    #2
    binwang2, please have a look here - http://www.ninjatrader.com/support/f...ead.php?t=3419

    For your tag id used you would want to use a unique one for each object drawn so historical conditions are shown as well.

    DrawVerticalLine("7:00AM" + CurrentBar, Time[0], Color.Black, DashStyle.DashDot, 1);

    Comment


      #3
      Thanks. It works now.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by kinfxhk, 07-14-2026, 09:39 AM
      0 responses
      125 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      105 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      85 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      105 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      84 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X