![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2008
Posts: 105
Thanks: 0
Thanked 1 time in 1 post
|
I am programming an indicator and I was not seeing the plot. I started a debug session with Visual Studio and got an "Index out of range error" exception when trying to get the value of Close[1]. If I understand well, if I want the current value of Close, I get the value at 0 like Close[0], correct? If I want the previous value, I have to do Close[1], right? So? What is going on? Why do I get this error?
Thanks! |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Apr 2008
Posts: 105
Thanks: 0
Thanked 1 time in 1 post
|
Ok, yes, that did it. Thanks!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NT 6.5.9 DrawLine out of range error | astrolobe | General Programming | 5 | 02-19-2008 04:16 AM |
| CurrentDayOHL error in Range Bar charts | GerhardS | Historical NinjaTrader 6.5 Beta Threads | 1 | 02-15-2008 03:56 PM |
| Range Bar Charts Error in Historical Data | Laenxin | Charting | 1 | 01-28-2008 01:52 PM |
| Index out of bounds error... | funk101 | Indicator Development | 5 | 05-23-2007 03:20 PM |
| Symbol Mapping - stock index to futures index contract | tmd | Automated Trading | 9 | 12-07-2006 09:53 AM |