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

no definition for 'refresh' in nt8 code

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

    no definition for 'refresh' in nt8 code

    Hi, wondering if anyone could help...

    Im trying to code an indicator from nt7. It changed the chart update interval from the standard to every price change. therefore would eradicate the 250ms update interval now seen in nt8.

    Im getting an error that says 'NinjaTrader.Gui.Chart.ChartControl' does not contain a definition for 'refresh' and no extension method 'refresh' accepting a first argument of type 'NinjaTrader.Gui.Chart.ChartControl' could be found (are you missing a using directive or an assembly reference?)

    Any help to fix this would be appreciated.

    #2
    Hello pezza3452,

    Thank you for your patience.

    I have sent you a response to your email with the details on the script. For reference you would use ForceReresh here: https://ninjatrader.com/support/help...rcerefresh.htm

    Please let me know if you have any questions.

    Comment


      #3
      Hello,

      I am also interested in the script for increasing the chart update interval.
      My email is [email protected]

      Thank you.

      Comment


        #4
        Hello otislauwaert,

        I have already added your vote to SFT-1536.


        We will not be able to add your vote more than once.

        As a request, please refrain from posting the same request or inquiry in multiple places on the forum.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          pezza3452,

          As a heads up, calling ForceRefresh() would not cause the chart to trigger faster than 250ms.

          From the help guide:
          "Note: As the chart is optimized on a timer, calling ForceRefresh() will NOT immediately trigger a render event. Calling ForceRefesh() simply re-queues the render event to trigger during the next timed event. In other words, it may take up to 250ms for the render event to function."
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by adeelshahzad, Today, 03:54 AM
          5 responses
          32 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by stafe, 04-15-2024, 08:34 PM
          7 responses
          32 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by merzo, 06-25-2023, 02:19 AM
          10 responses
          823 views
          1 like
          Last Post NinjaTrader_ChristopherJ  
          Started by frankthearm, Today, 09:08 AM
          5 responses
          22 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          43 views
          0 likes
          Last Post jeronymite  
          Working...
          X