以下是通达信百分百包涨源码副图

VAR1:=(CLOSE-LLV(LOW,90))/(HHV(HIGH,90)-LLV(LOW,90))*200;
 VAR2:=EMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,4)*2;
 VAR3:=EMA(0.618*REF(VAR2,1)+0.382*VAR2,2);
 VAR4:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
 VAR5:=POW(MA(LOW,5),2)+MA(LOW,5);
 VAR6:=POW(MA(HIGH,5),2)+MA(HIGH,5);
 VAR7:=(VAR4-LLV(VAR5,64))/(HHV(VAR6,64)-LLV(VAR5,64))*150+65-10;
 VAR8:=SMA(SMA(VAR7,3,1)*1.5-100,3,1);
 VAR9:=3*(SMA(VAR7,3,1)*1.5-100)-2*VAR8;
 VAR10:=(HIGH+LOW+CLOSE*2)/4;
 VAR11:=(VAR10-EMA(VAR10,13))*100/STD(VAR10,13);
 VAR12:=EMA(EMA(VAR11,5),13)+200-100;
 VAR13:=SMA(VAR1,3,1)+VAR2+(SMA(VAR7,3,1)*1.5-100)+VAR12;
 VAR14:=SMA(SMA(VAR1,3,1),3,1)+VAR3+VAR8+EMA(VAR12,10);
 VAR15:=3*SMA(VAR1,3,1)-2*SMA(SMA(VAR1,3,1),3,1)+(3*VAR12-2*EMA(VAR12,10))+VAR9+(3*VAR12-2*EMA(VAR12,10));
 VAR16:=(HIGH+LOW+CLOSE)/3;
 VAR17:=(VAR16-MA(VAR16,34))/(0.015*AVEDEV(VAR16,34));
 VAR18:=(HIGH+LOW+CLOSE+VAR16)/4;
 VAR19:=(VAR18-EMA(VAR18,24))/STD(VAR18,24)*100;
 VAR20:=(VAR16-MA(VAR16,24))/(0.015*AVEDEV(VAR16,24));
 VAR21:=((EMA(VAR19,5)+VAR20+VAR17)/3+165)/4;
 VAR22:=(VAR13+VAR14+VAR15*30)/32/5-15;
 VAR23:=EMA(EMA(CLOSE,13),13);
 VAR24:=(VAR23-REF(VAR23,1))/REF(VAR23,1)*6400;
 VAR25:=100*WINNER(CLOSE*0.95);
 VAR26:=EMA((VAR21+VAR22)/2/1.1,1);
 VAR27:=MA(VAR26,3);
 VAR28:=EMA(OPEN,7);
 VAR29:=EMA(VAR28,21);
 VAR30:=CROSS(VAR28,VAR29);
 VAR31:=EMA(SMA((CLOSE-LLV(LOW,20))/(HHV(HIGH,16)-LLV(LOW,20))*100,8,1),3);
 VAR32:=IF(TROUGHBARS(1,6,1)=0 AND HIGH>LOW+0,50,20);
 VAR33:=IF(PEAKBARS(2,9,1)=1,50,80);
 VAR34:=IF(TROUGHBARS(3,18,1)=0 AND HIGH>LOW+0.1,20,0);
 VAR35:=IF(PEAKBARS(2,15,1)=0,80,100);
 VAR36:=(ZIG(3,35)>REF(ZIG(3,35),1) AND REF(ZIG(3,35),1)<REF(ZIG(3,35),2))*90;
 VAR37:=WEEKDAY;
 VAR38:=IF(WEEKDAY=VAR37,HHV(HIGH,4),0);
 VAR39:=IF(WEEKDAY=VAR37,LLV(LOW,4),0);
 VAR40:=IF(WEEKDAY=VAR37,CLOSE,0);
 VAR41:=(VAR40-LLV(VAR39,45))/(HHV(VAR38,45)-LLV(VAR39,45))*100;
 VAR42:=SMA(VAR41,3,1);
 VAR43:=SMA(VAR42,3,1);
 VAR44:=3*VAR42-2*VAR43;
 VAR45:=DRAWBAND(VAR42,RGB(255,0,0),VAR43,RGB(0,255,0));
 VAR46:=1;
 VAR47:=DRAWTEXT_FIX(VAR46=1,0,0,0,1);
 VAR48:=DRAWTEXT_FIX(VAR46=1,0,0.05,0,2);
 VAR49:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 VAR50:=SMA(VAR49,3,1);
 VAR51:=SMA(VAR50,3,1);
 VAR52:=3*VAR50-2*VAR51;
 VAR53:=DRAWBAND(VAR50,RGB(168,18,38),VAR51,RGB(10,100,200));
 VAR54:=IF(CROSS(VAR52,VAR50) AND (VAR52<30 OR VAR50<60),20,0);
 VAR55:=IF(CROSS(VAR44,VAR42) AND (VAR44<30 OR VAR42<60),30,0);
 VAR56:=VAR55 AND VAR54;
 XG:VAR36 AND VAR56,STICK,COLORWHITE,LINETHICK3;
 DRAWTEXT(XG,0.9,102),COLORRED;
 

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