N:=27; M:=8; TYP:=(HIGH + LOW + CLOSE)/3; CC1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORFF00FF; 蛟龍: 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),LINETHICK2 , COLORYELLOW; C1:=SMA(CC1,3,1); C2:=SMA(C1,3,1); 龍宮:IF(CROSS(蛟龍,MA(蛟龍,10)) AND 蛟龍<=10,35,0),LINETHICK3,COLORMAGENTA; 蛟龍出宮:IF(CROSS(蛟龍,MA(蛟龍,10)) AND 蛟龍<35,70,0),LINETHICK3,COLORRED; C3:=3*C1-2*C2; CB1:=EMA(C3,5); CB2:=REF(CB1,1); VAR1:=DRAWICON(CROSS(蛟龍,62),68,1); VAR2:=DRAWICON(CROSS(蛟龍,72),70,1); LC:= REF(CLOSE,1); RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; RSI:=(RSI1-50)*5,LINETHICK2,COLORFFFFFF; VAR3:=DRAWICON(CROSS(蛟龍,66),72,1); VAR4:=DRAWICON(CROSS(蛟龍,68),66,1); R1:=SMA(RSI,3,1); D1:=SMA(R1,3,1); J1:=3*R1-2*D1; VAR5:=DRAWICON(CROSS(76,蛟龍),70,2); VAR6:=DRAWICON(CROSS(68,蛟龍),84,2); RR1:=EMA(J1,5); RR2:=REF(RR1,1); RR:=RR1>RR2; VAR7:=DRAWICON(CROSS(66,蛟龍),80,2); VAR8:=DRAWICON(CROSS(64,蛟龍),70,2); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); K1:=(K-50)*5,COLOR00FF00; 買入警戒:IF(蛟龍<=10,30,0),STICK,COLORFFA2AE,LINETHICK5; 買入信號(hào):IF(CROSS(蛟龍,10),45,0),STICK,COLORRED,LINETHICK4; K2:=SMA(K1,3,1); D2:=SMA(K2,3,1); J2:=3*K2-2*D2; DRAWTEXT(買入信號(hào),40,'關(guān)注') , COLORYELLOW; BB1:=EMA(J2,5); 賣出警戒:STICKLINE(蛟龍>=90,70,40,4,0) , COLORGREEN; 蛟龍出現(xiàn):RR AND NOT(REF(RR,1)) AND (RR1<-100 AND BB1<-100) AND CB1<-100,COLORFF0080; 賣出信號(hào):IF(CROSS(84,蛟龍),100,0),STICK,COLOR77AAFF,LINETHICK5; STICKLINE(蛟龍出現(xiàn),80,1,2,0),COLOR800040; STICKLINE(蛟龍出現(xiàn),80,1,1.5,0),COLORFF0080; www.:=(HIGH+LOW+CLOSE*2)/4; DRAWTEXT(賣出信號(hào),98,'逃!') ,COLOR77AAFF ; 蛟龍二:MA(蛟龍,9),LINETHICK2 ,COLORFF0000; STICKLINE(蛟龍出現(xiàn),80,1,1,0),COLOR800080; STICKLINE(蛟龍出現(xiàn),80,1,0.3,0),COLORFF00FF; IF(CROSS(蛟龍,MA(蛟龍,6)) AND 蛟龍二 <45,蛟龍二,0),COLORCCB3E2 ,LINETHICK3 ; DRAWTEXT(蛟龍出現(xiàn),50,' 蛟龍出現(xiàn)'),COLORFF0080; DRAWICON(蛟龍出現(xiàn)>0,83,9); |
|