I pretty much figured out the conversion from DataSeries to NT8 Series<double> use, but just want to clarify what we use the following for:
ISeries<double> or Series<double>:
Definition:
private Series<double> p1;
State == State.Configure:
p1 = new Series<double>(this);
OnBarUpdate():
p1[0] = 2.0;
Passing this to a method (passing by reference so I can update in the method):
K[0] = DoubleStochasticsOptimized(ref p1, ref p2, ref p3, ref kEMA, ref pEMA, Highs, Times;
Definition at the method:
public double tDoubleStochasticsOptimized(ref Series<double> p1, ref Series<double> p2, ref Series<double> p3, ref JMA kEMA, ref JMA pEMA, ISeries<double> dHighs, TimeSeries<DateTime> dTimes)
QUESTION 1: Is the use of Series<double> correct?
QUESTION 2: Passing in Highs[0] to a method (see above, not by reference):
- How do you declare the method to receive the Series<double>? (IE: I tried PriceSeries<double>, and ISeries<double> and these return errors).
QUESTION 3: Passing in Times[0] to a method (see above, not by reference):
- How do you declare the method to receive the TimeSeries<DateTime>? (IE: I tried TimeSeries<DateTime>, and ISeries<DateTime> but these return errors).
Thanks in advance
Comment