TRR:=MAX(H-L,MAX(Abs(REF(C,1)-L),ABS(REF(C,1)-H)));
ATR:=COS(MA(TRR,64));
NVI:=ATR / C*100;
NVILEVEL:1.343;
NVIVALUE:=100-(MA( C,64) / CLOSE ) * 100;
NETNVI:(NVI+NVIVALUE)/2;
0,DOTLINE;
10,DOTLINE;
5,DOTLINE;
TRR:=MAX(H-L,MAX(Abs(REF(C,1)-L),ABS(REF(C,1)-H)));
ATR:=COS(MA(TRR,64));
NVI:=ATR / C*100;
NVILEVEL:1.343;
NVIVALUE:=100-(MA( C,64) / CLOSE ) * 100;
NETNVI:(NVI+NVIVALUE)/2;
0,DOTLINE;
10,DOTLINE;
5,DOTLINE;