|04-10-2009, 12:50 PM||#1|
Join Date: Jan 2009
Thanked 0 times in 0 posts
Error in Log
I am trying to compare the SMA values of the last 5 bars for a condition that adds or subtracts to an int value that I wish to use as the plot set.
I keep getting this error in the log when I try to start the indicator:
"Error on calling the 'OnBarUpdate' method for indicator 'DaySlope' on bar 0: Index was out of range. Must be non-negative and less than the size of the collection."
What does that mean?
I would like to post my code but the NT forum website goes to "intenet Explorer canot display...blah blah" when ever I try.
Last edited by decklin17; 04-10-2009 at 12:52 PM.
|04-10-2009, 02:45 PM||#2|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Thanked 106 times in 70 posts
It means you are trying to access values that do not exist yet. Please see this tip: http://www.ninjatrader-support2.com/...ead.php?t=3170
NinjaTrader Customer Service
|Thread||Thread Starter||Forum||Replies||Last Post|
|Error in Log File||Laserdan||Connecting||3||10-24-2008 11:13 AM|
|error message on log-off, can't read||chartlearner||Connecting||1||05-09-2008 04:55 AM|
|Strategy error in Log -- what is it?||cassb||Strategy Development||22||04-25-2008 07:03 AM|
|Error in Log File||BradB||Strategy Development||3||04-26-2007 12:46 AM|
|Error in log||SuzyG||Strategy Development||4||01-17-2007 01:17 AM|