NexusFi: Find Your Edge


Home Menu

 





Class-level double array from secondary dataseries zeroed out


Discussion in NinjaTrader

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




 
Search this Thread

Class-level double array from secondary dataseries zeroed out

  #1 (permalink)
lepete11
Houston, TX
 
Posts: 5 since Jan 2015
Thanks Given: 0
Thanks Received: 1

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




Last Updated on August 5, 2019


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, 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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts