三角洲 时空序列指标公式 日线主图使用

X_1:=1;

X_2:=28.530588;

X_3:=DATETODAY(DATE)+1;

X_4:=((X_3+X_1)/X_2-INTPART((X_3+X_1)/X_2))*X_2;

X_5:=IF(X_4<1,ROUND(X_4+X_2),INTPART(X_4));

X_6:=IF(REF(X_5,1)>=X_5 OR X_5=1,1,0);

X_7:=COUNT(X_6,0);

IF(X_6 AND MOD(X_7,4)=0,CONST(HHV(HIGH,0)),DRAWNULL),STICK,COLORGREEN;

IF(X_6 AND MOD(X_7,4)=1,CONST(HHV(HIGH,0)),DRAWNULL),STICK,COLORRED;

IF(X_6 AND MOD(X_7,4)=2,CONST(HHV(HIGH,0)),DRAWNULL),STICK,COLORYELLOW;

IF(X_6 AND MOD(X_7,4)=3,CONST(HHV(HIGH,0)),DRAWNULL),STICK,COLORBLUE;

IF(X_6 AND MOD(X_7,4)=0,CONST(HHV(LOW,0)),DRAWNULL),STICK,COLORGREEN;

IF(X_6 AND MOD(X_7,4)=1,CONST(HHV(LOW,0)),DRAWNULL),STICK,COLORRED;

IF(X_6 AND MOD(X_7,4)=2,CONST(HHV(LOW,0)),DRAWNULL),STICK,COLORYELLOW;

IF(X_6 AND MOD(X_7,4)=3,CONST(HHV(LOW,0)),DRAWNULL),STICK,COLORBLUE;

(0)

相关推荐