Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimization

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

    Optimization

    Hi,

    I have a print statement in OnStartUp for a strategy I am optimizing. I am getting two identical lines in the output window per iteration i.e. it appears OnStartUp is being called twice per iteration.

    I am seeing this consistently regardless of how many iterationsI have. Is there something I could have done in the Optimizer that would cause this?

    Best Regards,
    Scott

    #2
    Are you testing on dual core PC there Scott?

    Comment


      #3
      Yes I am. I have the optimization parameters set such that I should get only 1 execution (I have also tried it with it set so I will get two).

      Comment


        #4
        Scott, you will see 2 as you can at maximum run 2 instances of the strategy on your dual core PC - for example if you backtest - you would see one instance used only -> one OnStartUp print.

        Comment


          #5
          Bertrand, I am a little unclear on this. It appears, I am getting two identical executions for each parameter combination; is that correct? (I am writing performance data to an SQL Server database)

          Comment


            #6
            Scott, looks like we need to sync on what's happening - yes on a MultiCore PC multiple instances of your strategy could be used, hence you could see OnStartUp() triggered more than once if you print from here. This means also your performance data writing triggered from there could end up producing duplicates from what I understand so far - btw: did you change anything in the default / genetic optimizer CS files to be able to work off the iteration cycles?

            Comment


              #7
              Bertrand, I can deal with the database issue by rejecting duplicate keys; I am thinking about the performance issues. I think I probably have a misunderstanding here because it would seem to imply that contrary to appearances NT isn't really doing any new work in the additional cores.

              I am using the supplied default/genetic optimizer files. If I could get which iteration I am on, that would get around my problem as well.

              Best Regards,
              Scott

              Comment


                #8
                Hi Scott, with multicore support NT would evaluate multiple instances (different parameter combinations) of the strategy in parallel allowing for a more efficient workflow - I'm not sure why you feel there's no benefit gained here. I believe GA type (bin > custom > type) would allow for access to the completed iterations as performance is recorded.

                Comment


                  #9
                  Bertrand, I meant there is no benefit if two different cores are evaluating the same parameter set which is what appears to be happening.

                  I got 2 OnStartUp executions with no parameters being optimized even though I used the optimizer. When I gave the optimizer 1 parameter to evaluate with 2 possibilities, I was expecting 2 iterations yet I got 4.

                  On a good note, I did figure out how to get performance data for any subset my trades automatically.

                  Best Regards,
                  Scott

                  Comment


                    #10
                    Hi Scott, I just replied to your email sent in to support - if you would happen to have a scenario to investigate for us I would be happy to give it a run here.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    671 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    379 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    111 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    575 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    582 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X