直效稳定获利指标(副图) 通达信公式

[复制链接]
查看126 | 回复0 | 2021-8-20 15:48:11 | 显示全部楼层 |阅读模式
{直效稳定获利(副图)} {参数 LONG=26 SHORT=12 M=9}  {INPUT:LONG(26,26,26),SHORT(12,12,12),M(9,9,9);} OBV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE < REF(CLOSE,1),-VOL,0)),0)/25000,1); DIFF : EMA(OBV,12) - EMA(OBV,26); BBDIFF:=DIFF-REF(DIFF,1); DEA : EMA(DIFF,9); BBDEA:=DEA-REF(DEA,1); MACD : 2*(DIFF-DEA), COLORSTICK; 柱: 2*(DIFF-DEA); BB柱:=柱-REF(柱,1); IF(BBDIFF > 0,DIFF,DRAWNULL),COLORCC00FF,LINETHICK2; IF(BBDIFF <= 0,DIFF,DRAWNULL),COLORFF9999,LINETHICK2; IF(BBDEA > 0,DEA,DRAWNULL),COLOR0066FF,LINETHICK2; IF(BBDEA <= 0,DEA,DRAWNULL),COLOR00FF33,LINETHICK2; IF(BB柱 > 0,柱,DRAWNULL),COLORCC00FF,LINETHICK1; IF(BB柱 <= 0,柱,DRAWNULL),COLORFF9999,LINETHICK1; DIFF速率:BBDIFF*100,,NODRAW; DEA速率:BBDEA*100,,NODRAW; 柱速率:BB柱*100,,NODRAW;

3-1G214225K6161.jpg

3-1G214225K6161.jpg
回复

使用道具 举报

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

本版积分规则