PureBytes Links
Trading Reference Links
|
Willem,
pds=5;
//Stoch %K-- Custom Formula calculates a ( n ) period %K with a 3
period slowing
Stok=(Sum(C-LLV(L,pds),3)/Sum(HHV(H,pds)-LLV(L,pds),3))*100;//Custom
formula
//Stoch %D-- custom formula calculates a 3 period %D of the %K formula
above.
StoD=ema(stok,3);//custom formula
As far as matching with the built in StochK, I can not answer that.
Anthony
willem1940 wrote:
> StochK calculated
>
> I have tried to write the StochK in a formula format.
>
> Formula:
> %k= MA(((Close- LLV(C,pds))/(HHV(C,pds) - LLV(C,pds)))*100,3);
>
> pds = %k period
>
> The result of this calcualtion I compare with StochK(pds).
>
> To the best of my knowledge this should deliver the same result as
> the formula; however it does not.
> Can anyone point out where I go wrong?
>
>
> Willem Jan
>
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT
[Click Here!]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|