NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 05-09-2009, 07:43 AM   #1
heyligerb
Senior Member
 
Join Date: Nov 2008
Posts: 168
Thanks: 2
Thanked 1 time in 1 post
Default Backtest not working...

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.
heyligerb is offline  
Reply With Quote
Old 05-09-2009, 02:13 PM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

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


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