同花顺多空持仓指标公式

[复制链接]
查看329 | 回复0 | 2021-8-20 23:23:23 | 显示全部楼层 |阅读模式

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

202108202254.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则