Sidebar: MetaStock code
SD*ADX formula


PERIOD: = Input ("PERIOD FOR SD", 5,80,30);
D1:= Input("PERIOD FOR ADX",5,80,25);
SD:=Stdev(C, PERIOD );
SDC:=SD/Mov(C,PERIOD,S);
SDC*ADX(D1)

To create the SD*ADX indicator in MetaStock, click on the indicator
builder (fx), click on NewŠ , and type SD*ADX in the name box and
the code in the formula box.

Normalized standard deviation formula

PERIOD:= Input("PERIOD FOR SD",5,80,30);
SD:=Stdev(C ,PERIOD );
SD/Mov(C,PERIOD,S)

Stochastic on indicator

D1:= Input ("Days for Stochastic", 2, 400, 150);
(Mov (P - LLV (P, D1), 3, S) * 100)/
((Mov (HHV (P, D1) - LLV (P, D1), 3, S)))

This formula can be used to easily spot tops and bottoms for any
indicator. To apply it to an indicator (like the standard deviation),
drop it in the indicator window so that the indicator changes color.

FVE formula

PERIOD:= Input("PERIOD FOR FVE",5,80,22);
COEF:=Input("COEF FOR CUTOFF",0,2,.1);
INTRA:=Log(H)-Log(L);
VINTRA:=Stdev(INTRA,PERIOD);
INTER:=Log(Typical())-Log(Ref(Typical(),-1));
VINTER:=Stdev(INTER,PERIOD);
CUTOFF:=COEF*(VINTER+VINTRA)*C;
MF:=C-(H+L)/2+Typical()-Ref(Typical(),-1);
FVE:=Sum(If(MF>CUTOFF, +V, If(MF <-CUTOFF, -V,0)),PERIOD)
/Mov(V,PERIOD,S)/PERIOD*100;
FVE


-Markos Katsanos