N:=5; N4:=34; VAR1:=(C-REF(C,1))/REF(C,1); VAR2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1); VARA:4*SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,5,1),3.2,1),COLORYELLOW,LINETHICK0; VARB:8,COLORGREEN,LINETHICK0; 個(gè)股:=EMA(SUM(VAR1,20),5); 大盤:=EMA(SUM(VAR2,20),5); 領(lǐng)漲:=(個(gè)股-大盤)>=0; 準(zhǔn)備拉升: IF(CROSS(VARA,VARB),40,0),STICK,COLOR0000CC; 壓住莊家: IF(VARA<=8,20,0),STICK,COLORWHITE; VAR3:=(C-LLV(L,125))/(HHV(H,125)-LLV(L,125))*100; VAR4:=SMA(VAR3,72,1); VAR5:=SMA(VAR4,34,1); 中線趨勢:=3*VAR4-2*VAR5; 中線趨勢升:=(中線趨勢-REF(中線趨勢,1))>=0; 均五升:(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,LINETHICK4; 強(qiáng)勢:IF(均五升 AND 均十升 AND 中線趨勢升 AND 領(lǐng)漲,4,0),COLORFF99FF; VAR6:=(2*C+H+L)/4; VAR7:=LLV(L,N); VAR8:=HHV(H,N); VARO5:=LLV(LOW,27); VARO6:=HHV(HIGH,34); VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25; 操作:EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13)-50,LINETHICK0,COLORRED; 趨勢:EMA(0.618*REF(操作,1)+0.382*操作,3),COLORFFFF00,LINETHICK2; 建倉區(qū):IF((VARO7<10),80,100) ,COLOR00CCFF; 短線成本:=EMA(CLOSE,17),COLORWHITE; STICKLINE(操作>趨勢 AND 操作>=REF(操作,1),操作+5,趨勢-1,3.5,0),COLORRED,LINETHICK2; STICKLINE(操作>=趨勢,趨勢,趨勢,3.5,0),COLORYELLOW,LINETHICK2; STICKLINE(操作<趨勢,趨勢+0.5,趨勢-0.5,3.5,0),COLORFFFF00,LINETHICK2; STICKLINE(強(qiáng)勢=4,操作+6,趨勢-1,4,0),COLORFF99FF; A:=(3*C+L+O+H)/6; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210; 強(qiáng)弱界:0,COLORFFFF00; STICKLINE(操作>=趨勢 AND 均五升 AND 均十升 AND 中線趨勢升,趨勢-3,趨勢-7,4,0),COLOR64A0E6; 運(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),COLORRED,LINETHICK1; DRAWTEXT(買進(jìn)=8,操作,'買進(jìn)'),COLORCC33CC; BIAS1:=(C-MA(C,6))/MA(C,6)*100; BIAS2:=(C-MA(C,12))/MA(C,12)*100; BIAS3:=(C-MA(C,24))/MA(C,24)*100; BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6; 乖離:=MA(BIAS,3); 準(zhǔn)備:STICKLINE(乖離<-6 AND 乖離>=-12,-6,0,6,1 ),COLOR33FFCC; 抄底一:IF(乖離<-12 AND 乖離>=-18,-12,0),COLOR33CCCC,STICK; STICKLINE(乖離<-12 AND 乖離>=-18,-12,0,6,0) ,COLOR33CCCC; 抄底二:IF(乖離<-18,-18,0),COLOR3399CC,STICK; STICKLINE(乖離<-18,-18,0,6 ,0) ,COLOR3399CC; WWWCHNMONEYCOM:=(HHV(HIGH,21)-C)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; 中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4)); 持股:=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); 抄底:IF(買進(jìn)=8 AND COUNT(乖離<-12,10)>=1,10,0),LINETHICK0,COLORRED; KJ:-20; 中線成本:=EMA(X,13),COLORFF00FF; STICKLINE(BARSLAST(短線成本<中線成本)>30,95,100,5,0),COLORRED; STICKLINE(BARSLAST(短線成本>中線成本)>30,0,5,5,0),COLORGREEN; |
|