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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      24 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      20 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      14 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      11 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      41 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X