{ Downloaded From https://www.WiseStockTrader.com }
{Credit for the formula goes to William Golson}

{1. In the Tools menu, select Indicator Builder
2. Click New to open the Indicator Editor for a new indicator
3. Type the name of the formula: "Premier Stochastic"
4. Click in the larger window and type in the formula as follows:}
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)
{5. Click OK to close the Indicator Editor.
    To recreate the premier stochastic system:
1. Select Tools > the Enhanced System Tester
2. Click New
3. Enter the name, "Premier Stochastic Strategy"
4. 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)
{5. 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)
{6. 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)
{7. 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)
{8. Click OK to close the system editor.}