Multi Series bug - futures io
futures io futures trading



Multi Series bug


Discussion in NinjaTrader

Updated
    1. trending_up 2,228 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 1 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

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

 
Search this Thread
 

Multi Series bug

(login for full post details)
  #1 (permalink)
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
 
Posts: 278 since Jun 2009
Thanks: 161 given, 269 received

hi,
this is a simple Multi series indicator which prints the close of the last bar. the secondary series is of the same instrument, with a periodicity of 5 minutes.
 
Code
Add(PeriodType.Minute,5);
 
Code
protected override void OnBarUpdate()
        {
            // Use this method for calculating your indicator values. Assign a value to each
            // plot below by replacing 'Close[0]' with your own formula.
            try
            {
                Print(Closes[0][0] + ", " + Closes[1][0]);
            }
            catch (Exception ex)
            {
                Print(ex.Message);
            }
                
        }
this works fine except for when i set the chart periodicity to 5 Minutes (same as the secondary data series). a null object error is encountered.

can anybody help me out.

thanks in advance.

Attached Files
Register to download File Type: zip dsError.zip (1.7 KB, 6 views)
Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Multi Series bug


Last Updated on January 21, 2010


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

New Challenge (TBD)

April
     



Copyright © 2021 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