Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawX() to the right of bar 0

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

    DrawX() to the right of bar 0

    Using the 6.5 CustomPlotSample indicator as a starting point, I have created an indicator that allows me to draw vertical lines to the right of bar 0, between specified prices. I don't have a clue how to now DrawDot(), DrawSquare(), DrawDiamond(), etc. to the right of bar 0. Any hints would be appreciated.

    #2
    Unfortunately negative index values for the "right" of a bar is not currently supported.
    RayNinjaTrader Customer Service

    Comment


      #3
      How else or when?

      I also have a need for this. I want to plot some "time" clustering. Say, for example, the time distance between the last 2 swing points plotted into the future.

      Can I plot it via an indicator rather than a vertical line?

      If I can't when will NinjaScript allow this important need?

      Thanks.

      Comment


        #4
        You can always draw to the right of the most current bar by overriding the Plot() method. This is advanced programming and a sample is provided as part of the standard NT indicator list.

        Otherwise, negative bar values is on our list for NT7 later this year.
        RayNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jcbinks, Today, 03:32 PM
        2 responses
        14 views
        0 likes
        Last Post jcbinks
        by jcbinks
         
        Started by Stefan Mayer, Today, 03:09 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Kate  
        Started by M_ichel, Today, 03:18 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_ShawnB  
        Started by ralett, Today, 02:43 PM
        2 responses
        15 views
        0 likes
        Last Post ralett
        by ralett
         
        Started by Nightmaregpu, Today, 02:18 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X