metastock indicators
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
R
S
T
U
V
W
Y
Z
#
4% Rule
$HistVol50Prds_Dly
4% Rule If(PREV = 1,If(CLOSE < HighestSince(1,PREV <> 1,CLOSE)*.96, -1,PREV),If(PREV = -1, If(CLOSE>LowestSince(1,PREV <> -1,CLOSE)*1.04,+1,PREV),If(PREV = 0, If(CLOSE>Lowest(CLOSE)*1.04,+1,If(CLOSE<Highest(CLOSE)*.96, -1,PREV)),PREV)))
If(PREV = 1,If(CLOSE < HighestSince(1,PREV <> 1,CLOSE)*.96, -1,PREV),If(PREV = -1, If(CLOSE>LowestSince(1,PREV <> -1,CLOSE)*1.04,+1,PREV),If(PREV = 0, If(CLOSE>Lowest(CLOSE)*1.04,+1,If(CLOSE<Highest(CLOSE)*.96, -1,PREV)),PREV)))
$HistVol50Prds_Dly HistVolPrds:= 50;CLOSEPctChg:= C / Ref(C,-1);HistVol:= Stdev(CLOSEPctChg,HistVolPrds) *16.1245155 {annualize} * 100 {convert to %};HistVol
site map disclaimer mission privacy policy