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