Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Genetic algo

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

    Genetic algo

    I have been very happy with the GA on NT7, now that I have slowly migrated to NT8, I noticed that there is one more setting on the GA - "Convergence Threshold". I had used the default setting of 20, but it is taking a much longer time to complete. It takes 12 minutes with this setting on NT8 whereas in NT7 it would had been a short 4 minutes or less. Can someone explain what is a "good" value for the Convergence threshold so that I can come up with similar results and taking same amount of time as in NT7? Thank you in advance.

    #2
    Hello reubenlasky,

    Thanks for your post.

    With reference to the help guide section on the Genetic Algorithm, the Parameter Convergence threshold has this definition:

    Convergence threshold - Setting this will terminate the Genetic Optimization if there is more than a certain number of duplicate children in a single generation, defined by the Convergence Threshold value. This allows the optimization to terminate if no new work is getting done because it has already converged in on the most optimal solution. Example: In the screenshot above Generation size is set to 25, therefore each generation will contain 25 children, if 20 of these children are duplicates that have already been tested then the optimization will be terminated.

    The property "IsInstantiatedOnEachOptimizationIteration", by default, is set to true and this means the strategy is re-created on each run which is in itself a performance penalty. Please see the help guide for further details on setting this to false: https://ninjatrader.com/support/help...niteration.htm Note that setting to false would require additional coding to your strategy.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by WHICKED, Today, 12:45 PM
    2 responses
    16 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by GussJ, 03-04-2020, 03:11 PM
    15 responses
    3,271 views
    0 likes
    Last Post xiinteractive  
    Started by Tim-c, Today, 02:10 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Taddypole, Today, 02:47 PM
    0 responses
    2 views
    0 likes
    Last Post Taddypole  
    Started by chbruno, 04-24-2024, 04:10 PM
    4 responses
    51 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Working...
    X