VAR1:=(C-REF(C,1))/REF(C,1); INDEXC:="999001$C"; VAR2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1); VARQ2:=REF(LOW,1); VARQ3:=SMA(ABS(LOW-VARQ2),13,1)/SMA(MAX(LOW-VARQ2,0),13,1)*100; 個(gè)股:=EMA(SUM(VAR1,20),5); 大盤:=EMA(SUM(VAR2,20),5); 領(lǐng)漲:=(個(gè)股-大盤)>=0; VARQ4:=EMA(IF (CLOSE*1.2,VARQ3*13,VARQ3/13),13); VARQ5:=LLV(LOW,34); VARQ6:=HHV(VARQ4,34); VAR3:=(C-LLV(L,125))/(HHV(H,125)-LLV(L,125))*100; VAR4:=SMA(VAR3,72,1); VAR5:=SMA(VAR4,34,1); VARQ7:=IF (LLV(LOW,55),1,0); VARQ8:=EMA(IF (LOW<=VARQ5,(VARQ4+VARQ6*2)/2,0),3)/618*VARQ7; VARQ9:=EMA(CLOSE,5); 中線趨勢:=3*VAR4-2*VAR5; 中線趨勢升:=(中線趨勢-REF(中線趨勢,1))>=0; VARQ10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10); VARQ11:=EMA(IF (LOW<=VARQ5,(VARQ4+VARQ6*2)/2,0),3)/618*VARQ7*(-1); VARQ12:=EMA(CLOSE,5)*(-1); 均五升:=(MA(C,5)-REF(MA(C,5),1))>=0; 均十升:=(MA(C,10)-REF(MA(C,10),1))>=0; STICKLINE(均五升 AND 均十升 AND 中線趨勢升, 0+0.5,0-0.5,6,1),COLORFFFF00,LINETHICK1; STICKLINE(VARQ8>REF(VARQ8,1), 0,VARQ8,6,1),COLOR10FFFF,LINETHICK3; 備錢:IF (VARQ8>REF(VARQ8,1),0,VARQ8),COLOR0FFFFF; 強(qiáng)勢:IF (均五升 AND 均十升 AND 中線趨勢升 AND 領(lǐng)漲,4,0),COLORRED; STICKLINE(VARQ11>REF(VARQ11,1),0,VARQ11,6,1),COLORFFF810; 界:0,COLORFFFFFF,LINETHICK1; VAR6:=(2*C+H+L)/4; VAR7:=LLV(L,27); VAR8:=HHV(H,27); XL1:=MA(LOW,2)*0.96; XL2:=MA(LOW,26)*0.85; 操作:EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13)-50,LINETHICK1,COLORYELLOW; 趨勢:EMA(0.618*REF(操作,1)+0.382*操作,3),COLORGREEN,LINETHICK1; XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2); STICKLINE(XL3,0,VARQ8*3,8,0),COLORRED; STICKLINE(操作>趨勢 AND 操作>=REF(操作,1), 操作+5,趨勢-1,3.5,0),COLORRED,LINETHICK2; STICKLINE(操作>=趨勢,趨勢,趨勢,3.5,0),COLORYELLOW,LINETHICK2; 啟動(dòng):IF (XL3,0,VARQ8*3),COLORRED; STICKLINE(操作<趨勢,趨勢+0.5,趨勢-0.5,3.5,0),COLORFFFF00,LINETHICK2; STICKLINE(強(qiáng)勢=4,操作+6,趨勢-1,4,0),COLORFF99FF; VA:=(2*C+H+L)/4; VB:=LLV(L,5); VC:=HHV(H,5); 強(qiáng)弱界:0,COLORWHITE; STICKLINE(操作>=趨勢 AND 均五升 AND 均十升 AND 中線趨勢升,趨勢-3,趨勢-7,4,0),COLOR64A0E6; 紅線上穿買:EMA((VA-VB)/(VC-VB)*27,5),COLORRED; 紅線下穿賣:EMA(紅線上穿買,3),COLORFFFF00; 運(yùn)動(dòng):=IF (操作>=趨勢 AND 均五升 AND 均十升 AND 中線趨勢升 AND 趨勢<0,1,0); 買進(jìn):IF (運(yùn)動(dòng)=1 AND COUNT(運(yùn)動(dòng)=1,5)=1,8,0),COLORGREEN,LINETHICK1; 散戶:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4); 莊家:= EMA(0.667*REF(散戶,1)+0.333*散戶,2); DRAWTEXT(買進(jìn)=8,操作,'買進(jìn)'),COLORYELLOW; DRAWTEXT(CROSS(散戶,莊家) AND 散戶<30,5,'低進(jìn)'),COLOR00FF00; DRAWTEXT(CROSS(莊家,散戶) AND 散戶>70,21,'高出'),COLOR00FF00; BIAS1:=(C-MA(C,6))/MA(C,6)*100; BIAS2:=(C-MA(C,12))/MA(C,12)*100; 極品底 :IF ((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,23,0),LINETHICK2,COLORFF00FF; BIAS3:=(C-MA(C,24))/MA(C,24)*100; BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6; DRAWICON(極品底=23,23,1),LINETHICK2,COLORFFFFFF; 乖離:=MA(BIAS,3); STICKLINE(乖離<-6 AND 乖離>=-12,-6,0,6,1 ),COLOR33FFCC; 抄底一:IF (乖離<-12 AND 乖離>=-18,-12,0),COLORMAGENTA,STICK; RSV:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)))*100); STICKLINE(乖離<-12 AND 乖離>=-18,-12,0,6,0) ,COLOR33CCCC; 抄底二:IF (乖離<-18,-18,0),COLORCYAN,STICK; STICKLINE(乖離<-18,-18,0,6 ,0) ,COLOR3399CC; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 抄底:IF (買進(jìn)=8 AND COUNT(乖離<-12,10)>=1,10,0),NODRAW,COLORRED; X:=LLV(J,2)=LLV(J,8); STICKLINE(抄底=10,10,0,10,1),COLORRED; DRAWTEXT(抄底=10,10,'←抄底'),COLORYELLOW; DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,2,'低進(jìn)'),COLORFFFF00; |
|