同花顺多空持仓指标公式
同花顺多空持仓指标公式:
M1:=1;
M2:=10;
VOLUME:=VOL;
MAVOL:=MA(VOLUME,M1);
MAVOL2:=MA(VOLUME,M2);
X:=VOL;
Y:=REF(VOL,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;
同花顺多空持仓指标公式实例图解:
同花顺多空持仓指标公式