M1:=1;
M2:=10;
VOLUME:=VOLINSTK;
MAVOL:=MA(VOLUME,M1);
MAVOL2:=MA(VOLUME,M2);
X:=VOLINSTK;
Y:=REF(VOLINSTK,1);
Z:=CLOSE;
T:=OPEN;
B:IF(X>Y AND Z>=T,1,0);
DRAWTEXT(B=1,X-Y+150,'做多'),COLORRED;
S:IF(X>Y AND T>=Z,-1,0);
DRAWTEXT(S=-1,Y-X-150,'跑'),COLORGREEN;
BP:IF(Y>X AND T>Z,2,0);
DRAWTEXT(BP=2,X-Y-150,'出货'),COLORYELLOW;
SP:IF(Y>X AND Z>=T,-2,0);
DRAWTEXT(SP=-2,Y-X+150,'洗盘'),COLORWHITE;
STICKLINE(B=1,0,X-Y,3,0),COLORRED;
STICKLINE(S=-1,0,Y-X,3,0),COLORYELLOW;
STICKLINE(BP=2,0,X-Y,3,0),COLORGREEN;
STICKLINE(SP=-2,0,Y-X,3,0),COLORBLUE;
202108202254.jpg
|