Need help - Index was outside the bounds of the array Error Message - NinjaTrader Programming | futures io social day trading
futures io futures trading


Need help - Index was outside the bounds of the array Error Message
Updated: Views / Replies:1,448 / 4
Created: by ECI Ed Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Need help - Index was outside the bounds of the array Error Message

  #1 (permalink)
Trading Apprentice
Seminole, FL
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 17 since Oct 2011
Thanks: 9 given, 1 received

Need help - Index was outside the bounds of the array Error Message

The attached indicator compiles, but when I try to run it I get the following error message in my log file and cannot use a print statement to get to the bottom of the problem. Can someone please help get on the right track for troubleshooting this?

Error on calling 'OnBarUpdate' method for indicator 'SMIwDiv' on bar 0; Index was outside the bounds of the array.

Thanks in advance.

Attached Files
Register to download File Type: cs SMIwDiv.cs (12.7 KB, 17 views)
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received


Maybe try changing to,

if (FirstTickOfBar && sMI != 0 || CurrentBar <= lb ) {

Reply With Quote
The following user says Thank You to vegasfoster for this post:
 
  #4 (permalink)
Trading Apprentice
Seminole, FL
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 17 since Oct 2011
Thanks: 9 given, 1 received

Re: vegasfoster post

vegasfoster wrote: Maybe try changing to,

if (FirstTickOfBar && sMI != 0 || CurrentBar <= lb ) {

I think the preceeding instruction solves your concern, but just to make sure, I did try changing this line to
"if (FirstTickOfBar && (sMI != 0 || CurrentBar<=lb))" because this is the only way it makes sense, and it didn't solve the problem. I still get the error message.

Reply With Quote
 
  #5 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,215 since Jun 2009
Thanks: 628 given, 6,312 received


ECI Ed View Post
The attached indicator compiles, but when I try to run it I get the following error message in my log file and cannot use a print statement to get to the bottom of the problem. Can someone please help get on the right track for troubleshooting this?

Error on calling 'OnBarUpdate' method for indicator 'SMIwDiv' on bar 0; Index was outside the bounds of the array.

Thanks in advance.

you number them wrong, don't count plots and lines together; count plots together, count lines together starting from 0. So they should be
------------
Lines[0].Pen = new Pen(Color.Red, 2);
Lines[1].Pen = new Pen(Color.Red, 2);
Lines[2].Pen = new Pen(Color.Gray, 2);
---------------

Reply With Quote
The following 2 users say Thank You to cory for this post:

Reply



futures io > > > > > Need help - Index was outside the bounds of the array Error Message

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
EDSLevel2_v1 Import Error message multiclean The Elite Circle 14 August 9th, 2013 01:25 PM
Tried to connect my broker to NinjaTrader, but got error message about 32 bit? shots fired NinjaTrader 14 April 18th, 2013 09:54 AM
Error Message re Charting or DOM limits? TonyB Open E Cry 3 June 28th, 2011 07:46 PM
Just this evening, I have started to receive an error message benharrell Elite Trading Journals 8 May 11th, 2010 12:04 PM
Need help - ninja log error message Todd NinjaTrader Programming 4 April 27th, 2010 07:19 AM


All times are GMT -4. The time now is 03:17 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-11 in 0.08 seconds with 20 queries on phoenix via your IP 54.226.172.30