琪新牧牛主圖指標(biāo)是琪新經(jīng)過(guò)幾年的思考和摸索總結(jié)出來(lái)的具有實(shí)戰(zhàn)意義的指標(biāo),其特點(diǎn)是簡(jiǎn)潔、簡(jiǎn)單、直觀。該指標(biāo)把股票分為牛股、猴股、熊股三類,并用三張圖片(見(jiàn)附件)分別顯示在主圖上,是牛是熊一目了然,一眼辨牛熊不再是一句空話。
安裝方法
本指標(biāo)采用導(dǎo)入法安裝,安裝成功后打開(kāi)指標(biāo)即可看到源碼。安裝方法,下載附件后解壓、導(dǎo)入琪新牧牛主圖指標(biāo),并把警示圖粘貼在通達(dá)信安裝目錄下的T0002文件夾中的signals文件夾下。指標(biāo)安裝后,鍵入QXMN(琪新牧牛的簡(jiǎn)寫)即可調(diào)入琪新牧牛主圖指標(biāo)。
使用方法
目前大盤處于熊市,建議選擇第一類股票即牛股類股票作為操作對(duì)象,這類股票主力介入程度深、有一定的題材支撐,多為市場(chǎng)的熱點(diǎn)所在,操作的成功 率相對(duì)較高,是中短線操作者的首先目標(biāo)。至于猴股類股票,由于多為牛股類股票大幅調(diào)整的產(chǎn)物,股票的波動(dòng)幅度較大,操作的風(fēng)險(xiǎn)相對(duì)較高,稍有不慎就會(huì)深套 其中,對(duì)于心理承受能力弱的投資者盡量回避。熊股類股票,是正在調(diào)整的股票,主力無(wú)盡戀戰(zhàn),散戶深套其中,所以股票的價(jià)格會(huì)不斷走低,即使有的股票偶爾走 強(qiáng)也是曇花一現(xiàn),這類股票堅(jiān)決回避。
N1:=18;N2:=50;N3:=89;N4:=180; DRAWBAND(MA(C,18),RGB(185,20,30),MA(C,50),RGB(0,100,100));DRAWKLINE(H,O,L,C); {警示牌設(shè)置} 警示牌:=1; 高:=REFDATE(HHV(H,180),DATE)*1.05; 低:=REFDATE(LLV(L,180),DATE)*0.95; A11:=MA(C,18); A12:=MA(C,50); A13:=MA(C,89); A14:=IF((MA(C,180)<=高 AND MA(C,180)>=低) OR C>=MA(C,180),MA(C,180),DRAWNULL); {—————股性判斷—————} 牛股:=ISLASTBAR AND A11>A12 AND A12>A13 AND A13>IF(A14=DRAWNULL,0,A14) AND C>A11 OR ISLASTBAR AND A11>A12 AND C>=A11; 猴股:=ISLASTBAR AND A11>A12 AND C<A11 ; 熊股:=ISLASTBAR AND IF(A14=DRAWNULL,A12<A13 AND C<A13,A13<A14 AND C<A14) OR ISLASTBAR AND A11<A12; DRAWGBK(警示牌=1 AND 牛股,0,0,0,'牛股',0); DRAWGBK(警示牌=1 AND 猴股,0,0,0,'猴股',0); DRAWGBK(警示牌=1 AND 熊股,0,0,0,'熊股',0); DRAWKLINE(H,O,L,C);
MA18:MA(C,N1),COLORWHITE; MA50:MA(C,N2),COLORYELLOW; MA89:MA(C,N3),COLORFF00FF; MA180:MA(C,N4),COLORRED;
超買:=MA(C,10)*IF(CAPITAL=0,1.04,1.1),POINTDOT,COLORGREEN,LINETHICK2; DRAWTEXT(CROSS(MA(C,N1),MA(C,N2)),MA(C,N2)*0.99,'↖金叉'),LINETHICK2,COLORFF00FF; {財(cái)務(wù)數(shù)據(jù)} 所屬板塊:=STRCAT('所屬板塊: ',STRCAT(STRCAT(STRCAT(' 行業(yè) ',HYBLOCK),STRCAT(' 地域
',DYBLOCK)),STRCAT(' 概念 ',GNBLOCK))); 總股本:=STRCAT(STRCAT(' 總股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'億'); 流通盤:=STRCAT(STRCAT(' 流通盤: ',CON2STR(CAPITAL/1000000,2)),'億'); 市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'億'); 上市日期:=STRCAT(' 上市日期: ',CON2STR(HHV((BARSCOUNT(C)=0)*(DATE+19000000),0),0)); 股本市值:=STRCAT('股本市值: ',STRCAT(STRCAT(STRCAT(總股本,流通盤),市值),上市日期)); {顯示設(shè)置} DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,所屬板塊),COLORYELLOW,LINETHICK2; DRAWTEXT_FIX(ISLASTBAR,0.005,0.118,0,股本市值),COLORGREEN,LINETHICK2; DRAWTEXT_FIX(C>0,0.005,0.06,0,'主題投資:'),COLORFF00FF,LINETHICK2; DRAWTEXT_FIX(C>0,0.078,0.06,0,EXTERNSTR(0,2)),COLORFF00FF,LINETHICK2;
{漲停K線}; ZD:=100*(C-REF(C,1))/REF(C,1); 漲停:=ZD>=9.90; STICKLINE((漲停>0 AND C=H),O, H, 3, 0),LINETHICK3, COLORYELLOW;
{大陽(yáng)線} 大陽(yáng)線:=ZD>=5.00 AND ZD<9.90; STICKLINE((大陽(yáng)線>0 AND C<=H),O, C, 3, 0),LINETHICK3, COLORFF00FF;
{金叉K線} {靠線金叉} STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C<=MA(C,18)*1.03,H,C,0.05,0), COLOR0000FF; STICKLINE(CROSS(MA(C,18),MA(C,50))AND C<=MA(C,18)*1.03,C,O,3,0), COLOR0066FF; STICKLINE(CROSS(MA(C,18),MA(C,50))AND C<=MA(C,18)*1.03,O,L,0.05,0), COLOR0099FF; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C<=MA(C,18)*1.03 AND C<O,O,(C-O)/2+O,3,0),COLORFFFF80; {線上金叉} STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C>MA(C,18)*1.03 AND C>O,C,(C-O)/2+O,3,0),COLORRED; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C>MA(C,18)*1.03 AND C>O,O,(C-O)/2+O,3,0),COLORYELLOW; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C>MA(C,18)*1.03 AND C>O,C,H,0.5,0),COLORRED; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C>MA(C,18)*1.03 AND C<O,C,(C-O)/2+O,3,0),COLORRED; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C>MA(C,18)*1.03 AND C<O,O,(C-O)/2+O,3,0),COLORFFFF80; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C>MA(C,18)*1.03 AND C<O,O,H,0.5,0),COLORFFFF80; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C>MA(C,18)*1.03 AND C<O,C,L,0.5,0),COLORRED; {線下金叉} STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C<MA(C,18) AND C>=O,C,(C-O)/2+O,3,0),COLORYELLOW; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C<MA(C,18) AND C>=O,O,(C-O)/2+O,3,0),COLORRED; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C<MA(C,18) AND C>=O,C,H,0.5,0),COLORYELLOW; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C<MA(C,18) AND C<O,C,(C-O)/2+O,3,0),COLORYELLOW; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C<MA(C,18) AND C<O,O,(C-O)/2+O,3,0),COLORFFFF80; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C<MA(C,18) AND C<O,O,H,0.5,0),COLORFFFF80; STICKLINE(CROSS(MA(C,18),MA(C,50)) AND C<MA(C,18) AND C<O,C,L,0.5,0),COLORYELLOW;
{本周5周均線自動(dòng)畫線顯示在日線上}
年:=YEAR,NODRAW; 月:=MONTH,NODRAW; 星期:=WEEKDAY,NODRAW; 日1:=DATETODAY(DATE); 上市日:=REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT); 自然日:=日1-DATETODAY(上市日)+1; ZB:=(自然日-REF(自然日,1))!=星期-REF(星期,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0; 本周第幾天:=BARSLAST(ZB)+1; 本月第幾天:=BARSLAST(年*100+月!=REF(年*100+月,1))+1; MA1:=REF(C,本周第幾天); MA2:=REF(MA1,本周第幾天); MA3:=REF(MA2,本周第幾天); MA4:=REF(MA3,本周第幾天); 五周價(jià):=(C+MA1+MA2+MA3+MA4)/5; 五周:REFDATE(五周價(jià),DATE),COLOR9E9E21,LINETHICK1;
{T+1止贏、止損} CC:=IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL),COLORWHITE; 止贏:1.05*CC,COLORYELLOW,NODRAW; 止損:0.97*CC,COLORFF00FF,NODRAW;
{支撐壓力} N:=18; A1:=REF(H,N)=HHV(H,2*N+1); B1:=FILTER(A1,N); C1:=BACKSET(B1,N+1); D1:=FILTER(C1,N); A2:=REF(L,N)=LLV(L,2*N+1); B2:=FILTER(A2,N); C2:=BACKSET(B2,N+1); D2:=FILTER(C2,N); E1:=(REF(LLV(L,2*N),1)+REF(HHV(H,2*N),1))/2; E2:=(H+L)/2; H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(C)=1; L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2); X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,L,10000),X1)); G1:=F1>REF(F1,1); I1:=BACKSET(G1,2); LD:=I1>REF(I1,1); L2:=LD OR ISLASTBAR OR BARSCOUNT(C)=1; X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,H,0),X2)); G2:=F2>REF(F2,1); I2:=BACKSET(G2,2); HD:=I2>REF(I2,1); R1:=BACKSET(ISLASTBAR,BARSLAST(HD)+1); S1:=R1>REF(R1,1); T1:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); U1:=T1>REF(T1,1); R2:=BACKSET(S1,REF(BARSLAST(HD),1)+2); S2:=R2>REF(R2,1); T2:=BACKSET(U1,REF(BARSLAST(LD),1)+2); U2:=T2>REF(T2,1); NOTEXT1:DRAWLINE(S2,H,S1,H,1),LINETHICK2,COLORRED; NOTEXT2:DRAWLINE(U2,L,U1,L,1),LINETHICK2,COLORGREEN;
DA:=YEAR AND MONTH AND DAY; AAA:=STRCAT(CON2STR(YEAR,0),'年'); AAB:=STRCAT(CON2STR(MONTH,0),'月'); AA33:=STRCAT(CON2STR(DAY,0),'日'); AA4:=STRCAT('【',IF(WEEKDAY=1,'星期一',IF(WEEKDAY=2,'星期二',IF(WEEKDAY=3,'星期三',IF(WEEKDAY=4,'星期四',IF(WEEKDAY=5,'星期五',IF(WEEKDAY=6,'六','日'))))))); AA:=STRCAT(STRCAT(STRCAT(AAA,AAB),STRCAT(AA33,AA4)),'】'); SA:DRAWTEXT_FIX(DA,0,1,0,AA),COLORGREEN;
|