通达信波段高低点主图公式源码

[复制链接]
查看58 | 回复0 | 2021-8-19 18:37:40 | 显示全部楼层 |阅读模式

以下是通达信波段高低点主图公式源码(无源码的请下载附件导入)

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.93,0.97,0,CODE),COLORWHITE;

DRAWTEXT_FIX(CURRBARSCOUNT=1,0.87,0.97,0,STKNAME),COLORCYAN;

MA5:MA(CLOSE,5),COLORWHITE,LINETHICK3;

波段高:(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.5+XMA(XMA(HIGH,60),60),COLORWHITE,LINETHICK2;

波段低:XMA(XMA(LOW,60),60)-(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.5,COLORWHITE,LINETHICK2;

通达信:(波段高+波段低)/2,DOTLINE,COLOR909090;

IF(波段高>=REF(波段高,1),波段高,DRAWNULL),COLOR000088,LINETHICK2;

IF(波段低>=REF(波段低,1),波段低,DRAWNULL),COLOR000088,LINETHICK2;

IF(波段高<=REF(波段高,1),波段高,DRAWNULL),COLOR008800,LINETHICK2;

IF(波段低<=REF(波段低,1),波段低,DRAWNULL),COLOR008800,LINETHICK2;

IF(MA5>=REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK4;

IF(MA5<=REF(MA5,1),MA5,DRAWNULL),COLORGREEN,LINETHICK3;

STICKLINE(REF(LOW,1)<波段低 AND CLOSE>波段低 AND 波段高>=REF(波段高,1) AND CLOSE>OPEN,CLOSE,OPEN,(-1),0),COLORYELLOW;

STICKLINE(REF(HIGH,1)>=波段高 AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN,CLOSE,OPEN,(-1),0),COLORFF6600;

DRAWTEXT_FIX(ISLASTBAR,0,0,0,FGBLOCK);

DRAWTEXT_FIX(ISLASTBAR,0,0.1,0,GNBLOCK);

DRAWICON(REF(LOW,1)<波段低 AND CLOSE>波段低 AND 波段高>=REF(波段高,1) AND CLOSE>OPEN,LOW,3);

DRAWICON(REF(HIGH,1)>=波段高 AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN,HIGH,4);

911455887.gif

911455887.gif

回复

使用道具 举报

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

本版积分规则