The Yellow Plot on the graph is the EMA. It's listed at 14776.44. Great. The output of my calculation of FastAvg in the syntax given is showing the Fast Average as 14758.75 which isn't even close to 14776.44.
I have no idea what the cause in shift is. The SMA is just as jacked up.
I've tried the other Syntaxes:
EMA(Close, FastLength)[0];
and
EMA(Close, Convert.ToInt32(FastLength));
This one generated a bunch of errors saying it can't implicitly change it to a double... It is a double... ???
I am coming up dry on how this is supposed to calculate.
Comment