Well, the strat seems to boot up fine in the optimizer but only the default one will actually optimize. Please see attached pics. Any thoughts?
ES 03-10: PH Genetic Optimizer Start @ 2/6/2010 11:15:58 AM, combinations: 150,028,200,000
System.InvalidCastException: Specified cast is not valid.
at NinjaTrader.Strategy.Parameter.set_Value(Object value)
at NinjaTrader.Strategy.SetParameterDefinition`1.WriteValue(StrategyBase strategy, ParameterCollection rgParams, Int32 iValue)
at NinjaTrader.Strategy.ParameterDefinitions.WriteToStrategy(ParameterSet child, StrategyBase strategy, ParameterCollection rgParams)
at NinjaTrader.Strategy.PHOptimizationMethod.RunIteration(ParameterSet child)
at NinjaTrader.Strategy.PHOptimizationMethod.RunIterations[T](IEnumerable`1 rgChildren)
at NinjaTrader.Strategy.PHGenetic.ScoreGeneration(IEnumerable`1 rgChildren)
Last edited by dsraider; February 6th, 2010 at 11:41 AM.
Reason: Hoping output results will make sense to someone
When you upgrade NT 6.5.xxx to a new version it overwrites Strategy.cs. You have to re-overwrite it with the one included in the zip from piersh.
In other words, timeline:
Documents\NinjaTrader 6.5\bin\custom\Strategy\@Strategy.cs (native NT version)
Install Piersh GO
Documents.....\Strategy\@Strategy.cs (piersh version, overwrote NT version)
-- Everything working above --
Upgrade NT to 6.5.1000.15
Documents....\Strategy\@Strategy.cs (back to NT version, overwrote piersh version)
-- Now GO is broken --
Documents....\Strategy\@Strategy.cs (replace it again with Piersh version)
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.