[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Stochastic calculations



PureBytes Links

Trading Reference Links

Hello,
 
As written in the manual StochK and StochD give SLOW stochastic that is smoothed.
You will get fast stochastic if you specify slowing period of 1.
 
Here is Fast/Slow analytical formula and comparison to built-in:
 
pds=14;
FastStochK =
100*(C-LLV(L,pds))/(HHV(H,pds)-LLV(L
,pds));
SlowStochK =
MA( FastStochK, 3
);

Plot( SlowStochK, "%K", colorRed
);
Plot( StochK( pds, 3 ), "%K (built-in", colorBlue
);

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: cstrader
Sent: Sunday, April 27, 2008 2:51 AM
Subject: [amibroker] Stochastic calculations

I?m wondering how StochK and StochD are computed.  I thought that StochK was based on the MA(KSmooth) of MA(Period) High, Low and Close values.  And that StochD was based on the MA(DSmooth) of StochK.  If period = 5 and Ksmooth = 3 shouldn?t the first value of StochK appear on bar 7 (calculated from Close High and Low on bars 5, 6 and 7)?  And if DSmooth is also 3 shouldn?t the first value of StochD appear on bar 9 (as the average of StochK on bars 7-9)?  But StochK and StochD seem to appear only on bars 8 and 11 respectively.    Sure I?m missing something?

 

Thanks

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___