Class-level double array from secondary dataseries zeroed out - futures io
futures io

Class-level double array from secondary dataseries zeroed out

Discussion in NinjaTrader

    1. trending_up 302 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 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

Class-level double array from secondary dataseries zeroed out

(login for full post details)
  #1 (permalink)
Houston, TX
Posts: 5 since Jan 2015
Thanks: 0 given, 1 received

Within an NT8 strategy, I am filling a class-level double array in a secondary series that has the same bars and same contract (5 min bars, NQ 09-19) as the primary series. I printed the array's values when BarsInProgress==2, and they are all valid. However, when BarsInProgress==1, the array is totally wiped out with zeroes. How can I set an array's value in another series that has exactly the same bars, and then retrieve them from within the primary without them getting zeroed out?

The reason for having two dataseries for the same asset and bars is because I can only call the indicators from the strategy on the last bar of the secondary series, since the computation is to expensive to perform on all values of the charts latest [0] value. Once the array values are filled, and a primary bar updates, I should be able to loop through all relevant bars in the primary OBU and trigger buy/sells.

Reply With Quote

futures io Trading Community Platforms and Indicators NinjaTrader > Class-level double array from secondary dataseries zeroed out

Last Updated on August 5, 2019

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


A Transparent Glimpse Into a Prop Traders Life w/Chris Gray @ Earn2Trade

Elite only

Our 12-year anniversary w/ $$,$$$ prizes (check soon)


Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada),
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