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 CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          238 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          154 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          163 views
          1 like
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          246 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          199 views
          0 likes
          Last Post CarlTrading  
          Working...
          X