Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Completely random results when running optimizer

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

    Completely random results when running optimizer

    Hi,

    I have a multi-timeframe strategy that I've tested successfully on 6.5.

    When trying to optimize it in 7.06 I get different results from each and every execution.

    I believe I know what the problem is, but i wanted to bring it to your attention and see also if you might have guidance on how to approach this differently.

    My strategies use an external class "GlobalAccountBalance" to manage and draw from a universal account balance. This allows me to optimally use the equity in my account amongst several different strategies.

    This GlobalAccountBalance is implemented as a singleton.

    From what I can tell from the output of my strategy, the executions appear to be concurrent, which I'm assuming has each strategy thread fighting over the limited global account balance.

    Can you confirm this interpretation is correct, and if so do you have any thoughts on how to work around this?

    Thanks

    #2
    >> From what I can tell from the output of my strategy, the executions appear to be concurrent, which I'm assuming has each strategy thread fighting over the limited global account balance.
    Correct, NT7 optimization is multi-threaded.

    Comment


      #3
      bridenour,
      Strategy has a property MultiThreadSupport. Set it to false. Optimizer will run iterations sequentially. This is just suggestion. I haven't tested if it works.

      Comment

      Latest Posts

      Collapse

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