Stochastics D
For interpretation refer to the September 1999 issue of Technical Analysis of STOCKS & COMMODITIES magazine.
input
inp0:"%K Time Periods", 5, 1, 20;
inp1:"%K Slowing", 3, 1, 20;
inp2:"%D Time Periods", 3, 1, 20;
end_input
var
KPERIODS:=inp0;
KSLOW:=inp1;
DPERIODS:=inp2;
K:=100 * (CumSum(CLOSE - Lowest(LOW, KPERIODS), KSLOW)) / (CumSum(Highest(HIGH, KPERIODS) - Lowest(LOW,KPERIODS), KSLOW));
D:=Mov(K, DPERIODS, S);
end_var
return D;
|
Download to import into Tradecision. 
How to use this indicator in Tradecision:
- Click Download.
- Save this indicator in a safe location on your hard drive.
- Open Tradecision and in the Tools menu click Indicator Builder.
- In the Indicator Builder dialog, click Import, locate the saved file and then click OK.
The indicator will be added to the Custom Indicators list.
|