Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Refresh chart on object modification

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

    Refresh chart on object modification

    If I have an indicator that uses DrawObject to let user enter input parameters (ie: user can move a line to select 2 pivots on the chart).
    Is there a way to know when user has made some change to let the chart refresh without having to wait a new bar ?
    pmaglio
    NinjaTrader Ecosystem Vendor - The Indicator Store

    #2
    Hello,

    Do you have CalculateOnBarClose = false? If so, yes. If not, no. This link will help:


    If it equals false, the next tick will come after the modification and you can program a flag to the rest of the program.

    Let know if that is not what you meant.
    DenNinjaTrader Customer Service

    Comment


      #3
      I know this could be a solution. But I would prefer not using intrabar updating. Even more, I was working on an indicator to be used offline ( so no incoming ticks at all ).
      I am actually instructing users to place the object (a single line) at desired place and then press F5 to do the calculations.
      I thought I could use some event trigered when someone moves an object on the chart...
      ...Is there an event for that ?
      pmaglio
      NinjaTrader Ecosystem Vendor - The Indicator Store

      Comment


        #4
        pmaglio, there's unfortunately no event for this type of activity.

        Comment


          #5
          dont know what exact you requirement is but in NT7 it seems there is a event like

          Code:
          GlobalChartObjectChanged(...)
          or you may also find the below code handy.

          Code:
          ChartControl.Refresh();

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          567 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 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
          548 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X