通达信大单数波动指标公式

[复制链接]
查看83 | 回复0 | 2021-8-19 19:48:14 | 显示全部楼层 |阅读模式

以下是通达信大单数波动指标公式(无源码的请下载附件导入)

ZFA:=(CLOSE/REF(CLOSE,1)-1)*100;
 ZFB:=(CLOSE/OPEN-1)*100;
 ZF:MAX(ZFA,ZFB),NODRAW;
 AA:=IF(DATE<1150501,1,DRAWNULL);
 MY:=L2_VOLNUM(0,0)+L2_VOLNUM(1,0);
 DSA:=L2_VOLNUM(0,0)-L2_VOLNUM(0,1);
 DSB:=L2_VOLNUM(0,0)+L2_VOLNUM(0,1);
 ZS:=TRADENUM;
大单数占比:AA*DSB*100/ZS,NODRAW;
净大单数占比:AA*DSA*100/ZS,NODRAW;
 ZDDS:=AA*DSA*100/DSB;
 ZLDS:=SUM(ZDDS,0);
净大大单数占比:ZDDS,NODRAW;
 TDXSTEP192:STICKLINE(ZDDS>0,0,ZDDS,2,0),COLORRED;
 TDXSTEP193:STICKLINE(ZDDS<0,0,ZDDS,2,0),COLORCYAN;
 DDSA:=AA*EMA(EMA(EMA(ZDDS,IF(BARSSINCE(CLOSE>0)<55,BARSSINCE(CLOSE>0),55)),2),2)*IF(BARSSINCE(CLOSE>0)<55,BARSSINCE(CLOSE>0),55)*1.5;
 DDS1:AA*EMA(EMA(DDSA,3),2),COLORYELLOW;
 DDSB:=AA*EMA(EMA(EMA(DDS1,5),2),2);
 DDS2:AA*EMA(DDSA,13),COLORMAGENTA;
 DDS3:AA*EMA(DDSA,21),COLORGREEN;

{-----------------------------------}

回复

使用道具 举报

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

本版积分规则