Trying to build Kaufman's AMA filter, buy and sell zones as indicators. 3 days of frustration has driven me into the forum.
I've done a fair bit of PowerShell scripting at work, but nothing like this. Start with a simple question.
Under the Indicator, I have:
private KAMA Kama;
In State.Configure,
Kama = KAMA(Fast, Period, Slow);
In OnBarUpdate(), if I do,
double Kama0 = Kama[0];
Value[0] = Kama0;
I get values on the chart
But if I do,
double Kama0 = Kama[1];
Value[0] = Kama0
I get nothing.
Does Kama need to be declared as a series? Pls explain.
Thanks in advance for the assist. I have a short stint between jobs and I need to shorten the learning curve as much as possible while I have this opportunity!
Comment