![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jan 2009
Posts: 14
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2009
Posts: 14
Thanks: 0
Thanked 0 times in 0 posts
|
You rock as always Josh! Thanks for the push in the right direction!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |