I am trying to begin the (lengthy) process of converting to Ninja8, and on one indicator i am down to the last couple of errors but have hit a wall... I have a similar issue with .Set .....In ninja7 i have
if(CurrentBar<tlength+1) return;
Havg = SMA(High,tlength)[1];
Lavg = SMA(Low,tlength)[1];
if(Input[0]<Lavg) swing = -1;
if(Input[0]>Havg) swing = 1;
if(swing==-1)
{
if(previous_swing!=swing) Draw.ArrowDown(this, CurrentBar.ToString(), true, 0, Havg, Brushes.Gold);
S=Havg;
}
where Lavg is a double. I have tried using the following in Ninja8
S = Lavg;
but its saying that the "property or indexer .... cannot be assigned to - it is read only" and also "cannot implicitly convert type 'double' to 'NinjaTrader.NinjaScript.Series<string>'
Any ideas?
Thanks in advance....
Comment