I used to use NT7 but have switched to NT8. I have tried to convert the code for one of my indicators to NT8 but I can't get it to work. I get an error code CS0029 saying that the "Type 'double' can't implicitly be converted to 'NinjaTrader.NinjaScript.Series<double>'". I don't understand what the problem is since the variable is a double and so is the Series.
The following is my code for the properties.
#region Properties
[Range(0.0, double.MaxValue)]
[NinjaScriptProperty]
[Display(Name="MarketVolume", Order=1, GroupName="Parameters")]
public double MarketVolume
{ get; set; }
[Browsable(false)]
[XmlIgnore]
public Series<double> UpVolume
{
get { return Values[0]; }
}
[Browsable(false)]
[XmlIgnore]
public Series<double> DownVolume
{
get { return Values[0]; }
}
#endregion
can anyone tell what I'm doing wrong?
Comment