Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing lines through a session change is messing up

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

    Drawing lines through a session change is messing up

    Hello Support,

    I'm building an indicator that draws some lines on a regular interval. The prices change and each line should touch the same time as the previous line, but not overlap it.

    In the images, you can see the lines overlap each other. The starting one the left has its EndAnchor time set to 2:00 pm, but the line is drawn all the way to 3:15 pm.

    This is crossing the session barrier. The bar at the session break is 2:00 pm and the first bar after it is 3:05 pm.

    Is this a bug or can something be done about this? I've tried a number of things but you can see the anchor times are correct and the actual drawn line is something different.

    Thanks.

    daqu40
    NinjaTrader Ecosystem Vendor - QTradez

    #2
    Hi daqu40, thanks for your post.

    Is seems to have something to do with the session template, what is your trading hours set to in the DataSeries? Do you have a reduced script that reproduces the problem so I can reproduce it on my PC?

    I look forward to hearing from you.

    Comment


      #3
      I'll have to work up a script that is appropriate.

      The trading hours is set to < use instrument settings >. There is also an internal Series but all of the drawing is only done when BarsInProgress == 0.
      daqu40
      NinjaTrader Ecosystem Vendor - QTradez

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      560 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      325 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X