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

Class-level double array from secondary dataseries zeroed out

Discussion in NinjaTrader

Updated by lepete11
    1. trending_up 225 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 replies
    2. attach_file 0 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 100,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

August 5, 2019

Upcoming Webinars and Events



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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