Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Refresh text on bar

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

    Refresh text on bar

    Hi,

    I created an indicator in order to add some text on bars. Whenever the added text is not needed anymore, I remove it throw the method RemoveDrawObject("tag1"). So, the text is added and removed according to my expectations.
    Now, I noticed many times that the text on the chart is not updated immediately. I always have to press "F5" to get the last status. I tried to add in the code the following methods: ForceRefresh() and Update() without success.

    How can I fix this issue?

    Thank you.

    #2
    Hello Apeppo,

    Thanks for your post.

    If you leave your script to run (without using F5 refresh) is the text removed as expected but just not quick enough?

    Is your code running with Calculate.OnBarClose = true or = false?
    Last edited by NinjaTrader_PaulH; 02-04-2019, 07:17 AM. Reason: Changed calculate question for NT7.

    Comment


      #3
      Hi PaulH,

      If I leave the script running the text is not updated even if the chart has the focus.

      The code is running with Calculate = Calculate.OnEachTick;

      Comment


        #4
        Hello Apeppo,

        Thanks for your reply.

        Can you post a working example that demonstrates the behavior you are reporting?

        If you would prefer to not to post the code, you are always welcome to write into PlatformSupport[at] NinjaTrader[dot]Com with your code example. In the e-mail please add "Atten Paul" in the subject line and a link to this thread in the body of the e-mail for reference.

        Comment


          #5
          Hi PaulH,

          sorry for the late answer but I finally found a mistake. There was a timing issue in my code.

          Thank you for your support.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          579 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          334 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          554 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          551 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X