Signal=3;
if ((Stochastics(3, 5, 2).K[0] - Stochastics(3, 5, 2).K[1] > 0)
&& (Stochastics(3, 5, 2).K[1] - Stochastics(3, 5, 2).K[2] > 0))
Signal=2;
Plot0.Set(Signal);
But using "K[1]" or "K[2]" just makes the Plot0.Set return a "0"..
Only "K[0]" is working.
Why is that? Ain't I supposed to be able to use yesterdays Stochastics value?
I can't even mention the K[1] or K[2] anywhere in the code.. no matter if plotted or not. As soon as K[1] or K[2] is mentioned, ANY variable chosen for the Plot0.Set will return a value of 0... until I put "//" before the code that contains the K[1] or K[2].
What am I doing wrong?
Comment