Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Items

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

    Draw Items

    I'm drawing by code a signal(Diamond ex.) to a chart Real Time that mean CalculateOnBarClose = false, if my code draw the same signal item (that means same name) more than once, does it suppose to ninja update the old draw to the last one?,

    Ex if my first signal is draw at level 1100, then the second one with same name is draw at 1100.50, ninja suppose to delete or move the first one(1100) and draw or move the new one to 1100.50?, is that how it work?

    #2
    If you pass in the same name, it will just re-draw based on whatever values are pased in at that time. So in your example, it would redraw at 1100.50.
    RayNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Ray View Post
      If you pass in the same name, it will just re-draw based on whatever values are pased in at that time. So in your example, it would redraw at 1100.50.
      Something its not working then, the following message appear on the Log:
      Error on calling 'OnBarUpdate' method for indicator 'My_Custom_Indi': An item with the same key has already been added,

      Is there any other report on the Draw Items?, I will strip down and post some code at the afternoon.

      Comment


        #4
        Yes, please strip down to a basic example and we can look into. Thanks.
        RayNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Ray View Post
          Yes, please strip down to a basic example and we can look into. Thanks.
          For some strange unknown reason the issue is related to a custom Bar Type, still chasing the problem

          Comment


            #6
            Thanks for the update.
            RayNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            601 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            347 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            559 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            558 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X