- ago
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?
0
625
2 Replies

Reply

Bookmark

Sort
Glitch8
 ( 8.38% )
- ago
#1
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 }
1
- ago
#2
Thank you, this works.
0

Reply

Bookmark

Sort