回貼是一種美德, 不回貼源碼不全! 黑馬邦主圖一 攻擊線:MA(CLOSE,5),LINETHICK1; 操盤線:MA(CLOSE,10),LINETHICK1; 魔鬼線:MA(CLOSE,20),LINETHICK1; 生命線:MA(CLOSE,30),LINETHICK2; 決策線:MA(CLOSE,60),LINETHICK1; 趨勢線:MA(CLOSE,120),LINETHICK2; 牛熊線:MA(CLOSE,250),LINETHICK3; STICKLINE(C/REF(C,1)>1.07,O,C,2,0),COLORRED; STICKLINE(REF(C,1)/C>1.07,O,C,2,0),COLOR00FF00; C2:=REF(C,1); 漲停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(漲停,OPEN,CLOSE,-1,0),COLORYELLOW; STICKLINE(漲停,H,L,0,0),COLORYELLOW; 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE; STICKLINE(跌停,H,L,0,1),COLORBLUE; 大陽線:=IF((C-C2)*100/C2>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0); STICKLINE(大陽線,OPEN,CLOSE,-1,0),COLORRED; STICKLINE(大陽線,H,L,0,1),COLORRED; 大陰線:=IF((C2-C)*100/C2>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0); STICKLINE(大陰線,OPEN,CLOSE,-1,0),COLORGREEN; STICKLINE(大陰線,H,L,0,1),COLORGREEN; TY:=C; AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10); AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10); 前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3; 前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3; DRAWICON(CROSS(MA(C,5),MA(C,24)) ,MA(C,5),1); W1:=C=HHV(C,20); W2:=BARSLAST(W1); W3:=IF(W2>0,REF(C,W2),REF(C,W2)); W4:=CROSS(C,REF(W3,1)); DRAWICON(W4 AND COUNT(W4,5)=1,LOW,3); BB:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); 分水嶺:=IF(MA(CLOSE,17)<BB,BB,MA(CLOSE,17)); 操作線:=分水嶺-(EMA(C,3)-分水嶺); DRAWTEXT(CROSS(分水嶺,操作線),分水嶺-0.5,'B'); MAJ2:=EMA(C,3); MAJ5:=EMA(C,7); MAJ13:=EMA(C,13); MAJ34:=EMA(C,34); MAJ55:=EMA(C,55); YCXJ:=MAJ5>=REF(MAJ5,1); H1:=MAX(MAX(MAJ5,MAJ13),MAJ34); L1:=MIN(MIN(MAJ5,MAJ13),MAJ34); DRAWTEXT(H1<C AND O<L1 AND YCXJ AND MAJ2>REF(MAJ2,1),LOW*0.96,'◇'); {回歸賣出圖標(biāo)} RSV回歸:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100; K回歸:=SMA(RSV回歸,3,1); D回歸:=SMA(K回歸,3,1); J回歸:=3*K回歸-2*D回歸; VAR回歸3:=(2*CLOSE+HIGH+LOW)/3;{可將3該為4,信號少點(diǎn)} VAR回歸4:=EMA(EMA(EMA(VAR回歸3,4),4),4);{可將3該為4,信號少點(diǎn)} E回歸:=(VAR回歸4-REF(VAR回歸4,1))/REF(VAR回歸4,1)*100; F回歸:=MA(E回歸,3)+0.03; G回歸:=MA(E回歸,1); DRAWICON(CROSS(F回歸,G回歸) AND J回歸>65,HIGH*1.02,15),COLORGREEN; {雙底買入部分} VAR10A:=IF(TROUGH(3,16,1)=0 AND HIGH>LOW+0.04,4,0); VAR11B:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3); VAR13C:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR15D:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR17E:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3); 買點(diǎn)1A:=VAR10A; 買點(diǎn)2A:=(VAR11B+VAR13C+VAR15D+VAR17E); 買入:=COUNT(買點(diǎn)1A OR 買點(diǎn)2A,15)=2 AND (買點(diǎn)1A OR 買點(diǎn)2A) AND COUNT(C/REF(C,1)>1.07,15)>=1; DRAWICON(買入,LOW*0.97,18); 黑馬邦主圖二 M1 2 1000 5 M2 2 1000 10 M3 2 1000 24 M4 2 1000 72 M5 2 1000 200 MA1:MA(CLOSE,M1); MA2:MA(CLOSE,M2); MA3:MA(CLOSE,M3); MA4:MA(CLOSE,M4); MA5:MA(CLOSE,M5); TY:=C; HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10); LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10); A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD)); T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ; T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD); 波浪頂:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK2; STICKLINE(T1,A,A,9,0),COLORFF00FF; 波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK2; VAR3:=LLV(HIGH,240); VAR4:=100*(CLOSE-VAR3)/VAR3; VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100; VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100; VAR7:=0; VAR8:=MA(HHV(CLOSE-REF(CLOSE,1),0),34)/MA(ABS(CLOSE-REF(CLOSE,1)),7)*100; VAR9:=MA(HHV(CLOSE-REF(CLOSE,1),0),13)/MA(ABS(CLOSE-REF(CLOSE,1)),13)*100; VARA:=BARSCOUNT(CLOSE); VARB:=VAR8<20 AND VAR9<23 AND VARA>35; VARC:=VARB AND COUNT(VARB,1)=1; VARD:=EMA(CLOSE,21)-EMA(CLOSE,8); VARE:=EMA(VARD,5); VARF:=TROUGH(3,6,1)<4 AND CROSS(VARD,VARE); VAR10:=IF(TROUGH(3,16,1)=0 AND HIGH>LOW+0.04,4,0); VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3); VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3); VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3); VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3); VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3); VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3); VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150); VAR1A:=EMA(VAR19,100); VAR1B:=2*(VAR19-VAR1A); VAR1C:=POW(VAR1B,3)*0.1+POW(VAR1B,1); VAR1D:=SQRT(SQRT(LOW*HIGH*O*CLOSE)); VAR1E:=EMA(VAR1D*0.97,3); VAR1F:=(HIGH+LOW+CLOSE)/3; VAR20:=(VAR1F-MA(VAR1F,14))/(0.015*AVEDEV(VAR1F,14)); VAR21:=CROSS(VAR1E,LOW); 買點(diǎn)1:=VAR10; 買點(diǎn)2:=(VAR11+VAR13+VAR15+VAR17); 賣點(diǎn)1:=(VAR12+VAR14+VAR16+VAR18),LINETHICK2; VAR22:=買點(diǎn)1 AND VARF AND VARC AND VAR21 AND VAR4<0 AND VAR5=0 AND VAR6=0 AND VAR20<(-110); VAR1:=MA(CLOSE,5); VAR2:=MA(CLOSE,10); VAR31:=MA(CLOSE,30); VARB1:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28); VARC1:=INTPART(VARB1*100)/100; VARD1:=EMA(CLOSE,5)-EMA(CLOSE,10); VARE1:=EMA(VARD1,9); VAR131:=REF(VARE1,1); VAR141:=VARE1; VAR151:=VAR141-VAR131; VAR161:=REF(VARD1,1); VAR171:=VARD1; VAR181:=VAR171-VAR161; VAR191:=O; VAR1A1:=CLOSE; DRAWTEXT(買點(diǎn)1>0,L-0.01,'▲'),COLORRED; DRAWTEXT(買點(diǎn)2>0,L-0.01,'▲'),COLORFF00FF; DRAWTEXT(賣點(diǎn)1>0,H+0.1,'▼'), COLOR33FF33; STICKLINE(C/REF(C,1)>1.07,O,C,2,0),COLORRED; STICKLINE(REF(C,1)/C>1.07,O,C,2,0),COLOR00FF00; C2:=REF(C,1); 漲停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(漲停,OPEN,CLOSE,-1,0),COLORYELLOW; STICKLINE(漲停,H,L,0,0),COLORYELLOW; 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE; STICKLINE(跌停,H,L,0,1),COLORBLUE; 大陽線:=IF((C-C2)*100/C2>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0); STICKLINE(大陽線,OPEN,CLOSE,-1,0),COLORRED; STICKLINE(大陽線,H,L,0,1),COLORRED; 大陰線:=IF((C2-C)*100/C2>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0); STICKLINE(大陰線,OPEN,CLOSE,-1,0),COLORGREEN; STICKLINE(大陰線,H,L,0,1),COLORGREEN; DRAWICON(CROSS(MA(C,5),MA(C,24)) ,MA(C,5),1); W1:=C=HHV(C,20); W2:=BARSLAST(W1); W3:=IF(W2>0,REF(C,W2),REF(C,W2)); W4:=CROSS(C,REF(W3,1)); DRAWICON(W4 AND COUNT(W4,5)=1,LOW,3); BB:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); 分水嶺:=IF(MA(CLOSE,17)<BB,BB,MA(CLOSE,17)); 操作線:=分水嶺-(EMA(C,3)-分水嶺); DRAWTEXT(CROSS(分水嶺,操作線),分水嶺-0.5,'B'); MAJ2:=EMA(C,3); MAJ5:=EMA(C,7); MAJ13:=EMA(C,13); MAJ34:=EMA(C,34); MAJ55:=EMA(C,55); YCXJ:=MAJ5>=REF(MAJ5,1); H1:=MAX(MAX(MAJ5,MAJ13),MAJ34); L1:=MIN(MIN(MAJ5,MAJ13),MAJ34); DRAWTEXT(H1<C AND O<L1 AND YCXJ AND MAJ2>REF(MAJ2,1),LOW*0.96,'◇'); {回歸賣出圖標(biāo)} RSV回歸:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100; K回歸:=SMA(RSV回歸,3,1); D回歸:=SMA(K回歸,3,1); J回歸:=3*K回歸-2*D回歸; VAR回歸3:=(2*CLOSE+HIGH+LOW)/3;{可將3該為4,信號少點(diǎn)} VAR回歸4:=EMA(EMA(EMA(VAR回歸3,4),4),4);{可將3該為4,信號少點(diǎn)} E回歸:=(VAR回歸4-REF(VAR回歸4,1))/REF(VAR回歸4,1)*100; F回歸:=MA(E回歸,3)+0.03; G回歸:=MA(E回歸,1); DRAWICON(CROSS(F回歸,G回歸) AND J回歸>65,HIGH*1.02,15),COLORGREEN; {雙底買入部分} VAR10A:=IF(TROUGH(3,16,1)=0 AND HIGH>LOW+0.04,4,0); VAR11B:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3); VAR13C:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR15D:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR17E:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3); 買點(diǎn)1A:=VAR10A; 買點(diǎn)2A:=(VAR11B+VAR13C+VAR15D+VAR17E); 買入:=COUNT(買點(diǎn)1A OR 買點(diǎn)2A,15)=2 AND (買點(diǎn)1A OR 買點(diǎn)2A) AND COUNT(C/REF(C,1)>1.07,15)>=1; DRAWICON(買入,LOW*0.97,18); 黑馬邦量 VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0; VOLUME:VOL,VOLSTICK; AA:=VOL>=REF(V,1)*1.91 && C>REF(C,1); AA1:=VOL<REF(LLV(VOL,21),1); AA2:=VOL<REF(LLV(VOL,55),1); AA3:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.05; STICKLINE(AA,0,V,1,0),COLORYELLOW; STICKLINE(AA1,0,V,1,0),COLORGREEN; STICKLINE(AA2,0,V,1,0),COLORMAGENTA; STICKLINE(AA3,0,V,1,0),COLORWHITE; MV1:MA(VOL,5); MV2:MA(VOL,10); MV3:MA(VOL,60); DRAWICON(CROSS(MV1,MV3) ,MV1,1); DRAWICON(CROSS(MV3,MV1) ,MV1,3); 色彩MACD SHORT 2.00 200.00 12.00 LONG 2.00 200.00 26.00 MID 2.00 200.00 9.00 DIFF:EMA(CLOSE,12) - EMA(CLOSE,26); DEA:EMA(DIFF,9); MACD : 2*(DIFF-DEA), COLORSTICK; STICKLINE(ABS((MACD-REF(MACD,1)))/ABS(REF(MACD,1))<=0.01 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORMAGENTA; STICKLINE((MACD-REF(MACD,1))/ABS(REF(MACD,1))>0.01,0,MACD,1,0),COLORRED; STICKLINE(MACD<REF(MACD,1),0,MACD,1,0),COLOR00FF00; DRAWICON(CROSS(DIFF,DEA) ,DEA,1); QZQ:=BARSLAST(REF(MACD,1)<0 AND MACD>0); QM:=LLVBARS(MACD,QZQ+20); MQDZ:=IF(QM>QZQ,REF(MACD,QM),0); QF:=LLVBARS(DIFF,QZQ+20); DQDZ:=IF(QF>QZQ,REF(DIFF,QF),0); XG1:=MACD<0 AND MACD>MQDZ AND DIFF<0 AND DIFF>DQDZ AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ<0 AND DQDZ<0; XG2:=REF(XG1,1)=1 AND MACD>REF(MACD,1); XG3:=MACD<0 AND MACD>MQDZ AND CLOSE=LLV(CLOSE,QZQ+20) AND MQDZ<0; XG4:=REF(XG3,1)=1 AND MACD>REF(MACD,1); DRAWICON(XG2,DEA*1.1,18); DRAWICON(XG4,DEA*1.1,17); 操盤主圖 回歸斜率線A:=EMA(SLOPE(C,4)*20+C,42); 經(jīng)典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 經(jīng)典K:=SMA(經(jīng)典RL,3,1); 經(jīng)典D:=SMA(經(jīng)典K,3,1); 經(jīng)典J:=3*經(jīng)典K-2*經(jīng)典D; MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))); MAHL2:=IF(EMA(C,2)>回歸斜率線A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A} MAHL3:=IF(EMA(C,2)>回歸斜率線A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A} 回歸斜率帶:DRAWBAND(回歸斜率線A,RGB(235,0,230),REF(回歸斜率線A,2),RGB(0,104,154)); 上線:=SMA(C,6.5,1); 一號支撐線:SMA(C,14.5,1); 上線1:=SMA(C,3,1); 一號支撐線1:=SMA(C,8,1); 上線2:=SMA(C,3.5,1); DRAWTEXT(CROSS(一號支撐線1,上線1),H*1.08,'壓力'),COLOR00FF00; BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4; UPR:=BBI+3*STD(BBI,13),LINETHICK2; DWN:=BBI-3*STD(BBI,13); 安全:=MA(CLOSE,55),LINETHICK2; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT( CROSS(82,RSI) AND CLOSE<上線1 , HIGH*1.04,'壓力線') ,COLORFF9966,LINETHICK2; A7:=(2*C+H+L)/4; 操作:MA(A7,5),COLORBLUE,LINETHICK2; 操作1:=MA(A7,5)*1.03,LINETHICK2; 操作2:=MA(A7,5)*0.97,LINETHICK2; DRAWTEXT( CROSS(上線1,上線) AND 上線1>操作,LOW *0.92,'買進(jìn)' ),COLORYELLOW; VAR1:LLV(A7,21); VAR2:HHV(A7,30); DRAWTEXT( CROSS(上線1,操作) AND 上線1<一號支撐線 AND 上線1<一號支撐線1 AND 上線1<上線 AND CLOSE>VAR1,LOW *0.98,'見底' ),COLORYELLOW; YCX:=操作>=REF(操作,1); H1:=MAX(MAX(上線,一號支撐線1),一號支撐線); L1:=MIN(MIN(上線,一號支撐線1),一號支撐線); DRAWTEXT(CROSS(上線1,一號支撐線1) AND 上線1>操作 ,LOW *0.98,'全倉' ),COLORYELLOW; SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7); SD:=EMA(0.667*REF(SK,1)+0.333*SK,5); M1:=1000*操作/一號支撐線<=1015 AND 1000*操作/一號支撐線>=975; M2:=1000*一號支撐線1/一號支撐線<=1020 AND 一號支撐線1/一號支撐線>=980; M3:=1000*上線/一號支撐線<=1015 AND 上線/一號支撐線>=985; DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW*0.94,'買進(jìn)') ,COLORYELLOW; D:=MA(CLOSE,89)-MA(CLOSE,10)/3; DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN; RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100; K:=SMA(RSV,3,1); D1:=SMA(K,3,1); J:=3*K-2*D1; VAR3:=(2*CLOSE+HIGH+LOW)/3;{可將3該為4,信號少點(diǎn)} VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可將3該為4,信號少點(diǎn)} E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100; F:=MA(E,3)+0.03; G:=MA(E,1); DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN; DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW; DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上線1,操作) AND LOW>VAR1 AND 上線1>一號支撐線 AND J<90,LOW *0.9,'主升' ),COLORRED; DRAWTEXT( CROSS(上線1,操作) AND M1 AND M2 AND M3,LOW *0.94,'買進(jìn)' ),COLORYELLOW; DRAWTEXT(CLOSE>OPEN AND 上線>一號支撐線1 AND 一號支撐線1>一號支撐線 AND CLOSE>MA(CLOSE,一號支撐線) AND 操作>=REF(CLOSE,操作) AND CROSS(上線1,操作) AND LOW>VAR1 AND J<90,LOW *0.9,'主升' ),COLORRED; DRAWTEXT(CLOSE>OPEN AND 操作>上線 AND 上線>一號支撐線1 AND 一號支撐線1>一號支撐線 AND CROSS(上線1,操作) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩買進(jìn)' ),COLORRED; DRAWTEXT(CLOSE>OPEN AND CROSS(上線,一號支撐線) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩買進(jìn)' ),COLORRED; STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED; STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{紅K}; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{紅K}; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF; STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999; STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF; STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN; STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00; STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000; STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000; STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400; STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800; STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,3.2,0),COLORBB00FF; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.7,0),COLORFF33FF; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF; 操盤副圖 回歸斜率線A:=EMA(SLOPE(C,4)*20+C,42); 經(jīng)典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 經(jīng)典K:=SMA(經(jīng)典RL,3,1); 經(jīng)典D:=SMA(經(jīng)典K,3,1); 經(jīng)典J:=3*經(jīng)典K-2*經(jīng)典D; MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))); MAHL2:=IF(EMA(C,2)>回歸斜率線A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A} MAHL3:=IF(EMA(C,2)>回歸斜率線A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A} 回歸斜率帶:DRAWBAND(回歸斜率線A,RGB(235,0,230),REF(回歸斜率線A,2),RGB(0,104,154)); 上線:=SMA(C,6.5,1); 一號支撐線:SMA(C,14.5,1); 上線1:=SMA(C,3,1); 一號支撐線1:=SMA(C,8,1); 上線2:=SMA(C,3.5,1); DRAWTEXT(CROSS(一號支撐線1,上線1),H*1.08,'壓力'),COLOR00FF00; BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4; UPR:=BBI+3*STD(BBI,13),LINETHICK2; DWN:=BBI-3*STD(BBI,13); 安全:=MA(CLOSE,55),LINETHICK2; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT( CROSS(82,RSI) AND CLOSE<上線1 , HIGH*1.04,'壓力線') ,COLORFF9966,LINETHICK2; A7:=(2*C+H+L)/4; 操作:MA(A7,5),COLORBLUE,LINETHICK2; 操作1:=MA(A7,5)*1.03,LINETHICK2; 操作2:=MA(A7,5)*0.97,LINETHICK2; DRAWTEXT( CROSS(上線1,上線) AND 上線1>操作,LOW *0.92,'買進(jìn)' ),COLORYELLOW; VAR1:LLV(A7,21); VAR2:HHV(A7,30); DRAWTEXT( CROSS(上線1,操作) AND 上線1<一號支撐線 AND 上線1<一號支撐線1 AND 上線1<上線 AND CLOSE>VAR1,LOW *0.98,'見底' ),COLORYELLOW; YCX:=操作>=REF(操作,1); H1:=MAX(MAX(上線,一號支撐線1),一號支撐線); L1:=MIN(MIN(上線,一號支撐線1),一號支撐線); DRAWTEXT(CROSS(上線1,一號支撐線1) AND 上線1>操作 ,LOW *0.98,'全倉' ),COLORYELLOW; SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7); SD:=EMA(0.667*REF(SK,1)+0.333*SK,5); M1:=1000*操作/一號支撐線<=1015 AND 1000*操作/一號支撐線>=975; M2:=1000*一號支撐線1/一號支撐線<=1020 AND 一號支撐線1/一號支撐線>=980; M3:=1000*上線/一號支撐線<=1015 AND 上線/一號支撐線>=985; DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND OPEN>REF(CLOSE,1),1,0),LOW*0.94,'買進(jìn)') ,COLORYELLOW; D:=MA(CLOSE,89)-MA(CLOSE,10)/3; DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW*0.88,'抄底'),COLORBROWN; RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100; K:=SMA(RSV,3,1); D1:=SMA(K,3,1); J:=3*K-2*D1; VAR3:=(2*CLOSE+HIGH+LOW)/3;{可將3該為4,信號少點(diǎn)} VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可將3該為4,信號少點(diǎn)} E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100; F:=MA(E,3)+0.03; G:=MA(E,1); DRAWICON(CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN; DRAWICON(CROSS(G,F),LOW *0.9,9),COLORYELLOW; DRAWTEXT(CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND CROSS(上線1,操作) AND LOW>VAR1 AND 上線1>一號支撐線 AND J<90,LOW *0.9,'主升' ),COLORRED; DRAWTEXT( CROSS(上線1,操作) AND M1 AND M2 AND M3,LOW *0.94,'買進(jìn)' ),COLORYELLOW; DRAWTEXT(CLOSE>OPEN AND 上線>一號支撐線1 AND 一號支撐線1>一號支撐線 AND CLOSE>MA(CLOSE,一號支撐線) AND 操作>=REF(CLOSE,操作) AND CROSS(上線1,操作) AND LOW>VAR1 AND J<90,LOW *0.9,'主升' ),COLORRED; DRAWTEXT(CLOSE>OPEN AND 操作>上線 AND 上線>一號支撐線1 AND 一號支撐線1>一號支撐線 AND CROSS(上線1,操作) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩買進(jìn)' ),COLORRED; DRAWTEXT(CLOSE>OPEN AND CROSS(上線,一號支撐線) AND LOW>VAR1 AND J<90,LOW *0.86,'回踩買進(jìn)' ),COLORRED; STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORRED; STICKLINE(C<O AND C>REF(C,1),C,O,3,0),COLORFFCC00; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,3,0 ),COLOR000055;{紅K}; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.7,0 ),COLOR000077;{紅K}; STICKLINE(CLOSE> REF(CLOSE,1) AND C>O ,OPEN,CLOSE,2.1,0 ),COLOR000099; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF; STICKLINE(CLOSE= REF(CLOSE,1) ,H,L,3,1 ),COLOR999999; STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,0 ),COLORWHITE; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD; STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF; STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN; STICKLINE(C<REF(C,1) AND C>O,C,O,3,0),COLORFFCC00; STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,3,0 ),COLOR990000; STICKLINE(C<REF(C,1) AND C<O ,OPEN,CLOSE,2.7,0 ),COLORCC0000; STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400; STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800; STICKLINE(CLOSE< REF(C,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,3.2,0),COLORBB00FF; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.7,0),COLORFF33FF; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,2.1,0), COLORFF66FF; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,1.5,0),COLORFF99FF; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.9,0),COLORFFBBFF; STICKLINE(CROSS(J,D1) AND J<70,CLOSE,OPEN,0.3,0),COLORFFDDFF; KDJ優(yōu)化 VARR1:=(SUM(H,8)-SUM(L,8))/2; RSVC:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 白馬:=SMA(RSVC,3,1); DC:=SMA(白馬,3,1),LINETHICK1; 黑馬:3*白馬-2*DC,COLORMAGENTA,LINETHICK2; 強(qiáng)勢區(qū):80,COLORMAGENTA,LINETHICK1; 平衡:=50,COLORRED,LINETHICK1; 弱勢區(qū):20,COLORGREEN,LINETHICK1; 主力線:WINNER(C)*100,COLORRED,LINETHICK2; RSV:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100; HM:=SMA(RSV,3,1),COLORWHITE; D1:=SMA(HM,3,1),COLORYELLOW; K1:=SMA(RSV,10,1),COLORWHITE; D:=SMA(K1,10,1),COLORRED; TT:=3*HM-2*D1,COLORYELLOW; 壓力線:REF(HHV(HM,20),20),COLORYELLOW; 量能飽和:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100,COLORLIMAGENTA,NODRAW; AA:=CROSS(黑馬,強(qiáng)勢區(qū)) AND CROSS(黑馬,平衡) AND C>EXPMA(C,12) AND C/REF(C,1)>1.04; BB:=CROSS(黑馬,平衡) AND CROSS(黑馬,20); CC:=黑馬-REF(黑馬,1)>30 AND C/REF(C,1)>1.05; DD:=CROSS(TT,HM) AND TT>壓力線 AND 黑馬>REF(黑馬,1) AND DYNAINFO(7)/REF(C,1)>=1.045; DRAWICON(CROSS(黑馬,強(qiáng)勢區(qū)) AND C>EXPMA(CLOSE,12) AND CC OR AA{ OR DD} OR 量能飽和=100 AND CROSS(黑馬,強(qiáng)勢區(qū)) OR CROSS(黑馬,強(qiáng)勢區(qū)) AND EXPMA(CLOSE,12)>EXPMA(CLOSE,50) AND "MACD.MACD">REF("MACD.MACD",1),75,1); DRAWICON(BB,40,1); 工作線:=EXPMA(CLOSE,12); 生命線:=EXPMA(CLOSE,50); 走出短線強(qiáng)勢區(qū):=CROSS(78,"KDJ.J") AND 工作線>生命線 AND "MACD.DIF">"MACD.DEA" AND MA(C,5)>MA(C,30); 強(qiáng)勢低吸:=工作線>生命線 AND CROSS("KDJ.J",20); DRAWICON(走出短線強(qiáng)勢區(qū),85,2); 抬頭:="KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2) AND REF("KDJ.J",1)>REF("KDJ.D",1) AND "MACD.MACD">0; 金叉:=CROSS("KDJ.J","KDJ.D") AND MA(C,10)>MA(C,25) AND MA(C,25)>REF(MA(C,25),1) AND "MACD.MACD">0; DRAWICON( 強(qiáng)勢低吸,15,1); {DRAWICON(AA OR BB,50,1);} DRAWICON(CC OR AA,25,1); DRAWTEXT(強(qiáng)勢低吸,15,'低吸'),COLORF00FF0; DRAWTEXT(走出短線強(qiáng)勢區(qū),95,'高拋'),COLORGREEN; DRAWTEXT(DD OR 量能飽和=100 AND CROSS(黑馬,82) AND DYNAINFO(7)/REF(C,1)>=1.043 OR CROSS(黑馬,82) AND EXPMA(CLOSE,12)>EXPMA(CLOSE,50) AND DYNAINFO(7)/REF(C,1)>=1.043,55,'買'),COLORF00FF0; STICKLINE(黑馬>=80,80,(黑馬*0.98),1,1),COLORMAGENTA; STICKLINE(黑馬<20,20,黑馬+1,1,1),COLORBLUE; 籌碼線 VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); OBV:SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); OBV1:MA(OBV,10); IF(OBV>REF(OBV,1),OBV,DRAWNULL), COLORRED, LINETHICK2; IF(OBV<=REF(OBV,1),OBV,DRAWNULL), COLORGREEN, LINETHICK2; IF(OBV1>REF(OBV1,1),OBV1,DRAWNULL), COLORRED, LINETHICK3; IF(OBV1<=REF(OBV1,1),OBV1,DRAWNULL), COLORGREEN, LINETHICK3; 動(dòng)向流 N 2.00 20.00 4.00 動(dòng)向流:(MA(CLOSE,2)-REF(MA(CLOSE,2),N))/REF(MA(CLOSE,2),N),COLORFFFF00; PLOYLINE(1,MA(動(dòng)向流,2)),COLORFFFF00; PLOYLINE(1,MA(動(dòng)向流,4)),COLORFFD800; PLOYLINE(1,MA(動(dòng)向流,6)),COLORFFA600; PLOYLINE(1,MA(動(dòng)向流,8)),COLORFF6800; PLOYLINE(1,MA(動(dòng)向流,10)),COLORFF3800; PLOYLINE(1,MA(動(dòng)向流,12)),COLORD1FF00; PLOYLINE(1,MA(動(dòng)向流,14)),COLORABFF00; PLOYLINE(1,MA(動(dòng)向流,16)),COLOR68FF00; PLOYLINE(1,MA(動(dòng)向流,18)),COLOR3EFF00; PLOYLINE(1,MA(動(dòng)向流,20)),COLORFF8CFF; PLOYLINE(1,MA(動(dòng)向流,22)),COLORC88CFF; PLOYLINE(1,MA(動(dòng)向流,24)),COLORC854FF; PLOYLINE(1,MA(動(dòng)向流,26)),COLOR7354FF; PLOYLINE(1,MA(動(dòng)向流,28)),COLOR7F00FF; PLOYLINE(1,MA(動(dòng)向流,30)),COLOR0000FF; 布過昨高 B:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); 分水嶺:=IF(MA(CLOSE,17)<B,B,MA(CLOSE,17)); 操作線:=分水嶺-(EMA(C,3)-分水嶺); CROSS(分水嶺,操作線) AND C>REF(H,1); 高開二點(diǎn) O/REF(C,1)*100-100>2; 波段精典 VAR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100; 套牢籌碼:SMA(VAR1,3,1)/28.57,COLORFF00FF,LINETHICK2; VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57; 股:EMA(VAR3,5),COLORFFCCCC,POINTDOT; 操盤:3*VAR3-2*股,COLORRED,POINTDOT; 強(qiáng)弱分界:1.75,COLORFFCC66,POINTDOT; 底:0,COLORWHITE,POINTDOT; 頂預(yù)警:3.2,COLOR00DD00,POINTDOT; 底預(yù)警:0.3,COLOR0099FF,POINTDOT; 頂:3.5,COLORRED,POINTDOT; STICKLINE(操盤>股,操盤,股,1,1),COLORRED; STICKLINE(操盤<股,股,操盤,1,1),COLOR00DD00; STICKLINE(操盤>頂預(yù)警,操盤,頂預(yù)警,1,1),COLORYELLOW; STICKLINE(操盤>頂,操盤,頂,1,1),COLOR00DD00; STICKLINE(操盤<底預(yù)警,操盤,底預(yù)警,1,1),COLORFF00FF; STICKLINE(操盤<底,操盤,底,1,1),COLORFFCC66; A1:=CROSS(操盤,VAR3) AND VAR3<2.1 AND C>O; STICKLINE(A1,0,0.90,1,1),COLORYELLOW; A2:=CROSS(操盤,VAR3) AND VAR3>2.2; DRAWICON(A2,VAR3,1); 股市黑火藥 一硝:(HHV(HIGH,9)+LLV(LOW,9))/2,COLORRED; 二黃:(HHV(HIGH,26)+LLV(LOW,26))/2,COLORYELLOW; 硝酸鉀:=MA(C,3); 硫磺:=MA(硝酸鉀,5); 木炭:=MA(硝酸鉀,60); 三木炭:=3*木炭-2*硫磺; AA:=CROSS(二黃,三木炭); BB:=CROSS(一硝,二黃); DRAWTEXT(BB,二黃,'火'),COLORRED; DRAWTEXT(AA,二黃,'黑火藥'),COLORWHITE; 強(qiáng)式指標(biāo) YS:=(C-L)/(H-L)*100; X:=HHV(H,5)-REF(O,5); Y:=C-LLV(L,5); Z:=(HHV(H,5)-LLV(L,5))*2; BD:=(X+Y)/Z*100; CROSS(YS,BD) AND BD>REF(BD,1); 動(dòng)態(tài)高低點(diǎn) 來勢線: EMA(CLOSE,7)-EMA(CLOSE,21),COLORYELLOW; 福星: EMA(來勢線,7), COLORSTICK,COLORRED; VAR1:=CLOSE/REF(LLV(LOW,35),5)< 1; 決策: IF(VAR1,0.5,0), STICK,COLORBLUE; 必買: IF(TROUGHBARS(3,15,1)=0 AND HIGH>LOW+0.01,1,-1),COLORYELLOW ,LINETHICK1 ; 必賣: IF(PEAKBARS(3,15,1)=1,1,2),COLORWHITE,LINETHICK1; 趨勢線: (EMA(WINNER(CLOSE),7)-EMA(WINNER(CLOSE),35))*5,COLORRED; 逃頂線: EMA(CLOSE/REF(HHV(CLOSE,7),50),1),COLOR007000 ,LINETHICK1 ; AA:0,COLORBROWN; 操盤線 主圖 MA5:MA(CLOSE,5),LINETHICK1,COLORFFFFFF;MA10:MA(CLOSE,10),LINETHICK1,COLOR00FFFF; MA30:MA(CLOSE,30),LINETHICK1,COLORFF00FF;MA60:MA(CLOSE,60),LINETHICK1,COLOR0000FF; MA120:MA(CLOSE,120),LINETHICK1,COLORFFFF00; DRAWTEXT(CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),(LOW * 0.99),'Ψ'),LINETHICK3,COLORF00FF0; DRAWTEXT(CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2)),(HIGH * 1.01),'◎'),LINETHICK3,COLORFFFFFF; STICKLINE((EMA(CLOSE,2) >= EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLOR0000FF; STICKLINE((EMA(CLOSE,2) >= EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLOR0000AA; STICKLINE((EMA(CLOSE,2) >= EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLOR0000CC; STICKLINE((EMA(CLOSE,2) < EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLORCCCC00; STICKLINE((EMA(CLOSE,2) < EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLORAAAA00; STICKLINE((EMA(CLOSE,2) < EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLORFFFF00; STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)) OR CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),LOW,HIGH,0.1,0),COLOR00FFFF; STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)) OR CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,3,0),COLOR00AAAA; STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)) OR CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,2,0),COLOR00CCCC; 波段AA A4:=MA(CLOSE,20);A5:=(CLOSE>MA(CLOSE,5));A6:=(MA(CLOSE,5)>MA(CLOSE,10)); A7:=(CLOSE>MA(CLOSE,10));A8:=(MA(CLOSE,5)>MA(CLOSE,20));A9:=(CLOSE>MA (CLOSE,20));A10:=REF(A4,1);A11:=(A4 > A10);AVX:(((((IF(A5,10,(0 - 10)) + IF (A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10, (0 - 10))) + IF(A11,10,(0 - 10))),COLOR0000FF;AVX零軸:0,COLOR00FFFF; 能量信號 PW:=((VOL*(CLOSE-OPEN))/(CLOSE+OPEN));PW1:=EMA(((VOL*(CLOSE-OPEN))/(CLOSE+OPEN)),38); ME:EMA(PW1,8),COLORSTICK;ME1:MA(ME,3),COLORYELLOW;ME2:MA(ME,10),COLORMAGENTA; 和諧一號 VAR1:=(2*CLOSE+HIGH+LOW)/4; VAR2:=LLV(LOW,34); VAR3:=HHV(HIGH,34); 運(yùn)鈔專列: EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13); 和諧一號:= EMA(0.667*REF(運(yùn)鈔專列,1)+0.333*運(yùn)鈔專列,2); 眾贏一號:和諧一號; X1:STICKLINE(CROSS(運(yùn)鈔專列,20) AND 和諧一號<運(yùn)鈔專列,運(yùn)鈔專列+19,運(yùn)鈔專列-10,4,1),COLORRED; X2:DRAWTEXT(CROSS(運(yùn)鈔專列,20) AND 和諧一號<運(yùn)鈔專列,運(yùn)鈔專列-5,'眾贏貴賓建倉 '), LINETHICK3, COLORMAGENTA ; 金磚:STICKLINE(和諧一號<運(yùn)鈔專列,運(yùn)鈔專列,和諧一號,2.5,1),COLORRED; 瓦礫:STICKLINE(和諧一號>運(yùn)鈔專列,運(yùn)鈔專列,和諧一號,2.5,1),COLORBLUE; 選股:=CROSS(運(yùn)鈔專列,30) AND 和諧一號<運(yùn)鈔專列; 一叉:DRAWICON(CROSS(運(yùn)鈔專列,和諧一號),和諧一號,5); 二叉:DRAWICON(CROSS(和諧一號,運(yùn)鈔專列),和諧一號,15); 漲停操盤線 MA5:MA(CLOSE,5),LINETHICK1,COLORFFFFFF;MA10:MA(CLOSE,10),LINETHICK1,COLOR00FFFF; MA30:MA(CLOSE,30),LINETHICK1,COLORFF00FF;MA60:MA(CLOSE,60),LINETHICK1,COLOR0000FF; MA120:MA(CLOSE,120),LINETHICK1,COLORFFFF00; DRAWTEXT(CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),(LOW * 0.99),'Ψ'),LINETHICK3,COLORF00FF0; DRAWTEXT(CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2)),(HIGH * 1.01),'◎'),LINETHICK3,COLORFFFFFF; STICKLINE((EMA(CLOSE,2) >= EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLOR0000FF; STICKLINE((EMA(CLOSE,2) >= EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLOR0000AA; STICKLINE((EMA(CLOSE,2) >= EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLOR0000CC; STICKLINE((EMA(CLOSE,2) < EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,2,0),COLORCCCC00; STICKLINE((EMA(CLOSE,2) < EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),CLOSE,OPEN,3,0),COLORAAAA00; STICKLINE((EMA(CLOSE,2) < EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)),LOW,HIGH,0.1,0),COLORFFFF00; STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)) OR CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),LOW,HIGH,0.1,0),COLOR00FFFF; STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)) OR CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,3,0),COLOR00AAAA; STICKLINE((CROSS(EMA(CLOSE,2),EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42)) OR CROSS(EMA(((SLOPE(CLOSE,21)*20)+CLOSE),42),EMA(CLOSE,2))),OPEN,CLOSE,2,0),COLOR00CCCC; 漲停波段 A4:=MA(CLOSE,20);A5:=(CLOSE>MA(CLOSE,5));A6:=(MA(CLOSE,5)>MA(CLOSE,10)); A7:=(CLOSE>MA(CLOSE,10));A8:=(MA(CLOSE,5)>MA(CLOSE,20));A9:=(CLOSE>MA (CLOSE,20));A10:=REF(A4,1);A11:=(A4 > A10);AVX:(((((IF(A5,10,(0 - 10)) + IF (A6,10,(0 - 10))) + IF(A7,10,(0 - 10))) + IF(A8,10,(0 - 10))) + IF(A9,10, (0 - 10))) + IF(A11,10,(0 - 10))),COLOR0000FF;AVX零軸:0,COLOR00FFFF; 漲停能量 PW:=((VOL*(CLOSE-OPEN))/(CLOSE+OPEN));PW1:=EMA(((VOL*(CLOSE-OPEN))/(CLOSE+OPEN)),38); ME:EMA(PW1,8),COLORSTICK;ME1:MA(ME,3),COLORYELLOW;ME2:MA(ME,10),COLORMAGENTA; 起爆 VARR1:=(SUM(H,8)-SUM(L,8))/2; RSVC:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; KC:=SMA(RSVC,3,1); DC:=SMA(KC,3,1); JC:=3*KC-2*DC,COLORRED,LINETHICK1; 強(qiáng)勢:=80,COLORMAGENTA,LINETHICK1; 平衡:=50,COLORRED,LINETHICK1; 弱勢:=20,COLORBLUE,LINETHICK1; RSV:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100; K:=SMA(RSV,3,1),COLORWHITE; D1:=SMA(K,3,1),COLORYELLOW; K1:=SMA(RSV,10,1),COLORWHITE; D:=SMA(K1,10,1),COLORRED; J:=3*K-2*D1,COLORFF00FF; 壓力線:=REF(HHV(K,20),20),COLORYELLOW; AA:=CROSS(JC,強(qiáng)勢) AND CROSS(JC,平衡){ AND J>壓力線} AND C/REF(C,1)>1.05; BB:=CROSS(JC,平衡) AND CROSS(JC,20){ AND J>壓力線} AND C/REF(C,1)>1.05; 起跳1:=CROSS(JC,強(qiáng)勢) AND C>EXPMA(CLOSE,12) AND JC-REF(JC,1)>30 OR AA; 起跳2:=CROSS(JC,20) AND MA(C,5)>MA(C,30) AND C/REF(C,1)>1.014 OR BB; 起跳3:=CROSS(JC,平衡) AND C>EXPMA(C,12) AND C/REF(C,1)>1.014; 起跳4:=AA AND C>EXPMA(C,12) AND C/REF(C,1)>1.014; 起跳5:=BB AND C/REF(C,1)>1.014; 起跳6:=JC-REF(JC,1)>30 AND C/REF(C,1)>1.05{ AND J>壓力線}; {紅三兵:=CROSS(JC,80) AND REF(CROSS(JC,50),1) AND REF(CROSS(JC,20),2) AND C/REF(C,1)>1.014;} AA OR BB OR 起跳6{ OR 紅三兵}; 黑馬邦主圖三 攻擊線:MA(CLOSE,5),LINETHICK1; 操盤線:MA(CLOSE,10),LINETHICK1; 魔鬼線:MA(CLOSE,20),LINETHICK1; 生命線:MA(CLOSE,30),LINETHICK2; 決策線:MA(CLOSE,60),LINETHICK1; 趨勢線:MA(CLOSE,120),LINETHICK2; 牛熊線:MA(CLOSE,250),LINETHICK3; STICKLINE(C/REF(C,1)>1.07,O,C,2,0),COLORRED; STICKLINE(REF(C,1)/C>1.07,O,C,2,0),COLOR00FF00; C2:=REF(C,1); 漲停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(漲停,OPEN,CLOSE,-1,0),COLORYELLOW; STICKLINE(漲停,H,L,0,0),COLORYELLOW; 跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0); STICKLINE(跌停,OPEN,CLOSE,-1,0),COLORBLUE; STICKLINE(跌停,H,L,0,1),COLORBLUE; 大陽線:=IF((C-C2)*100/C2>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0) OR IF((C-O)*100/O>=5,1,0)&&IF((C-C2)*100/C2<(10-0.01*100/C2),1,0); STICKLINE(大陽線,OPEN,CLOSE,-1,0),COLORRED; STICKLINE(大陽線,H,L,0,1),COLORRED; 大陰線:=IF((C2-C)*100/C2>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0) OR IF((O-C)*100/O>=5,1,0)&&IF((C2-C)*100/C2<(10-0.01*100/C2),1,0); STICKLINE(大陰線,OPEN,CLOSE,-1,0),COLORGREEN; STICKLINE(大陰線,H,L,0,1),COLORGREEN; TY:=C; AA1:=REF(TY,10)=HHV(TY,2*10+1); BB1:=FILTER(AA1,10); C1:=BACKSET(BB1,10+1); HD:=FILTER(C1,10); AA2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(AA2,10); CC2:=BACKSET(B2,10+1); LD:=FILTER(CC2,10); 前期高位:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT,LINETHICK3; 前期低位:REF(L,BARSLAST(LD)),COLORFF00FF,POINTDOT,LINETHICK3; DRAWICON(CROSS(MA(C,5),MA(C,24)) ,MA(C,5),1); W1:=C=HHV(C,20); W2:=BARSLAST(W1); W3:=IF(W2>0,REF(C,W2),REF(C,W2)); W4:=CROSS(C,REF(W3,1)); DRAWICON(W4 AND COUNT(W4,5)=1,LOW,3); BB:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1); 分水嶺:=IF(MA(CLOSE,17)<BB,BB,MA(CLOSE,17)); 操作線:=分水嶺-(EMA(C,3)-分水嶺); DRAWTEXT(CROSS(分水嶺,操作線),分水嶺-0.5,'B'); MAJ2:=EMA(C,3); MAJ5:=EMA(C,7); MAJ13:=EMA(C,13); MAJ34:=EMA(C,34); MAJ55:=EMA(C,55); YCXJ:=MAJ5>=REF(MAJ5,1); H1:=MAX(MAX(MAJ5,MAJ13),MAJ34); L1:=MIN(MIN(MAJ5,MAJ13),MAJ34); DRAWTEXT(H1<C AND O<L1 AND YCXJ AND MAJ2>REF(MAJ2,1),LOW*0.96,'◇'); {回歸賣出圖標(biāo)} RSV回歸:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100; K回歸:=SMA(RSV回歸,3,1); D回歸:=SMA(K回歸,3,1); J回歸:=3*K回歸-2*D回歸; VAR回歸3:=(2*CLOSE+HIGH+LOW)/3;{可將3該為4,信號少點(diǎn)} VAR回歸4:=EMA(EMA(EMA(VAR回歸3,4),4),4);{可將3該為4,信號少點(diǎn)} E回歸:=(VAR回歸4-REF(VAR回歸4,1))/REF(VAR回歸4,1)*100; F回歸:=MA(E回歸,3)+0.03; G回歸:=MA(E回歸,1); DRAWICON(CROSS(F回歸,G回歸) AND J回歸>65,HIGH*1.02,15),COLORGREEN; {雙底買入部分} VAR10A:=IF(TROUGH(3,16,1)=0 AND HIGH>LOW+0.04,4,0); VAR11B:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3); VAR13C:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3); VAR15D:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3); VAR17E:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3); 買點(diǎn)1A:=VAR10A; 買點(diǎn)2A:=(VAR11B+VAR13C+VAR15D+VAR17E); 買入:=COUNT(買點(diǎn)1A OR 買點(diǎn)2A,15)=2 AND (買點(diǎn)1A OR 買點(diǎn)2A) AND COUNT(C/REF(C,1)>1.07,15)>=1; DRAWICON(買入,LOW*0.97,18); {獵豹出擊智能選股指標(biāo)源碼} VARR1:=(SUM(H,8)-SUM(L,8))/2; RSVC:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; KC:=SMA(RSVC,3,1); DC:=SMA(KC,3,1); JC:=3*KC-2*DC,COLORRED,LINETHICK1; 強(qiáng)勢:=80,COLORMAGENTA,LINETHICK1; 平衡:=50,COLORRED,LINETHICK1; 弱勢:=20,COLORBLUE,LINETHICK1; RSV:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100; K:=SMA(RSV,3,1),COLORWHITE; D1:=SMA(K,3,1),COLORYELLOW; K1:=SMA(RSV,10,1),COLORWHITE; D:=SMA(K1,10,1),COLORRED; J:=3*K-2*D1,COLORFF00FF; 壓力線:=REF(HHV(K,20),20),COLORYELLOW; AA:=CROSS(JC,強(qiáng)勢) AND CROSS(JC,平衡){ AND J>壓力線} AND C/REF(C,1)>1.05 AND REF(C,1)/REF(C,2)<1.059; BB0412:=CROSS(JC,平衡) AND CROSS(JC,20){ AND J>壓力線} AND C/REF(C,1)>1.05 AND REF(C,1)/REF(C,2)<1.059; 起跳1:=CROSS(JC,強(qiáng)勢) AND C>EXPMA(CLOSE,12) AND JC-REF(JC,1)>30 OR AA; 起跳2:=CROSS(JC,20) AND MA(C,5)>MA(C,30) AND C/REF(C,1)>1.014 OR BB; 起跳3:=CROSS(JC,平衡) AND C>EXPMA(C,12) AND C/REF(C,1)>1.014; 起跳4:=AA AND C>EXPMA(C,12) AND C/REF(C,1)>1.014; 起跳5:=BB AND C/REF(C,1)>1.014; 起跳6:=JC-REF(JC,1)>30 AND C/REF(C,1)>1.05{ AND J>壓力線} AND REF(C,1)/REF(C,2)<1.059; {紅三兵:=CROSS(JC,80) AND REF(CROSS(JC,50),1) AND REF(CROSS(JC,20),2) AND C/REF(C,1)>1.014;} DRAWICON(AA OR BB0412 OR 起跳6,L*0.98,11){ OR 紅三兵}; AAA1:=MA(CLOSE,5); AAA2:=MA(CLOSE,20); AAA3:=MA(CLOSE,30); A偏離度:=(CLOSE-HHV(HIGH,250))/HHV(HIGH,250)*100; B偏離度:=(CLOSE-HHV(HIGH,120))/HHV(HIGH,120)*100; C偏離度:=(LOW-MA(CLOSE,13))/MA(CLOSE,13)*100; N日內(nèi)13日線走向:=(MA(CLOSE,13)-REF(MA(CLOSE,13),5))/REF(MA(CLOSE,13),5)*100; DRAWTEXT("KDJ.D">(REF("KDJ.D",1)+1) AND A偏離度= B偏離度 AND COUNT(AAA1>AAA2 AND AAA2>AAA3 ,2)=2 AND "KDJ.J">20 AND "MACD.MACD">0 AND C偏離度>-12 AND B偏離度-REF(B偏離度,1)>1 AND N日內(nèi)13日線走向-C偏離度<12 AND B偏離度>(C偏離度-1.3),LOW*0.97,'吻'),COLORRED; DRAWTEXT("KDJ.D">(REF("KDJ.D",1)+1) AND B偏離度>A偏離度 AND B偏離度>C偏離度,LOW*0.95,'飛吻'),COLORRED; 突破走強(qiáng) VVOL:=VOL*240/FROMOPEN; 盤虛萬:=VVOL/10000; 量萬:=VOL/10000; HD:=FILTER(BACKSET(FILTER(REF(C,10)=HHV(C,2*10+1),10),10+1),10); LD:=FILTER(BACKSET(FILTER(REF(C,10)=LLV(C,2*10+1),10),10+1),10); 波峰:=IF(BARSLAST(HD)<BARSLAST(LD) AND NOT(HD),REF(C,BARSLAST(HD)),REF(C,BARSLAST(HD))); 突破波峰:=CROSS(C,波峰) AND 盤虛萬>MA(量萬,25) AND C/REF(C,1)>1.043; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 強(qiáng)勢:=80; 弱勢:=20; 漲幅:=C/REF(C,1)>=1.043; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; CROSS(J,強(qiáng)勢) AND 漲幅 AND 突破波峰; 妞妞主圖 DRAWBAND(MA(CLOSE,60),RGB(55,0,0),MA(CLOSE,120),RGB(0,91,0)); DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68)); DRAWKLINE(H,O,L,C); MA5:MA(CLOSE,5),COLORWHITE; MA10:MA(CLOSE,10),COLORYELLOW; MA20:MA(CLOSE,20),COLORMAGENTA; MA60:MA(CLOSE,60),COLORGREEN,LINETHICK1; MA120:MA(CLOSE,120),COLORLIRED,LINETHICK1; MA240:MA(CLOSE,240),COLORBLUE; DRAWICON(CROSS(MA10,MA20),MA20,1); {10日上穿20日做記號} DRAWICON(CROSS(MA20,MA60),MA60,1); {20日上穿60日做記號} DRAWICON(CROSS(MA20,MA120),MA120,1); {20日上穿60日做記號} DRAWICON(CROSS(MA20,MA240),MA240,1);{20日上穿120日做記號} DRAWICON(CROSS(MA60,MA120),MA60,1); {60日上穿120日做記號} DRAWICON(CROSS(MA60,MA240),MA240,1); {60日上穿240日做記號} DRAWICON(CROSS(MA120,MA240),MA240,1);{120日上穿240日做記號} DRAWICON(CROSS(MA20,MA10),MA20,2); {10日下穿20日做記號} DRAWICON(CROSS(MA60,MA20),MA60,2); {20日下穿60日做記號} DRAWICON(CROSS(MA120,MA60),MA120,2); {60日下穿120日做記號}; DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★抄底') ,LINETHICK2,COLORRED; STICKLINE(C<0.905*REF(C,1),C,O,5,0),COLORWHITE; STICKLINE(C>1.095*REF(C,1),C,O,5,0),COLORYELLOW; DRAWTEXT(CROSS(ZIG(3,8),REF(ZIG(3,8),1)),LOW*0.978,'★抄底') ,LINETHICK2,COLORRED; GX:HHV(C,100),LINETHICK2; 妞妞副圖 VAR1:=REF(CLOSE,2); 會員專用: SMA(MAX(CLOSE-VAR1,0),7,1)/SMA(ABS(CLOSE-VAR1),7,1)*100,COLORFFAA66; VAR2:=REF(CLOSE,1); VAR3:=SMA(MAX(CLOSE-VAR2,0),7,1)/SMA(ABS(CLOSE-VAR2),7,1)*100; 極品逃亡: IF(會員專用< REF(會員專用,1) AND 會員專用>79,會員專用,0); DRAWTEXT(極品逃亡 ,70 ,'★<-極品逃亡'),COLORYELLOW,LINETHICK1; DRAWTEXT(88>0 AND REF(O,1)/REF(C,1)>1.04 AND REF(L,1)<=688 AND O>REF(C,1)AND C<REF(O,1)AND C/O>=1.01,L-L*0.02,'★<--極品絕底初現(xiàn)'),LINETHICK1; DRAWTEXT(C-O>=0 AND O/L>1.05 AND L<=LLV(L,20),L,'★<--極品絕底'),COLORBLUE, LINETHICK1; Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100; Q3:=SMA(Q2, 9, 1); Q4:=SMA(Q3, 3, 1); 特殊會員專用:3*Q3-2*Q4,COLORWHITE,LINETHICK2; Q8:=HHVBARS(HIGH, 50); Q10:=(CLOSE-REF(OPEN, Q8))/REF(OPEN, Q8)*100; 跨越:EMA(Q3, 3),COLORRED; DRAWTEXT(CROSS(特殊會員專用, 8) AND Q10<-13,20,'*大底來'),COLORYELLOW,LINETHICK5; VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100; 機(jī)構(gòu)做空能量線: SMA(VAR12,3,1),COLORGREEN,LINETHICK2; 大底來: 0,POINTDOT; 大底: 0,POINTDOT; DRAWTEXT(CROSS(跨越,機(jī)構(gòu)做空能量線) ,大底+40,'進(jìn)入強(qiáng)勢區(qū)域'),COLORYELLOW,LINETHICK1; DRAWTEXT(CROSS(特殊會員專用,跨越) ,大底+20,'進(jìn)入拉升區(qū)域'),LINETHICK1; DRAWTEXT(CROSS(跨越,特殊會員專用) ,大底+70,'注意調(diào)整'),COLORFFAA66,LINETHICK1; ●注意買入點(diǎn): DRAWTEXT(REF(CROSS(機(jī)構(gòu)做空能量線,跨越),25) AND 機(jī)構(gòu)做空能量線>1.005*跨越,跨越,'●<-注意買入點(diǎn)'),COLORBLUE,LINETHICK1; ★逢低買入: DRAWTEXT(REF(CROSS(跨越,特殊會員專用),82) AND 跨越>1.3*特殊會員專用,特殊會員專用,'★<<-逢低買入'),LINETHICK1; 超級短線 VAR1:=(CLOSE*2+HIGH+LOW)/4; SK:EMA(VAR1,13)-EMA(VAR1,21); SD:EMA(SK,2); K1:=SK>REF(SK,1);K12:=BACKSET(K1,2); K2:=SK<REF(SK,1);K22:=BACKSET(K2,2); DRAWLINE(K12,SK,K1,SK,0),COLORRED, LINETHICK1; DRAWLINE(K22,SK,K2,SK,0),COLOR00FF00,LINETHICK1; {K11:=SD>REF(SD,1);K121:=BACKSET(K11,2); K21:=SD<REF(SD,1);K221:=BACKSET(K21,2); DRAWLINE(K121,SD,K11,SD,0),COLORRED, LINETHICK1; DRAWLINE(K221,SD,K21,SD,0),COLOR00FF00,LINETHICK1;} 能量1:IF(2*(SK-SD)*3.8>=0,2*(SK-SD)*3.8,0),COLORRED,LINESTICK; STICKLINE(能量1>REF(能量1,1) AND 能量1>=0,能量1,0,1,0),COLORRED; STICKLINE(能量1<REF(能量1,1) AND 能量1>=0,能量1,0,1,0),COLORYELLOW; 能量2:IF(2*(SK-SD)*3.8<0,2*(SK-SD)*3.8,0),COLOR00FF00,LINESTICK; STICKLINE(能量2>REF(能量2,1),能量2,0,1,0),COLORYELLOW; STICKLINE(能量2<REF(能量2,1),能量2,0,1,0),COLOR00FF00; 強(qiáng)弱分界:0; DRAWICON(CROSS(SK,SD),SD*1.2,1); DRAWICON(CROSS(SD,SK),SD*0.7,2); 能量:=2*(SK-SD)*3.8,COLORRED,LINESTICK; {STICKLINE(能量>REF(能量,1) AND 能量>0,能量,0,2,0),COLORRED; STICKLINE(能量<REF(能量,1) AND 能量>=0,能量,0,1,0),COLORYELLOW; STICKLINE(能量>REF(能量,1) AND 能量<0,能量,0,1,0),COLORB00FF1; STICKLINE(能量<REF(能量,1) AND 能量<0,能量,0,2,0),COLOR00FF00;}; 短線出擊 M1 1.00 1000.00 5.00 M2 1.00 1000.00 10.00 M3 1.00 1000.00 25 M4 1.00 1000.00 50 {獵豹出擊二號主圖} STICKLINE(CLOSE>=REF(HHV(C,5),1) AND C>=O,C,O,3,1),COLORMAGENTA; STICKLINE(CLOSE<=REF(LLV(O,5),1) AND C<REF(C,1),C,O,1,0),COLORBLUE; 加速:=IF(100*WINNER(CLOSE*0.95)>50 AND COST(85)<CLOSE AND (EMA(EMA(CLOSE,9),9)-REF(EMA(EMA(CLOSE,9),9),1))/REF(EMA(EMA(CLOSE,9),9),1)*1000>0, (EMA(EMA(CLOSE,9),9)-REF(EMA(EMA(CLOSE,9),9),1))/REF(EMA(EMA(CLOSE,9),9),1)*1000,0),COLORFF00FF,NODRAW; STICKLINE(加速 AND C>O AND MA(CLOSE,3)>REF(MA(CLOSE,3),1),C,O,1,0),COLORMAGENTA; MA1:MA(CLOSE,5); MA2:MA(CLOSE,10),COLORRED, LINETHICK2; 跌:IF(MA(CLOSE,10)<=REF(MA(CLOSE,10),1),MA(CLOSE,10),DRAWNULL),COLORGREEN,LINETHICK2; MA3:MA(CLOSE,25),COLORMAGENTA, LINETHICK2; 跌2:IF(MA(CLOSE,25)<=REF(MA(CLOSE,25),1),MA(CLOSE,25),DRAWNULL),COLORBLUE,LINETHICK2; MA4:MA(CLOSE,50),COLORYELLOW; 買進(jìn)價(jià):=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004; 買進(jìn)條件:=CROSS(C,買進(jìn)價(jià)) AND 買進(jìn)價(jià)>REF(買進(jìn)價(jià),1); STICKLINE(買進(jìn)條件,O,C,0.5,0),COLORYELLOW; 加碼價(jià):=((C-REF(MA(C,21),1))/21+MA(C,21))*1.004; 加碼條件:=CROSS(C,加碼價(jià)) AND 加碼價(jià)>REF(加碼價(jià),1); STICKLINE(加碼條件,O,C,1.5,0),COLORYELLOW; 波峰:=HHVBARS(C,25); 進(jìn)入短線強(qiáng)勢區(qū):=CROSS("KDJ".J,80) AND "MACD.DIF">"MACD.DEA" AND MA(C,5)>MA(C,30); 突破波峰:=CROSS(C,波峰) AND VOL>MA(VOL,25) AND C/REF(C,1)>1.0143; DRAWICON(進(jìn)入短線強(qiáng)勢區(qū) OR 突破波峰,O*0.95,1); DRAWTEXT(突破波峰,L*0.870,'突破'),COLORMAGENTA; TJ強(qiáng)于大盤:=C/REF(C,1)>INDEXC/REF(INDEXC,1); DRAWICON("KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043,L*0.90,5); DRAWTEXT(突破波峰 AND TJ強(qiáng)于大盤,L*0.870,'突破'),COLORMAGENTA; DRAWTEXT(CROSS("KDJ".J,"KDJ".D) AND MA(CLOSE,10)>MA(CLOSE,25),H*0.98,'金'),COLORYELLOW; DRAWTEXT(C>MA(C,5) AND C>MA(C,10) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,10)>MA(C,24) AND REF(C,1)<REF(O,1) AND REF(C,1)>REF(C,2) AND C>REF(H,1),REF(O,1),'黑陽'),COLORRED; DRAWTEXT("KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043 AND "MACD.DEA">0,L*0.95,'起爆'),COLORRED; GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)); GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)); GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)); GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)); ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3; ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2)); ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4; ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3; ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100; ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 AND REF(ZHENCANG1,2)>0; DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 AND ZHENCANG5,L-0.05,'震'); 主圖均線 MA5:MA(C,5),COLORYELLOW; MA10:MA(CLOSE,10),COLORFF00FF; MA30:MA(C,30),COLORRED,LINETHICK2; 跌:IF(MA(CLOSE,30)<=REF(MA(CLOSE,30),1),MA(CLOSE,30),DRAWNULL),COLORGREEN,LINETHICK2; MA60:MA(CLOSE,60),COLORFFCC66; GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)); GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)); GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)); GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)); BAIJIN1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2; BAIJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4; BAIJIN3:=GJTJ1>60 AND GJTJ4>70; DRAWTEXT(BAIJIN1 AND BAIJIN2 AND BAIJIN3,L-0.02,'白金'),COLORWHITE; HUANGJIN1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3; HUANGJIN2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4; DRAWTEXT(HUANGJIN1 AND HUANGJIN2,L-0.03,'黃金'),COLORYELLOW; XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4; DRAWTEXT(COUNT(XG,3)=1 AND XG AND C>MA(C,20),L-0.02,'金三角'),COLORRED; ZHENCANG1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3; ZHENCANG2:=BARSLAST(CROSS(GJTJ4,GJTJ2)); ZHENCANG3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4; ZHENCANG4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3; ZHENCANG5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100; ZCB1:=ZHENCANG1>0 AND REF(ZHENCANG1,1)=0 AND REF(ZHENCANG1,2)>0; DRAWTEXT(ZHENCANG1 AND ZHENCANG2 AND ZHENCANG3 AND ZHENCANG4 AND ZHENCANG5,L-0.05,'震倉啟動(dòng)'); AA:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1; BB:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1; AA1:=AA AND BB; AAA:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1; BAA:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1; AA2:=AA AND BB ; AAAA:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1; BAAA:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1; AA3:=AAAA AND BAAA ; BB1:=REF(AA1,1); BB2:=REF(AA2,1); BB3:=REF(AA3,1); DD1:=GJTJ1=100 AND GJTJ2=100 AND AA1 ; DD2:=GJTJ1=100 AND GJTJ2=100 AND AA2 ; DD3:=GJTJ1=100 AND GJTJ2=100 AND AA3 ; DRAWTEXT(DD1 OR DD2 OR DD3,L-0.02,'追漲'),COLORFF00FF; AW:=BARSLAST(CROSS(95,GJTJ1))<=2; BW:=BARSLAST(CROSS(95,GJTJ2))<=2; EW:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3; FW:=GJTJ2>50 AND GJTJ3>50; GW:=GJTJ1=100 AND GJTJ2=100; TXW:=COUNT(GW,2)=1; DRAWTEXT(AW AND BW AND EW AND FW AND TXW,L-0.03,'起漲'); AQ:=GJTJ3=100; BQ:=GJTJ4<90; DRAWTEXT(COUNT(AQ,2) = 2 AND BQ,L-0.02,'波段前兆'); MACD色彩 獲利盤:=WINNER(C)*100; 滿盤獲利:=獲利盤>82; DIF:EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK2; DEA:EMA(DIF,9),COLORYELLOW,LINETHICK2; MACD:(DIF-DEA)*2,COLORSTICK; A1:=MACD<REF(MACD,1) AND MACD>0; A2:=MACD<REF(MACD,1)/2 AND MACD<0; STICKLINE(MACD>=0,MACD,0,1,1),COLORRED; STICKLINE(滿盤獲利,MACD,0,1,1),COLORMAGENTA; STICKLINE(A1,0,MACD,1,0),COLORGREEN; STICKLINE(A2,0,MACD,1,0),COLORLIBLUE; STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1,1),COLORLIRED; STICKLINE(滿盤獲利 AND MACD>REF(MACD,1),0,MACD,1,1),COLORMAGENTA; 寶塔變異線 {成本:MAXCYC,COLORFF9900;} 趨勢:MA(C,90),COLORRED; MA14:MA(CLOSE,14); 碼:COST(50),COLORYELLOW; DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,9); 多頭:STICKLINE(DIFF>DEA,C,O,5,0),COLORRED; STICKLINE(DIFF>DEA,H,L,0,0),COLORRED; 空頭:STICKLINE(DIFF<=DEA,C,O,5,0),COLORGRAY; STICKLINE(DIFF<=DEA,H,L,0,0),COLORGRAY; DRAWTEXT(CROSS(DIFF,DEA),L-0.2,'買入'),COLORWHITE; DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA1:=EMA(DIFF1,9); 多頭1:STICKLINE(DIFF1>DEA1,C,O,5,0),COLORRED; STICKLINE(DIFF>DEA1,H,L,0,0),COLORRED; 空頭1:STICKLINE(DIFF1<=DEA1,C,O,5,0),COLORGRAY; STICKLINE(DIFF1<=DEA1,H,L,0,0),COLORGRAY; DRAWTEXT(CROSS(DIFF1,DEA1),L-0.2,'買入'),COLORWHITE; 主力能量線 換手:=V*100/CAPITAL; 主力:=MA(換手,4); 大戶:=MA(換手,9); 中戶:=MA(換手,17); 散戶:=MA(換手,34); 均量:=(主力+大戶+中戶+散戶)/4; 主力能量:(主力-均量),NODRAW; 大戶能量:(大戶-均量),NODRAW; 中戶能量:(中戶-均量),NODRAW; 散戶能量:(散戶-均量),NODRAW; 回:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),6,6+主力能量,1,0),COLORRED; 復(fù):STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),6,6+主力能量,1,0),COLORYELLOW; 者:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),6,6+主力能量,1,0),COLORGREEN; 用:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),6,6+主力能量,1,0),COLORBLUE; DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,6,6),'主力'),COLORRED; 主力線:6,COLORRED; 需:STICKLINE(大戶能量>=0 AND 大戶能量>=REF(大戶能量,1),4,4+大戶能量,1,0),COLORRED; 要:STICKLINE(大戶能量>=0 AND 大戶能量< REF(大戶能量,1),4,4+大戶能量,1,0),COLORYELLOW; 回1:STICKLINE(大戶能量<0 AND 大戶能量>=REF(大戶能量,1),4,4+大戶能量,1,0),COLORGREEN; 復(fù)1:STICKLINE(大戶能量<0 AND 大戶能量< REF(大戶能量,1),4,4+大戶能量,1,0),COLORBLUE; DRAWTEXT(ISLASTBAR=1,IF(大戶能量>=0,4,4),'大戶'),COLORYELLOW; 大戶線:4,COLORYELLOW; 加1:STICKLINE(中戶能量>=0 AND 中戶能量>=REF(中戶能量,1),2,2+中戶能量,1,0),COLORRED; 分1:STICKLINE(中戶能量>=0 AND 中戶能量< REF(中戶能量,1),2,2+中戶能量,1,0),COLORYELLOW; 者1:STICKLINE(中戶能量<0 AND 中戶能量>=REF(中戶能量,1),2,2+中戶能量,1,0),COLORGREEN; 好:STICKLINE(中戶能量<0 AND 中戶能量< REF(中戶能量,1),2,2+中戶能量,1,0),COLORBLUE; DRAWTEXT(ISLASTBAR=1,IF(中戶能量>=0,2,2),'中戶'),COLORMAGENTA; 中戶線:2,COLORMAGENTA; {加2:STICKLINE(散戶能量>=0 AND 散戶能量>=REF(散戶能量,1),0,散戶能量,1,0),COLORRED; 分2:STICKLINE(散戶能量>=0 AND 散戶能量< REF(散戶能量,1),0,散戶能量,1,0),COLORYELLOW; 歡:STICKLINE(散戶能量<0 AND 散戶能量>=REF(散戶能量,1),0,散戶能量,1,0),COLORGREEN; 迎:STICKLINE(散戶能量<0 AND 散戶能量< REF(散戶能量,1),0,散戶能量,1,0),COLORBLUE; DRAWTEXT(ISLASTBAR=1,IF(散戶能量>=0,0.3,0.3),'散戶'),COLORWHITE;} 散戶線:0,COLORWHITE; B:=ZIG(3,50/5)*1; G:=MA(B,2); D:=CROSS(B,G)*10; W:=CROSS(G,B)*10; DRAWTEXT(W=10,4,'賣' ),COLORWHITE; DRAWTEXT(D=10,8,'買'),COLOR00FFAA,LINETHICK3,STICK; 起爆點(diǎn) VARR1:=(SUM(H,8)-SUM(L,8))/2; RSVC:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; KC:=SMA(RSVC,3,1); DC:=SMA(KC,3,1); JC:=3*KC-2*DC,COLORRED,LINETHICK1; 強(qiáng)勢:=80,COLORMAGENTA,LINETHICK1; 平衡:=50,COLORRED,LINETHICK1; 弱勢:=20,COLORBLUE,LINETHICK1; RSV:=(CLOSE-LLV(LOW,40))/(HHV(HIGH,40)-LLV(LOW,40))*100; K:=SMA(RSV,3,1),COLORWHITE; D1:=SMA(K,3,1),COLORYELLOW; K1:=SMA(RSV,10,1),COLORWHITE; D:=SMA(K1,10,1),COLORRED; J:=3*K-2*D1,COLORFF00FF; 壓力線:=REF(HHV(K,20),20),COLORYELLOW; AA:=CROSS(JC,強(qiáng)勢) AND CROSS(JC,平衡){ AND J>壓力線} AND C/REF(C,1)>1.05; BB:=CROSS(JC,平衡) AND CROSS(JC,20){ AND J>壓力線} AND C/REF(C,1)>1.05; 起跳1:=CROSS(JC,強(qiáng)勢) AND C>EXPMA(CLOSE,12) AND JC-REF(JC,1)>30 OR AA; 起跳2:=CROSS(JC,20) AND MA(C,5)>MA(C,30) AND C/REF(C,1)>1.014 OR BB; 起跳3:=CROSS(JC,平衡) AND C>EXPMA(C,12) AND C/REF(C,1)>1.014; 起跳4:=AA AND C>EXPMA(C,12) AND C/REF(C,1)>1.014; 起跳5:=BB AND C/REF(C,1)>1.014; 起跳6:=JC-REF(JC,1)>30 AND C/REF(C,1)>1.05{ AND J>壓力線}; {紅三兵:=CROSS(JC,80) AND REF(CROSS(JC,50),1) AND REF(CROSS(JC,20),2) AND C/REF(C,1)>1.014;} AA OR BB OR 起跳6{ OR 紅三兵}; 黃金柱主圖 MA5:MA(CLOSE,5),COLORWHITE; MA10:MA(CLOSE,10),COLORYELLOW; MA20:MA(CLOSE,20),COLORMAGENTA; MA60:=MA(CLOSE,60),COLORGREEN; MA120:=MA(CLOSE,120),COLORLIMAGENTA; MA240:=MA(CLOSE,240),COLORBLUE,NODRAW; VOL5:=MA(VOL,5),COLORWHITE; VOL10:=MA(VOL,10),COLORYELLOW; VOL40:=MA(VOL,40),COLORFF00FF ; 量托:=VOL5>=VOL40 AND CROSS(VOL10,VOL40) AND REF(VOL10,1)<REF(VOL40,1); DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE; AA1:=BARSLAST(MA60>MA20 AND (MA20=MA10 OR MA20>MA10)); BB1:=REF(COUNT(C<MA60,AA1)=AA1,1); CC1:=CROSS(C,MA60) AND VOL>MA(VOL,5) AND (C-REF(C,1))/REF(C,1)*100>3; 芙蓉出水:=BB AND CC1,COLOR00FF00; DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF; STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF; STICKLINE(芙蓉出水,O,C,3,1),LINETHICK2,COLORFF00FF; MA1:=MA(CLOSE,14); MA2:=MA(CLOSE,25); MA3:=MA(CLOSE,99); ZJ:=AMOUNT/10000;{資金} TM:=V-MA(V,10);{量填滿} 一穿三:=MA1>O AND MA2>O AND MA3>O AND MA1<C AND MA2<C AND MA3<C AND CLOSE>OPEN ; DRAWTEXT(一穿三,L-0.012,'穿'),COLORFF00FF; TY:=C; A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10); A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10); 前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT; STICKLINE(C,前期高位,前期高位,8,0),COLORRED; 高點(diǎn):(C/REF(C,BARSLAST(HD))-1)*100,NODRAW; STICKLINE((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667,H,C,0.8,0),COLORBLUE; 三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3); 三日量縮:=(MAX(MAX(V,REF(V,1)),REF(V,2))<REF(V,3)); 三日價(jià)漲A:=C>=REF(C,1); 三日價(jià)漲B:=C<REF(C,1); 三日價(jià)漲C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3); TIM:=IF(DATE<1140214,1,0); 縮倍柱:=(VOL*1.95<=REF(VOL,1))*TIM; 百日低量:=(VOL=LLV(VOL,100))*TIM; 倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM; 四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM; 四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量縮)*TIM; 前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日價(jià)漲C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日價(jià)漲C,1)),3)=0; 倍量黃金柱:=四日前倍量柱 AND 三日量縮 AND 三日不破 AND 三日價(jià)漲A AND 前三引用不成立; 高量黃金柱:=四日前高量柱 AND 三日量縮 AND 三日不破 AND 三日價(jià)漲A AND 前三引用不成立; 黃金柱:=倍量黃金柱 OR 高量黃金柱; 次倍量黃金柱:=NOT(黃金柱) AND 四日前倍量柱 AND 三日量縮 AND 三日不破 AND 三日價(jià)漲B AND 前三引用不成立; 次高量黃金柱:=NOT(黃金柱) AND 四日前高量柱 AND 三日量縮 AND 三日不破 AND 三日價(jià)漲B AND 前三引用不成立; 次黃金柱:=次倍量黃金柱 OR 次高量黃金柱; 準(zhǔn)倍量黃金柱:=NOT(黃金柱 OR 次黃金柱) AND 四日前倍量柱 AND ((三日量縮 AND 三日價(jià)漲C) OR (COUNT(倍量柱,3)>=1 AND 三日不破)) AND 前三引用不成立; 準(zhǔn)高量黃金柱:=NOT(黃金柱 OR 次黃金柱) AND 四日前高量柱 AND (三日量縮 AND 三日價(jià)漲C) AND 前三引用不成立; 準(zhǔn)黃金柱:=準(zhǔn)倍量黃金柱 OR 準(zhǔn)高量黃金柱; 倍量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準(zhǔn)黃金柱) AND 四日前倍量柱 AND 三日不破 AND 三日價(jià)漲A AND 前三引用不成立; 高量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準(zhǔn)黃金柱) AND 四日前高量柱 AND 三日不破 AND 三日價(jià)漲A AND 前三引用不成立; 將軍柱:=倍量將軍柱 OR 高量將軍柱; 次倍量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準(zhǔn)黃金柱 OR 將軍柱) AND 四日前倍量柱 AND 三日不破 AND 三日價(jià)漲B AND 前三引用不成立; 次高量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準(zhǔn)黃金柱 OR 將軍柱) AND 四日前高量柱 AND 三日不破 AND 三日價(jià)漲B AND 前三引用不成立; 次將軍柱:=次倍量將軍柱 OR 次高量將軍柱; 準(zhǔn)倍量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準(zhǔn)黃金柱 OR 將軍柱 OR 次將軍柱) AND 四日前倍量柱 AND 三日價(jià)漲C AND 前三引用不成立; 準(zhǔn)高量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準(zhǔn)黃金柱 OR 將軍柱 OR 次將軍柱) AND 四日前高量柱 AND 三日價(jià)漲C AND 前三引用不成立; 準(zhǔn)將軍柱:=準(zhǔn)倍量將軍柱 OR 準(zhǔn)高量將軍柱; BACKSET100:=BACKSET(黃金柱 OR 次黃金柱 OR 準(zhǔn)黃金柱 OR 將軍柱 OR 次將軍柱 OR 準(zhǔn)將軍柱,4); FILTER100:=FILTER(BACKSET100,3),NODRAW; BACKSET101:=BACKSET(黃金柱,4); FILTER101:=FILTER(BACKSET101,3); BACKSET102:=BACKSET(次黃金柱,4); FILTER102:=FILTER(BACKSET102,3); BACKSET103:=BACKSET(準(zhǔn)黃金柱,4); FILTER103:=FILTER(BACKSET103,3); BACKSET104:=BACKSET(將軍柱,4); FILTER104:=FILTER(BACKSET104,3); BACKSET105:=BACKSET(次將軍柱,4); FILTER105:=FILTER(BACKSET105,3); BACKSET106:=BACKSET(準(zhǔn)將軍柱,4); FILTER106:=FILTER(BACKSET106,3); 黃金線下影線:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=REF(L,3); 黃金線實(shí)體下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<=MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2))>REF(L,3),LINETHICK0; 黃金線上影線:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(H,3); 黃金線實(shí)體上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>=MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<REF(H,3); 黃金線實(shí)體中間:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)); 黃金線實(shí)體中間1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2)); 黃金線實(shí)體中間2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2)); 黃金線實(shí)體中間3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))<MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2))>MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2)); BACKSET201:=BACKSET(黃金線下影線,4); FILTER201:=FILTER(BACKSET201,3),NODRAW; BACKSET202:=BACKSET(黃金線實(shí)體下端,4); FILTER202:=FILTER(BACKSET202,3),NODRAW; BACKSET203:=BACKSET(黃金線上影線,4); FILTER203:=FILTER(BACKSET203,3),NODRAW; BACKSET204:=BACKSET(黃金線實(shí)體上端,4); FILTER204:=FILTER(BACKSET204,3),NODRAW; BACKSET205:=BACKSET(黃金線實(shí)體中間,4); FILTER205:=FILTER(BACKSET205,3),NODRAW; BACKSET2051:=BACKSET(黃金線實(shí)體中間1,4); FILTER2051:=FILTER(BACKSET2051,3),NODRAW; BACKSET2052:=BACKSET(黃金線實(shí)體中間2,4); FILTER2052:=FILTER(BACKSET2052,3),NODRAW; BACKSET2053:=BACKSET(黃金線實(shí)體中間3,4); FILTER2053:=FILTER(BACKSET2053,3),NODRAW; BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201)); BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER202)); BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER203)); BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204)); BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER205)); BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2051)); BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2052)); BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2053)); 最近黃金線:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053); DAY1:=SUMBARS(FILTER100,1),NODRAW; HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NODRAW; HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW; HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NODRAW; HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW; HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1<2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW; HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1<3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW; HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1<4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW; 黃金線:HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,NODRAW; 立樁量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1); 立樁量三日突破:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE>REF(HIGH,3),1,0))); 立樁量三日不破:=BARSLAST(立樁量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2)); BACKSET300:=BACKSET(立樁量三日不破,4); BACKSET301:=BACKSET(立樁量三日突破,4); 立樁量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立樁量; DRAWTEXT(立樁量成立,HIGH*1.01,'↙立樁量'),COLORRED; DRAWTEXT(FILTER101,LOW*0.986,'↖黃金柱'),COLORYELLOW; DRAWTEXT(FILTER102,LOW*0.986,'↖次黃金柱'),COLORYELLOW; DRAWTEXT(FILTER104,LOW*0.986,'↖將軍柱'),COLORYELLOW; 超贏決策 RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100; VARR1:=(SUM(H,8)-SUM(L,8))/2; RSVC:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 白馬:=SMA(RSVC,3,1); DC:=SMA(白馬,3,1),LINETHICK1; 主升線:3*白馬-2*DC,COLORYELLOW,LINETHICK1; 短K:=SMA(RSV,3,1),COLORBLUE; 支撐線:SMA(短K,3,1),COLORMAGENTA,LINETHICK1; RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100; 多方趨勢線:SMA(RSV1,5,1),COLORRED,LINETHICK2; 空方趨勢線:SMA(多方趨勢線,10,1),COLOR66CC33,LINETHICK1; DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:= 2*(DIFF-DEA), COLORSTICK; STICKLINE(多方趨勢線>空方趨勢線,多方趨勢線,空方趨勢線,1,1),COLORRED; STICKLINE(多方趨勢線<=空方趨勢線,多方趨勢線,空方趨勢線,1,1),COLOR669933; 強(qiáng)勢區(qū):80,COLORYELLOW,LINETHICK1; 平衡:=50,COLORRED,LINETHICK1; 弱勢區(qū):20,COLORGREEN,LINETHICK1; STICKLINE(主升線>=80,80,(主升線*0.98),1,1),COLORYELLOW; STICKLINE(主升線<20,20,主升線+1,1,1),COLORGREEN; 主力線:=WINNER(C)*100,COLORRED,LINETHICK2; HM:=SMA(RSV,3,1),COLORWHITE; D1:=SMA(HM,3,1),COLORYELLOW; K1:=SMA(RSV,10,1),COLORWHITE; D:=SMA(K1,10,1),COLORRED; TT:=3*HM-2*D1,COLORYELLOW; 壓力線:=REF(HHV(HM,20),20),COLORYELLOW; 量能飽和:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26)*100,COLORLIMAGENTA,NODRAW; AA:=CROSS(主升線,強(qiáng)勢區(qū)) AND CROSS(主升線,平衡) AND C>EXPMA(C,12) AND C/REF(C,1)>1.04; BB:=CROSS(主升線,平衡) AND CROSS(主升線,20); CC:=主升線-REF(主升線,1)>30 AND C/REF(C,1)>1.05; DD:=CROSS(TT,HM) AND TT>壓力線 AND 主升線>REF(主升線,1) AND DYNAINFO(7)/REF(C,1)>=1.045; DRAWICON(CROSS(主升線,強(qiáng)勢區(qū)) AND C>EXPMA(CLOSE,12) AND CC OR AA{ OR DD} OR 量能飽和=100 AND CROSS(主升線,強(qiáng)勢區(qū)) OR CROSS(主升線,強(qiáng)勢區(qū)) AND EXPMA(CLOSE,12)>EXPMA(CLOSE,50) AND "MACD.MACD">REF("MACD.MACD",1),75,1); DRAWICON(BB,40,1); 工作線:=EXPMA(CLOSE,12); 生命線:=EXPMA(CLOSE,50); 走出短線強(qiáng)勢區(qū):=CROSS(78,"KDJ.J") AND 工作線>生命線 AND "MACD.DIF">"MACD.DEA" AND MA(C,5)>MA(C,30) AND 多方趨勢線/空方趨勢線<=1.09; 強(qiáng)勢低吸:=工作線>生命線 AND CROSS("KDJ.J",20) AND 多方趨勢線>=空方趨勢線 AND 多方趨勢線/空方趨勢線>REF(多方趨勢線,1)/REF(空方趨勢線,1) AND (多方趨勢線/空方趨勢線)/(REF(多方趨勢線,2)/REF(空方趨勢線,2))>=0.995; DRAWICON(走出短線強(qiáng)勢區(qū),85,2); 抬頭:="KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<REF("KDJ.J",2) AND REF("KDJ.J",1)>REF("KDJ.D",1) AND "MACD.MACD">0; 金叉:=CROSS("KDJ.J","KDJ.D") AND MA(C,10)>MA(C,25) AND MA(C,25)>REF(MA(C,25),1) AND "MACD.MACD">0; DRAWICON( 強(qiáng)勢低吸,15,1); {DRAWICON(AA OR BB,50,1);} DRAWICON(CC OR AA,25,1); DRAWTEXT(強(qiáng)勢低吸,15,'低吸'),COLORRED; DRAWTEXT(走出短線強(qiáng)勢區(qū),95,' 拋'),COLORGREEN; DRAWTEXT(DD AND 多方趨勢線/空方趨勢線>0.93 AND (MACD-REF(MACD,1))>0 AND 多方趨勢線/空方趨勢線>REF(多方趨勢線,1)/REF(空方趨勢線,1) AND (多方趨勢線/空方趨勢線)/(REF(多方趨勢線,2)/REF(空方趨勢線,2))>=0.975 OR 量能飽和=100 AND CROSS(主升線,82) AND 多方趨勢線/空方趨勢線>0.93 AND (MACD-REF(MACD,1))>0 AND 多方趨勢線/空方趨勢線>REF(多方趨勢線,1)/REF(空方趨勢線,1) AND (多方趨勢線/空方趨勢線)/(REF(多方趨勢線,2)/REF(空方趨勢線,2))>=0.975 AND DYNAINFO(7)/REF(C,1)>=1.043 OR CROSS(主升線,82) AND EXPMA(CLOSE,12)>EXPMA(CLOSE,50) AND 多方趨勢線/空方趨勢線>0.93 AND (MACD-REF(MACD,1))>0 AND 多方趨勢線/空方趨勢線>REF(多方趨勢線,1)/REF(空方趨勢線,1) AND (多方趨勢線/空方趨勢線)/(REF(多方趨勢線,2)/REF(空方趨勢線,2))>=0.975 AND DYNAINFO(7)/REF(C,1)>=1.043,45,'買 '),COLORRED; 親吻指標(biāo) A1:=MA(CLOSE,5); A2:=MA(CLOSE,20); A3:=MA(CLOSE,30); 第一吻線:(LOW-MA(CLOSE,13))/MA(CLOSE,13)*100,COLORMAGENTA,LINETHICK2; 第二吻線:(CLOSE-HHV(HIGH,120))/HHV(HIGH,120)*100,LINETHICK2; 第三吻線:(CLOSE-HHV(HIGH,250))/HHV(HIGH,250)*100,COLORWHITE; 持股線:=(MA(CLOSE,13)-REF(MA(CLOSE,13),5))/REF(MA(CLOSE,13),5)*100,LINETHICK2; VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL); OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0); OBV1:=MA(OBV,10); DRAWICON("KDJ.D">(REF("KDJ.D",1)+0.5) AND 持股線+第一吻線<5.6 AND 持股線-第一吻線<5.6 AND OBV>OBV1 AND OBV1>REF(OBV1,1) AND (CROSS(第二吻線+3.05,第一吻線)),L,9); DRAWICON("KDJ.D">(REF("KDJ.D",1)+1) AND 持股線+第一吻線<5.6 AND 持股線-第一吻線<5.6 AND OBV>OBV1 AND OBV1>REF(OBV1,1) AND (CROSS(第二吻線+1,第一吻線)),L,9); DRAWTEXT("KDJ.D">(REF("KDJ.D",1)+1) AND 第三吻線= 第二吻線 AND COUNT(A1>A2 AND A2>A3 ,2)=2 AND "KDJ.J">20 AND "MACD.MACD">0 AND 第一吻線>-9 AND 第二吻線-REF(第二吻線,1)>1 AND 持股線-第一吻線<13 AND 第二吻線>(第一吻線-1.3),-5,'買 '),COLORRED; |
|