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 Hwop38, 05-04-2026, 07:02 PM
          0 responses
          161 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Started by CaptainJack, 04-24-2026, 11:07 PM
          0 responses
          310 views
          0 likes
          Last Post CaptainJack  
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          245 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          350 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          179 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Working...
          X