通達信公式
獻給有共同愛好的朋友:
絕密操盤手
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;日強弱指數(shù):(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.如果日強弱指數(shù)數(shù)值大于50,表示后勢看漲機率較高。反之,數(shù)值小于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股指流通股多少億手;(判斷大盤和小盤的依據(jù))9 V/ K; x$ r0 ?8 `: a# } 2.柱狀圖中紅線框指總成交量,紅色填滿區(qū)域代表主動買入估算,綠色填滿區(qū)域代表主動賣出估算。(單位:金額) 3.資金異動指近期此股有無異常資金進出,柱狀圖以黃色柱狀顯示; 4.五角星代表五日均量上穿13日均量,量能放大。換手率就不說了,大家都知道。- r) B2 C% T2 \) \ t 5.長時間無黃柱或希希拉拉,說明無大資金進入,股票將繼續(xù)原有趨勢;有黃色柱狀出現(xiàn),此時有資金進入,連續(xù)黃柱出現(xiàn),說明明顯有莊家 進入,可跟進待漲。黃柱越集中,且30-60日內(nèi)比較,明顯量能放大,說明有大莊進入,可能后期有大的行情出現(xiàn)。 6.另此副圖可完全取代
缺省的vol副圖指標。以節(jié)省版面空間。4 Q5 i- S) t6 i. O" x/ P# R
7.本指標主力完全造不了假的,用的人再多也不會有任何問題,更不怕主力拿它騙人。 {公式名稱: 短線英豪}
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; 機構(gòu)進倉指標 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,'☆機構(gòu)減倉'),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,' ★機構(gòu)進場'),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) 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); 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)) 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); VAR4:=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); VAR5:=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); 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) AND CROSS(VAR9,MA(VAR9,2)))=1,5); VAR12:=FILTER((HHV(VAR9,2)=HHV(VAR9,7) AND COUNT(VAR9>50,2) AND CROSS(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; 回調(diào):=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,'險區(qū)'),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 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'),COLORFF00FF;{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'),COLORFF00FF;{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'),COLORGREEN;{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'),COLORGREEN;{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'),COLORGREEN;{RSI頂背離}; K線形態(tài)解盤原 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 AND CLOSE/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) AND CLOSE/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) AND CLOSE/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{倒轉(zhuǎn)錘頭}:=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{曙光初現(xiàn)}:=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 AND MAX(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 AND CLOSE < 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 AND CLOSE<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,'長十字,重要的警告信號,原趨勢停頓或反轉(zhuǎn)‖'),COLOR00FFFF ; DRAWTEXT(T4=1 AND CURRBARSCOUNT=58,AAA,'垂死十字,下跌信號‖'),COLORFFFF00 ; DRAWTEXT(T5=1 AND CURRBARSCOUNT=58,AAA,'早晨十字星,上漲信號,見底回升‖'),COLORFF00FF ; DRAWTEXT(T6=1 AND CURRBARSCOUNT=58,AAA,'黃昏十字星,趨勢停頓或反轉(zhuǎn),下跌或,見頂回落‖'),COLORFFFF00 ; DRAWTEXT(T7=1 AND CURRBARSCOUNT=58,AAA,'射擊之星,市場頂部就在眼前,可能見頂回落,可靠性低‖'),COLORFFFF00 ; DRAWTEXT(T8=1 AND CURRBARSCOUNT=58,AAA,'倒轉(zhuǎn)錘頭構(gòu)成一個看漲信號,可能見底回升‖'),COLORFF00FF ; DRAWTEXT(T9=1 AND CURRBARSCOUNT=58,AAA,'錘頭,可能見底回升,如有量配合,信號強烈‖'),COLOR0000FF ; DRAWTEXT(T10=1 AND CURRBARSCOUNT=58,AAA+3,'吊頸,上升行情中見頂回落,頂部出現(xiàn),見頂信號‖'),COLORFFFF00 ; DRAWTEXT(T11=1 AND CURRBARSCOUNT=58,AAA+3,'穿頭破腳,頂部出現(xiàn),見頂回落信號‖'),COLORFFFF00 ; DRAWTEXT(T12=1 AND CURRBARSCOUNT=58,AAA+3,'烏云蓋頂,見頂回落信號‖'),COLORFFFF00 ; DRAWTEXT(T13=1 AND CURRBARSCOUNT=58,AAA+3,'曙光初現(xiàn),將演化為V型反轉(zhuǎn)或橫盤。后市見底回升‖'),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,'平頂,行情見頂,股價將反轉(zhuǎn)。但下跌力度較小‖'),COLORFFFFFF ; DRAWTEXT(T17=1 AND CURRBARSCOUNT=58,AAA+4,'平底,行情探低見底,股價行將反轉(zhuǎn)上升,但力度較小‖'),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日均線,上攻勢頭初現(xiàn)‖'),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,'光頭陽線,多方積極上攻態(tài)勢,后市看漲‖'),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,'十字星,重要的警告信號,原趨勢停頓或反轉(zhuǎn)‖'),COLOR00FFFF ; DRAWTEXT(T34=1 AND CURRBARSCOUNT=58,AAA,'大陰燭,后市向淡,發(fā)生逆轉(zhuǎn)‖'),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,'今日成交量大于昨日,且有繼續(xù)增大趨勢'),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,'極端行情,在未來的幾日內(nèi)有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 ; 黃線是散戶! 當散戶達到高值時,主力就沒有了,所以要主動賣出,反之則買進! 當藍柱出現(xiàn)時候,就是近底部,驗證后的確有效! 金牌逃頂 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日線的性質(zhì) 只要收盤不破該數(shù)值可一直持股 此線是一條變色線 紅色持股 綠色持幣 拉升---沒突破此線之前做為壓力看待 一旦突破既是拉升階段 積極介入 止損--顧名思義 跌破此線止損并做為壓力線看待 等待再次突破介入 用法: 粉紅色圓柱一直出現(xiàn) 持股 綠色圓柱出現(xiàn)持幣觀望 等待信號出現(xiàn)介入 AA和拉升 合并(數(shù)值一樣) 進入主升階段 只要分開 可以減掉部分倉位 鎖定利潤 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; CR2
MID:=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 由下往上連續(xù)突破其四條平均線時,為強勢買進點;
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)盤局或高檔時寶塔線長青而下,應即獲利了結(jié),將手中持股賣出;反之,翻紅而上,則是介入時機。 (5)寶塔線分析若能再與K線,移動平均線等共同運用,效果更佳。 (6)寶塔線翻青下跌一段后,突然翻紅,須防范為假突破之現(xiàn)象,不可馬上搶進,須察3天。最好配合K線與成交量觀察再作決定。 寶塔線結(jié)合5天均線,給出明確的多空立場,其規(guī)則如下:寶塔線紅色且5天均線上行,看多做多(可追多,不惜幫莊家抬轎);寶塔線紅色但5 天均線走平或下行,看多不做多(有籌碼的繼續(xù)與狼共舞,沒籌碼的觀望不進);寶塔線綠色且5天均線下行,看空做空(對準接盤殺跌,不計
盈虧);寶塔線綠色但5天均線走平或上行),看空不做空(沒籌碼的觀望不進,有籌碼的即使套牢也暫不割肉)。這樣操盤,心態(tài)極佳。
板塊強弱指標
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; 農(nóng)林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; 醫(yī)藥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業(yè)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; 地產(chǎn)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(農(nóng)林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(醫(yī)藥1,MAX11); MAX13:=MAX(水電1,MAX12); MAX14:=MAX(建筑1,MAX13); MAX15:=MAX(運輸1,MAX14); MAX16:=MAX(IT業(yè)1,MAX15); MAX17:=MAX(批零1,MAX16); MAX18:=MAX(金融1,MAX17); MAX19:=MAX(地產(chǎn)1,MAX18); MAX20:=MAX(服務1,MAX19); MAX21:=MAX(傳播1,MAX20); A1:=IF(農(nóng)林1=MAX21,0,農(nóng)林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(醫(yī)藥1=MAX21,0,醫(yī)藥1); A13:=IF(水電1=MAX21,0,水電1); A14:=IF(建筑1=MAX21,0,建筑1); A15:=IF(運輸1=MAX21,0,運輸1); A16:=IF(IT業(yè)1=MAX21,0,IT業(yè)1); A17:=IF(批零1=MAX21,0,批零1); A18:=IF(金融1=MAX21,0,金融1); A19:=IF(地產(chǎn)1=MAX21,0,地產(chǎn)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(農(nóng)林1=MAX21 AND 農(nóng)林1>0,0-1,'①農(nóng)林'),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(醫(yī)藥1=MAX21 AND 醫(yī)藥1>0,0-1,'①醫(yī)藥'),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業(yè)1=MAX21 AND IT業(yè)1>0,0-1,'①IT業(yè)'),COLORLICYAN; DRAWTEXT(批零1=MAX21 AND 批零1>0,0-1,'①批零'),COLORLICYAN; DRAWTEXT(金融1=MAX21 AND 金融1>0,0-1,'①金融'),COLORLIGREEN; DRAWTEXT(地產(chǎn)1=MAX21 AND 地產(chǎn)1>0,0-1,'①地產(chǎn)'),COLORGREEN; DRAWTEXT(服務1=MAX21 AND 服務1>0,0-1,'①服務'),COLORMAGENTA; DRAWTEXT(傳播1=MAX21 AND 傳播1>0,0-1,'①傳播'),COLORMAGENTA; DRAWTEXT(農(nóng)林1=MAXA20 AND 農(nóng)林1>0,0-2,'②農(nóng)林'),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(醫(yī)藥1=MAXA20 AND 醫(yī)藥1>0,0-2,'②醫(yī)藥'),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業(yè)1=MAXA20 AND IT業(yè)1>0,0-2,'②IT業(yè)'),COLORLICYAN; DRAWTEXT(批零1=MAXA20 AND 批零1>0,0-2,'②批零'),COLORLICYAN; DRAWTEXT(金融1=MAXA20 AND 金融1>0,0-2,'②金融'),COLORLIGREEN; DRAWTEXT(地產(chǎn)1=MAXA20 AND 地產(chǎn)1>0,0-2,'②地產(chǎn)'),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)); 轉(zhuǎn)強:IF(趨勢>50,趨勢,DRAWNULL),COLORRED; 轉(zhuǎn)弱: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); 轉(zhuǎn)點:=IF(K>D AND CCI>0 AND DIFF>DEA AND MACD>0,1,0); STICKLINE(轉(zhuǎn)點=1,50,50,2,0),COLORYELLOW; STICKLINE(轉(zhuǎn)點=0,50,50,2,0),COLORCYAN; STICKLINE(C,90,90,1,0),COLORYELLOW; STICKLINE(C,10,10,1,0),COLORCYAN; |
|