private double sma = 0;
private double k = 0;
And then in my OnBarUpdate(), I write
k = StdDev(5)[0] / StdDev(10)[0];
My next line I want to write sma = k times sma from one period ago, but I'm not sure how to call the value of sma from one period ago if it's a variable I've defined. Any help would be appreciated.
Thanks,
Lee
Comment