通达信火焰山+波段顶底指标公式

[复制链接]
查看255 | 回复0 | 2021-8-20 02:02:57 | 显示全部楼层 |阅读模式

以下是通达信火焰山+波段顶底指标公式(无源码的请下载附件导入)

MSD:EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLORFFFF11;
 VARK1:=EMA(HHV(HIGH,500),21);
 VARK2:=EMA(HHV(HIGH,250),21);
 VARK3:=EMA(HHV(HIGH,90),21);
 VARK4:=EMA(LLV(LOW,500),21);
 VARK5:=EMA(LLV(LOW,250),21);
 VARK:=EMA(LLV(LOW,90),21);
 VARK7:=EMA((VARK4*0.96+VARK5*0.96+VARK*0.96+VARK1*0.558+VARK2*0.558+VARK3*0.558)/6,21);
 VARK8:=EMA((VARK4*1.25+VARK5*1.23+VARK*1.2+VARK1*0.55+VARK2*0.55+VARK3*0.65)/6,21);
 VARK9:=EMA((VARK4*1.3+VARK5*1.3+VARK*1.3+VARK1*0.68+VARK2*0.68+VARK3*0.68)/6,21);
 VARKA:=EMA((VARK7*3+VARK8*2+VARK9)/6*1.738,21);
 VARKB:=REF(LOW,1);
 VARKC:=SMA(ABS(LOW-VARKB),3,1)/SMA(MAX(LOW-VARKB,0),3,1)*100;
 VARKD:=EMA(IF(CLOSE*1.35<=VARKA,VARKC*10,VARKC/10),3);
 VARKE:=LLV(LOW,30);
 VARKF:=HHV(VARKD,30);
 VARKG:=HHV(HIGH,30);
 VARK10:=IF(MA(CLOSE,58),1,0);
火焰山底:=EMA(IF(LOW<=VARKE,(VARKD+VARKF*2)/2,0),3)/618*VARK10;
火焰山顶:=EMA(IF(HIGH>=VARKG,-(VARKD+VARKF*2)/2,0),3)/618*VARK10;
火焰: STICKLINE(火焰山底>0,0,火焰山底,1.3,1);
今量:= 火焰山底;
STICKLINE(火焰山底>0,0,今量*1.2,1.3,0) COLOR0000FF;
 STICKLINE(火焰山底>0,0,今量*0.8,1.3,0) COLOR0066FF;
 STICKLINE(火焰山底>0,0,今量*0.6,1.3,0) COLOR0099FF;
 STICKLINE(火焰山底>0,0,今量*0.4,1.3,0) COLOR00CCFF;
 STICKLINE(火焰山底>0,0,今量*0.2,1.3,0) COLOR00FFFF;
 {STICKLINE(火焰山顶<0,0,火焰山顶,2,0),COLORCYAN;}
风险区:80,COLORFF85FF,POINTDOT;
安全区:10,COLORYELLOW,POINTDOT;
天线:90,COLORFFFF00,LINETHICK1,POINTDOT;
地线:=0,COLOR6699FF,LINETHICK1,POINTDOT;
强弱线:50,COLORGREEN,POINTDOT;
 VAR1:=HHV(HIGH,9)-LLV(LOW,9);
 VAR2:=HHV(HIGH,9)-CLOSE;
 VAR3:=CLOSE-LLV(LOW,9);
 VAR4:=VAR2/VAR1*100-70;
 VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));
 VAR6:=(2*CLOSE+HIGH+LOW)/4;
 VAR7:=SMA(VAR3/VAR1*100,3,1);
 VAR8:=LLV(LOW,34);
 VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
 VAR10:=IF(VAR9>100,VAR9-100,0);
 VAR11:=HHV(HIGH,34);
 VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);
 VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);
趋势值:=VAR13,COLORRED;
 STICKLINE(VAR12-VAR13>0,VAR12,VAR13,2.1,0),COLORRED;
 STICKLINE(VAR12-VAR13<0,VAR12,VAR13,2.1,0),COLOR00FF0F;

70422279.png

70422279.png
 

回复

使用道具 举报

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

本版积分规则