Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

F5 Refresh

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

    F5 Refresh

    I have a custom popup form where pass in the strategy and I enter data to set properties on a strategy. The form changes the properties and the first time I hit F5 the strategy runs using the new values. If I make a second change with the form and hit F5, it seems like my form is tied to an older version of the strategy. The values are no longer synced up. Is there something about F5 that reinitializes the strategy? Thanks.

    #2
    Hello thomaspartyof10,

    If you are talking about a chart F5 is the reload NinjaScript command, that should reload your strategy.

    Without more specific details on the code used/area of the platform being used/what window F5 was pressed in I really couldn't guess what may be happening there.

    If you are pressing F5 from the chart, it would be expected to reload your strategy which would cause it to recalculate/regenerate your window depending on how you coded it.

    Is there a reason you are pressing F5 at all? Is this setting change required for historical bars and the strategy needs to reprocess?

    If you are unable to find a solution and can create a very simple example demonstrating the problem we can take a look at that together to see if any other ideas come up.

    I look forward to being of further assistance.

    Comment


      #3
      I figured it out. The user control was on a separate thread so it was tied to the old strategy.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      80 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      40 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X