发新话题
打印

求助!!

求助!!

把下面的公式改成飞狐
tj1:=high>ref(close,1);
tj2:=ref(close,1)>low;
if tj1 then
fz:=high-ref(close,1)+(close-low);
else fz:=close-low;

if tj2 then
fm:=ref(close,1)-low+(high-close);
else fm:=high-close;
td8:sum(fz,8)/sum(fm+fz,8)*100,linethick3;

TOP

试着改为:
tj1:=high>ref(close,1);
tj2:=ref(close,1)>low;
fz:=if(tj1,high-ref(close,1)+(close-low),close-low);
fm:=if(tj2,ref(close,1)-low+(high-close),high-close);
td8:sum(fz,8)/sum(fm+fz,8)*100,linethick3;

TOP

发新话题