Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer inconsistencies

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

    Strategy Analyzer inconsistencies

    Hi,
    a client asks the below, if you could please advise.

    thanks,
    saltminer

    the Optimization does strange things. It appears that the results shown on the top do not always match the results in the bottom. I have done a few tests and in many cases the results in the graph (which seem to be the correct results you also get these in a single run) are way lower (see picture). For example there is a total profit of 6956 shown in the top but the graph has only 5474.
    Click image for larger version

Name:	260522.png
Views:	113
Size:	451.2 KB
ID:	1204041

    #2
    Hello saltminer,

    Thank you for your post.

    Does the strategy use IsInstantiatedOnEachOptimizationIteration set to false?

    Does clearing the cache show consistent results?

    To delete the cache, follow the steps below.
    • Shut down NinjaTrader.
    • Open the Documents > NinjaTrader 8 > db folder.
    • Delete the sub-folder named 'cache'.
    • Restart NinjaTrader and test.
    Please let us know if we may be of further assistance.

    Comment


      #3
      Hi,
      if I use a boolean property to be able to configure IsInstantiatedOnEachOptimizationIteration at will, setting the base Property in State.Configure, is this supported?

      Thanks,
      saltminer

      Comment


        #4
        Hello saltminer,

        Thank you for your reply.

        Yes, you can set IsInstantiatedOnEachOptimizationIteration in State.Configure based on a user input. It must be set either in State.SetDefaults or State.Configure so you're ok to do that.

        Please let us know if we may be of further assistance to you.

        Comment

        Latest Posts

        Collapse

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