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 rhyminkevin, Today, 04:58 PM
      4 responses
      52 views
      0 likes
      Last Post dp8282
      by dp8282
       
      Started by iceman2018, Today, 05:07 PM
      0 responses
      5 views
      0 likes
      Last Post iceman2018  
      Started by lightsun47, Today, 03:51 PM
      0 responses
      7 views
      0 likes
      Last Post lightsun47  
      Started by 00nevest, Today, 02:27 PM
      1 response
      14 views
      0 likes
      Last Post 00nevest  
      Started by futtrader, 04-21-2024, 01:50 AM
      4 responses
      50 views
      0 likes
      Last Post futtrader  
      Working...
      X