Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8b9 Draw.Line with negative index (to the future)

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

    NT8b9 Draw.Line with negative index (to the future)

    In NT7 you could draw a short line with following set up:
    startBarsAgo: 0
    endBarsAgo: -1
    This would draw a line from current bar and end where next bar will happen.

    Tried the same with NT8 but it doesn't understand the negative index for endBarsAgo, and it simply doesn't draw anything. Can this be added in the default drawing tools?

    #2
    Hello gregid,

    Thanks for your post.

    In release 8.0.0.9 the negative index/time will default to the current bar.

    We are currently reviewing this (previously reported) and have assigned it to NT8-9537.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      endBarsAgo <0 and barsAgo > ChartBars.Count-1 would be very helpful... would provide a easier means for extending lines without depending on the RenderTarget approach.

      An alternative might be to provide a Draw.Line method which accepts startX and endX x-axis co-ordinate value or a pixel offset for x-axis.

      Comment


        #4
        Hello CriticalTrader,

        Thanks for your post.

        I will add your suggestion to be able to use coordinates in the draw methods.


        To update gregid, it looks like NT8-9537 will be implemented in the next release (11).
        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by pechtri, 06-22-2023, 02:31 AM
        9 responses
        122 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by frankthearm, 04-18-2024, 09:08 AM
        16 responses
        66 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by habeebft, Today, 01:18 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by benmarkal, Today, 12:52 PM
        2 responses
        14 views
        0 likes
        Last Post benmarkal  
        Started by f.saeidi, Today, 01:38 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X