NexusFi: Find Your Edge


Home Menu

 





What does "data_stream" do in a function constructor?


Discussion in MultiCharts

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




 
Search this Thread

What does "data_stream" do in a function constructor?

  #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?
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 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 - Downloads - Top
no new posts