Encinitas
Posts: 4 since Jan 2019
Thanks Given: 0
Thanks Received: 0
|
I'm new to easy language and I'm a bit confused about the syntax when comparing the value of the stochastic now versus one bar ago.
The stochastic is computed as follows:
ok = Stochastic(High, Low, Close, 14, 3, 3, 1, oFastK, oFastD, oSlowK, oSlowD);
And the "value" I am looking for is oSlowK - oSlowD. So this is the value at the current bar. How do I get the value at the previous bar? One possibility is this:
ok2 = Stochastic(High[1], Low[1], Close[1], 14, 3, 3, 1, oFastK1, oFastD1, oSlowK1, oSlowD1);
value1 = oSlowK1 - oSlowD1
But is it also (instead) possible to just use this:
value1 = oSlowK[1] = oSowD[1];
What is the correct syntax?
|