源码
input:n(30,1,999,1),p(30,1,999,1),p1(14,1,999,1);
m:=(h+l)/2;
hl:=(h-l);
rocm:=100*(1-ref(m,1)/m);
rmd:=100*hl/ma(hl,n);
vmd:=100*v/ma(v,n);
eom:sum(rocm*rmd/vmd,p);
meom:ema(eom,p1);
源码
input:n(30,1,999,1),p(30,1,999,1),p1(14,1,999,1);
m:=(h+l)/2;
hl:=(h-l);
rocm:=100*(1-ref(m,1)/m);
rmd:=100*hl/ma(hl,n);
vmd:=100*v/ma(v,n);
eom:sum(rocm*rmd/vmd,p);
meom:ema(eom,p1);