Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Multi Time Frame - Index was outside the bounds of the array
Hi all... I'm new to ninjatrader and I thought I had an understanding of how MTF should work after reading the NT7. Apparently not. My basic attempt at this generates "index was outside the bounds of the array" error.
Here's a sample of the code:
Any suggestions here?
(Sorry this should have been posted in NinjaTrader Programming but I don't seem to be able to move it now)
Can you help answer these questions from other members on NexusFi?
Hey guys, I thought many of you would enjoy and benefit from this thread. My intention is to have each poster reply and describe in as much detail as possible an indicator they want created for NinjaTrader.
Thanks, srgtroy. That's a neat offer from Futures.io
I don't want or need it created for me though. Having something specific to create is what helps motivate me to learn the language.
I already have the indicator fully coded & working on another platform, but I intend to take advantage of some of the more useful features of NinjaTrader (e.g. autotrading, optimization) that the other platform is lacking.
Have you read the whole "NinjaScript" section of the NT7 Help Guide, specifically? That's the first order of business. You may also want to watch this:
@Jayswiss, you can't access to bars values in Initialize(), this is what generates your error.
Check the genuine SampleMultiTimeFrame strategy, it's a good example, and the NT7 help (NinjaScript > Educational Resources > Tips > Multi-Time Frame & Instruments).