支撐價(jià):LLV(LOW,19), COLORLIRED,POINTDOT,LINETHICK4; 阻力價(jià):HHV(HIGH,19),COLORLIBLUE,POINTDOT, LINETHICK4; MA5:MA(C,5),COLORWHITE,LINETHICK1; IF(MA5>REF(MA5,1),MA5,DRAWNULL),COLORRED,LINETHICK2; IF(MA5<REF(MA5,1),MA5,DRAWNULL),COLORGREEN,LINETHICK2; MA13:MA(CLOSE,13),COLORYELLOW; MA21:MA(CLOSE,21),COLORMAGENTA; MA34:=MA(CLOSE,34); MA60:MA(CLOSE,60),COLORGREEN; MA120:MA(CLOSE,120),COLORBLUE; QQ:=0,COLORWHITE; MA1:=MA(CLOSE,5); MA2:=MA(CLOSE,10); JG:=CROSS(MA1,MA2); VOLUME:=VOL,VOLSTICK; MAVOL1:=MA(VOLUME,5); MAVOL2:=MA(VOLUME,10); NL:=CROSS(MAVOL1,MAVOL2); DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2,COLORSTICK; NA:=CROSS(DIF,DEA); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,9,1); D:=SMA(K,9,1); J:=3*K-2*D; KD:=CROSS(K,D) AND CROSS(J,D); 一招定乾坤:DRAWTEXT((JG AND NL AND NA) OR (JG AND NL AND KD) OR (JG AND NA AND KD) OR (NL AND NA AND KD),L*0.94,'一招定乾坤'),COLORYELLOW; X:=LLV(J,2)=LLV(J,8); Y:=IF(CROSS(J,REF(J+0.01,1)) AND X AND J<20,30,0); DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<20,LOW*0.98,'★短進(jìn)'),COLORLIMAGENTA; JH9:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100; DRAWTEXT(CROSS(84,JH9),H*1.02,'★S'),COLORGREEN; 空:=EMA(C,5); 均衡:=EMA(空,5),COLORWHITE; 中軌:=HHV(MA(H,13),13),COLORRED,LINETHICK2; VAR5:=FILTER(均衡>REF(均衡,1)AND 中軌<REF(中軌,1)AND C>REF(C,1),11); DRAWTEXT(VAR5,L*0.98,'追漲'),COLORMAGENTA; 菩提:=MEMA(H,20); 般:=MEMA(CLOSE,7),COLORBROWN; 若:=MEMA(CLOSE,3),COLORLIBLUE; DRAWICON(LONGCROSS(般,若,0.25) AND 菩提>H ,L*0.98,1),COLORRED; YM:=(H+O+L+3*C)/6; XM:=EMA(100-(100/(1+SUM(IF(YM>REF(YM,1),YM*VOL,0),14)/SUM (IF(YM<REF(YM,1),YM*VOL,0),14))),5); ZM:=DRAWLINE(XM>=HHV(XM,4),XM,XM<=LLV(XM,4),XM,1); TJ1:=XM=ZM; TJ2:=XM<REF(XM,1); DRAWTEXT(TJ1 AND TJ2,LOW*0.95,'買進(jìn)'),COLORYELLOW; 趨勢(shì)線:=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), , COLORBLUE; DRAWTEXT(CROSS(趨勢(shì)線,10),LOW*0.90,'底買'),COLORMAGENTA; VAR111:=(((CLOSE - MA(CLOSE,6))/(MA(CLOSE,6)))*(200) + ((CLOSE - MA(CLOSE,24))/(MA(CLOSE,24)))*(200) + ((CLOSE - MA(CLOSE,32))/(MA(CLOSE,32)))*(200))/(3); DRAWICON((VAR111 > 20) AND FILTER((VAR111 < REF(VAR111,1)),5),(HIGH)*(1.02),2),COLORGREEN; RSV99:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100; K99:=MA(RSV99,2.5); D99:=MA(K99,2.5); J99:=3*K99-2*D99; JJ99:=J99<20; DRAWTEXT(REF(J99,1)<20 AND EMA(C,20)>REF(EMA(C,20),1) AND NOT(JJ99),LOW*0.92,'超跌短進(jìn)'),COLORMAGENTA;
{堅(jiān)決全倉} H1:=EMA(C,8); H2:=EMA(H1,20); HH2:=XMA(CLOSE,14); HH3:=MEMA(CLOSE,4); VAR1:=(CLOSE-LLV(LOW,60.135))/(HHV(HIGH,60.135)-LLV(LOW,60))*80; VAR2:=SMA(VAR1,7,1); VAR3:=SMA(VAR2,5,1); 堅(jiān)決全倉:CROSS(VAR2,VAR3) AND VAR2<20 AND HH2>HH3;
{并線開花主圖} MID:=(3*CLOSE+LOW+OPEN+HIGH)/6; MA1:MA(MID,4),COLORYELLOW; MA2:MA(MID,9),COLORRED; MA3:MA(MID,13),COLORFFCC66; MA4:MA(MID,21),COLORGREEN; MA55:MA(MID,55),LINETHICK1; 乖離線:=((C-REF(MA1,1))/20+MA1)*1.20; VAR1:=CROSS(MA1,MA2) AND CROSS(MA1,MA3) AND V>REF(V,1); VAR2:=MA1>REF(MA1,2) AND V>REF(V,1) AND CROSS(C,MA1); VAR3:=EMA(100-(100/(1+SUM(IF(MID>REF(MID,1),MID*VOL,0),14)/SUM (IF(MID<REF(MID,1),MID*VOL,0),14))),5); VAR4:=DRAWLINE(VAR3>=HHV(VAR3,4),VAR3,VAR3<=LLV(VAR3,4),VAR3,1); VAR5:=VAR3=VAR4; VAR6:=VAR3<REF(VAR3,1); VAR7:=(((MID - MA(MID,6))/(MA(MID,6)))*(200) + ((MID - MA(MID,24))/(MA(MID,24)))*(200) + ((MID - MA(MID,32))/(MA(MID,32)))*(200))/(3); VAR8:=MA2>=REF(MA2,1) AND CROSS(C,MA1) AND CROSS(C,MA2) AND V>REF(V,1); VAR9:=VAR5 AND VAR6; VAR10:=VAR2 OR VAR8 OR VAR9; STICKLINE(VAR1,L,L-0.09,4,0),COLORYELLOW; DRAWTEXT(VAR1,L-0.13,'金叉'),COLORYELLOW; STICKLINE(CROSS(C,MA2) AND CROSS(C,MA3) AND CROSS(C,MA1),L,L-0.09,4,0),COLORYELLOW; DRAWTEXT(CROSS(C,MA2) AND CROSS(C,MA3) AND CROSS(C,MA1),L-0.13,'并線開花'),COLORYELLOW; STICKLINE(CROSS(C,乖離線),H,H+0.09,4,0),COLOR00FF00; DRAWTEXT(CROSS(C,乖離線) ,H+0.13,'賣點(diǎn)(打點(diǎn)停板不賣)'),COLOR00FF00; STICKLINE(MA3>=REF(MA3,1) AND MA1>=REF(MA1,1) AND CROSS(C,MA3),L,L-0.09,4,0),COLORFFCC66; DRAWTEXT(MA3>=REF(MA3,1) AND MA1>=REF(MA1,1) AND CROSS(C,MA3),L-0.13,'牛象'),COLORRED; STICKLINE(VAR10 AND REF(NOT(VAR10),1),O,O*1.01,2,0),COLORYELLOW; DRAWICON(VAR10 AND REF(NOT(VAR10),1),L,1); DRAWICON((VAR7 > 20) AND FILTER((VAR7 < REF(VAR7,1)),5),(HIGH)*(1.02),2),COLORGREEN;
{三線逃頂 攻守兼?zhèn)鋧 {參數(shù): n1 1 100 3 n2 1 150 5} N1:=3;N2:=5; {三線逃頂} 上升線:EMA(C,N1),COLORRED,LINETHICK2; 下降線:EMA(C,N2),COLORGREEN,LINETHICK2; 中間線:EMA(下降線,N2),COLORWHITE,LINETHICK2; VARF1:=COUNT(CROSS(上升線,中間線),2)=1; VARF2:=COUNT(CROSS(下降線,中間線),2)=1; ZAI:=FILTER(VARF1 AND VARF2,2);VV2:=REF(CLOSE,1); VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100; DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2); DRAWTEXT(REF(VV3,1)>81 AND VV3<80,HIGH,'快賣↓'),COLORYELLOW; VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2; DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'追'),COLORYELLOW; VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5); DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB AND VARA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意買入'); VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; DRAWICON(CROSS(82,VARR1),HIGH,2); DRAWTEXT(CROSS(82,VARR1),HIGH,'快賣↓'),COLORYELLOW; VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5; VAR2:=REF(VAR1,1); VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100; HY3:=IF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0); DRAWTEXT(HY3,LOW,'▲注意買入'),COLORRED;