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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          152 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          89 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          131 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          127 views
          1 like
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          107 views
          0 likes
          Last Post CarlTrading  
          Working...
          X