变色的多空源码:
红色表示多,绿色表示空;
a:0,colorwhite;
IF(ISNULL(OUTVOL[5])){a=(OUTVOL-INVOL)/(OUTVOL+INVOL);}
ELSE a=(OUTVOL-OUTVOL[5]-INVOL+INVOL[5])/(OUTVOL-OUTVOL[5]+INVOL-INVOL[5]);
DKX:=a*100;
PARTLINE(DKX,DKX>0,RGB(255,0,0),DKX<0,RGB(00,255,0));
变色的多空源码:
红色表示多,绿色表示空;
a:0,colorwhite;
IF(ISNULL(OUTVOL[5])){a=(OUTVOL-INVOL)/(OUTVOL+INVOL);}
ELSE a=(OUTVOL-OUTVOL[5]-INVOL+INVOL[5])/(OUTVOL-OUTVOL[5]+INVOL-INVOL[5]);
DKX:=a*100;
PARTLINE(DKX,DKX>0,RGB(255,0,0),DKX<0,RGB(00,255,0));