Traders' Tips from TASC Magazine

Stochastics

Here is the MetaStock 6.5 or higher custom formula for the Stochastics:

KPERIODS := Input("%K Time Periods",1,20,5);
KSLOW := Input("%K Slowing",1,20,3);
DPERIODS := Input("%D Time Periods",1,20,3);
K := 100*(Sum(CLOSE - LLV(LOW,KPERIODS),KSLOW)) / (Sum(HHV(HIGH,KPERIODS)-
LLV(LOW,KPERIODS),KSLOW));
D := Mov(K,DPERIODS,S);
K;
D;

MetaStock also contains built in indicators for the Stochastic Oscillator and Stochastic Momentum Index.


Contents