NexusFi: Find Your Edge


Home Menu

 





What does "data_stream" do in a function constructor?


Discussion in MultiCharts

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




 
Search this Thread
  #1 (permalink)
 gztanwei 
toronto
 
Experience: Beginner
Platform: NinjaTrader
Posts: 33 since Sep 2009
Thanks Given: 3
Thanks Received: 11

Just wondering, what does "data_stream" do in a function constructor?

At first, if not filled, by default it is overrided to 0. I thought it that means using BarsOfData(1) data as input of calculating the function, so I thought if I pass in 1, then it would calculate using BarsOfData(2) as input.

But it turned out it does not behave that way. But after some trial and error, I still could not find out what it means.

 
Code
            public DirMovement(CStudyControl _master) : this(_master, 0) {}
            public DirMovement(CStudyControl _master, int _data_stream) : base(_master, _data_stream) { }

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
How to plot a custom icon for crossover
NinjaTrader
Volumetric charts
The Elite Circle
Brendt Skorupinsky
Trading Reviews and Vendors
tick data interval discrepancy
NinjaTrader
Elite Trader Funding, Avoid?
Funded Trading Evaluation Firms
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
ApexTraderFunding.com experience and review
78 thanks
What is Markets Chat (markets.chat) real-time trading ro …
54 thanks
HumbleTraders next chapter
40 thanks
Tao te Trade: way of the WLD
27 thanks
1 Minute Man
22 thanks
  #2 (permalink)
 gztanwei 
toronto
 
Experience: Beginner
Platform: NinjaTrader
Posts: 33 since Sep 2009
Thanks Given: 3
Thanks Received: 11

Hi sorry, I found out the answer is that if I would like to use 2nd Bar data, I should fill in 2, not 1.

Started this thread Reply With Quote
Thanked by:




Last Updated on August 27, 2015


© 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 - Sitemap - Downloads - Top
no new posts