换手次数源码 副图 通达信 贴图改进版
BB:=CAPITAL;
换手:=V*100/BB,NODRAW;
今日换手%:=换手,NODRAW;
HS:=SUM(VOL,0)/CAPITAL,NODRAW;
换手次数:=FLOOR(HS),NODRAW;
BBB:=IF(换手次数>0,换手次数,0);
BBB2:=IF(BBB-REF(BBB,1)>0,BBB,0);
换手天:BARSLAST(BBB2),NODRAW,COLORGREEN;
A2:=V/CAPITAL*100;
A3:=A2>3 AND A2<=5;
A4:=A2>5 AND A2<=7;
A5:=A2>7 AND A2<=10;
A6:=A2>10;
HH:=CONST(HHV(A2,120));
DRAWNUMBER(BBB2=BBB,V,换手次数),COLORFFF000;
DRAWTEXT(ISLASTBAR,V,CON2STR(SUM(V,BARSLAST(BBB2=BBB))/CAPITAL,2)),COLORWHITE;
{DRAWNUMBER(ISLASTBAR,V,SUM(V,BARSLAST(BBB2=BBB))/CAPITAL),COLORRED;}
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
BB赋值:当前流通股本
换手赋值:V*100/BB,NODRAW
今日换手%:=换手,NODRAW
HS赋值:0的成交量日累和/当前流通股本,NODRAW
换手次数:=FLOOR(HS),NODRAW
如果换手次数>0返回换手次数否则返回0
BBB2:=IF(BBB-1日前的BBB>0,BBB,0)
换手天:上次BBB2距今天数,NODRAW,画绿色
A2赋值:V/当前流通股本*100
A3赋值:A2>3 AND A2<=5
A4赋值:A2>5 AND A2<=7
A5赋值:A2>7 AND A2<=10
A6赋值:A2>10
HH赋值:CONST(120日内A2最高值)
DRAWNUMBER(BBB2=BBB,V,换手次数),COLORFFF000
DRAWTEXT(ISLASTBAR,V,CON2STR(SUM(V,上次BBB2=BBB距今天数)/当前流通股本,2)),画白色
{DRAWNUMBER(ISLASTBAR,V,SUM(V,上次BBB2=BBB距今天数)/当前流通股本),画红色
}