当前位置:首页 > 免费资源 > 正文

「翔博精选指标」黄金四色,公开通达信公式源码分享 主图

2022-03-12原创 编 辑:翔博软件

 {公式名称: 黄金四色


公式类型: 技术指标公式-其他类型
画线方法: 主图叠加
公式源码:}
DRAWGBK(CLOSE>0,RGB(20,0,28),RGB(20,0,28),0,0,1);
VAR1:=120;
VAR2:=BARSLAST(CURRBARSCOUNT=VAR1);
VAR3:=CONST(IF(ISLASTBAR=1,HHV(HIGH,VAR2),0));
VAR4:=CONST(IF(ISLASTBAR=1,LLV(LOW,VAR2),0));
VAR5:=VAR3-VAR4;
高:IF(CURRBARSCOUNT<=VAR1,VAR3,DRAWNULL),POINTDOT,COLORYELLOW;
压:IF(CURRBARSCOUNT<=VAR1,VAR3-VAR5*0.191,DRAWNULL),NODRAW,COLORMAGENTA;
平衡:IF(CURRBARSCOUNT<=VAR1,VAR4+VAR5/2,DRAWNULL),NODRAW,COLORYELLOW;
支撑:IF(CURRBARSCOUNT<=VAR1,VAR4+VAR5*0.191,DRAWNULL),NODRAW,COLORGREEN;
低:IF(CURRBARSCOUNT<=VAR1,VAR4,DRAWNULL),POINTDOT,COLORGREEN;
天:BARSLAST(LOW=VAR4),NODRAW,COLORYELLOW;
STICKLINE(CURRBARSCOUNT<=VAR1,平衡,平衡,3,(-1)),COLORWHITE;
STICKLINE(CURRBARSCOUNT<=VAR1,压,压,3,(-1)),COLORRED;
STICKLINE(CURRBARSCOUNT<=VAR1,支撑,支撑,3,(-1)),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,压,1),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,平衡,2),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,支撑,3),COLORYELLOW;


VAR6:=EMA(CLOSE,21);
VAR7:=VAR6<REF(VAR6,1);
VAR8:=IF(VAR7-1,VAR6,DRAWNULL);
VAR9:=EMA(CLOSE,3)>EMA(CLOSE,21);
VAR10:=EMA(CLOSE,3)<EMA(CLOSE,21);
VAR11:=EMA(CLOSE,3)>EMA(CLOSE,8);
VAR12:=EMA(CLOSE,3)<EMA(CLOSE,8);
STICKLINE(VAR9,LOW,HIGH,0,0),COLOR0088EE;
STICKLINE(VAR9,CLOSE,OPEN,3,0),COLOR0055AA;
STICKLINE(VAR9,CLOSE,OPEN,2.8,0),COLOR0066BB;
STICKLINE(VAR9,CLOSE,OPEN,2.5,0),COLOR0077CC;
STICKLINE(VAR9,CLOSE,OPEN,2.2,0),COLOR0088DD;
STICKLINE(VAR9,CLOSE,OPEN,1.7,0),COLOR0099EE;
STICKLINE(VAR9,CLOSE,OPEN,1.2,0),COLOR00AAFF;
STICKLINE(VAR9,CLOSE,OPEN,0.7,0),COLOR00CCFF;
STICKLINE(VAR9,CLOSE,OPEN,0.2,0),COLORYELLOW;
STICKLINE(VAR10,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(VAR10,CLOSE,OPEN,3.2,0),COLOR006600;
STICKLINE(VAR10,CLOSE,OPEN,2.6,0),COLOR008800;
STICKLINE(VAR10,CLOSE,OPEN,1.9,0),COLOR00AA00;
STICKLINE(VAR10,CLOSE,OPEN,1.1,0),COLOR00CC00;
STICKLINE(VAR10,CLOSE,OPEN,0.3,0),COLORGREEN;
STICKLINE(VAR10 AND VAR11,HIGH,LOW,0,1),COLORFF55FF;
STICKLINE(VAR10 AND VAR11,CLOSE,OPEN,3.2,0),COLOR880088;
STICKLINE(VAR10 AND VAR11,CLOSE,OPEN,2.6,0),COLORAA00AA;
STICKLINE(VAR10 AND VAR11,CLOSE,OPEN,1.9,0),COLORCC00CC;
STICKLINE(VAR10 AND VAR11,CLOSE,OPEN,1.1,0),COLOREE00EE;
STICKLINE(VAR10 AND VAR11,CLOSE,OPEN,0.3,0),COLORFF44FF;
STICKLINE(VAR9 AND VAR12,HIGH,LOW,0,1),COLORFF8800;
STICKLINE(VAR9 AND VAR12,CLOSE,OPEN,3.2,0),COLORFF2200;
STICKLINE(VAR9 AND VAR12,CLOSE,OPEN,2.6,0),COLORFF4400;
STICKLINE(VAR9 AND VAR12,CLOSE,OPEN,1.9,0),COLORFF6600;
STICKLINE(VAR9 AND VAR12,CLOSE,OPEN,1.1,0),COLORFF8800;
STICKLINE(VAR9 AND VAR12,CLOSE,OPEN,0.3,0),COLORFFAA00;
DRAWTEXT(CURRBARSCOUNT=VAR1/2+9,VAR3-VAR5/12,4),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=VAR1/2+9,VAR3-VAR5/3,5),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=VAR1/2+9,VAR4+VAR5/3,6),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=VAR1/2+9,VAR4+VAR5/10,7),COLORCYAN;
VAR13:=EMA(CLOSE,13)-EMA(CLOSE,55);
VAR14:=EMA(0.618*REF(VAR13,1)+0.382*VAR13,3);
VAR15:=REF(CLOSE,1);
VAR16:=EMA(HHV(HIGH,1),8);
VAR17:=EMA(CLOSE,8);
VAR18:=VAR17<REF(VAR17,1) AND CLOSE<VAR17;
VAR19:=IF(VAR16<REF(VAR16,1) OR VAR18,1,0);
VAR20:=SMA(MAX(CLOSE-VAR15,0),2,1)/SMA(ABS(CLOSE-VAR15),2,1)*100;
VAR21:=45;
VAR22:=20;
VAR23:=VAR20<VAR21 AND REF(VAR20,1)>VAR21;
VAR24:=VAR20<VAR22 AND REF(VAR20,1)>VAR22;
VAR25:=(COUNT(VAR19=1,4)=3 AND VAR19=0 AND OPEN<CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.065)*10>=10 OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.065 AND (REF(VAR24,1) OR REF(VAR23,1)));
DRAWICON(VAR25,LOW,7);
STICKLINE(VAR25,LOW,LOW+(HIGH-LOW)/2,2.7,0),COLORYELLOW;
STICKLINE(VAR25,LOW+(HIGH-LOW)/2,HIGH,2.7,0),COLORRED;

大家都爱看
查看更多热点新闻
点击进入翔博软件旗下掌上指标--自助下载指标