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 > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 04-10-2009, 12:50 PM   #1
decklin17
Junior Member
 
Join Date: Jan 2009
Posts: 14
Thanks: 0
Thanked 0 times in 0 posts
Default Error in Log

Hi

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.

THANKS
Last edited by decklin17; 04-10-2009 at 12:52 PM.
decklin17 is offline  
Reply With Quote
Old 04-10-2009, 02:45 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

decklin17,

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_Josh is offline  
Reply With Quote
Old 04-10-2009, 03:36 PM   #3
decklin17
Junior Member
 
Join Date: Jan 2009
Posts: 14
Thanks: 0
Thanked 0 times in 0 posts
Default

You rock as always Josh! Thanks for the push in the right direction!
decklin17 is offline  
Reply With Quote
Reply

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
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


All times are GMT -6. The time now is 04:18 AM.