通达信板块统计副图指标 主要用于盘后统计版块数据 看看版块涨跌强弱 源码附图
个股涨:C>=REF(C,1);
个股跌:C<REF(C,1);
主力成额:(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000;
市盈:C/FINANCE(38);{每股收益:FINANCE(38);};
换手率Z:100*VOL/(FINANCE(46)/100);
换手率L:100*VOL/(FINANCE(7)/100);
跌停:C<=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),DTPRICE(REF(C,1),0.05),
IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),DTPRICE(REF(C,1),0.2),
DTPRICE(REF(C,1),0.1)));
涨停:C>=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),ZTPRICE(REF(C,1),0.05),
IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),ZTPRICE(REF(C,1),0.2),
ZTPRICE(REF(C,1),0.1)));
未来函数检测结果如下:
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出个股涨:C>=1日前的C
输出个股跌:C<1日前的C
输出主力成额:(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000
输出市盈:C/FINANCE(38)
输出{每股收益:FINANCE(38)
}
输出换手率Z:100*成交量/(FINANCE(46)/100)
输出换手率L:100*成交量/(FINANCE(7)/100)
输出跌停:C<=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),DTPRICE(1日前的C,0.05),
IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),DTPRICE(1日前的C,0.2),
DTPRICE(1日前的C,0.1)))
输出涨停:C>=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),ZTPRICE(1日前的C,0.05),
IF(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200824),ZTPRICE(1日前的C,0.2),
ZTPRICE(1日前的C,0.1)))