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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            47 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            23 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            33 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            50 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            42 views
            0 likes
            Last Post CarlTrading  
            Working...
            X