Lee Leibfarth’s article, “Premier Stochastic Oscillator” describes the calculation of his new indicator and a system using it.
The MetaStock formulas and instructions for adding these to MetaStock are:
To enter the indicators into MetaStock:
- In the Tools menu, select Indicator Builder.
- Click New to open the Indicator Editor for a new indicator.
- Type the name of the formula: Premier Stochastic
- Click in the larger window and type in the formula:
x:=Input("stochastic length",2,25,8);
y:=Input("periods",1,100,25);
len:=LastValue(Sqrt(y));
nsto:= 0.1 * (Stoch(x,1)-50);
ssto:=Mov( Mov( nsto, len, E), len, E);
(Exp(ssto)-1)/(Exp(ssto)+1)
- Click Ok to close the Indicator Editor.
To create the system:
- Select Tools > the Enhanced System Tester.
- Click New
- Enter a name, “Premier Stochastic Strategy”
- Select the Buy Order tab and enter the following formula.
x:=8;
y:=25;
len:=LastValue(Sqrt(y));
nsto:= 0.1 * (Stoch(x,1)-50);
ssto:=Mov( Mov( nsto, len, E), len, E);
psto:=(Exp(ssto)-1)/(Exp(ssto)+1);
Cross(.9, psto) OR Cross(.2, psto)
- Select the Sell Order tab and enter the following formula.
x:=8;
y:=25;
len:=LastValue(Sqrt(y));
nsto:= 0.1 * (Stoch(x,1)-50);
ssto:=Mov( Mov( nsto, len, E), len, E);
psto:=(Exp(ssto)-1)/(Exp(ssto)+1);
Cross(psto,-0.9) OR Cross(psto,-0.2)
- Select the Sell Short Order tab and enter the following formula.
x:=8;
y:=25;
len:=LastValue(Sqrt(y));
nsto:= 0.1 * (Stoch(x,1)-50);
ssto:=Mov( Mov( nsto, len, E), len, E);
psto:=(Exp(ssto)-1)/(Exp(ssto)+1);
Cross(psto,-0.9) OR Cross(psto,-0.2)
- Select the Buy to Cover Order tab and enter the following formula.
x:=8;
y:=25;
len:=LastValue(Sqrt(y));
nsto:= 0.1 * (Stoch(x,1)-50);
ssto:=Mov( Mov( nsto, len, E), len, E);
psto:=(Exp(ssto)-1)/(Exp(ssto)+1);
Cross(.9, psto) OR Cross(.2, psto)
- Click OK to close the system editor.
William Golson
MetaStock