View Full Version : Backtest Optimazation Rules?
If I have a strategy that has 2 parameters, lets call them A & B both can range from 1 to 100 and I want to optimize, but A must always be greater than B, is there anyway I can stop the optimizer from even trying the tests that don't fit the criteria?
Thank you for your post and welcome to the NinjaTrader Support Forum!
When setting the value you can make sure it's the max of either the other value or it's own. For example: set { greater = Math.Max(lesser, value); }
Thanks, am I right in thinking that doesn't stop the backtest, but forces the parameters to be a valid setup?
hat is correct, it would force the parameters to be correct when starting the strategy.
When setting the value you can make sure it's the max of either the other value or it's own. For example: set { greater = Math.Max(lesser, value); }
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.