通達信主副圖公式:獻給有共同愛好的朋友:絕密操盤手A:MA(CLOSE,3),ColorFF00FF,LINETHICK0; A1:=(CLOSE+HIGH+LOW)/(3); B:=EMA(A1,10); B2:=REF(B,1); MA20:=EMA(CLOSE,20); DRAWTEXT((B>B2),ma20,"*"),Colorffff00; DRAWTEXT((B<B2),ma20,"*"),Coloryellow; VAR1:=EMA(CLOSE,3); VAR2:=EMA(CLOSE,8); MA5:MA(CLOSE,5),Coloryellow; MA21:=EMA(CLOSE,21); STICKLINE(VAR1<MA21,h,l,0,0),Colorgreen; STICKLINE(VAR1<MA21,c,o,8,0),Color007700; STICKLINE(VAR1<MA21,c,o,7,0),Color008E00; STICKLINE(VAR1<MA21,c,o,6,0),Color009900; STICKLINE(VAR1<MA21,c,o,5,0),Color00A600; STICKLINE(VAR1<MA21,c,o,4,0),Color00B500; STICKLINE(VAR1<MA21,c,o,3,0),Color00C600; STICKLINE(VAR1<MA21,c,o,2,0),Color00D500; STICKLINE(VAR1<MA21,c,o,1,0),Color00E600; STICKLINE(VAR1>MA21,h,l,0,0),Color106fff; STICKLINE(VAR1>MA21,c,o,8,0),Color000084; STICKLINE(VAR1>MA21,c,o,7,0),Color000095; STICKLINE(VAR1>MA21,c,o,6,0),Color0000A2; STICKLINE(VAR1>MA21,c,o,5,0),Color0000B3; STICKLINE(VAR1>MA21,c,o,4,0),Color0000C8; STICKLINE(VAR1>MA21,c,o,3,0),Color0000D7; STICKLINE(VAR1>MA21,c,o,2,0),Color0000EA; STICKLINE(VAR1>MA21,c,o,1,0),Color0000FF; STICKLINE(VAR1<VAR2 AND VAR1>MA21,h,l,0,0),Colorff5d10; STICKLINE(VAR1<VAR2 AND VAR1>MA21,c,o,8,0),Colorff5d10; STICKLINE(VAR1<VAR2 AND VAR1>MA21,c,o,5,0),Colorff7710; STICKLINE(VAR1<VAR2 AND VAR1>MA21,c,o,2,0),Colorff9910; STICKLINE(VAR1>VAR2 AND VAR1<MA21,h,l,0,0),Colorff00ff; STICKLINE(VAR1>VAR2 AND VAR1<MA21,c,o,8,0),Color8E008E; STICKLINE(VAR1>VAR2 AND VAR1<MA21,c,o,7,0),Color9D009D; STICKLINE(VAR1>VAR2 AND VAR1<MA21,c,o,6,0),ColorB000B0; STICKLINE(VAR1>VAR2 AND VAR1<MA21,c,o,5,0),ColorC600C6; STICKLINE(VAR1>VAR2 AND VAR1<MA21,c,o,4,0),ColorD000D0; STICKLINE(VAR1>VAR2 AND VAR1<MA21,c,o,3,0),ColorE600E6; STICKLINE(VAR1>VAR2 AND VAR1<MA21,c,o,2,0),ColorF900F9; STICKLINE(VAR1>VAR2 AND VAR1<MA21,c,o,1,0),ColorFF09FF; MA2:=MA(CLOSE,10); MA34:=MA(CLOSE,34); VARA:=((AMOUNT)/(VOL))/(100); VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7); VARC:=((SUM(AMOUNT,7))/(VARA))/(100); VARD:=DMA(VARB,(VOL)/(VARC)); VARE:=((CLOSE-VARD)/(VARD))*(100); VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100); VARJ:=MA(VARE,20)+STD(VARE,20); BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100); K:=SMA(VARF,3,1); 頂:=(REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (K>79); DRAWTEXT((REF(BIAS18,1)>=5) AND CROSS(VARJ,VARE) AND (K>79),h*1.02,"風險"),Coloryellow; 用法:紅買,藍觀望,綠賣通達信莊家最不願意看到的副圖源碼公式VAR1:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN)))); 買盤:=IF((CLOSE > OPEN),(VAR1 * (HIGH - LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2))); 賣盤:=IF((CLOSE > OPEN),(0 - (VAR1 * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE < OPEN),(0 - (VAR1 * (HIGH - LOW))),(0 - (VOL / 2)))); 買賣差:=(買盤 + 賣盤); STICKLINE((買賣差 < 0),0,買賣差,3,0),COLOR33FF33; 量比:=(VOL / MA(VOL,5)); JX1:=BARSSINCE(買盤); JY1:=IF(((121 > JX1) AND (JX1 > 0)),JX1,120); JY2:=IF(((4 > JX1) AND (JX1 > 0)),JX1,3); VAR30:=MA(VOL,JY2); 神比:=(買盤 / VAR30); 鬼比:=(賣盤 / VAR30); VAR2:=(HIGH - LOW); VAR3:=ABS((OPEN - CLOSE)); VAR4:=(HIGH - IF((CLOSE > OPEN),CLOSE,OPEN)); VAR5:=(IF((CLOSE > OPEN),OPEN,CLOSE) - LOW); VAR6:=((VAR3 / VAR2) * VOL); VAR7:=((VAR4 / VAR2) * VOL); VAR8:=((VAR5 / VAR2) * VOL); VAR9:=IF(((VOL / CAPITAL) > 0.001),1,EXP(ABS(LOG(((VOL / CAPITAL) * 100))))); VARA:=(((CLOSE - MA(CLOSE,5)) / MA(CLOSE,5)) * 100); VARB:=(((MA(CLOSE,5) > MA(CLOSE,10)) AND (MA(CLOSE,10) > MA(CLOSE,30))) AND (MA(CLOSE,30) > MA(CLOSE,60))); VARC:=((MA(CLOSE,5) < MA(CLOSE,10)) AND (MA(CLOSE,10) < MA(CLOSE,30))); VARD:=REF(CLOSE,1); VARE:=((SMA(MAX((CLOSE - VARD),0),6,1) / SMA(ABS((CLOSE - VARD)),6,1)) * 100); DRAWTEXT(((DATE > 700101) AND CROSS(84,VARE)),HIGH,"賣出"),COLORF2A3A4; VAR40:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),VAR6,買盤) + 買盤) / 2); VAR41:=((IF(((VAR7 > VAR6) AND (VAR7 > VAR8)),VAR7,買盤) + 買盤) / 2); VAR42:=((IF(((VAR8 > VAR6) AND (VAR8 > VAR7)),VAR8,買盤) + 買盤) / 2); VAR50:=((IF((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),VAR6,賣盤) + 賣盤) / 2); 三日上攻:=MA((((VAR40 + VAR41) + VAR42) / 3),JY2); 三日下攻:=MA(VAR50,JY2); 多頭:STICKLINE((CLOSE > MA(CLOSE,30)),0,VOL,3,1),COLOR0000FF; 空頭:STICKLINE((CLOSE < MA(CLOSE,30)),0,VOL,3,1),COLOR00FF00; STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)),0,VAR6,2,0),COLOR00FFFF; STICKLINE((((VAR6 >= VAR7) AND (VAR6 >= VAR8)) AND (CLOSE < OPEN)),0,VAR6,2,0),COLORFF0000; STICKLINE(((VAR8 > VAR6) AND (VAR8 > VAR7)),0,VAR8,2,0),COLORFFFFFF; STICKLINE(((VAR7 > VAR6) AND (VAR7 > VAR8)),0,VAR7,2,0),COLORFF00FF; STICKLINE((VOL > (MA(VOL,5) * 2.5)),0,VOL,1,0); STICKLINE((買盤 > 0),買盤,0,1,0),COLOR0000FF;上攻均量:=MA(買盤,JY1); 下攻均量:=MA(賣盤,JY1); DRAWTEXT(((((((((VAR7 > VAR6) AND (VARA > 2)) AND (VAR9 > VAR8)) AND (CLOSE > MA(CLOSE,5))) AND (CLOSE > MA(CLOSE,30))) AND (HIGH > MA(CLOSE,60))) AND (VOL > MA(VOL,5))) AND (VAR7 >= MA(VOL,5))),VOL,"▼出貨"); DRAWTEXT(((((((VAR8 > VAR6) AND (VAR8 > VAR7)) AND (VARA < (0 - 2))) AND (CLOSE < MA(CLOSE,30))) AND (VAR8 < (MA(VOL,5) / 2))) AND (MA(VOL,5) < MA(VOL,10))),VOL,"●低進"); DRAWTEXT((((((VAR6 > (MA(VOL,5) * 2)) AND (VAR6 >= VAR7)) AND (VAR6 >= VAR8)) AND (CLOSE > OPEN)) OR ((VOL > (MA(VOL,5) * 3)) AND VARB)),VOL,"◆強勢"); DRAWTEXT((((((量比 > 1) AND ((買盤 / 三日上攻) > 1.58)) AND IF((三日上攻 > 上攻均量),(三日上攻 > 三日下攻),(三日上攻 > REF(三日上攻,1)))) AND (三日下攻 < REF(三日下攻,1))) AND ((((CLOSE - REF(CLOSE,3)) / REF(CLOSE,3)) * 100) < 14)),(買盤 * 1.3),"參與"),COLOR99FF00; 換手率:=((VOL / CAPITAL) * 100); DRAWTEXT((((VOL / REF((SUM(VOL,5) / 5),1)) >= 2) AND (換手率 > 1)),(VOL * 1.1),"●量變"),COLOR00FFFF;白色燭,紅芯長,莊家找底在振蕩,俺也伺機建點倉。 黃色燭,紅芯長;莊家進貨強,俺也進貨等起航。粉色燭,紅芯長,莊家高拋低吸操作忙,俺也去逐浪。藍色燭,紅芯短,巨量綠尾長,莊家撤退,俺也清倉。巨量綠,藍燭長,趨勢破,急離場;等著跌,莫手癢。預測第二天買賣點上漲值:=MA((H+REF(L,1))/2,3);買進高點:=MA((H+REF(H,1))/2,3);VAR1:=((H+L+C)/3)*2-L;突破買入值:=MA(VAR1,3);下跌值:=MA((REF(H,1)+L)/2,3);賣出低點:=MA((REF(L,1)+L)/2,3);VAR2:=((H+L+C)/3)*2-H;突破賣出值:=MA(VAR2,3);次日賣出點:(上漲值+買進高點+突破買入值+H)/4,LINETHICK0;次日買入點:(下跌值+賣出低點+突破賣出值+L)/4,LINETHICK0;日強弱指數:(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;擺盪指標:(X+Y)/Z*100;50;1.5日擺盪指標大於70%,表示後勢看漲,如果小於30%,則表示後勢看跌,若在30%至70%之間,則表示看法中立。 2.如果日強弱指數數值大於50,表示後勢看漲機率較高。反之,數值小於50,則表示後勢看跌機率較高。量能指標{m1 2,200,5;m35 2,200,35;m135 2,200,135;m3 2,200,3}A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;實際量:VOL,LINETHICK0;{VAR1:=DYNAINFO(17)*REF(MA(VOL,5),1);VAR2:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;預測:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2)/10000;預測量:STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR1,VAR2),VAR1,0,7,1),COLORGRAY;}AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主買:IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),POINTDOT,COLORRED;主賣:IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;換手率%:VOL/CAPITAL*100,POINTDOT,COLORWHITE; STICKLINE(C>=REF(C,1) ,0,VOL,2.5,1),COLORRED;STICKLINE(C<REF(C,1),0,VOL,2.5,1),COLORGREEN;STICKLINE(主買>0,0,主買,2.5,0),COLORRED;STICKLINE(主賣<0 ,0,主賣,2.5,0),COLORGREEN;資金異動:VOL/MA(VOL,55)*100,COLORYELLOW;STICKLINE(資金異動>100 ,0,VOL,0.6,0),COLORYELLOW;MA5:MA(V,5),COLORWHITE;MA35:MA(V,35),COLORRED;MA135:MA(V,135),COLORFF75FF;MA3:MA(V,3),COLORGREEN;DRAWTEXT(CROSS(MA5,MA35),(V *1.05),""),COLORYELLOW; 1.A股指流通股多少億手;(判斷大盤和小盤的依據)9 V/ K; x$ r0 ?8 `: a# }2.柱狀圖中紅線框指總成交量,紅色填滿區域代表主動買入估算,綠色填滿區域代表主動賣出估算。(單位:金額)3.資金異動指近期此股有無異常資金進出,柱狀圖以黃色柱狀顯示;4.五角星代表五日均量上穿13日均量,量能放大。換手率就不說了,大家都知道。- r) B2 C% T2 ) t5.長時間無黃柱或希希拉拉,說明無大資金進入,股票將繼續原有趨勢;有黃色柱狀出現,此時有資金進入,連續黃柱出現,說明明顯有莊家進入,可跟進待漲。黃柱越集中,且30-60日內比較,明顯量能放大,說明有大庄進入,可能後期有大的行情出現。 6.另此副圖可完全取代預設的vol副圖指標。以節省版面空間。4 Q5 i- S) t6 i. O" x/ P# R7.本指標主力完全造不了假的,用的人再多也不會有任何問題,更不怕主力拿它騙人。{公式名稱: 短線英豪}MA05:MA(C,5)LINETHICK3,COLOR00CCFF;MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖離率:=(C-MA05)/MA05*100;BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3),NODRAW;IF(BB05>30 AND MA05>REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB05<0 AND MA05<REF(MA05,1), MA05,DRAWNULL),LINETHICK3,COLORGREEN;三拾日乖離率:=(C-MA30)/MA30*100,NODRAW;VAR1:=(MA20-MA30)>REF((MA20-MA30),1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1);VAR2:=(MA30-MA20)<REF((MA30-MA20),1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1);BB30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.1416;強勢狙擊:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加倉:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND MA05>REF(MA05,1) AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA10>REF(MA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;清倉:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>MA30 OR O>MA30) AND MA05<REF(MA05,1) AND 三拾日乖離率<REF(三拾日乖離率,1) AND MA10<REF(MA10,1),10);DRAWTEXT(加倉 ,LOW*0.98,"←加倉"),COLORRED;JC:=CROSS(0,五日乖離率) AND 三拾日乖離率<REF(三拾日乖離率,1) AND MA10>REF(MA10,1) ;減倉:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖離率,0),3)>=1 AND 三拾日乖離率>REF(三拾日乖離率,1) AND MA05>REF(MA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<MA30;買入:=FILTER(MR,10);DRAWTEXT(減倉,HIGH*1.02,"←風險"),COLORCYAN;DRAWTEXT(買入,LOW*0.98,"←買入"),COLORYELLOW;DRAWTEXT(清倉 ,HIGH*1.02,"←清倉"),COLORGREEN;DRAWTEXT(強勢狙擊,LOW*0.98,"←強勢狙擊"),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;壓力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撐:MA(REF(LLV(C,30),1),2),COLORABFF46;注意:再好的指標 也要遵守買賣指標!切記!切記!通達信 主圖紅色持股黃色注意風險綠色持幣15分鐘買入大V1:=EMA(CLOSE,60)-EMA(CLOSE,300);V2:=EMA(V1,300);V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;V4:SMA(V3,2,1);V5:SMA(V4,2,1);V6:=CLOSE/REF(CLOSE,3)>=1.1;V7:=BACKSET(V6,3);大漲買:IF((V7 AND COUNT(V7,3)=1),50,0),COLORMAGENTA,LINETHICK2;DRAWTEXT(大漲買,50,0"大漲買 "),COLORMAGENTA;V10:=PEAKBARS(3,15,1)<10;V12:=IF(V10=1,50,0);頭部:= IF(V12=50,100,0);賣:IF(頭部>REF(頭部,1),50,0),COLORGREEN,LINETHICK2;V9:=TROUGHBARS(3,15,1)<10;V11:=IF(V9=1,50,0);底部:= IF(V11=50,50,0);買:IF( 底部>REF(底部,1),40,0),COLORRED,LINETHICK2;DRAWTEXT(買,40,"買 "),COLORYELLOW;機構進倉指標VAR1:=MA(CLOSE,5),COLOR00FFFF;VAR6:=MA(CLOSE,54),COLORFF9900;VAR8:= DMA(EMA(CLOSE,12),SUM(VOL/CAPITAL,5)/3),LINETHICK2;VARA:=REF(CLOSE,1);VARE:=SMA(MAX(CLOSE-VARA,0),6,1)/SMA(ABS(CLOSE-VARA),6,1)*100;DRAWTEXT(DATE>700101 AND CROSS(84,VARE),HIGH,"☆機構減倉"),COLORGREEN;VARF:=(2*CLOSE+HIGH+LOW)/4;VAR10:=LLV(LOW,23);VAR11:=HHV(HIGH,23);VAR12:=EMA((VARF-VAR10)/(VAR11-VAR10)*100,6);VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,4);DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>0.3 AND COUNT(VAR12>VAR13,3) AND REF(LOW,1)=LLV(LOW,120) AND CLOSE>OPEN,1,0),LOW,"機構進場"),COLORYELLOW;RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;K24:=SMA(RSV24,3,1);D24:=SMA(K24,3,1);J24:=3*K24-2*D24;壓力位:IF(CROSS(J24,J),H,REF(H,BARSLAST(CROSS(J24,J)))),COLOR00FF33,LINETHICK1;支撐位:IF(CROSS(J,J24),L,REF(L,BARSLAST(CROSS(J,J24)))),COLORCC33CC,LINETHICK1;支撐價:LLV(LOW,34) ,COLOR7FFF00,LINETHICK2;阻力價:HHV(HIGH,19),COLORFF9900, LINETHICK2;十:MA(C,5),COLOR00FFFF,LINETHICK2;漲:IF(MA(CLOSE,5)>REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORRED,LINETHICK2;平:IF(MA(CLOSE,5)=REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLOR00FFFF,LINETHICK3;跌:IF(MA(CLOSE,5)<REF(MA(CLOSE,5),1),MA(CLOSE,5),DRAWNULL),COLORGREEN,LINETHICK2;DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)>C AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")>0,L-0.02,"M"),COLOR00FFFF;{MACD底背離}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)>C AND REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)<"KDJ.K" AND CROSS("KDJ.K","KDJ.D"),L-0.10,"◎K"),COLORFF00FF;{KDJ底背離}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)>C AND REF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2")>0,L-0.18,"◆R"),COLOR0000FF;{RSI底背離};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)<C AND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF")>0,H+0.16,"M"),COLOR00FF00;{MACD頂背離};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)<C AND REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K")>0,H+0.08,"◎K"),COLORFFFFCC;{KDJ頂背離}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)<C AND REF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)>"RSI.RSI1" AND CROSS("RSI.RSI2","RSI.RSI1")>0,H+0.04,"◆R"),COLORFF9900;{RSI頂背離};趨勢型指標:短VAR1:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*200;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=3*VAR2-2*VAR3;VAR5:=LLV(LOW,5);VAR6:=HHV(HIGH,5);VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2);VAR9:=3*VAR7-2*VAR8;VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);VARB:=POW(MA(LOW,5),2)+MA(LOW,5);VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5);VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10;VARE:=SMA(VARD,3,1)*1.5-100;VARF:=SMA(VARE,3,1);VAR10:=3*VARE-2*VARF;VAR11:=(HIGH+LOW+CLOSE*2)/4;VAR12:=EMA(VAR11,13);VAR13:=STD(VAR11,13);VAR14:=(VAR11-VAR12)*100/VAR13;VAR15:=EMA(VAR14,5);VAR16:=EMA(VAR15,13);VAR17:=EMA(VAR15,13)+200-100;VAR18:=EMA(VAR17,10);VAR19:=3*VAR17-2*VAR18;VAR1A:=VAR2+VAR7+VARE+VAR17;VAR1B:=VAR3+VAR8+VARF+VAR18;VAR1C:=VAR4+VAR9+VAR10+VAR19;VAR1D:=(HIGH+LOW+CLOSE)/3;VAR1E:=AMOUNT/VOL/100;VAR1F:=SUM(AMOUNT,5)/SUM(VOL,5)/100;VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;VAR23:=EMA(VAR22,24);VAR24:=STD(VAR22,24);VAR25:=(VAR22-VAR23)/VAR24*100;VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));VAR27:=EMA(VAR25,5);VAR28:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21));VAR29:=(VAR1F-MA(VAR1F,90))/(0.015*AVEDEV(VAR1F,90));VAR2A:=((VAR29+VAR28+VAR27+VAR26+VAR20)/5+165)/4;VAR2B:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;VAR2C:=(VAR2A+VAR2B)/2/1.1;短線: VAR2C, , COLORGREEN;MID: MA(短線,26), , COLORWHITE;UPPER: MID+2*STD(短線,26);LOWER: MID-2*STD(短線,26), , COLORFFFFFF;IF(短線>MID,MID,短線), , COLORRED;買點: DRAWICON(CROSS(短線,MID),MID*0.97,1);DRAWICON(CROSS(短線,LOWER),LOWER*0.97,3);賣點: DRAWICON(CROSS(UPPER,短線),UPPER*0.97,2);MID, , COLORYELLOW;大金莊上:EMA(C,3),COLORRED,LINETHICK1;中:EMA(C,5),COLOR00FF00,LINETHICK1;下:EMA(中,5),COLORWHITE,LINETHICK1;超買:MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2;超賣:MA(C,10)*IF(CAPITAL=0,0.95,0.9),POINTDOT,COLORRED,LINETHICK2;獲利盤%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;{此句為計算獲利盤比例,不需要可以不要}趨勢線:EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),POINTDOT,COLORFF00FF,LINETHICK4;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);支撐:=REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;阻力:=REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,N),COLOR888899;MA13:=MA(CLOSE,M),COLORFF00F0,LINETHICK2;VAR1:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) ANDREF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR3:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) ORREF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);VAR4:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);VAR5:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) ANDREF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) ANDREF(C,2)>=REF(C,4) AND C<REF(C,1);VAR6:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);VAR7:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR8:=VAR7 AND COUNT(VAR6,2);VAR9:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR9,2)=LLV(VAR9,7) AND COUNT(VAR9<0,2) ANDCROSS(VAR9,MA(VAR9,2)))=1,5);VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7) AND COUNT(VAR9>50,2) ANDCROSS(MA(VAR9,2),VAR9))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR8 AND NOT(REF(VAR8,1));強攻:=IF(MA3>REF(MA3,1) AND MA3>=0,MA13,DRAWNULL),COLORYELLOW,LINETHICK2;回調:=IF(MA3<REF(MA3,1) AND MA3>0,MA13,DRAWNULL),COLORGREEN,LINETHICK2;{KDJ}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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);買1:=(VAR14 OR VAR15) AND VAR11;買2:=(VAR14 OR VAR15) AND VAR4;買3:=(VAR14 OR VAR15) AND VAR2;買4:=(VAR2 AND VAR11) OR (VAR4 AND VAR11);買5:=(金叉 AND VAR4) OR (金叉 AND VAR2) OR (金叉 AND VAR11);{漲停}STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;{跌停}STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,-1),COLORGREEN;{藍}STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3.3,0),COLORFF7700;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.4,0),COLORFF9900;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.3,0),COLORFFBB00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.8,0),COLORCYAN;{紅}STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.3,0),COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR0000CC;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.3,0),COLOR0000FF;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.8,0),COLORCC66FF;{綠} STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR009900;STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,2.4,0),COLOR00BB00; STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,1.3,0),COLOR00DD00; STICKLINE(VAR3,OPEN,(OPEN+CLOSE)/2,0.8,0),COLOR00FF00;{灰}STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,3.3,0),COLOR999999;STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB; STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,1.3,0),COLORDDDDDD; STICKLINE(VAR4,OPEN,(OPEN+CLOSE)/2,0.8,0),COLORFFFFFF;STICKLINE(金叉,OPEN,CLOSE,1,0),COLORYELLOW;STICKLINE(死叉,OPEN,CLOSE,1,0),COLOR000099;DRAWICON(VAR16,LOW-0.02,7);DRAWICON(買1 OR 買2 OR 買3 OR 買4 OR 買5,LOW-0.01,1);DRAWICON(死叉 OR VAR12 OR CROSS(40,VAR9),HIGH+0.01,2);X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,"∠45升"),COLORWHITE;VAR81:=1;VAR82:=((((2*CLOSE)+HIGH)+LOW) / 4);低金叉進:=20,COLORYELLOW,LINETHICK2;高死叉出:=90,COLORGREEN,LINETHICK3;VAR84:=LLV(LOW,5);VAR85:=HHV(HIGH,4);C1:=(EMA((((VAR82-VAR84)/(VAR85-VAR84))*100),4)*VAR81),COLORFF00FF,LINETHICK2;C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR81),COLORFFFFFF,LINETHICK2;條件:=CROSS(C1,C2) AND C1<40;條件0:=CROSS(C2,C1) AND C1>90;TJ1:=CROSS(C1,C2);TJ2:=CROSS(C2,C1);TJ3:=CROSS(C1,C2) AND REF(C1,1)<20;TJ4:=CROSS(C2,C1) AND REF(C1,1)>80;DRAWTEXT(條件0,H*1.02,"S"),COLORBLUE;{DRAWTEXT(CROSS(C1,75),H*1.013,"險區"),COLORGREEN;}DRAWTEXT(TJ3,L*0.98,"買底"),COLORFF00FF;DRAWTEXT(TJ4,H*1.02,"逃頂"),COLORGREEN;E1:=BARSCOUNT(C);AH:=HHV(H,200);AL:=LLV(L,200);B0:=(AH-AL)/40;KB1:=H+B0;KB2:=L-B0;STICKLINE((E1+0)/34=FLOOR((E1+0)/34),KB2,KB2-0.8*B0,1,0),COLORYELLOW,LINETHICK3;DRAWTEXT((E1+0)/34=FLOOR((E1+0)/34),KB2-B0,"時窗"),COLORYELLOW;水平面:=EMA(CLOSE,89),COLOR3399FF;AAA:=(3*C+H+L+O)/6;短趨:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;中趨:=(LLV(短趨,2)+LLV(短趨,4)+LLV(短趨,6))/3;{STICKLINE(C>中趨,短趨,中趨,0,0),COLORYELLOW;}TTJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>短趨;立樁量:=FILTER(TTJ1,5);TTJ2:=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)));突破:=TTJ2=1;TTJ3:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法則:=TTJ3=1;成立:=三天法則 AND 突破;條件成立:=FILTER(成立,3);DRAWICON(條件成立,L*0.91,1);DRAWTEXT(條件成立,L*0.91,"立樁"),COLORFF26FF;MA(C,9),LINETHICK0,COLORYELLOW;MA(C,21),LINETHICK0,COLORRED;IF(MA(C,9)<REF(MA(C,9),1),MA(C,9),DRAWNULL),LINETHICK0,COLORBLUE;IF(MA(C,21)<REF(MA(C,21),1),MA(C,21),DRAWNULL),LINETHICK0,COLORGREEN;VAR90:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),4)<0) AND ((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2)>REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1))) AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2))) AND (REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),3)));DRAWTEXT(VAR90,L*0.98,"短買"),COLORRED;DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1)AND C>O,L*0.98,"追加"),COLORMAGENTA;DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)>C ANDREF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DIF","MACD.DEA"),1))+1)<"MACD.DIF" AND CROSS("MACD.DIF","MACD.DEA")>0,L-0.02,"M"),COLORFF00FF;{MACD底背離}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)>C ANDREF("KDJ.K",BARSLAST(REF(CROSS("KDJ.K","KDJ.D"),1))+1)<"KDJ.K" ANDCROSS("KDJ.K","KDJ.D"),L-0.10,"◎K"),COLORFF00FF;{KDJ底背離}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)>C ANDREF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI1","RSI.RSI2"),1))+1)<"RSI.RSI1" AND CROSS("RSI.RSI1","RSI.RSI2")>0,L-0.18,"◆R"),COLORFF00FF;{RSI底背離};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)<CAND REF("MACD.DIF",BARSLAST(REF(CROSS("MACD.DEA","MACD.DIF"),1))+1)>"MACD.DIF" AND CROSS("MACD.DEA","MACD.DIF")>0,H+0.16,"M"),COLORGREEN;{MACD頂背離};DRAWTEXT(REF(C,BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)<CAND REF("KDJ.K",BARSLAST(REF(CROSS("KDJ.D","KDJ.K"),1))+1)>"KDJ.K" AND CROSS("KDJ.D","KDJ.K")>0,H+0.08,"◎K"),COLORGREEN;{KDJ頂背離}DRAWTEXT(REF(C,BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)<C ANDREF("RSI.RSI1",BARSLAST(REF(CROSS("RSI.RSI2","RSI.RSI1"),1))+1)>"RSI.RSI1"AND CROSS("RSI.RSI2","RSI.RSI1")>0,H+0.04,"◆R"),COLORGREEN;{RSI頂背離};K線形態解盤原TT:=240/FROMOPEN;比:=TT;J12:=(HIGH - ((HIGH - LOW) / 3));J23:=(LOW + ((HIGH - LOW) / 3));AAA:=0;BBB:=CONST(LLV(L,100));MA1:=MA(CLOSE,5);MA2:=MA(CLOSE,10);MA3:=MA(CLOSE,20);MA4:=MA(CLOSE,60);MA5:=MA(CLOSE,120);T1{早晨之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T2{黃昏之星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.03 AND REF(OPEN,1) > REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2)),1,0));T3{長十字}:=CONST(IF((CLOSE=OPEN AND HIGH/LOW >1.03),1,0));T4{垂死十字}:=CONST(IF((CLOSE=OPEN AND CLOSE=LOW AND CLOSE!=HIGH),1,0));T5{早晨十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) < 0.95 AND REF(OPEN,1) < REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2)),1,0));T6{黃昏十字星}:=CONST(IF((REF(CLOSE,2)/REF(OPEN,2) > 1.05 AND REF(OPEN,1) > REF(CLOSE,2) AND REF(OPEN,1)=REF(CLOSE,1) ANDCLOSE/OPEN<0.95 AND CLOSE<REF(CLOSE,2)),1,0));T7{射擊之星}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE > MA(CLOSE,5)),1,0));T8{倒轉鎚頭}:=CONST(IF((MIN(OPEN,CLOSE)=LOW AND HIGH-LOW > 3*(MAX(OPEN,CLOSE)-LOW) AND CLOSE < MA(CLOSE,5)),1,0));T9{鎚頭}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE < MA(CLOSE,5)),1,0));T10{弔頸}:=CONST(IF((HIGH = MAX(OPEN,CLOSE) AND HIGH-LOW > 3*(HIGH-MIN(OPEN,CLOSE)) AND CLOSE>MA(CLOSE,5)),1,0));T11{穿頭破腳}:=CONST(IF(((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1))OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1))),1,0));T12{烏雲蓋頂}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.97 AND OPEN>REF(CLOSE,1) AND CLOSE<REF(CLOSE,1)),1,0));T13{曙光初現}:=CONST(IF((REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.03 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(CLOSE,1)),1,0));T14{身懷六甲}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND ABS(CLOSE-OPEN)/CLOSE<0.005 ANDMAX(CLOSE,OPEN) < MAX(REF(CLOSE,1),REF(OPEN,1)) AND MIN(CLOSE,OPEN) > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T15{十字胎}:=CONST(IF((ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1) > 0.04 AND CLOSE=OPEN ANDCLOSE < MAX(REF(CLOSE,1),REF(OPEN,1)) AND CLOSE > MIN(REF(CLOSE,1),REF(OPEN,1))),1,0));T16{平頂}:=CONST(IF((ABS(HIGH-REF(HIGH,1))/HIGH<0.001),1,0));T17{平底}:=CONST(IF(((ABS(LOW-REF(LOW,1))/LOW<0.001 AND ABS(REF(LOW,1)-REF(LOW,2))/REF(LOW,1)<=0.001)),1,0));T18{大陽燭}:=CONST(IF((CLOSE/OPEN>1.05 AND HIGH/LOW < CLOSE/OPEN+0.018),1,0));T19{三個白武士}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND CLOSE>OPEN AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1)),1,0));T20{雙飛烏鴉}:=CONST(IF((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND CLOSE/OPEN<0.98),1,0));T21{孕育線}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND (REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>=2/100 AND REF(OPEN,1)>=REF(CLOSE,1) AND (REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<=2/100 AND REF(OPEN,1)<=REF(CLOSE,2) AND REF(CLOSE,1)>=REF(OPEN,2) AND C>=OPEN AND (CLOSE-OPEN)/OPEN>=2/100 AND CLOSE>=REF(OPEN,1) AND OPEN<=REF(CLOSE,1) AND (MAX(CLOSE,REF(C,2))-MIN(CLOSE,REF(CLOSE,2)))/MIN(CLOSE,REF(CLOSE,2))<=1/100),1,0));T22{多方炮}:=CONST(IF((REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN),1,0));T23{出水芙蓉}:=CONST(IF(((OPEN<EMA(C,20) OR OPEN<EMA(C,40) OR OPEN<EMA(C,60)) AND (C>MAX(EMA(C,20),MAX(EMA(C,40),EMA(C,60))))AND (V/MA(V,30)>1.2 AND C/REF(C,1)>1.049)),1,0));T24{上升三部曲}:=CONST(IF((REF(CLOSE,4)/REF(OPEN,4)>1.03 AND REF(CLOSE,3)<REF(OPEN,3) AND REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN>1.03 AND CLOSE>REF(CLOSE,4)),1,0));T25{下跌三部曲}:=CONST(IF(( REF(CLOSE,4)/REF(OPEN,4)<0.97 AND REF(CLOSE,3)>REF(OPEN,3) AND REF(CLOSE,2)>REF(OPEN,2) AND REF(CLOSE,1)>REF(OPEN,1) AND REF(LOW,4)<REF(LOW,3) AND REF(LOW,4)<REF(LOW,2) AND REF(LOW,4)<REF(LOW,1) AND REF(HIGH,4)>REF(HIGH,3) AND REF(HIGH,4)>REF(HIGH,2) AND REF(HIGH,4)>REF(HIGH,1) AND CLOSE/OPEN<0.97 ANDCLOSE<REF(CLOSE,4)),1,0));T26{跳空缺口}:=CONST(IF(HIGH<REF(LOW,1) OR LOW>REF(HIGH,1),1,0));T27{三隻烏鴉}:=CONST(IF((REF(CLOSE,2)<REF(OPEN,2) AND REF(CLOSE,1)<REF(OPEN,1) AND CLOSE<OPEN AND REF(CLOSE,1)<REF(CLOSE,2) AND CLOSE<REF(CLOSE,1)),1,0));T28{光腳陰線}:=CONST(IF((LOW=CLOSE AND HIGH!=LOW),1,0));T29{光頭陽線}:=CONST(IF((HIGH=CLOSE AND HIGH!=LOW),1,0));T30{分離}:=CONST(IF((OPEN=REF(OPEN,1) AND (CLOSE-OPEN)*(REF(CLOSE,1)-REF(OPEN,1))<0),1,0));T31{長下影}:=CONST(IF(((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667),1,0));T32{長上影}:=CONST(IF(((HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)>0.667),1,0));T33{十字星}:=CONST(IF((CLOSE=OPEN AND HIGH!=LOW),1,0));T34{大陰燭}:=CONST(IF((OPEN/CLOSE > 1.05 AND HIGH/LOW < OPEN/CLOSE+0.018),1,0));T35{好友反攻}:=CONST(IF(((REF(CLOSE,1)<REF(OPEN,1) AND CLOSE>OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002) OR (REF(CLOSE,1)>REF(OPEN,1) AND CLOSE<OPEN AND ABS(CLOSE-REF(CLOSE,1))/CLOSE<0.002)),1,0));T36{傾盆大雨}:=CONST(IF((REF(C,1)/REF(O,1)>=1.03 AND O<REF(C,1) AND O>REF(O,1) AND C<REF(O,1)),1,0));T37{M9}:=CONST(V*比>REF(V,1) AND MA(V,5)>REF(MA(V,5),1));T38{M10}:=CONST(V*比<REF(V,1) AND MA(V,5)>REF(MA(V,5),1));T39{M11}:=CONST(V*比>REF(V,1)AND MA(V,5)<REF(MA(V,5),1));T40{M12}:=CONST(V*比<REF(V,1)AND MA(V,5)<REF(MA(V,5),1));T41{M13}:=CONST((((IF((CLOSE = OPEN),1,0) + IF((CLOSE >= J12),1,0)) + IF((CLOSE <= J23),1,0)) > 1));T42{M14}:=CONST((((AMOUNT / VOL) / 100) > REF(HIGH,1)));T43{M15}:=CONST((((AMOUNT / VOL) / 100) < REF(LOW,1)));DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA,"早晨之星,見底回升‖"),COLORFF00FF ;DRAWTEXT(T2=1 AND CURRBARSCOUNT=58,AAA,"黃昏之星,見頂回落‖"),COLORFFFF00 ;DRAWTEXT(T3=1 AND CURRBARSCOUNT=58,AAA,"長十字,重要的警告信號,原趨勢停頓或反轉‖"),COLOR00FFFF ;DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA,"垂死十字,下跌信號‖"),COLORFFFF00 ;DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA,"早晨十字星,上漲信號,見底回升‖"),COLORFF00FF ;DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA,"黃昏十字星,趨勢停頓或反轉,下跌或,見頂回落‖"),COLORFFFF00 ;DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA,"射擊之星,市場頂部就在眼前,可能見頂回落,可靠性低‖"),COLORFFFF00 ;DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA,"倒轉鎚頭構成一個看漲信號,可能見底回升‖"),COLORFF00FF ;DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA,"鎚頭,可能見底回升,如有量配合,信號強烈‖"),COLOR0000FF ;DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA+3,"弔頸,上升行情中見頂回落,頂部出現,見頂信號‖"),COLORFFFF00 ;DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA+3,"穿頭破腳,頂部出現,見頂回落信號‖"),COLORFFFF00 ;DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA+3,"烏雲蓋頂,見頂回落信號‖"),COLORFFFF00 ;DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA+3,"曙光初現,將演化為V型反轉或橫盤。後市見底回升‖"),COLORFF00FF ;DRAWTEXT(T14=1 AND CURRBARSCOUNT=58,AAA+3,"身懷六甲,底部,是見底回升,頂部,是見頂回落信號‖"),COLOR00FFFF ;DRAWTEXT(T15=1 AND CURRBARSCOUNT=58,AAA+3,"十字胎‖"),COLOR00FFFF ;DRAWTEXT(T16=1 AND CURRBARSCOUNT=58,AAA+4,"平頂,行情見頂,股價將反轉。但下跌力度較小‖"),COLORFFFFFF ;DRAWTEXT(T17=1 AND CURRBARSCOUNT=58,AAA+4,"平底,行情探低見底,股價行將反轉上升,但力度較小‖"),COLORFFFFFF ;DRAWTEXT(T18=1 AND CURRBARSCOUNT=58,AAA,"大陽燭,上升中,劇烈地向上攀升。下行中,劇烈地向上反彈‖"),COLOR0000FF ;DRAWTEXT(T19=1 AND CURRBARSCOUNT=58,AAA+3,"三個白武士,每日收盤價上移,表示可能見底回升‖"),COLORFFFFFF ;DRAWTEXT(T20=1 AND CURRBARSCOUNT=58,AAA+3,"雙飛烏鴉,行情開始疲軟將見頂回落‖"),COLORFF0000 ;DRAWTEXT(T21=1 AND CURRBARSCOUNT=58,AAA+3,"孕育線,注意股價位置‖"),COLOR00FFFF ;DRAWTEXT(T22=1 AND CURRBARSCOUNT=58,AAA+3,"多方炮,底部可能上漲,中間上漲中繼,頂部見頂信號‖"),COLOR00FFFF ;DRAWTEXT(T23=1 AND CURRBARSCOUNT=58,AAA+3,"出水芙蓉,陽線穿過20、40、60日均線,上攻勢頭初現‖"),COLORFF00FF ;DRAWTEXT(T24=1 AND CURRBARSCOUNT=58,AAA+3,"上升三部曲,上漲信號‖"),COLORFF00FF ;DRAWTEXT(T25=1 AND CURRBARSCOUNT=58,AAA+3,"下跌三部曲,下跌信號‖"),COLORFFFF00 ;DRAWTEXT(T26=1 AND CURRBARSCOUNT=58,AAA+3,"跳空缺口,突破盤整,向上漲、向下跌開始‖"),COLOR00FFFF ;DRAWTEXT(T27=1 AND CURRBARSCOUNT=58,AAA+3,"三隻烏鴉站枝頭,可能見頂回落‖"),COLORFFFF00 ;DRAWTEXT(T28=1 AND CURRBARSCOUNT=58,AAA,"光腳陰線,下跌信號‖"),COLORFFFF00 ;DRAWTEXT(T29=1 AND CURRBARSCOUNT=58,AAA,"光頭陽線,多方積極上攻態勢,後市看漲‖"),COLOR0000FF ;DRAWTEXT(T30=1 AND CURRBARSCOUNT=58,AAA+3,"分離,注意看漲分離和看跌分離‖"),COLOR00FFFF ;DRAWTEXT(T31=1 AND CURRBARSCOUNT=58,AAA,"長下影,有可能止跌回升,升勢末期,須小心‖"),COLOR00FFFF ;DRAWTEXT(T32=1 AND CURRBARSCOUNT=58,AAA,"長上影,表明行情上檔壓力沉重,升勢受阻‖"),COLORFFFF00 ;DRAWTEXT(T33=1 AND CURRBARSCOUNT=58,AAA,"十字星,重要的警告信號,原趨勢停頓或反轉‖"),COLOR00FFFF ;DRAWTEXT(T34=1 AND CURRBARSCOUNT=58,AAA,"大陰燭,後市向淡,發生逆轉‖"),COLORFF0000 ;DRAWTEXT(T35=1 AND CURRBARSCOUNT=58,AAA+3,"好友反攻,跌勢已盡,要展開一段反彈行情‖"),COLORFF00FF ;DRAWTEXT(T36=1 AND CURRBARSCOUNT=58,AAA+3,"傾盆大雨,見頂信號‖"),COLORFFFF00 ; DRAWTEXT(T37=1 AND CURRBARSCOUNT=58,AAA+2,"今日成交量大於昨日,且有繼續增大趨勢"),COLORYELLOW ;DRAWTEXT(T38=1 AND CURRBARSCOUNT=58,AAA+2,"今日成交量小於昨日,但有放大跡象"),COLORFFFF00 ;DRAWTEXT(T39=1 AND CURRBARSCOUNT=58,AAA+2,"今日成交量大於昨日, 但有縮小跡象"),COLORRED ;DRAWTEXT(T40=1 AND CURRBARSCOUNT=58,AAA+2,"今日成交量小於昨日,且有縮小跡象"),COLORRED ;DRAWTEXT(T41=1 AND CURRBARSCOUNT=58,AAA+1,"極端行情,在未來的幾日內有85%的機會變更方向"),COLORWHITE ;DRAWTEXT(T42=1 AND CURRBARSCOUNT=58,AAA+1,"上漲趨勢"),COLORRED ;DRAWTEXT(T43=1 AND CURRBARSCOUNT=58,AAA+1,"下跌趨勢"),COLORGREEN ;-1,COLORRED,POINTDOT;5,COLORRED,POINTDOT;動能短線OSC:=C-REF(MA(C,13),5){動能線};分界:=MA(OSC,8);DIFF:=EMA(OSC,12)-EMA(OSC,26);DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);ZF:=IF(C>REF(H,1),EMA(L,5),IF(C<REF(EMA(L,5),1),H,EMA(L,5)));KD:=BARSLAST(C<=ZF);XH:=KD=1 AND BARSLAST(MACD<REF(MACD,1));{柱線}STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD*4,0,0),COLORFF6600;STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD*4,0,0),COLOR0088FF;STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD*4,0,0),COLORFF88FF;STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD*4,0,0),COLORFFCCFF;{K柱}STICKLINE(OSC<REF(OSC,1)||(AMOUNT/REF(AMOUNT,1)<0.97),OSC,REF(OSC,1),3,0),COLORWHITE;{離場}STICKLINE(CROSS(REF(MACD,1),MACD) AND MACD<REF(MACD,1),OSC,REF(OSC,1),3,0),COLOR0088FF;{逃頂}STICKLINE(OSC>=REF(OSC,1),OSC,REF(OSC,1),3,1),COLORRED;{持股}STICKLINE(BARSLAST(XH)<2,OSC,REF(OSC,1),3,1),COLORRED;{延時}STICKLINE(XH,OSC,REF(OSC,1),2,0),COLORFF00FF;{啟動}STICKLINE(OSC<分界,OSC,REF(OSC,1),3,1),COLORFFFF00;{空倉}{動能線:OSC,COLORFFB5FF;加速線:(DEA-DIFF)*9.8,COLORGREEN};{字}{DRAWTEXT(BARPOS=SYSPARAM(3),0,"啟動"),COLORMAGENTA;DRAWTEXT(BARPOS=SYSPARAM(3),0,"持股"),COLORRED;DRAWTEXT(BARPOS=SYSPARAM(3),0,"逃頂"),COLORYELLOW;DRAWTEXT(BARPOS=SYSPARAM(3),0,"警惕"),COLORWHITE;DRAWTEXT(BARPOS=SYSPARAM(3),0,"空倉"),COLORFFA900};黃逃頂白離場:IF(1=1,DRAWNULL,DRAWNULL),COLORYELLOW;{逃頂}梅紅啟動:IF(1=1,DRAWNULL,DRAWNULL),COLORMAGENTA;{啟動}紅持股蘭空倉:IF(1=1,DRAWNULL,DRAWNULL),COLORFFA900;{空倉};{【MKR-13E5】【】}{N:=8};{DIFF:EMA(C,12)-EMA(C,26);DEA:EMA(DIFF,9);MACD:2*(DIFF-DEA),COLORSTICK;STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0),COLORFF6666;STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,0,0),COLORRED; STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0,0),COLOR00FFFF; STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0,0),COLORFF6666;DD1:=EMA(C,3)-EMA(C,8);DD2:=EMA(O,3)-EMA(O,8);DD3:=EMA(H,3)-EMA(H,8);DD4:=EMA(L,3)-EMA(L,8);DRAWICON(CROSS(DD1,DIFF) AND DIFF<-0.05,DD4-0.5,1);DRAWICON(CROSS(DIFF,DD1) AND DIFF>0.1,DD3+0.5,2);STICKLINE(DD1>=DD2,DD1,DD2,4,1),COLOR0099FF;STICKLINE(DD1<=DD2,DD1,DD2,4,1),COLOR00FF00};{A1:=BARSLAST(REF(CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9)),1));B1:=REF(C,A1+1)>C AND REF("MACD.DIF"(12,26,9),A1+1)<"MACD.DIF"(12,26,9) AND CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9));MACD底背離:=FILTER(B1>0,5);DRAWTEXT(MACD底背離,-1.68,"M底"),COLOR00FF00;C1:=BARSLAST(REF(CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9)),1));D11:=REF(C,C1+1)<C AND REF("MACD.DIF"(12,26,9),C1+1)>"MACD.DIF"(12,26,9) AND CROSS("MACD.DEA"(12,26,9),"MACD.DIF"(12,26,9));MACD頂背離:=FILTER(D11>0,5)};{DRAWTEXT(MACD頂背離,2.28,"M頂"),COLOR00DD00;A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));KDJ底背離:=FILTER(B2>0,5);DRAWTEXT(KDJ底背離,-1.98,"K底"),COLOR00FFFF;C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));D22:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));KDJ頂背離:=FILTER(D22>0,5)};{DRAWTEXT(KDJ頂背離,1.98,"K頂"),COLOR0066FF;A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));RSI底背離:=FILTER(B3>0,5);DRAWTEXT(RSI底背離,-2.28,"R底"),COLORFFCC66;C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));RSI頂背離:=FILTER(D3>0,5);DRAWTEXT(RSI頂背離,1.68,"R頂"),COLORFF00FF};{底背離:MACD底背離 OR KDJ底背離 OR RSI底背離;頂背離:MACD頂背離 OR KDJ頂背離 OR RSI頂背離};橫盤整理並且處在技術指標相對低位((240/FROMOPEN)*VOL)>(REF(VOL,1)+REF(VOL,2)+REF(VOL,3)+REF(VOL,4)+REF(VOL,5))*2/5;趨勢強弱的度TR:=SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1);HD:=HIGH-REF(HIGH,1);LD:=REF(LOW,1)-LOW;DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),N,1);DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),N,1);PDI:DMP*100/TR,COLORRED;MDI:DMM*100/TR,COLORGREEN;ADX:SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N,1),COLORYELLOW;16;30;(1)強的上升趨勢(牛市): PDI > MDI AND ADX >= 30 。(2)強的下降趨勢(熊市):PDI < MDI AND ADX >= 30 。判斷主力與散VAR1:=1;VAR2:=1/WINNER(CLOSE);VAR3:=MA(CLOSE,13);VAR4:=100-ABS((CLOSE-VAR3)/VAR3*100);VAR5:=LLV(LOW,75);VAR6:=HHV(HIGH,75);VAR7:=(VAR6-VAR5)/100;VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);VAR9:=SMA((OPEN-VAR5)/VAR7,20,1);VARA:=3*VAR8-2*SMA(VAR8,15,1);VARB:=3*VAR9-2*SMA(VAR9,15,1);VARC:=100-VARB;主力: (100-VARA)*VAR1,COLOR0099FF;散戶: MA(WINNER(CLOSE*0.95)*100,3)*VAR1,COLORYELLOW;新莊: (100-IF(VAR2>5,IF(VAR2<100,VAR2,VAR4-10),0))*VAR1,COLORGREEN,LINETHICK1,POINTDOT ;VARD:=散戶>VAR4;VARE:=REF(LOW,1)*0.9;VARF:=LOW*0.9;VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;VAR11:=EMA(VAR10,30);VAR12:=CLOSE-REF(CLOSE,1);VAR13:=MAX(VAR12,0);VAR14:=ABS(VAR12);VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;VAR17:=BARSCOUNT(CLOSE);VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;VAR1D:=SMA(VAR1C,4,1);VAR1E:=SMA(VAR1D,3,1);VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 AND VAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 AND VAR17>50;STICKLINE(VARD,VAR4,散戶,5,0),COLORWHITE;STICKLINE(1,新莊,100,1,0),COLORGREEN;STICKLINE(VAR20,0,80,5,0),COLORRED,LINETHICK3 ;100,COLORGREEN ,LINETHICK2 ;0,COLORYELLOW ,LINETHICK2 ;中線: 15,COLORBLUE ,LINETHICK2 ; 黃線是散戶!當散戶達到高值時,主力就沒有了,所以要主動賣出,反之則買進!當藍柱出現時候,就是近底部,驗證後的確有效!金牌逃頂VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;VAR2:=SMA(VAR1,9,1)+100;VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR4:=SMA(VAR3,3,1);VAR5:=SMA(VAR4,3,1)+100;VAR6:=VAR5-VAR2;趨勢: IF(VAR6>45,VAR6-45,0);STICKLINE(REF(趨勢,1)< 趨勢, 趨勢,REF(趨勢,1),2,0),COLORMAGENTA;STICKLINE(REF(趨勢,1)> 趨勢, 趨勢,REF(趨勢,1),2,0),COLORGREEN;強弱分界:50,COLORFFFFCC;底部:0,COLOR00FFFF;安全:20,COLORFFAA66,LINETHICK1;預警:80,COLORFFAA66,LINETHICK1;頂部:100,COLORFFFF33;V1:=LLV(LOW,10);V2:=HHV(H,25);價位線:=EMA((C-V1)/(V2-V1)*4,4);DRAWTEXT(CROSS(價位線,0.3),20+4,"●買"),COLORRED;DRAWTEXT(CROSS(3.5,價位線),100-4,"●賣"),COLORGREEN;VAR2Q:=REF(LOW,1);VAR3Q:=SMA(ABS(LOW-VAR2Q),3,1)/SMA(MAX(LOW-VAR2Q,0),3,1)*100;VAR4Q:=EMA(IF(CLOSE*1.3,VAR3Q*10,VAR3Q/10),3);VAR5Q:=LLV(LOW,30);VAR6Q:=HHV(VAR4Q,30);VAR7Q:=IF(MA(CLOSE,58),1,0);VAR8Q:=EMA(IF(LOW<=VAR5Q,(VAR4Q+VAR6Q*2)/2,0),3)/618*VAR7Q;VAR9Q:=IF(VAR8Q>100,100,VAR8Q);吸籌:STICKLINE(VAR9Q>-120,0,VAR9Q,3,1),COLORYELLOW;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走勢:=CEILING(SMA(AA5,13,8));AA6:=SMA(AA3,21,8);賣臨界:STICKLINE(走勢-AA6>85,103,100,15,1),COLORRED,LINETHICK2;主力線:=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),LINETHICK1,POINTDOT;超短線:(((主力線-LLV(主力線,21))/(HHV(主力線,21)-LLV(主力線,21)))*(4))*(25),LINETHICK2,COLORLIRED;VAR11:=3;VAR21:=(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(CROSS(VAR21,VAR11),100,0),COLORRED,LINETHICK2;通達信變盤買X1:=(3*C+L+O+H)/6; X2:=(20*X1+19*REF(X1,1)+18*REF(X1,2)+17*REF(X1,3)+16*REF(X1,4)+15*REF(X1,5)+14*REF(X1,6)+13* REF(X1,7)+12*REF(X1,8)+11*REF(X1,9)+10*REF(X1,10)+9*REF(X1,11)+8*REF(X1,12)+7*REF(X1,13)+6* REF(X1,14)+5*REF(X1,15)+4*REF(X1,16)+3*REF(X1,17)+2*REF(X1,18)+REF(X1,20))/210; AA:MA(X1,3),COLORRED,LINETHICK2; BB:= SMA(AA,3,1),COLORFFFF00; 拉升:HHV(AA,13),COLORYELLOW,LINETHICK2; 底部:LLV(MA(L,3),13),COLORFF8000; ZSX1 := MAX(MAX((H-L),ABS(REF(C,1)-H)),ABS(REF(C,1)-L)); ZSX2 :=MA(ZSX1,13); ZSX3:=REF(C,1)-REF(ZSX2,1); 止損:HHV(ZSX3,13){,CIRCLEDOT},COLORC5A965,LINETHICK2; L1:=HHV(H ,1 ); L2:=FORCAST(L1,3); L3:= (EMA(C,5)*7+EMA(C,5)*3)/10; L4:= MA(C,13); 持股:STICKLINE(L3>L4 AND C>O,C,O,3,0),COLORRED; 持幣:=STICKLINE(L3<L4 AND C>O,C,O,3,0),COLORCYAN; 警戒:STICKLINE(L4<H AND C<L4 AND O<C,O,C,3,0),COLORFF00FF; STICKLINE(L4<H AND C<L4 AND O<C,H,L,0,1),COLORFF00FF; 關注:STICKLINE(L4>O AND C>L4 AND O<C,O,C,3,0),COLORYELLOW; STICKLINE(L4>O AND C>L4,L,L*0.99,0,1),COLORYELLOW; 持倉:IF(CLOSE>SAR(4,2,20),SAR(4,2,20),DRAWNULL),CIRCLEDOT,COLORMAGENTA; 空倉:IF(CLOSE<SAR(4,2,10),SAR(4,2,10),DRAWNULL),CIRCLEDOT,COLORGREEN ; {CLOSE,CIRCLEDOT,COLORBLACK;} DKX1:= EMA(C,5); 長通下軌:MA(LOW,30)*0.85,COLORFF9900,LINETHICK2; IF(DKX1>X2,長通下軌,DRAWNULL),COLOR0076F0,LINETHICK2; IF(AA>=拉升,拉升,DRAWNULL),COLORRED,LINETHICK2; IF(AA<=BB,AA,DRAWNULL),COLOR139C00,LINETHICK2; IF(AA>=BB,AA,DRAWNULL),COLORRED,LINETHICK2; 指標說明:AA---類似於均線的5日線的性質 只要收盤不破該數值可一直持股 此線是一條變色線 紅色持股 綠色持幣 拉升---沒突破此線之前做為壓力看待 一旦突破既是拉升階段 積極介入 止損--顧名思義 跌破此線止損並做為壓力線看待 等待再次突破介入 用法: 粉紅色圓柱一直出現 持股 綠色圓柱出現持幣觀望 等待信號出現介入 AA和拉升 合併(數值一樣) 進入主升階段 只要分開 可以減掉部分倉位 鎖定利潤 TDX主圖「趨勢分析」+「開盤就跑」+「立樁量法則成立MA3:MA(CLOSE,3),COLORWHITE,LINETHICK1;MA4:MA(CLOSE,4),COLORGREEN,LINETHICK1;MA13:MA(CLOSE,13),COLORFF75FF,LINETHICK2;MA20:MA(CLOSE,20),COLORRED,LINETHICK1;MA30:MA(CLOSE,30),COLORYELLOW,LINETHICK1;MA60:MA(CLOSE,60),COLORWHITE,LINETHICK2;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,"∠45上升"),COLORWHITE;AA1:=AMOUNT ;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.99),"老鼠倉"),COLORWHITE;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);黑馬線:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趨勢線:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));DRAWTEXT(CROSS(趨勢線,0)AND 黑馬線<40,(HIGH* 0.97),"▲大黑馬"),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),"底背離"),COLORRED;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),"頂背離"),COLORGREEN;VAR2:=LLV(LOW,27);VAR3:=HHV(HIGH,34);VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*25;注意買:=IF((VAR4<10),80,100);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;超跌:=IF(J<0,10,0);BDDD:=LLV(J,2)=LLV(J,8);買入:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0);DRAWTEXT(買入 AND 注意買=100 AND 超跌=0,LOW,"短線"),COLORRED;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);買:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(買=1,5),LOW-0.03,"拉升"),COLORFFDE00;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;支撐:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORRED;獲利%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;漲家:INDEXADV,NODRAW,COLORRED;跌家:INDEXDEC,NODRAW,COLORGREEN;量能飽和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),NODRAW;STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR000033;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000066; STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000CC;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000FF;STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCC66FF;STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3.1,0 ),COLOR990000;STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000; STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3.1,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;漲跌:=REF(C,1);漲停:=IF((C-漲跌)*100/漲跌>=(10-0.01*100/漲跌),1,0);STICKLINE(漲停,OPEN,CLOSE,2,0),COLORRED;STICKLINE(漲停,H,L,0,0),COLORRED;跌停:=IF((漲跌-C)*100/漲跌>=(10-0.01*100/漲跌),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORWHITE;STICKLINE(跌停,H,L,0,1),COLORWHITE;K_T1:=MA(H,5)*(1+5/100);DRAWTEXT(CROSS(K_T1,C),H,"開盤就跑"),COLORFF8C00; 均價:=(3*C+H+L+O)/6;VAR11:=(8*均價+7*REF(均價,1)+6*REF(均價,2)+5*REF(均價,3)+4*REF(均價,4)+3*REF(均價,5)+2*REF(均價,6)+REF(均價,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR11;立樁量:=FILTER(TJ1,5);TJ2:=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)));突破:=TJ2=1;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立樁量)),REF(HIGH,BARSLAST(立樁量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立樁量)),REF(LOW,BARSLAST(立樁量)),1,0),COLORYELLOW;TJ3:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法則:=TJ3=1;成立:=三天法則 AND 突破;條件成立:=FILTER(成立,3);DRAWTEXT(條件成立,L*0.99,"成立"),COLORYELLOW;VAR21:=EMA(CLOSE,5);VAR22:=EMA(CLOSE,5);VAR23:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);DRAWTEXT(CROSS(VAR22,VAR23),LOW*0.96,"B");十三上穿20日,平滑向上大膽吃,三日掉頭穿四日,短線快出等下次,趨勢可參考圖中13日線的走勢.趨勢分析開盤量能飽和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),NODRAW;AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COLOR0000FF;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);DRAWBAND(AA10,RGB(150,50,50),AA12,RGB(0,100,50));X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,"∠45上升"),COLORWHITE;壓力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撐:MA(REF(LLV(C,30),1),2),COLORABFF46;AA1:=AMOUNT/V;BB1:=L<AA1*0.9;CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;DD1:=L<MA(C,5)*0.921;EE1:=V<MA(V,5)*1.5;FF1:=BB1 AND CC1 AND DD1 AND EE1;DRAWTEXT(FF1,(LOW* 0.99),"老鼠倉"),COLOR4080FF;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);黑馬線:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趨勢線:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));DRAWTEXT(CROSS(趨勢線,0)AND 黑馬線<40,(HIGH* 0.97),"▲大黑馬"),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CROSS(FF,MA15),(LOW * 0.99),"底背離"),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),"頂背離"),COLOR1880FF;VAR2:=LLV(LOW,27);VAR3:=HHV(HIGH,34);VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*25;注意買:=IF((VAR4<10),80,100);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;超跌:=IF(J<0,10,0);BDDD:=LLV(J,2)=LLV(J,8);買入:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0);DRAWTEXT(買入 AND 注意買=100 AND 超跌=0,LOW,"短線"),COLOR8000FF;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);買:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);DRAWTEXT(FILTER(買=1,5),LOW-0.03,"拉升"),COLORFFDE00;STICKLINE(CLOSE>OPEN,OPEN,LOW,0,0 ),COLOR0000FF; STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0,0 ),COLOR0000FF;STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0,0 ),COLOR00FF00; STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0,0 ),COLOR00FF00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFF8800;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFAA00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFCC00;STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLORFFEE00;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR000066;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR000088;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000AA;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000CC;VAR9Q:=C=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);STICKLINE(VAR9Q,C,(O+C)/2,3,0),COLOR000066;STICKLINE(VAR9Q,C,(O+C)/2,2,0),COLOR000088;STICKLINE(VAR9Q,C,(O+C)/2,1,0),COLOR0000AA;STICKLINE(VAR9Q,C,(O+C)/2,0,0),COLOR0000CC;VARAQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);STICKLINE(VARAQ,C,(O+C)/2,3,0),COLORFF22FF;STICKLINE(VARAQ,C,(O+C)/2,2,0),COLORFF44FF;STICKLINE(VARAQ,C,(O+C)/2,1,0),COLORFF66FF;STICKLINE(VARAQ,C,(O+C)/2,0,0),COLORFF88FF;VARBQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND (REF(C,1)>HHV(C,4) OR REF(C,1)<HHV(C,4)) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);STICKLINE(VARBQ,C,(O+C)/2,3,0),COLOR444444;STICKLINE(VARBQ,C,(O+C)/2,2,0),COLOR666666;STICKLINE(VARBQ,C,(O+C)/2,1,0),COLOR888888;STICKLINE(VARBQ,C,(O+C)/2,0,0),COLORAAAAAA;VARCQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);STICKLINE(VARCQ,O,(O+C)/2,3,0),COLOR004400;STICKLINE(VARCQ,O,(O+C)/2,2,0),COLOR006600;STICKLINE(VARCQ,O,(O+C)/2,1,0),COLOR008800;STICKLINE(VARCQ,O,(O+C)/2,0,0),COLOR00AA00;VARDQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);STICKLINE(VARDQ,O,(O+C)/2,3,0),COLORFF2200;STICKLINE(VARDQ,O,(O+C)/2,2,0),COLORFF4400;STICKLINE(VARDQ,O,(O+C)/2,1,0),COLORFF6600;STICKLINE(VARDQ,O,(O+C)/2,0,0),COLORFF8800;K_T1:=MA(H,5)*(1+5/100);DRAWTEXT(CROSS(K_T1,C),H,"開盤就跑"),COLORFF8C00; 均價:=(3*C+H+L+O)/6;VAR11:=(8*均價+7*REF(均價,1)+6*REF(均價,2)+5*REF(均價,3)+4*REF(均價,4)+3*REF(均價,5)+2*REF(均價,6)+REF(均價,8))/36;TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR11;立樁量:=FILTER(TJ1,5);TJ2:=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)));突破:=TJ2=1;STICKLINE(CLOSE,REF(HIGH,BARSLAST(立樁量)),REF(HIGH,BARSLAST(立樁量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(立樁量)),REF(LOW,BARSLAST(立樁量)),1,0),COLORYELLOW;TJ3:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立樁量)=3 AND CLOSE>REF(LOW,3),1,0)));三天法則:=TJ3=1;成立:=三天法則 AND 突破;條件成立:=FILTER(成立,3);DRAWTEXT(條件成立,L*0.99,"成立"),COLORYELLOW;VAR21:=EMA(CLOSE,5);VAR22:=EMA(CLOSE,5);VAR23:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);DRAWTEXT(CROSS(VAR22,VAR23),LOW*0.96,"B");年費20萬的公多:EMA(C,3),COLORYELLOW;空:EMA(C,5),COLOR00FF00;均衡:EMA(空,5),COLORWHITE,;VARF1:=COUNT(CROSS(多,均衡),2)=1;VARF2:=COUNT(CROSS(空,均衡),2)=1;ZAI:=FILTER(VARF1 AND VARF2,2);DRAWTEXT(ZAI,均衡," →◆●¤主升行情"),COLORFF00FF;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,"☆"),COLORRED;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;S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2;A:=MA(S,5),COLORGREEN,,LINETHICK2;BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;F:=MA(S,121);RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;K:=SMA(RSV,15,1);D:=SMA(K,15,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(84,RSI) , HIGH," →◆● 逃頂!!◆● "),COLORYELLOW ;S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0),STICK,LINETHICK3,COLORGREEN;DRAWTEXT(S1=2,LOW," →◆● 關注!! ◆● "), COLORGREEN;中軌:HHV(MA(H,13),13),COLORRED,LINETHICK2;趨勢:LLV(MA(H,13),1),COLORGREEN,LINETHICK2;成交量指標VOLUME:VOL;MAVOL1:MA(VOLUME,M1);MAVOL2:MA(VOLUME,M2);MAVOL3:MA(VOLUME,M3);VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));主動買盤:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));主動賣盤:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));買賣盤比:-(主動買盤/主動賣盤),,COLORYELLOW;STICKLINE(主動買盤>0,0,主動買盤,1,0),COLORRED;STICKLINE(主動賣盤<0,VOL,主動買盤,1,0),COLOR00FF00;換手:=VOL/CAPITAL*100,NODRAW;STICKLINE(換手>0 ,0, 主動買盤,0,0),COLORYELLOW;STICKLINE(換手>0,VOL, 主動買盤, 0,0) ,COLORRED;CR2MID:=REF(HIGH+LOW,1)/2;CR:SUM(MAX(0,HIGH-MID),N)/SUM(MAX(0,MID-LOW),N)*100;MA1:REF(MA(CR,M1),1+M1/2.5);MA2:REF(MA(CR,M2),1+M2/2.5);MA3:REF(MA(CR,M3),1+M3/2.5);MA4:REF(MA(CR,M4),1+M4/2.5);1.CR>400時,其10日平均線向下滑落,視為賣出信號;CR<40買進;2.CR 由高點下滑至其四條平均線下方時,股價容易形成短期底部;3.CR 由下往上連續突破其四條平均線時,為強勢買進點;4.CR 除了預測價格的外,最大的作用在於預測時間;5.BR、AR、CR、VR 四者合為一組指標群,須綜合搭配使用。寶塔線MA5:MA(C,5),COLORMAGENTA;MA10:MA(C,10),COLORBLUE;MA15:MA(C,15),COLOR00FF00;MA30:MA(C,30),COLORRED;B1:=REF(C,1);B2:=REF(C,2);SS:=IF(C>REF(C,1) AND REF(C,1)>=REF(C,2),1,IF(C<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IF(C>REF(C,2) AND REF(C,2)>REF(C,1),2,IF(C<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));SM:=IF(REF(SS,1)!=0,REF(SS,1),IF(REF(SS,2)!=0,REF(SS,2),IF(REF(SS,3)!=0,REF(SS,3),IF(REF(SS,5)!=0,REF(SS,5),IF(REF(SS,6)!=0,REF(SS,6),IF(REF(SS,7)!=0,REF(SS,7),0))))));STICKLINE(SS=1 OR SM>=1 AND SS=0,B1,C,3,0),COLORRED;STICKLINE(SS=-1 OR SM<=-1 AND SS=0,B1,C,3,0),COLORFFCC66;STICKLINE(SS=2,B2,C,3,0),COLORRED;STICKLINE(SS=-2,B2,C,3,0),COLORFFCC66;STICKLINE((SS=-1 OR SS=-2) AND SM>0,B2,B1,3,0),COLORRED;STICKLINE((SS=1 OR SS=2) AND SM<0,B2,B1,3,0),COLORFFCC66;AA:=CLOSE>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)<REF(CLOSE,3) AND IF(REF(CLOSE,3)<REF(CLOSE,4),1,IF(REF(CLOSE,4)<REF(CLOSE,5),REF(CLOSE,1)<REF(CLOSE,4) OR (REF(CLOSE,2)<REF(CLOSE,4) AND REF(CLOSE,3)>=REF(CLOSE,5)),IF(REF(CLOSE,5)<REF(CLOSE,6),1,REF(CLOSE,6)<REF(CLOSE,7))));BB:=CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,1)>REF(CLOSE,3) AND IF(REF(CLOSE,3)>REF(CLOSE,4),1,IF(REF(CLOSE,4)>REF(CLOSE,5),REF(CLOSE,1)>REF(CLOSE,4) OR (REF(CLOSE,2)>REF(CLOSE,4) AND REF(CLOSE,3)<=REF(CLOSE,5)),IF(REF(CLOSE,5)>REF(CLOSE,6),1,REF(CLOSE,6)>REF(CLOSE,7))));DRAWICON(AA AND CLOSE>REF(OPEN,2),0.99*LOW,1);DRAWICON(BB AND CLOSE<REF(CLOSE,2),HIGH*1.01,2);DRAWTEXT(AA AND CLOSE>REF(OPEN,2),LOW*0.98,"三平底翻紅"),COLOR00FFFF;DRAWTEXT(BB AND CLOSE<REF(CLOSE,2),HIGH*1.02,"三平頂翻綠"),,COLORBLUE; 一般寶塔線分析要點如下:(1)寶塔線翻紅之後,股價後市總要延伸一段上升行情。(2)寶塔線翻青之後,股價後市總要延伸一段下降行情。(3)盤局時寶塔線的小翻紅,小翻青,可依設定損失點或利潤點之大小而決定是否進出。(4)盤局或高檔時寶塔線長青而下,應即獲利了結,將手中持股賣出;反之,翻紅而上,則是介入時機。(5)寶塔線分析若能再與K線,移動平均線等共同運用,效果更佳。(6)寶塔線翻青下跌一段後,突然翻紅,須防範為假突破之現象,不可馬上搶進,須察3天。最好配合K線與成交量觀察再作決定。寶塔線結合5天均線,給出明確的多空立場,其規則如下:寶塔線紅色且5天均線上行,看多做多(可追多,不惜幫莊家抬轎);寶塔線紅色但5天均線走平或下行,看多不做多(有籌碼的繼續與狼共舞,沒籌碼的觀望不進);寶塔線綠色且5天均線下行,看空做空(對準接盤殺跌,不計盈虧);寶塔線綠色但5天均線走平或上行),看空不做空(沒籌碼的觀望不進,有籌碼的即使套牢也暫不割肉)。這樣操盤,心態極佳。板塊強弱指標VAR0:=("999999$C");VAR1:=("399110$C");VAR2:=("399120$C"); VAR3:=("399130$C"); VAR4:=("399131$C");VAR5:=("399132$C"); VAR6:=("399133$C"); VAR7:=("399134$C"); VAR8:=("399135$C");VAR9:=("399136$C"); VAR10:=("399137$C");VAR11:=("399138$C"); VAR12:=("399139$C");VAR13:=("399140$C");VAR14:=("399150$C");VAR15:=("399160$C"); VAR16:=("399170$C");VAR17:=("399180$C");VAR18:=("399190$C");VAR19:=("399200$C"); VAR20:=("399210$C");VAR21:=("399220$C"); 上證1:=(VAR0-REF(VAR0,1))/REF(VAR0,1)*100; 農林1:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*100; 採掘1:=(VAR2-REF(VAR2,1))/REF(VAR2,1)*100; 製造1:=(VAR3-REF(VAR3,1))/REF(VAR3,1)*100; 食品1:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100; 紡織1:=(VAR5-REF(VAR5,1))/REF(VAR5,1)*100; 木材1:=(VAR6-REF(VAR6,1))/REF(VAR6,1)*100; 造紙1:=(VAR7-REF(VAR7,1))/REF(VAR7,1)*100; 石化1:=(VAR8-REF(VAR8,1))/REF(VAR8,1)*100; 電子1:=(VAR9-REF(VAR9,1))/REF(VAR9,1)*100; 金屬1:=(VAR10-REF(VAR10,1))/REF(VAR10,1)*100; 機械1:=(VAR11-REF(VAR11,1))/REF(VAR11,1)*100; 醫藥1:=(VAR12-REF(VAR12,1))/REF(VAR12,1)*100; 水電1:=(VAR13-REF(VAR13,1))/REF(VAR13,1)*100; 建築1:=(VAR14-REF(VAR14,1))/REF(VAR14,1)*100; 運輸1:=(VAR15-REF(VAR15,1))/REF(VAR15,1)*100; IT業1:=(VAR16-REF(VAR16,1))/REF(VAR16,1)*100; 批零1:=(VAR17-REF(VAR17,1))/REF(VAR17,1)*100; 金融1:=(VAR18-REF(VAR18,1))/REF(VAR18,1)*100; 地產1:=(VAR19-REF(VAR19,1))/REF(VAR19,1)*100; 服務1:=(VAR20-REF(VAR20,1))/REF(VAR20,1)*100; 傳播1:=(VAR21-REF(VAR21,1))/REF(VAR21,1)*100; MAX1:=MAX(農林1,採掘1); MAX2:=MAX(製造1,MAX1); MAX3:=MAX(建築1,MAX2); MAX4:=MAX(食品1,MAX3); MAX5:=MAX(紡織1,MAX4); MAX6:=MAX(木材1,MAX5); MAX7:=MAX(造紙1,MAX6); MAX8:=MAX(石化1,MAX7); MAX9:=MAX(電子1,MAX8); MAX10:=MAX(金屬1,MAX9); MAX11:=MAX(機械1,MAX10); MAX12:=MAX(醫藥1,MAX11); MAX13:=MAX(水電1,MAX12); MAX14:=MAX(建築1,MAX13); MAX15:=MAX(運輸1,MAX14); MAX16:=MAX(IT業1,MAX15); MAX17:=MAX(批零1,MAX16); MAX18:=MAX(金融1,MAX17); MAX19:=MAX(地產1,MAX18); MAX20:=MAX(服務1,MAX19); MAX21:=MAX(傳播1,MAX20); A1:=IF(農林1=MAX21,0,農林1); A2:=IF(採掘1=MAX21,0,採掘1); A3:=IF(製造1=MAX21,0,製造1); A4:=IF(食品1=MAX21,0,食品1); A5:=IF(紡織1=MAX21,0,紡織1); A6:=IF(木材1=MAX21,0,木材1); A7:=IF(造紙1=MAX21,0,造紙1); A8:=IF(石化1=MAX21,0,石化1); A9:=IF(電子1=MAX21,0,電子1); A10:=IF(金屬1=MAX21,0,金屬1); A11:=IF(機械1=MAX21,0,機械1); A12:=IF(醫藥1=MAX21,0,醫藥1); A13:=IF(水電1=MAX21,0,水電1); A14:=IF(建築1=MAX21,0,建築1); A15:=IF(運輸1=MAX21,0,運輸1); A16:=IF(IT業1=MAX21,0,IT業1); A17:=IF(批零1=MAX21,0,批零1); A18:=IF(金融1=MAX21,0,金融1); A19:=IF(地產1=MAX21,0,地產1); A20:=IF(服務1=MAX21,0,服務1); A21:=IF(傳播1=MAX21,0,傳播1); MAXA1:=MAX(A1,A2); MAXA2:=MAX(A3,MAXA1); MAXA3:=MAX(A4,MAXA2); MAXA4:=MAX(A5,MAXA3); MAXA5:=MAX(A6,MAXA4); MAXA6:=MAX(A7,MAXA5); MAXA7:=MAX(A8,MAXA6); MAXA8:=MAX(A9,MAXA7); MAXA9:=MAX(A10,MAXA8); MAXA10:=MAX(A11,MAXA9); MAXA11:=MAX(A12,MAXA10); MAXA12:=MAX(A13,MAXA11); MAXA13:=MAX(A14,MAXA12); MAXA14:=MAX(A15,MAXA13); MAXA15:=MAX(A16,MAXA14); MAXA16:=MAX(A17,MAXA15); MAXA17:=MAX(A18,MAXA16); MAXA18:=MAX(A19,MAXA17); MAXA19:=MAX(A20,MAXA18); MAXA20:=MAX(A21,MAXA19); 上證漲幅:上證1,COLORRED; 漲幅榜首:MAX21,COLORYELLOW,NODRAW; 漲幅次位:MAXA20,COLORC0C0C0,NODRAW; STICKLINE(MAX21 AND MAX21>0,0,MAX21,2,1),COLORYELLOW; STICKLINE(MAXA20 AND MAXA20>0,0,MAXA20,0.1,0),COLORC0C0C0; DRAWTEXT(農林1=MAX21 AND 農林1>0,0-1,"①農林"),COLORCYAN; DRAWTEXT(採掘1=MAX21 AND 採掘1>0,0-1,"①採掘"),COLORCYAN; DRAWTEXT(製造1=MAX21 AND 製造1>0,0-1,"①製造"),COLORLIGRAY; DRAWTEXT(食品1=MAX21 AND 食品1>0,0-1,"①食品"),COLORLIGRAY; DRAWTEXT(紡織1=MAX21 AND 紡織1>0,0-1,"①紡織"),COLORBLUE; DRAWTEXT(木材1=MAX21 AND 木材1>0,0-1,"①木材"),COLORBLUE; DRAWTEXT(造紙1=MAX21 AND 造紙1>0,0-1,"①造紙"),COLORBLUE; DRAWTEXT(石化1=MAX21 AND 石化1>0,0-1,"①石化"),COLORBLUE; DRAWTEXT(電子1=MAX21 AND 電子1>0,0-1,"①電子"),COLORBROWN; DRAWTEXT(金屬1=MAX21 AND 金屬1>0,0-1,"①金屬"),COLORLIBLUE; DRAWTEXT(機械1=MAX21 AND 機械1>0,0-1,"①機械"),COLORRED; DRAWTEXT(醫藥1=MAX21 AND 醫藥1>0,0-1,"①醫藥"),COLORYELLOW; DRAWTEXT(水電1=MAX21 AND 水電1>0,0-1,"①電力"),COLORYELLOW; DRAWTEXT(建築1=MAX21 AND 建築1>0,0-1,"①建築"),COLORWHITE; DRAWTEXT(運輸1=MAX21 AND 運輸1>0,0-1,"①運輸"),COLORLICYAN; DRAWTEXT(IT業1=MAX21 AND IT業1>0,0-1,"①IT業"),COLORLICYAN; DRAWTEXT(批零1=MAX21 AND 批零1>0,0-1,"①批零"),COLORLICYAN; DRAWTEXT(金融1=MAX21 AND 金融1>0,0-1,"①金融"),COLORLIGREEN; DRAWTEXT(地產1=MAX21 AND 地產1>0,0-1,"①地產"),COLORGREEN; DRAWTEXT(服務1=MAX21 AND 服務1>0,0-1,"①服務"),COLORMAGENTA; DRAWTEXT(傳播1=MAX21 AND 傳播1>0,0-1,"①傳播"),COLORMAGENTA; DRAWTEXT(農林1=MAXA20 AND 農林1>0,0-2,"②農林"),COLORCYAN; DRAWTEXT(採掘1=MAXA20 AND 採掘1>0,0-2,"②採掘"),COLORCYAN; DRAWTEXT(製造1=MAXA20 AND 製造1>0,0-2,"②製造"),COLORLIGRAY; DRAWTEXT(食品1=MAXA20 AND 食品1>0,0-2,"②食品"),COLORLIGRAY; DRAWTEXT(紡織1=MAXA20 AND 紡織1>0,0-2,"②紡織"),COLORBLUE; DRAWTEXT(木材1=MAXA20 AND 木材1>0,0-2,"②木材"),COLORBLUE; DRAWTEXT(造紙1=MAXA20 AND 造紙1>0,0-2,"②造紙"),COLORBLUE; DRAWTEXT(石化1=MAXA20 AND 石化1>0,0-2,"②石化"),COLORBLUE; DRAWTEXT(電子1=MAXA20 AND 電子1>0,0-2,"②電子"),COLORBROWN; DRAWTEXT(金屬1=MAXA20 AND 金屬1>0,0-2,"②金屬"),COLORLIBLUE; DRAWTEXT(機械1=MAXA20 AND 機械1>0,0-2,"②機械"),COLORRED; DRAWTEXT(醫藥1=MAXA20 AND 醫藥1>0,0-2,"②醫藥"),COLORYELLOW; DRAWTEXT(水電1=MAXA20 AND 水電1>0,0-2,"②電力"),COLORYELLOW; DRAWTEXT(建築1=MAXA20 AND 建築1>0,0-2,"②建築"),COLORWHITE; DRAWTEXT(運輸1=MAXA20 AND 運輸1>0,0-2,"②運輸"),COLORLICYAN; DRAWTEXT(IT業1=MAXA20 AND IT業1>0,0-2,"②IT業"),COLORLICYAN; DRAWTEXT(批零1=MAXA20 AND 批零1>0,0-2,"②批零"),COLORLICYAN; DRAWTEXT(金融1=MAXA20 AND 金融1>0,0-2,"②金融"),COLORLIGREEN; DRAWTEXT(地產1=MAXA20 AND 地產1>0,0-2,"②地產"),COLORGREEN; DRAWTEXT(服務1=MAXA20 AND 服務1>0,0-2,"②服務"),COLORMAGENTA; DRAWTEXT(傳播1=MAXA20 AND 傳播1>0,0-2,"②傳播"),COLORMAGENTA; 神奇曲線趨勢:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1),COLORYELLOW;DRAWBAND(趨勢,RGB(155,50,50),50,RGB(0,100,50));轉強:IF(趨勢>50,趨勢,DRAWNULL),COLORRED;轉弱:IF(趨勢<50,趨勢,DRAWNULL),COLORGREEN;RSV:=(CLOSE-LLV(CLOSE,9))/(HHV(CLOSE,9)-LLV(CLOSE,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));DIFF:=EMA(CLOSE,2)-EMA(CLOSE,55);DEA:=EMA(DIFF,6);MACD:=2*(DIFF-DEA);轉點:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0);STICKLINE(轉點=1,50,50,2,0),COLORYELLOW;STICKLINE(轉點=0,50,50,2,0),COLORCYAN;STICKLINE(C,90,90,1,0),COLORYELLOW;STICKLINE(C,10,10,1,0),COLORCYAN;2通達信精準選股公式:條件選股公式源碼:年認同價:=MA(C,240);價格中樞:=(SUM(年認同價,0)/(BARSSINCE(年認同價>0)+239));箱頂:=價格中樞*1.2;箱底:=價格中樞*0.8;毛利潤率:=FINANCE(21)/FINANCE(20);成長價值:=年認同價*(1+毛利潤率);收益價值:=年認同價+FINANCE(33);回調認同:=EMA(EXPMA(C,20),13);多頭:=(回調認同>REF(回調認同,1))AND(成長價值>REF(成長價值,1))AND(收益價值>REF(收益價值,1))AND(DYNAINFO(7)>0);回調條件:=COUNT(C<回調認同,5)>=3;回調突破:=(REF(C,1)<=REF(回調認同,1))AND(C>回調認同)AND(回調條件)AND 多頭;成長條件:=COUNT(C<成長價值,5)>=3;成長突破:=(REF(C,1)<=REF(成長價值,1))AND(C>成長價值)AND(成長條件)AND 多頭;收益條件:=COUNT(C<收益價值,5)>=3;收益突破:=(REF(C,1)<=REF(收益價值,1))AND(C>收益價值)AND(收益條件)AND 多頭;箱底條件:=COUNT(C<箱底,5)>=3;箱底突破:=(REF(C,1)<=REF(箱底,1))AND(C>箱底)AND(箱底條件)AND 多頭;價格條件:=COUNT(C<價格中樞,5)>=3;價格突破:=(REF(C,1)<=REF(價格中樞,1))AND(C>價格中樞)AND(價格條件)AND 多頭;箱頂條件:=COUNT(C<箱頂,5)>=3;箱頂突破:=(REF(C,1)<=REF(箱頂,1))AND(C>箱頂)AND(箱頂條件)AND 多頭;突破買點:(回調突破+成長突破+收益突破+箱底突破+價格突破+箱頂突破); 專買老鼠倉{老鼠倉}AA1:=AMOUNT/V; BB1:=L<AA1*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L<MA(C,5)*0.921; EE1:=V<MA(V,5)*1.5; FF1:=BB1 AND CC1 AND DD1 AND EE1; DRAWTEXT(FF1,(LOW* 0.97),"老鼠倉"),COLOR4080FF; 老鼠倉是個很不錯的指標,信號發出一般都在一個波段的底部起漲之時。 根據本人的實踐,使用指標時候要注意幾點: 1 該指標可以添加到任何一個主圖裡面去,比如MA均線什麼的。 2 出現信號當天買進股票,第二天收陽繼續持股,直到出陰為止。 3 第二天出陰考慮賣出,非常適合短線操作! 老鼠倉(選股公式) AA1:=AMOUNT/V; BB1:=L<AA1*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L<MA(C,5)*0.921; EE1:=V<MA(V,5)*1.5; 老鼠倉:BB1 AND CC1 AND DD1 AND EE1;理想選股(選股公式)VAR1:=MA((LOW+HIGH+CLOSE)/3,5);VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);VAR4:=VAR1>REF(VAR1,1) AND REF(VAR1,1)<REF(VAR1,2);VAR5:=LOW<HHV(VAR1,13) AND HIGH>HHV(VAR1,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR6:=VAR5 AND COUNT(VAR4,2);VAR7:=VAR6 AND NOT(REF(VAR6,1));VAR8:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR9:=EMA(MA(C,13),13);VAR10:=FILTER((LLV(VAR8,2)=LLV(VAR8,7) AND COUNT(VAR8<0,2) AND CROSS(VAR8,MA(VAR8,2)))=1,5);VAR11:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR12:=FILTER(((CROSS(VAR11,0) OR CROSS(C,VAR9)) AND VAR10)=1,3);VAR13:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);買1:=(VAR12 OR VAR13) AND VAR10;買2:=(VAR12 OR VAR13) AND VAR3;買3:=(VAR12 OR VAR13) AND VAR2;買4:=(VAR2 AND VAR10) OR (VAR3 AND VAR10);買5:=(金叉 AND VAR3) OR (金叉 AND VAR2) OR (金叉 AND VAR10);ST:=EXIST(C/REF(C,1)>1.06,50);輸出:=(買1 OR 買2 OR 買3 OR 買4 OR 買5 OR VAR7) AND ST; MA5:=MA(C,5),COLORWHITE;X:=(3*C+L+O+H)/6;多空線:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK1;AB:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW;CROSS(MA5,多空線) and CROSS(C,AB) and 輸出 ;點石成金(選股公式)KS13:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*(-100); RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1); Var1:=CLOSE/MA(CLOSE,40)*100<76;Var2:=CLOSE/MA(CLOSE,60)*100<74;Var3:=HIGH>LOW*1.051;Var4:=Var3 AND COUNT(Var3,5)>1;Var4 AND (Var1 OR Var2) AND REF(KS13,1)>=10 AND REF(KS13,1)/KS13>=1.13 AND CLOSE/REF(CLOSE,1)>=1.02;牛市絕底(選股公式)VAR1:=REF(CLOSE,1);VAR2:=((SMA(MAX((CLOSE - VAR1),0),7,1) / SMA(ABS((CLOSE - VAR1)),7,1)) * 100);VAR3:=((SMA(MAX((CLOSE - VAR1),0),13,1) / SMA(ABS((CLOSE - VAR1)),13,1)) * 100);VAR4:=((100 * (HHV(HIGH,48) - LOW)) / HHV(HIGH,48));VAR5:=((100 * (HIGH - LLV(LOW,48))) / LLV(LOW,48));牛市絕底:VAR2 < 15 AND VAR3 < 20 AND (VAR2 + VAR3) > 20 AND VAR4 > 40 AND BARSCOUNT(CLOSE) > 47;飛彈一號(選股公式)var1:=c/ma(c,40)*100<78; var2:=c/ma(c,60)*100<74; var3:=h>=l*1.051; var4:=var3 and count(var3,5)>=2; xg:var4 and (var1 or var2) and count(h=l and c=o and c<ref(c,1),3)=0and hhv(v/capital,30)<0.8;牛魔無雙(選股公式)A4:=(HIGH-LOW)/HIGH*100+(C-REF(C,1))/REF(C,1)*100;B4:=EMA(MA(A4,50),5);c4:=B4>LLV(B4,5)*1.01 AND REF(B4,1)<REF(LLV(B4,5),1)*1.01AND LLV(B4,50)=LLV(B4,5);d4:=LLV(LOW,5)=LLV(LOW,50) AND LLV(LOW,5)<HHV(LOW,70)*0.5;xg:c4 AND d4;火牛神功(選股公式)Var1:=DMA(CLOSE,VOL/SUM(VOL,34));Var2:=DMA(CLOSE,VOL/SUM(VOL,13));Var3:=(CLOSE-Var1)/Var1*100;Var4:=(CLOSE-Var2)/Var2*100;Var4<=-12 AND Var3<=-19 ;跟庄建倉(選股公式)A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趨勢:=EMA(Var3,3)-10;機構建倉區:=(A09 > 0 AND (趨勢<20 OR 趨勢>REF(趨勢,1)AND 趨勢<50));Var7:=LLV(LOW,30);Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;Var12:=HHV(Var11,30)*8;火焰山:=EMA(IF(LOW<=Var7 AND 趨勢<40,(Var11+Var12),0),3)/618;選股:火焰山>0 AND 機構建倉區>0 AND 趨勢>REF(趨勢,1) AND REF(趨勢,1)<REF(趨勢,2);跟庄建倉源碼A01:=DYNAINFO(7);A03:=BARSCOUNT(CLOSE);A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);A05:=IF((A03 > 20),A04,0);A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));A07:=DMA(A06,(VOL / CAPITAL)) * 60;A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);Var1:=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);Var2:=EMA(Var1,8);Var3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);趨勢:=EMA(Var3,3)-10;STICKLINE(趨勢>80,趨勢,80,5,0);DRAWICON(CROSS(趨勢,0),0,1);STICKLINE((A09 > 0 AND (趨勢<20 OR 趨勢>REF(趨勢,1)AND 趨勢<50)),0,A09,6,0),colorFFff00;機構建倉區:0,LINETHICK0,colorFFFF00;Var4:=(趨勢-REF(趨勢,1))/REF(趨勢,1)*100;STICKLINE(趨勢<=13,0,20,3,0),colorcc9900;DRAWTEXT(FILTER(趨勢<=13,15),30,"準備現金"),colorcc9900;STICKLINE(趨勢<=13 AND Var4>13,0,50,2,0),color0099ff;Var5:=FILTER((趨勢<=13 AND Var4>13),10);DRAWTEXT(Var5,60,"買入"),color0099ff;STICKLINE(趨勢>=90 AND Var4,0,30,3,0),colorgray;Var6:=FILTER((趨勢>=90 AND Var4),10);DRAWTEXT(Var6,40,"清倉"),colorgray;Var7:=LLV(LOW,30);Var8:=HHV(HIGH,30); Var9:=EMA((CLOSE-Var7)/(Var8-Var7)*4,4)*25; STICKLINE(Var9>90,100,105,3,2),COLORRED;Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))*100; DRAWTEXT(IF(CROSS(Var9,Var10) AND Var9>87,95,0),88,"險"),Color00FF00;DRAWICON(CROSS(90,Var9),95,9);Var11:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;Var12:=HHV(Var11,30)*8;火焰山:EMA(IF(LOW<=Var7 AND 趨勢<40,(Var11+Var12),0),3)/618,COLORRED,linethick2;STICKLINE(火焰山>0,0 ,火焰山*1.2,4,0 ),COLORRED;Var13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;Var14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;趨勢線: 趨勢,colorff0000;Var16:=MAX(EMA(Var13,2)-EMA(Var14,5),0)*200;Var17:=EMA(Var16,5);波浪峰:Var17,stick,colorff00ff;STICKLINE(Var17<REF(Var17,1),0,Var17,1,0),color00ff00;Var18:=MA(趨勢線,8);if(CROSS(Var2,Var18) AND Var2<15,50,0),COLORRED;DRAWTEXT(CROSS(趨勢線,Var2)AND 趨勢線>REF(趨勢線,1)AND 趨勢線<50,50,"追漲"),COLORff00ff;風險區:IF(趨勢>80,趨勢,80),colorff00ff;雙信號"全倉"選股(選股公式)FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1:=MEMA(CLOSE,5);MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;MA3:=IF(MA2>0,MA2,MA2);MA5:=MA(CLOSE,5),COLOR888899;MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);{收盤價=4日內收盤價的最高值 AND 昨收>=2日前的收盤價} VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盤價=4日內收盤價的最高值 AND 昨收=4日內收盤價的最低值}VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);{收盤價=4日內收盤價的最低值 AND (昨收<2日前的收盤價}VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);{昨收=4日內收盤價的最低值 AND 收盤價>=2日前的收盤價}VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);{昨收=4日內收盤價的最高值 AND 收盤價<2日前的收盤價}VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);{今日V5向上形成拐點}VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR08:=VAR07 AND COUNT(VAR06,2);VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) AND CROSS(VAR09,MA(VAR09,2)))=1,5);VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) AND CROSS(MA(VAR09,2),VAR09))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR08 AND NOT(REF(VAR08,1));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;金叉:=CROSS(J,D);死叉:=CROSS(D,J);買1:=(VAR14 OR VAR15) AND VAR11;買2:=(VAR14 OR VAR15) AND VAR04;買3:=(VAR14 OR VAR15) AND VAR02;買4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);買5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);TTJ0:=VAR16;TTJ1:=買1 OR 買2 OR 買3 OR 買4 OR 買5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;XG11:=XG0 OR XG1;{以下波浪理論浪底重疊"買底"選股原碼}PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走強1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走強2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走強3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走強2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走強2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走強3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走強3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;{以下二者結合共同選股}XG:=XG11 OR XG22;W18:EXIST(XG,1);漲停板敢死隊(選股公式)Lx1:=(EMA((AMOUNT/10000000),1) /3);Lx2:=(WINNER(C)/0.3);Lx3:=IF(c<0,Lx1,V);Lx4:=IF(c<0,Lx2,V);Lx5:=IF((BARSCOUNT(C)>100),Lx3,Lx4);量:=Lx5/1000;動量:=(EMA(量,13)*1.5);A01:=IF((量>動量),量,0);A02:=BARSLAST((A01>0));A03:=REF(量,A02);趨勢:=IF((量<=A01),量,A03);突破:=IF(((((量=趨勢) and (C>REF(C,1))) and (量>REF(量,1))) and (REF(A02,2)>0)),888,0);量價突破:FILTER(突破 ,5 )*6;通達信選股公式:超級牛魔VAR3:=1; VAR4:=MA(CLOSE,5); VAR5:=MA(CLOSE,10); VAR6:=MA(CLOSE,30); VAR7:=MA(CLOSE,60); VAR8:=EMA(COST(85),7); VAR9:=EMA(COST(15),7); VARA:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4); VARB:=INTPART(VARA*100)/100; VARC:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7); VARD:=INTPART(VARC*100)/100; VARE:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28); VARF:=INTPART(VARE*100)/100; 短線趨勢:=EMA(CLOSE,5)-EMA(CLOSE,10); 中線趨勢:=EMA(短線趨勢,30); VAR10:=-100*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100; VAR11:=-100*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100; VAR12:=-100*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100; VAR13:=-100*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100; VAR14:=REF(中線趨勢,1); VAR15:=中線趨勢; VAR16:=VAR15-VAR14; VAR17:=REF(短線趨勢,1); VAR18:=短線趨勢; VAR19:=VAR18-VAR17; VAR1A:=OPEN; VAR1B:=CLOSE; 超級牛魔王:IF(VAR1A<=VAR4 AND VAR1A<=VAR5 AND VAR1A<=VAR6 AND VAR1B>=VAR4 AND VAR1B>=VARF AND VAR16>0 AND VAR19>0 AND VAR3=1,0.5,0); 盤中參考VAR3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR4:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);VAR27:=VAR3<REF(VAR4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);關注:VAR27 AND COUNT(VAR27,30)=1;
初升介入1V1:=(C-LLV(L,20))/(HHV(H,20)-LLV(L,20))*100;V2:=SMA(V1,20,1); V3:=SMA(V2,15,1); V4:=(3*V2+2*V3)/4; V5:= REF(V4,1); RSA:=SMA(MAX(V4-V5,0),2,1)/SMA(ABS(V4-V5),2,1)*100; RSB:=MA(RSA,10); AA:=VOL/REF(VOL,1)>2; BB:=CLOSE/REF(CLOSE,1)>1.07; 初升介入:IF(AA AND BB,CROSS(RSA,RSB),DRAWNULL);主力介入VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; VAR2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; VAR3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; VAR4:=(VAR1+2*VAR2+3*VAR3)/6; VAR5:=MA(VAR4,3)-STD(VAR4,3); VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(VARA,3,1),COLORYELLOW; VARB:=SMA(K,3,1); J:=3*K-2*VARB,COLORGREEN; 主力介入: CROSS(J,VARB) AND COUNT(VAR5<-16,4)>=1,COLORWHITE;旺狗出擊旺狗出擊:CROSS(C,MA(CLOSE,55) + 2*STD(CLOSE,55)) AND C>OAND VOL>1.6*REF(VOL,1) AND VOL>=2*MA(VOL,60) ANDEMA(WINNER(C)*70,3)>EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3)AND VOL>=1.6*MA(VOL,5) ;
五線選股AVR1:=EMA(CLOSE,10); AVR2:=(46.18*EMA(CLOSE,10)-31.82*EMA(CLOSE,4))/14.36; AVR3:=MA(CLOSE,9); AVR4:=MA(CLOSE,20); 五線選股:IF(CROSS(AVR1,AVR4) AND CROSS(AVR3,AVR4) AND CROSS(AVR4,AVR2),1,0); 狂牛啟動1VARE:=(C-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;SOLE:=SMA(SMA(VARE,3,1),3,1);BUY:=3*SMA(VARE,3,1)-2*SOLE;SCCOUNT:=COUNT(BARSLAST(CROSS(SOLE,BUY)),BARSLAST(CROSS(SOLE,BUY)));選股1:BUY>SOLE AND REF(BUY,1)<REF(SOLE,1);狂牛啟動2VARE:=(C-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;SOLE:=SMA(SMA(VARE,3,1),3,1);BUY:=3*SMA(VARE,3,1)-2*SOLE;SCCOUNT:=COUNT(BARSLAST(CROSS(SOLE,BUY)),BARSLAST(CROSS(SOLE,BUY)));選股2:CROSS(BUY,SOLE) AND REF(SOLE,1)/REF(BUY,1)<=1.5 AND SOLE<64 AND SCCOUNT=1;狂牛啟動3VAR2:=1;VAR3:=REF(HIGH,1)*1.1;VAR4:=HIGH*1.1;VAR5:=(VAR4*VOL+VAR3*(CAPITAL-VOL))/CAPITAL;VAR6:=REF(LOW,1)*0.9;VAR7:=LOW*0.9;VAR8:=(VAR7*VOL+VAR6*(CAPITAL-VOL))/CAPITAL;VAR9:=EMA(VAR8,30);VARA:=EMA(VAR5,30);VARB:=VARA-2;VARC:=IF(C<=VAR9,VARB,VARA);VARD:=MA(C,80)-MA(C,10)/17;準備:=STICKLINE(VARC-VARB=0 AND VAR2 AND CROSS((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,MA((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,3)),50,0,5,0);選股3: FILTER(VARC-VARB=0 AND CROSS((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,MA((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,3)),4);
短線通道VAR1:=(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*200; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,3,1); VAR4:=3*VAR2-2*VAR3; VAR5:=LLV(LOW,5); VAR6:=HHV(HIGH,5); VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2; VAR8:=EMA(0.667*REF(VAR7,1)+0.333*VAR7,2); VAR9:=3*VAR7-2*VAR8; VARA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5); VARB:=POW(MA(LOW,5),2)+MA(LOW,5); VARC:=POW(MA(HIGH,5),2)+MA(HIGH,5); VARD:=(VARA-LLV(VARB,64))/(HHV(VARC,64)-LLV(VARB,64))*150+65-10; VARE:=SMA(VARD,3,1)*1.5-100; VARF:=SMA(VARE,3,1); VAR10:=3*VARE-2*VARF; VAR11:=(HIGH+LOW+CLOSE*2)/4; VAR12:=EMA(VAR11,13); VAR13:=STD(VAR11,13); VAR14:=(VAR11-VAR12)*100/VAR13; VAR15:=EMA(VAR14,5); VAR16:=EMA(VAR15,13); VAR17:=EMA(VAR15,13)+200-100; VAR18:=EMA(VAR17,10); VAR19:=3*VAR17-2*VAR18; VAR1A:=VAR2+VAR7+VARE+VAR17; VAR1B:=VAR3+VAR8+VARF+VAR18; VAR1C:=VAR4+VAR9+VAR10+VAR19; VAR1D:=(HIGH+LOW+CLOSE)/3; VAR1E:=AMOUNT/VOL/100; VAR1F:=SUM(AMOUNT,5)/SUM(VOL,5)/100; VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34)); VAR21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL); VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4; VAR23:=EMA(VAR22,24); VAR24:=STD(VAR22,24); VAR25:=(VAR22-VAR23)/VAR24*100; VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24)); VAR27:=EMA(VAR25,5); VAR28:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21)); VAR29:=(VAR1F-MA(VAR1F,90))/(0.015*AVEDEV(VAR1F,90)); VAR2A:=((VAR29+VAR28+VAR27+VAR26+VAR20)/5+165)/4; VAR2B:=(VAR1A+VAR1B+VAR1C*30)/32/5-15; VAR2C:=(VAR2A+VAR2B)/2/1.1; 短線:=VAR2C; MID:=MA(短線,26); UPPER:=MID+2*STD(短線,26); LOWER:=MID-2*STD(短線,26); {LCJ2:=IF(短線>MID,MID,短線); }{買點: DRAWICON(CROSS(短線,MID),MID*0.97,1); }{DRAWICON(CROSS(短線,LOWER),LOWER*0.97,3); }{賣點: DRAWICON(CROSS(UPPER,短線),UPPER*0.97,2); MID, , COLORYELLOW;}{多頭買入} ENTERLONG:CROSS(短線,MID) AND UPPER-MID>50;出手就贏1RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);CROSS(K,D) AND D<30;出手就贏2RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);CROSS(K,D) AND D<80;
套利狐狸VAR1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL); VAR2:=REF(HIGH,10)/CLOSE>1.35; V3: (CLOSE-VAR1)/VAR1*100<-30 AND VAR2;乘勝追擊1VAR1:=WINNER(CLOSE)-WINNER(OPEN);VAR2:=REF(CLOSE,1);VAR3:=SMA(MAX(CLOSE-VAR2,0),5,1)/SMA(ABS(CLOSE-VAR2),5,1)*100;VAR4:=CLOSE/MA(CLOSE,3)>=1.05;VAR5:=MA(VOL,8)/MA(VOL,45)>=2.5;VAR6:=WINNER(CLOSE)-WINNER(OPEN);VAR7:=REF(CLOSE,1);VAR8:=SMA(MAX(CLOSE-VAR7,0),5,1)/SMA(ABS(CLOSE-VAR7),5,1)*100;VAR9:=VAR6>=0.3 AND MA(VOL,6)/MA(VOL,26)>=1.9 AND VOL>REF(VOL,1) AND COUNT(VAR8<20,20)>=1 AND CLOSE/MA(CLOSE,3)>=1.07;VARA:=VAR1>=0.4 AND VAR5 AND COUNT(VAR3<20,20)>=1 AND VAR4 AND CLOSE>MA(CLOSE,85) AND VOL>REF(VOL,1);(VARA OR VAR9);逆勢操作1VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);VAR2:=DMA(CLOSE,VOL/MA(VOL,32)/32);VAR3:=(CLOSE-VAR1)/VAR1*100<-8;VAR4:=(VAR1-VAR2)/VAR2*100<-21;VAR5:=VAR3 AND VAR4 AND (OPEN>CLOSE OR OPEN<CLOSE) AND (OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND (REF(OPEN,6)>REF(CLOSE,6) OR REF(OPEN,6)<REF(CLOSE,6)) AND (REF(OPEN,7)>REF(CLOSE,7) OR REF(OPEN,7)<REF(CLOSE,7));VAR6:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-23;VAR7:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100;VAR8:=SMA(VAR7,50,1);VAR9:=SMA(VAR8,40,1);VARA:=VAR6 AND VAR9<23 AND COUNT(VAR6,2)=1 AND (OPEN>CLOSE OR OPEN<CLOSE) AND OPEN/REF(CLOSE,1) >0.96 ;(VAR5 OR VARA) ;牛市專利1VAR1:=REF(CLOSE,3)*0.844;VAR2:=REF(CLOSE,13)*0.767;VAR3:=INDEXC;VAR4:=INDEXV;VAR5:=MIN(VAR1,VAR2);VAR6:=100*VOL/CAPITAL;VAR7:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;VAR8:=(CLOSE-VAR5)/CLOSE<0.07 AND SUM(VAR6,3)/3<2.345 AND VAR3>MA(VAR3,450) AND MA(VAR4,61)/MA(VAR4,80)>0.923 AND CLOSE>MA(CLOSE,190);VAR9:=VAR3>MA(VAR3,450) AND VAR7<-16.5 AND MA(VAR4,61)/MA(VAR4,80)>0.92 AND CLOSE>MA(CLOSE,215) AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)<REF(CLOSE,1)) AND (REF(OPEN,2)>REF(CLOSE,2) OR REF(OPEN,2)<REF(CLOSE,2)) AND (REF(OPEN,3)>REF(CLOSE,3) OR REF(OPEN,3)<REF(CLOSE,3)) AND (REF(OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)<REF(CLOSE,4)) AND (REF(OPEN,5)>REF(CLOSE,5) OR REF(OPEN,5)<REF(CLOSE,5)) AND VOL/CAPITAL<0.075;(VAR8 OR VAR9);
同時金叉DIF:=EMA(CLOSE,9)-EMA(CLOSE,17);DEA:=EMA(DIF,8);MACD:=(DIF-DEA)*2;RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI2:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;RSI3:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;選股:CROSS(DIF,DEA) AND CROSS(J,D) AND CROSS(RSI1,RSI3);帶量突破VAR1:=EMA(COST(80),10); COUNT(CROSS(CLOSE,VAR1),2)>=1 AND VOL/CAPITAL>=0.1;攻擊箱頂VAR1:=HHV(MA((LOW+HIGH+CLOSE+OPEN)/4,5),58); BETWEEN(CLOSE,VAR1*1.001,VAR1) AND REF(VAR1,3)=VAR1 AND VOL>REF(VOL,2);
果斷介入 VAR1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100; VAR2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100; VAR3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100; VAR4:=(VAR1+2*VAR2+3*VAR3)/6; VAR5:=MA(VAR4,3)-STD(VAR4,3); VAR6:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; VAR7:=SMA(VAR6,3,1); VAR8:=SMA(VAR7,3,1); VAR9:=3*VAR7-2*VAR8; CROSS(VAR9,VAR8) AND COUNT(VAR5<-12 AND VAR5>-14,3)>=1;暴裂旋風VAR1:=ABS(HIGH-LOW); SUM(VAR1,7)/CLOSE>0.5 AND SUM(VAR1,7)/CLOSE<0.8 AND CLOSE>7 AND CLOSE<11;穩贏劍VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100; VAR2:=SMA(VAR1,3,1); VAR3:=SMA(VAR2,3,1); VAR4:=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); VAR5:=CROSS(VAR4,10) AND VAR3<N; 抄底:VAR5;
領頭羊白色:=SMA(HIGH,21,2)*1.05,; 黃色:=SMA(LOW,21,2)*0.95; 粉色:=SMA(LOW,5,1); 綠色:=SMA(CLOSE,2,1),; 波段買入:=IF(CROSS(綠色,粉色),白色*1.05,粉色); 領頭羊:=IF(CROSS(綠色,白色),白色*1.10,黃色); 領頭羊>黃色 OR 波段買入>粉色; 天星踏浪VARC:=(2*CLOSE+HIGH+LOW)/4; VARD:=LLV(LOW,34); VARE:=HHV(HIGH,34); VARF:=LLV(LOW,13); VAR10:=HHV(HIGH,13); VAR11:=EMA((VARC-VARF)/(VAR10-VARD)*100,5); VAR12:=EMA((VARC-VARD)/(VARE-VARD)*100,8); 金浪:= VAR11; AA:=EMA(VAR11,7); 海浪:= VAR12; IF(CROSS(金浪,AA) AND AA<=25 ,1,0);黑馬絕技EMA13:=EMA(C,13); EMA30:=EMA(C,30); EMA60:=EMA(C,60); EMA90:=EMA(C,90); EMA120:=EMA(C,120); EMA250:=EMA(C,250); F1:=EMA30-EMA60<130/1000 AND EMA30-EMA90<230/1000 AND EMA30-EMA120<330/1000; F2:=EMA60-EMA30<130/1000 AND EMA60-EMA90<230/1000 AND EMA60-EMA120<330/1000; F3:=EMA90-EMA30<130/1000 AND EMA90-EMA60<230/1000 AND EMA90-EMA120<330/1000; F4:=EMA120-EMA30<130/1000 AND EMA120-EMA60<230/1000 AND EMA120-EMA90<330/1000; F5:=EMA30-EMA60<100/1000 AND EMA30-EMA90<200/1000; FF1:=F1 AND F2 AND F3 AND F4 AND CROSS(EMA30,EMA60); FF2:=F1 AND F2 AND F3 AND F4 AND CROSS(EMA(C,13),EMA30); FF3:=F5 AND C>EMA250 AND CROSS(EMA30,EMA60); G1:=EMA60-EMA90<220/1000 AND EMA60-EMA120<320/1000 AND EMA60-EMA250<420/1000; G2:=EMA90-EMA30<220/1000 AND EMA90-EMA60<320/1000 AND EMA90-EMA250<420/1000; G3:=EMA120-EMA60<220/1000 AND EMA120-EMA90<320/1000 AND EMA120-EMA250<420/1000; G4:=EMA250-EMA60<220/1000 AND EMA250-EMA90<320/1000 AND EMA250-EMA120<420/1000; GG1:=G1 AND G2 AND G3 AND G4 AND CROSS(EMA13,EMA30); GG2:=G1 AND G2 AND G3 AND G4 AND CROSS(EMA30,EMA60); FF1 OR FF2 OR FF3 OR GG1 OR GG2;
黑馬起步A1:=VOL=HHV(VOL,120); A2:=CLOSE/OPEN>1.05; TJ:=A1 AND A2; TJ AND (REF(BARSLAST(TJ),1)>80 OR BARSSINCE(TJ)=0);三底背離DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); A1:=BARSLAST(REF(CROSS(DIFF,DEA),1)); B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA); A2:=BARSLAST(REF(CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)),1)); B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3)); A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1)); B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)); 底背離:B1>0 OR B2>0 OR B3>0; 蓄勢待發V0:=EMA(C,5); EMA10:=EMA(C,10); EMA20:=EMA(C,20); EMA30:=EMA(C,30); EMA60:=EMA(C,60); M1:=1000*EMA10/EMA60<=1015 AND 1000*EMA10/EMA60>=975; M2:=1000*EMA20/EMA60<=1020 AND 1000*EMA20/EMA60>=980; M3:=1000*EMA30/EMA60<=1015 AND 1000*EMA30/EMA60>=985; M4:=M1 AND M2 AND M3 AND CROSS(V0,EMA10); M5:=M1 AND M2 AND M3 AND CROSS(V0,EMA30); T1:=1000*EMA10/EMA30<=1010 AND 1000*EMA10/EMA30>=990; T2:=1000*EMA20/EMA30<=1010 AND 1000*EMA20/EMA30>=990; T3:=T1 AND T2 AND CROSS(V0,EMA10); T4:=T1 AND T2 AND CROSS(V0,EMA30); M4 OR M5 OR T3 OR T4;
突破指標{一是突破盤整;二是突破前高;三是突破平台}W1:=C=HHV(C,20); W2:=BARSLAST(W1); W3:=IF(W2>0,REF(C,W2),REF(C,W2)); W4:=CROSS(C,REF(W3,1)); W4 AND COUNT(W4,5)=1;四線粘合V0:=EMA(C,5); V1:=EMA(C,10); V2:=EMA(C,15); V3:=EMA(C,30); V4:=EMA(C,60); M1:=1000*V1/V4<=1015 AND 1000*V1/V4>=975; M2:=1000*V2/V4<=1020 AND 1000*V2/V4>=980; M3:=1000*V3/V4<=1015 AND 1000*V3/V4>=985; M4:=M1 AND M2 AND M3 AND CROSS(V0,V1); M5:=M1 AND M2 AND M3 AND CROSS(V0,V3); M4 OR M5;拉升在即ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,2); M1:=EMA(ABV,12); M2:=EMA(ABV,26); MTM:=CLOSE-REF(CLOSE,1); MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); A:=((VOL)/(CAPITAL))*(100); S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60)); Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60)); X:=1; 拉升在即:S<X AND Y<X AND MMS>MML AND ABV>M1 AND CROSS(S,Y);
頂天立地VAR1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);VAR21:=SMA(VAR1F,3,1);趨勢:=SMA(VAR21,3,1);人氣:=SMA(趨勢,3,1);出擊:CROSS(趨勢,人氣) AND (趨勢<30);{短賣:IF(CROSS(人氣,趨勢) AND (人氣>75),85,100),COLOR008000,LINETHICK2; };主力進出ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,2); M1:=EMA(ABV,12); M2:=EMA(ABV,26); MTM:=CLOSE-REF(CLOSE,1); MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); MTGJ:=C-REF(C,1); ZLGJ:=100*EMA(EMA(MTGJ,9),9)/EMA(EMA(ABS(MTGJ),9),9); MAZL:=MA(ZLGJ,5); 主力進出:=MMS>REF(MMS,1) AND ZLGJ>REF(ZLGJ,1) AND CROSS(ABV,M2) AND ABV>REF(ABV,1) AND M1>REF(M1,1) AND M2>REF(M2,1); 主進主軌:=ABV>M2 AND CROSS(ABV,M1) AND CROSS(ZLGJ,MAZL); 主力進出 OR 主進主軌;一招就夠V1:=EMA(CLOSE,5);V2:=EMA(EMA(CLOSE,29)*1.01,10);CROSS(V1,V2);
黑馬易找VAR1:=MA(CLOSE,5);VAR2:=MA(CLOSE,10);VAR3:=MA(CLOSE,30);VAR4:=MA(CLOSE,60);VAR5:=EMA(COST(85),7);VAR6:=EMA(COST(15),7);VAR7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);VAR8:=INTPART(VAR7*100)/100;VAR9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);VARA:=INTPART(VAR9*100)/100;VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);VARC:=INTPART(VARB*100)/100;VARD:=EMA(CLOSE,5)-EMA(CLOSE,10);VARE:=EMA(VARD,9);VARF:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100;VAR10:=(-100)*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100;VAR11:=(-100)*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100;VAR12:=(-100)*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100;VAR13:=REF(VARE,1);VAR14:=VARE;VAR15:=VAR14-VAR13;VAR16:=REF(VARD,1);VAR17:=VARD;VAR18:=VAR17-VAR16;VAR19:=OPEN;VAR1A:=CLOSE;黑馬易找選股: VAR19<=VAR1 AND VAR19<=VAR2 AND VAR19<=VAR3 AND VAR1A>=VAR1 AND VAR1A>=VARC AND VAR15>0 AND VAR18>0;以逸待勞VAR1:=COST(10);VAR2:=REF(CLOSE,7)/MA(REF(CLOSE,7),3)>=1.07 AND REF(CLOSE,7)=HHV(REF(CLOSE,7),3) AND MA(REF(VOL,7),2)/MA(REF(VOL,7),40)>=3 AND MA(REF(VOL,7),2)=HHV(MA(REF(VOL,7),2),3) AND REF(VOL,7)>REF(REF(VOL,7),1) AND REF(CLOSE,7)>REF(REF(CLOSE,7),1);VAR3:=REF(REF(CLOSE,7),1);VAR4:=SMA(MAX(REF(CLOSE,7)-VAR3,0),5,1)/SMA(ABS(REF(CLOSE,7)-VAR3),5,1)*100;VAR5:=COUNT(VAR4<20,20)>=1;VAR6:=(INDEXC-LLV(INDEXL,89))/(HHV(INDEXH,89)-LLV(INDEXL,89))*100;VAR7:=SMA(VAR6,8,1);VAR8:=SMA(VAR7,10,1);VAR9:=REF(INDEXC,1);VARA:=SMA(MAX(INDEXC-VAR9,0),6,1)/SMA(ABS(INDEXC-VAR9),6,1)*100;VARB:=VARA>=75 AND VARA<90 AND VAR7>VAR8 AND BARSLAST(CROSS(VAR7,VAR8))<=21;VAR2 AND VAR5 AND VARB;資金進場A1:=DYNAINFO(6);A2:=IF(LOW>A1,0,IF(HIGH<A1,1,(A1-LOW+0.01)/(HIGH-LOW+0.01)));A3:=VOL/WINNER(LOW);A4:=REF(HHV(CLOSE,120),1);A5:=REF(LLV(CLOSE,120),1);A6:=100*(CLOSE-A5)/(A4-A5);A7:=A2>0 OR A2=1;A8:=A7 AND A3/REF(A3,3)>=3 AND A6<80;A11:=IF(FILTER(A8,3),5,0);資金進場日:A11>0,8;
推薦閱讀: