I'm confused with the Help information to enter the equivalent to
DataSeries stop = Close - Close; This creates an open array of bars to be filled in later. Help suggests double stop = ts[10];
But this doesn't compile. What am I missing?
DataSeries stop = Close - Close; This creates an open array of bars to be filled in later. Help suggests double stop = ts[10];
But this doesn't compile. What am I missing?
Rename
In WL7 the equivalent class is called TimeSeries. You can still do a Close - Close, but you can just create one this way ...
CODE:
//Initialize public override void Initialize(BarHistory bars) { TimeSeries t1 = new TimeSeries(bars.DateTimes); TimeSeries t2 = bars.Close - bars.Close; //still works }
Thank you, this works.
Your Response
Post
Edit Post
Login is required