三角洲预测 通达信主图指标 源码 贴图
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;