Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
        BertrandNinjaTrader Customer Service

        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 cmtjoancolmenero, Yesterday, 03:58 PM
          2 responses
          19 views
          0 likes
          Last Post cmtjoancolmenero  
          Started by Stanfillirenfro, Today, 07:23 AM
          0 responses
          1 view
          0 likes
          Last Post Stanfillirenfro  
          Started by olisav57, Yesterday, 07:39 PM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by cocoescala, 10-12-2018, 11:02 PM
          7 responses
          942 views
          0 likes
          Last Post Jquiroz1975  
          Started by oviejo, Today, 12:28 AM
          1 response
          11 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X