- ago
In WL6.9 I have many DataSeries I use in my strategy decisions. A simple example is :

CODE:
DataSeries y = new DataSeries(Bars, "y") double x = 1; for (int n = 0; n< Bars.Count; n++) { y[n] = x++; }


After many hours of searching the discussions and the various other ways of finding "How to Examples", I have not succeeded. I have tried the code below:

CODE:
TimeSeries y = new TimeSeries(bars ," ????? " ) double x = 1; for (int n = 0; n< bars.Count; n++) { y[n] = x++; }

Nothing I try in the " ????? " works and the clues on the screen or not helping.

Please help.

0
265
Solved
1 Replies

Reply

Bookmark

Sort
Glitch8
 ( 8.38% )
- ago
#1
The documentation might help, especially the constructor section

https://www.wealth-lab.com/Support/ApiReference/TimeSeries

You should create it like this:

myTimeSeries = new TimeSeries(bars.DateTimes);
0
Best Answer

Reply

Bookmark

Sort