Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,967
Thanks: 93 times Was thanked: 156 time(s) in 151 post(s)
|
Ron McEwan’s article, “The Volatility (Regime) Switch Indicator” explained how to calculate the indicator of the same name. This can be added to MetaStock with the following formula:
dr:= ROC(C,1,$)/Mov(C,2,S); vola:= Stdev( dr, 21); ( (Ref( vola, -1) <= vola ) + (Ref( vola, -2) <= vola ) + (Ref( vola, -3) <= vola ) + (Ref( vola, -4) <= vola ) + (Ref( vola, -5) <= vola ) + (Ref( vola, -6) <= vola ) + (Ref( vola, -7) <= vola ) + (Ref( vola, -8) <= vola ) + (Ref( vola, -9) <= vola ) + (Ref( vola, -10) <= vola ) + (Ref( vola, -11) <= vola ) + (Ref( vola, -12) <= vola ) + (Ref( vola, -13) <= vola ) + (Ref( vola, -14) <= vola ) + (Ref( vola, -15) <= vola ) + (Ref( vola, -16) <= vola ) + (Ref( vola, -17) <= vola ) + (Ref( vola, -18) <= vola ) + (Ref( vola, -19) <= vola ) + (Ref( vola, -20) <= vola ) + 1) / 21
|