![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Nov 2008
Posts: 168
Thanks: 2
Thanked 1 time in 1 post
|
I keep getting this error:
Error on calling 'OnBarUpdate' method for strategy 'BarTestingByTick': Index was out of range. Must be non-negative and less than the size of the collection. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
This means that you are passing in an index value into a collection that is higher than the number of items in the collection.
Please check out the following tip, 90% of the time this post will provide you the resolution you need. http://www.ninjatrader-support2.com/...ead.php?t=3170
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with backtest | Bluemaze | Strategy Development | 1 | 01-31-2009 08:35 AM |
| Unable to get SetTrailStop working in backtest | laydens | Strategy Development | 1 | 07-24-2008 01:16 AM |
| Backtest not available | BradB | Strategy Analyzer | 9 | 11-10-2007 09:41 PM |
| Commissions in SA Backtest not working? | ThePatientOne | Strategy Analyzer | 7 | 10-22-2007 01:13 PM |
| MRO not working | nybangali | Strategy Development | 3 | 08-17-2007 09:20 AM |