151325Q13M0-35U8.jpg
N:=3;M:=10;
换手率:V/CAPITAL*100,STICK;
V1:=(V/(((H-L)*2)-ABS((C-O))));
买盘:=IF((C > O),(V1*(H-L)),IF((C < O),(V1*((H-O)+(C-L))),(V/ 2)));
卖盘:=IF((C > O),(0-(V1*((H-C)+(O-L)))),IF((C < O),(0-(V1*(H-L))),(0-(V/2))));
买:=买盘/CAPITAL*100,STICK;
卖:=卖盘/CAPITAL*100,STICK;
买卖差:买+卖,STICK;
N日内净流入:SUM(买卖差,N),LINETHICK2,COLORGREEN;
流入:IF(N日内净流入 > REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORRED,LINETHICK2;
连红天数:BARSLASTCOUNT(买卖差 > 0);
M日内翻红天数:COUNT(买卖差 > 0,M);
STICKLINE(换手率 < 2,0,换手率,2,1),COLORWHITE;
STICKLINE(BETWEEN(换手率,2,6),0,换手率,2,1),COLORYELLOW;
STICKLINE(换手率 > 6,0,换手率,2,1),COLORRED;
STICKLINE(1,0,买,0.8,0),COLORRED;
STICKLINE(1,买,换手率,0.8,0),COLORGREEN;
STICKLINE(买卖差 > 0,0,-买卖差,0.8,0),COLORMAGENTA;
STICKLINE(买卖差 < 0,0,买卖差,0.8,0),COLORCYAN; |