Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Chris L.NinjaTrader Customer Service

    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 f.saeidi, Today, 11:02 AM
      1 response
      1 view
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by geotrades1, Today, 10:02 AM
      4 responses
      12 views
      0 likes
      Last Post geotrades1  
      Started by rajendrasubedi2023, Today, 09:50 AM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by lorem, Today, 09:18 AM
      2 responses
      11 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by geddyisodin, Today, 05:20 AM
      4 responses
      30 views
      0 likes
      Last Post geddyisodin  
      Working...
      X