以下是通达信极低副图指标源码

VAR1:=SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,3,1),3,1);
 VAR2:=(EMA(IF(LOW<=LLV(LOW,30),(EMA(IF(CLOSE*1.2,(SMA(ABS(LOW-REF(LOW,1)),3,1)/SMA(MAX(LOW-REF(LOW,1),0),3,1)*100)*10,SMA(ABS(LOW-REF(LOW,1)),3,1)/SMA(MAX(LOW-REF(LOW,1),0),3,1)*100/10),3)+(HHV(EMA(IF(CLOSE*1.2,(SMA(ABS(LOW-REF(LOW,1)),3,1)/SMA(MAX(LOW-REF(LOW,1),0),3,1)*100)*10,SMA(ABS(LOW-REF(LOW,1)),3,1)/SMA(MAX(LOW-REF(LOW,1),0),3,1)*100/10),3),30))*2)/2,0),3)/618*IF(LLV(LOW,58),1,0));
 QQ:=DMA((3*HIGH+LOW+OPEN+2*CLOSE)/7,VOL/(SUM(AMOUNT,13)/(AMOUNT/VOL/1000)/1000));
 STICKLINE(VAR2>VAR1,(CLOSE-QQ)/QQ*1000-15,(CLOSE-QQ)/QQ*1000+30,2,1),COLORGREEN ;
 STICKLINE(CROSS((CLOSE-QQ)/QQ*1000,-166),-200,60,1,0),COLORCYAN ;
 STICKLINE(CROSS((CLOSE-QQ)/QQ*1000,-120),-180,50,1,0),COLORYELLOW ;
 STICKLINE(CROSS((CLOSE-QQ)/QQ*1000,-88),-140,20,1,0),COLORGREEN ;
 DRAWTEXT(CROSS((CLOSE-QQ)/QQ*1000,-166),-160,’★:极低’),COLORCYAN;
 DRAWTEXT(CROSS((CLOSE-QQ)/QQ*1000,-120),-80,’★:较低’),COLORYELLOW;
 DRAWTEXT(CROSS((CLOSE-QQ)/QQ*1000,-88),0,’★:稍低’),COLORGREEN;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。