I'm trying to add Time[0] to an indicator as plot to then use in the Market Analyzer as reference to other numerical values.
I set the #region Properties to <DateTime> after getting the error "cannot implicitly convert 'System.DateTime' to 'double' (CS0029).
CS0029 does not provide the needed example for the error.
I've checked the documentation here, but it doesn't tell what to use:
I tried ,DateTime> instead of <double> as below Properties:
[XmlIgnore]
public Series<DateTime> PriorDate
{
get { return Values[0]; }
}
But it returns the same errors:
"cannot implicitly convert 'NinjaTrader.NinjaScript.Series<double> (CS0029).
What's the solution?
Comment