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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      71 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      143 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      76 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      47 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      51 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X