Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bool Property With RefreshProperties.All Does Not Work In Strat Analyzer Optimization

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

    Bool Property With RefreshProperties.All Does Not Work In Strat Analyzer Optimization

    When a strategy has a bool NinjaScriptProperty property that is marked with "[RefreshProperties(RefreshProperties.All)]" attribute, it does not work correctly when in optimization mode on the strategy analyzer.

    In the other modes, it works correctly, and triggers the properties to be re-parsed and trigger any configured TypeConverter.

    However, in the optimization mode, this is not happening. Not sure how it is implemented, but this attribute needs to be respected or propagated to any nested property.

    This is important so the UI is consistent for the user in all modes.

    #2
    Actually, you can remove this. If it triggered, you would not be able to know if the value is set to the Both option.

    Comment


      #3
      Hello aslane,

      Thanks for the post and update.

      It looks like you resolved the question however if you are seeing a problem surrounding refreshing the properties could you attach a small sample that includes a couple properties that exhibit the problem? I can make a report about that if you are seeing some inconsistency.

      I look forward to being of further assistance.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      75 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      43 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      167 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      101 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      165 views
      2 likes
      Last Post CaptainJack  
      Working...
      X