以下是通达信出击趋势线副图指标 源码

VARAA:=AMOUNT/(100*VOL);
 CYC13:=MA(VARAA,13);
 CYC34:=MA(VARAA,34);
 CYCMAX:=DMA(C,VOL/CAPITAL);
 CYS13:=(C-CYC13)/CYC13*100;
 CYS34:=(C-CYC34)/CYC34*100;
 CYSMAX:=(C-CYCMAX)/CYCMAX*100;
 IF(CYS13<=-7,7,0),COLORWHITE,STICK,LINETHICK3;
 IF(CYS13<=-10,10,0),COLORFFFF33,STICK,LINETHICK3;
 WEN:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
趋势线:=WEN;
红柱:IF(COUNT(趋势线<REF(趋势线,1) AND 趋势线<10,2)=2,15,0),LINETHICK2,COLORRED;
 VAR18:=(HIGH+LOW+CLOSE)/3;
 VAR19:=(VAR18-MA(VAR18,14))/(0.015*AVEDEV(VAR18,14));
 VAR1A:=(VAR18-MA(VAR18,70))/(0.015*AVEDEV(VAR18,70));
 VAR1B:=IF(VAR19>=150 AND VAR19<200 AND VAR1A>=150 AND VAR1A<200,-10,0);
 VAR1C:=IF(VAR19<=-150 AND VAR19>-200 AND VAR1A<=-150 AND VAR1A>-200,10,0);
 VAR1D:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
 VAR1E:=100-ABS(VAR1D);
出击2:IF(BARSCOUNT(CLOSE)<13,10,IF(VAR1E<92 AND VAR1D<0,10,0)),COLORF00FF0,LINETHICK2;
出击1:IF(BARSCOUNT(CLOSE)<70,-10,IF(VAR1A<=-200 AND VAR19<=-150,15,VAR1C)-10),COLORRED,LINETHICK2,;
 DRAWTEXT(ISLASTBAR,-10,’ 高安全区’),COLORWHITE;
 DRAWTEXT(ISLASTBAR,0,’ 安全区’),COLORWHITE;
 DRAWTEXT(ISLASTBAR,60,’ 风险区’),COLORWHITE;
 DRAWTEXT(ISLASTBAR,80,’ 高风险区’),COLORWHITE;

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