Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnRender always updating

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

    OnRender always updating

    Is that normal that even not connected OnRender is continuously updating.

    I have written a Print statement to test this and I see my statement continuously printing ?
    How can it update when there are no ticks coming in ?

    That must be taking a lot of computer resources ...

    Thanks

    #2
    Hello,

    Thank you for the question.

    OnRender is called very frequently and is not based on tick or market data, this is the Render loop for the chart and is related to how the chart is Rendered.

    This would be expected, OnRender can be processor intensive if you are running a heavy calculation that takes a lot of time from OnRender on each frame, just Printing would not take much effort. This method should be called very frequently though so please keep that in mind with calculations you do as this method is strictly for Rendering visuals on the chart panel.

    Generally most calculations that are data related would go in OnBarUpdate or one of the market data overrides, you could then display the results of those calculations more freely using OnRender.


    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you Jesse

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      147 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      5 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      4 views
      0 likes
      Last Post tkaboris  
      Started by GussJ, 03-04-2020, 03:11 PM
      16 responses
      3,282 views
      0 likes
      Last Post Leafcutter  
      Working...
      X