I am using the code:
Shake[0] = StdDev(ShakeCalc, DevLength)[0];
In my code, ShakeCalc[0] = (MomNext / Volatility);
ShakeCalc is defined as a series<double> , and is printing as it should
DevLength is defined as an int
Shake is also defined as a series<double> because ilI need to run indicators on this value to create my final calculations
Initially, I tried to print " Shake[0] ", but after getting errors and even printing the " StdDev(ShakeCalc, DevLength)[0]; " i still get NaN. I am not sure where I am messing up, please let me know how I can fix this. I also tried removing the [0], it seems as though StdDev is not working in some way
Comment