Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimization skip iteration

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

    Optimization skip iteration

    Hello

    I am running some optimization with some differant strategies, i am in the strategy collecting alot of stats based on these stats the strategy stops trading for the rest of the run until the next iteration where the stats are reset in State DataLoaded.

    is there a way to stop the current iteration or skip to the next one instead of hving to run the whole iteration until the end date ?

    if i were doing something small and simple on bar close it would not do big differance but when doing runs with 1 tick data added over a year of data it is potential alot of time i can cut out if the limits are met at the start of the run.


    Also when an iteration have finished i want to save / print these stats, would it be correct to just print them under state terminated or would there be a better place ?

    it seems the state terminated gets run a bunch of times.

    Last edited by donto; 11-30-2024, 08:50 AM.
    Donto
    NinjaTrader Ecosystem Vendor - otrading.dk

    #2
    Hello donto,

    Thank you for your post.

    There is no way to have an optimization skip an iteration while it is running. To stop an iteration you would need to Abort the entire optimization.

    You can print info from State.Terminated, this state will be hit for every instance of a strategy run during an optimization.

    Please let us know if you have any further questions.

    Comment


      #3
      Hello Gaby
      Thank you for your reply.

      I will print during State terminated then.

      From an OptimizationFitness i can read all OptimizationParameters under strategy.OptimizationParameters
      but can other vaiables be read from the optimization fitness also ? like a public double or Plots or does it need to be defined as an optimization parameter to read it ?

      Thanks.



      Donto
      NinjaTrader Ecosystem Vendor - otrading.dk

      Comment


        #4
        Hello donto,

        Only OptimizationParameters can be read from that collection. Variables or plots are not considered optimization parameters so they won't be listed there.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        30 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        64 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        41 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X