I'm a bit new to ninjascript, just can't seem to get past this simple error. I keep getting CS1502 "The best overloaded method match...". I tried removing the index bracket on sdev, I tried using the
Stat.StdDev function... I'm stumped on this simple issue. Please help.
barLookBack is an int input set to 300
protected override void OnBarUpdate()
{
double closeOpen = Close[1] - Open[1] ;
double sdev = StdDev(closeOpen, barLookBack)[0] ;
Plot0.Set(sdev);
}

Comment