#VM_StrengthIndex #by Growex. input length = 14; input oversold = 30; input overbought = 70; def upcount = fold i=0 to length with n = 0 do if getvalue(open,i,length-1)< getvalue(close,i,length-1) then n+1 else n; def downcount = fold k=0 to length with j = 0 do if getvalue(open,k,length-1)> getvalue(close,k,length-1) then j+1 else j; def SI = upcount/downcount; plot VMSI = 100 - (100/(1 + SI)); plot os = oversold; plot ob = overbought;
#VM_StrengthIndex
Мар 23 2013, 09:44#by Growex.
input length = 14;
input oversold = 30;
input overbought = 70;
def upcount = fold i=0 to length with n = 0 do if getvalue(open,i,length-1)< getvalue(close,i,length-1) then n+1 else n;
def downcount = fold k=0 to length with j = 0 do if getvalue(open,k,length-1)> getvalue(close,k,length-1) then j+1 else j;
def SI = upcount/downcount;
plot VMSI = 100 - (100/(1 + SI));
plot os = oversold;
plot ob = overbought;