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 judysamnt7, 03-13-2023, 09:11 AM
      4 responses
      57 views
      0 likes
      Last Post DynamicTest  
      Started by ScottWalsh, Today, 06:52 PM
      4 responses
      35 views
      0 likes
      Last Post ScottWalsh  
      Started by olisav57, Today, 07:39 PM
      0 responses
      7 views
      0 likes
      Last Post olisav57  
      Started by trilliantrader, Today, 03:01 PM
      2 responses
      19 views
      0 likes
      Last Post helpwanted  
      Started by cre8able, Today, 07:24 PM
      0 responses
      9 views
      0 likes
      Last Post cre8able  
      Working...
      X