通达信1:=REF(LOW,1);
通达信2:=SMA(ABS(LOW-通达信1),3,1)/SMA(MAX(LOW-通达信1,0),3,1)*100;
通达信3:=EMA(通达信2*10,3);
通达信4:=LLV(LOW,13);
通达信5:=HHV(通达信3,13);
通达信6:=EMA(IF(LOW<=通达信4,(通达信3+通达信5*2)/2,0),3)/618;
通达信7:=IF(通达信6>500,500,通达信6);
STICKLINE(通达信7>(-120),0,通达信7,3,1),COLORGRAY;
STICKLINE(通达信7>1 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<REF(KDJ.J,2),0,通达信7,3,0),COLORRED;
STICKLINE(通达信7>0.1 AND 通达信7<1 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<REF(KDJ.J,2),0,通达信7,3,0),COLORYELLOW;
通达信8:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
通达信9:=SMA(通达信8,3,1);
通达信10:=SMA(通达信9,3,1);
通达信11:=3*通达信9-2*通达信10;
通达信12:=LLV(通达信11,2)=LLV(通达信11,8);
通达信13:=IF(CROSS(通达信11,REF(通达信11+0.01,1)) AND 通达信12 AND 通达信11<20,30,0);
买点1:(CROSS(通达信11,REF(通达信11+0.01,1)) AND 通达信12 AND 通达信11<20)*70,CIRCLEDOT,LINETHICK5;
通达信14:=WMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,2);
通达信15:=WMA(0.618*REF(通达信14,1)+0.382*通达信14,2);
买点2:(CROSS(通达信14,通达信15) AND 通达信14<30)*45,CIRCLEDOT,COLORBROWN,LINETHICK5;
80,DOTLINE;
通达信16:=3;
通达信17:=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);
通达信18:=CLOSE-REF(CLOSE,1);
通达信19:=100*EMA(EMA(通达信18,6),6)/EMA(EMA(ABS(通达信18),6),6);
通达信20:=IF(LLV(通达信19,2)=LLV(通达信19,7) AND COUNT(通达信19<0,2) AND CROSS(通达信19,MA(通达信19,2)),1,0);
加仓:IF(FILTER(通达信20=1,5),1,0)*38,STICK,COLORWHITE,LINETHICK3;
红柱:IF(通达信7>1 AND KDJ.J>REF(KDJ.J,1) AND REF(KDJ.J,1)<REF(KDJ.J,2),通达信7,DRAWNULL)>1,COLORRED;