NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 12-28-2010, 02:56 PM   #1
texasnomad
Senior Member
 
Join Date: Oct 2008
Location: Dallas, TX
Posts: 120
Thanks: 9
Thanked 2 times in 2 posts
Default Error on running optimizer: Value cannot be null. Parameter name: value

My strategy works fine when backtesting. Yet when I run the optimizer, it throws this error:

Error on running optimizer: Value cannot be null. Parameter name: value

Code:
        private double risk = 0.0325;
        private int sL = 100; 
        private int tP = 100; 
        private int fileNumber = 1;
I read a previous thread on this issue. As you can see from my data types, they are all int and double.

Code:
        [Description("")]
        [GridCategory("Parameters")]
        public int FileNumber
        {
            get { return fileNumber; }
            set { fileNumber = value; }
        }
None of my inputs are named value. I checked properties. The only property I have that explicitly uses value is FileNumber.

The log file only contains one error. It says "Error on running optimizer: Value cannot be null." It's highlighted in green.
Attached Images
File Type: png temp1.PNG (8.0 KB, 5 views)
File Type: png temp2.PNG (54.4 KB, 7 views)
texasnomad is offline  
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Assertion failed error BarsArray[0] == null VTtrader Indicator Development 2 11-18-2010 12:31 PM
Chart Interval, optimizer parameter gg80108 Strategy Analyzer 1 04-06-2009 08:31 AM
How to optimize the running of the optimizer SuperDriveGuy Strategy Analyzer 9 04-05-2009 10:31 PM
Error on running optimizer. Object reference not set to an instance of an object. vasily20011 Strategy Analyzer 5 03-09-2009 08:09 AM
Bug with optimizer when changing parameter type cunparis Strategy Analyzer 17 02-05-2009 11:19 AM


All times are GMT -6. The time now is 03:52 AM.