說(shuō)明:點(diǎn)鼠標(biāo)右鍵,選擇“ 在新標(biāo)簽頁(yè)中打開(kāi)圖片 ”,爾后,再點(diǎn)+號(hào),把圖片放大了看更清晰。不信,你試試! {飛龍通用★主圖【經(jīng)典指標(biāo)】} {飛龍通用★主圖【經(jīng)典指標(biāo)】} 背景色:=DRAWGBK(C>0, RGB(0,0,0),RGB(0,0,5'該數(shù)值可以調(diào)整'),0,0,0); 總資產(chǎn):=419822.43; 持股數(shù)量:=1000; 持倉(cāng)成本:100,COLORRED,DOTLINE,NODRAW; 成本標(biāo)注:=DRAWTEXT(ISLASTBAR ,持倉(cāng)成本,' 100'),COLOR888888; 持股倉(cāng)位【%】:C*持股數(shù)量/總資產(chǎn)*100,COLORYELLOW,NODRAW; {計(jì)算每股持倉(cāng)成本:(含雙向手續(xù)費(fèi)及印花稅) ●400908/12600=31.818(12600股——26日賣(mài)出價(jià)) ●451032.88(5月底余額)+1557.48(6月初贏(yíng)利)=452590.36(資產(chǎn)總額) ●452590.36-10000(撤資)=442590.36(前期資產(chǎn)余額) ●442590.36(前期資產(chǎn)余額)-1978.92(今日現(xiàn)金資產(chǎn))=440611.44(今日投資額) ●440611.44*6/10000=264.367 ●440611.44*0.5/1000=220.306 ●440611.44+264.37+220.31=441096.12 ●441096.12/13200=33.416元(持倉(cāng)成本/每股) ●440611.44/13200=33.38 (投資額買(mǎi)入價(jià)) ●33.416-33.38=0.036元(手續(xù)費(fèi)_印花稅/每股)} 止盈:持倉(cāng)成本+(持倉(cāng)成本/100*6),DOTLINE,COLORRED,NODRAW; {百分之六止盈價(jià)} 止損:持倉(cāng)成本-(持倉(cāng)成本/100*3),DOTLINE,COLORGREEN,NODRAW; {百分之三止損價(jià)} 百:MA(CLOSE,100),COLOR888888; N:=20;M:=30;P:=80;B:=100; P1:=65; B1:=85; {參數(shù) _ B 及 B1 均在自調(diào)參數(shù)的基礎(chǔ)上加碼了20。} {可調(diào)整的參數(shù) _ N:=20; M:=30; P:=80; B:=80; P1:=65; B1:=65; 自調(diào)參數(shù)——這是我設(shè)置的《300951博碩科技》專(zhuān)用指標(biāo)參數(shù)。交易者可以自己設(shè)置參數(shù)。也可以套用源碼。目前,使用源碼。} {需保留的參數(shù) _ N:=20; M:=30; P:=80; B:=100; 源碼} 之子轉(zhuǎn)向:ZIG(3,3)COLORLICYAN,LINETHICK1; VAR101:=(C+H+O+L)/4; 高拋線(xiàn):=XMA(VAR101,N)*(1+P/1000),COLORBROWN,DOTLINE; 低吸線(xiàn):=XMA(VAR101,M)*(1-B/1000),COLORYELLOW,DOTLINE; 低吸線(xiàn)2:=XMA(VAR101,M)*(1-B1/1000),COLORYELLOW,DOTLINE; 高:=高拋線(xiàn),COLORRED; 低:=低吸線(xiàn)2,COLORBROWN; 低2:=低吸線(xiàn),COLORLIBLUE; 空:=IF(高<REF(高,1),高,DRAWNULL),COLORLIBLUE,LINETHICK1; 介:=低吸線(xiàn)*0.996,COLOR888888,DOTLINE; 色:=DRAWBAND(低2,RGB(0,00,0),低*0.998,RGB(0,35,0)); 超跌線(xiàn):=DRAWTEXT(ISLASTBAR,低吸線(xiàn)2,STRCAT(' 超跌',0)),COLORBROWN; 極限超跌線(xiàn):=DRAWTEXT(ISLASTBAR,介,STRCAT(' 極限',0)),COLORLIGREEN; 高拋:=高拋線(xiàn),COLORRED; 低吸:=低吸線(xiàn)2,COLORBROWN; VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5; A1:(EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4,COLORMAGENTA,LINETHICK2; A2:=EMA(A1,2)DOTLINE,COLORRED; A3:=EMA(A2,2)DOTLINE,COLORMAGENTA; A4:=EMA(A3,2)DOTLINE,COLORYELLOW; A5:=EMA(A4,2)DOTLINE,COLORGREEN; A6:=EMA(A5,2)DOTLINE,COLORCYAN; A1多頭:=REF(A1,0)>=REF(A1,1); A1空頭:=REF(A1,0)<REF(A1,1); A1多頭標(biāo)注:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A1多頭,0.758,0.92,0,'★★★ A1均線(xiàn)目前多頭。可適度參與,持股待漲。 ★★★ ')COLORRED; A1空頭標(biāo)注:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND A1空頭,0.758,0.92,0,'★★★ A1均線(xiàn)目前空頭。宜空倉(cāng)觀(guān)望,等待機(jī)會(huì)。 ★★★ ')COLORGREEN; MA5★攻擊線(xiàn):=MA(C,5),COLORRED; 攻擊線(xiàn):MA5★攻擊線(xiàn),COLORRED; 輔助攻擊線(xiàn):=EMA(EMA(EMA(EMA(MA(C,5),2),1),2),1),COLORGREEN; 多多:=DRAWICON(CROSS(高拋線(xiàn),REF(高拋線(xiàn),2)),高拋線(xiàn)*1.03,9); 少少:=DRAWICON(CROSS(REF(高拋線(xiàn),2),高拋線(xiàn)),高拋線(xiàn)*1.03,9); 上軌道:=IF(高拋線(xiàn)>=REF(高拋線(xiàn),1),高拋線(xiàn),DRAWNULL),COLORRED; 下軌道:=IF(低吸線(xiàn)>=REF(低吸線(xiàn),1),低吸線(xiàn),DRAWNULL),COLORYELLOW; 上軌:=IF(高拋線(xiàn)<REF(高拋線(xiàn),1),高拋線(xiàn),DRAWNULL),COLORCYAN,LINETHICK1; 下軌:=IF(低吸線(xiàn)2<REF(低吸線(xiàn)2,1),低吸線(xiàn)2,DRAWNULL),COLORGREEN,LINETHICK1; 屏蔽:DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.96,0,'███████████')COLORBLACK; 多頭信號(hào)標(biāo)注:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,0.85,0,'六道信號(hào)共振 _ 強(qiáng)力做多:①、小手指引,②、紫色 K線(xiàn), ③、黃色 K線(xiàn), ④、紅色箭頭,⑤、喜露笑臉,⑥、外上軌 (翻紅) 上行。【若缺此項(xiàng),慎用重倉(cāng)。謹(jǐn)慎者,亦可繼續(xù)觀(guān)望,等待確定性買(mǎi)點(diǎn)出現(xiàn)?!?#39;)COLORGREEN; 強(qiáng)力多頭信號(hào):=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,0.90,0,'對(duì)上面六道信號(hào)予以標(biāo)注:①、現(xiàn)接盤(pán)俠,②、刺破下軌, ③、上穿5日均,④、底部雄起,⑤、多頭共振,⑥、趨勢(shì)由空向多反轉(zhuǎn)。 【在趨勢(shì)尚未反轉(zhuǎn)之前,只可以試探性地做多。待反轉(zhuǎn)之后再加倉(cāng)?!?#39;)COLORRED; 短:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORRED,NODRAW; 中:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW,NODRAW; 長(zhǎng):100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORGREEN,NODRAW; 超:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORCYAN,NODRAW; 多頭:=REF(A1,0)>=REF(A1,1); 空頭:=REF(A1,0)<REF(A1,1); 多頭標(biāo)注:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 多頭,0.758,0.99,0,'★★★ 該股短線(xiàn)目前處在多頭時(shí)段,可持股待漲 。 ★★★ ')COLORRED; 空頭標(biāo)注:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 空頭,0.758,0.99,0,'★★★ 該股短線(xiàn)目前處在空頭時(shí)段,宜空倉(cāng)觀(guān)望 。 ★★★ ')COLORGREEN; 操盤(pán)細(xì)則:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.12,0.03,0,'★★★ 以《飛龍頂?shù)住分笜?biāo)為主,以《WR·威廉》及《主力進(jìn)場(chǎng)》指標(biāo)為輔,對(duì)交易做進(jìn)場(chǎng)、離場(chǎng)指引,用《飛龍頂?shù)住芳啊堆λ雇ǖ馈分笜?biāo)給股價(jià)做高點(diǎn)、低點(diǎn)定位、定性。采取波段操盤(pán)的方式,做好做精一支股。')COLOR0099FF; 操盤(pán)紀(jì)律:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.45,0.08,0,'★★★ 總的操盤(pán)原則是:低位,5日均之上,多持股。高位,5日均之下,少持倉(cāng),或,不持倉(cāng)。')COLORRED; 提示1:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.12,0.08,0,'★★★ 底部紫色K線(xiàn)托底可低吸。')COLORMAGENTA; 提示2:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.23,0.08,0,'★★★ 頂部藍(lán)色K線(xiàn)蓋頂當(dāng)高拋。')COLORFF6600; 提示3:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.34,0.08,0,'★★★ 低位黃色K線(xiàn)顯現(xiàn)可進(jìn)場(chǎng)。')COLORYELLOW; 戰(zhàn)略戰(zhàn)術(shù):=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.12,0.13,0,'★★★ 以殲滅戰(zhàn)為主,以游擊戰(zhàn)為輔, 使重倉(cāng)殲滅戰(zhàn)與輕倉(cāng)游擊戰(zhàn)相輔相成,相得益彰。股市就是戰(zhàn)場(chǎng)。一切以交易系統(tǒng)指令是從,嚴(yán)格執(zhí)行戰(zhàn)場(chǎng)紀(jì)律。不打無(wú)把握之仗。')COLORLIBLUE; 笑臉說(shuō)明:=DRAWTEXT_FIX(CURRBARSCOUNT=1,0.12,0.18,0,'★★★ 《飛龍主圖》 指標(biāo)要與《主力進(jìn)場(chǎng)》指標(biāo)配合使用?!讹w龍主圖》有日線(xiàn)、15分鐘、30分鐘、60分鐘、周線(xiàn)五個(gè)主圖。這五個(gè)主圖指標(biāo)當(dāng)一一對(duì)應(yīng)著指標(biāo)模板分開(kāi)使用,勿要搞混。')COLORBROWN; X01:=REF(CLOSE,1); X02:=(SMA(MAX(CLOSE-X01,0),13,1))/(SMA(ABS(CLOSE-X01),13,1))*100; X03:=(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)-50)*1.032+50; X04:=(X02+X03)/2;{X4:=(X2+X3)/2;} 奇妙:CLOSE+(X04/50-1)*(MA(CLOSE,30)/20),COLORWHITE,LINETHICK1; {奇妙 COLORLIMAGENTA} 奇妙多頭:=IF(奇妙>=REF(OPEN,0),奇妙,DRAWNULL)COLORMAGENTA,LINETHICK2; 奇妙空頭:=IF(奇妙<REF(OPEN,0),奇妙,DRAWNULL)COLORFF0000,LINETHICK2; {奇妙空頭 COLORB48246} {壓力與支撐} 壓力均線(xiàn)畫(huà)線(xiàn):=HHV(HIGH,30),COLOR666666,DOTLINE; 支撐均線(xiàn)畫(huà)線(xiàn):=LLV(LOW,30),COLOR666666,DOTLINE; 壓力均線(xiàn)30:HHV(LOW,30),COLOR777777,DOTLINE; 支撐均線(xiàn)30:LLV(HIGH,30),COLOR777777,DOTLINE; 向上突破:DRAWICON(FILTERX(CROSS(C,支撐均線(xiàn)30),10),L*0.999,1); 向上突破支撐:=DRAWTEXT(FILTERX(CROSS(C,支撐均線(xiàn)30),10),L*0.98,' 支撐位')COLORRED; 向下突破壓力:DRAWICON(FILTERX(CROSS(壓力均線(xiàn)30,C),10),H*1.02,2); 短線(xiàn)進(jìn)場(chǎng):=DRAWICON(CROSS(C,MA5★攻擊線(xiàn))AND 向上突破,L*0.98,41); 0,NODRAW,COLORBLACK; MTR:=MAX(MAX((H-L),ABS(REF(C,1)-H)),ABS(REF(C,1)-L))NODRAW,COLORRED; {1天真實(shí)波動(dòng)幅度} ATR:=MA(MTR,5)NODRAW,COLORGREEN; ATR_10日均:=MA(C,10),COLOR555555; ATR_5日均:=MA(C,5),COLOR555555; 紅綠色塊:=DRAWBAND(ATR_5日均,RGB(139,0,0),ATR_10日均,RGB(0,60,0)); 紅藍(lán)色塊:=DRAWBAND(ATR_5日均,RGB(250,0,255),ATR_10日均,RGB(28,55,250)); A01:=IF(C>REF(EXPMEMA(H,5),1),1,0); A02:=IF(C<REF(EXPMEMA(L,5),1),-1,0); A03:=A1+A2; A04:=IF(A3=0,REF(A3,BARSLAST(NOT(A3=0))),A3); 轉(zhuǎn):=IF(A4=-1,EMA(HIGH,5),EMA(LOW,5)),COLORYELLOW,LINETHICK1; {COLORFF901E} 壹倍【上】:=ATR_5日均+ATR,DOTLINE,COLORFF901E,NODRAW; {1倍ATR上通道} 貳倍【上】:=ATR_5日均+ATR*2,DOTLINE,COLOR0099FF,NODRAW; {2倍ATR上通道} 叁倍【上】:=ATR_5日均+ATR*3,COLORMAGENTA,NODRAW; {3倍ATR上通道} 壹倍【下】:=ATR_5日均-ATR,DOTLINE,COLORFF901E,NODRAW; {1倍ATR下通道} 貳倍【下】:=ATR_5日均-ATR*2,DOTLINE,COLORYELLOW,NODRAW; {2倍ATR下通道} 叁倍【下】:=ATR_5日均-ATR*3,COLORMAGENTA,NODRAW; {3倍ATR下通道}; 數(shù)值A(chǔ):DRAWNUMBER(FILTERX(HIGH>REF(貳倍【上】,1)AND HHV(H,7),6),REF(HIGH,0)*1.060,REF(HIGH,0))COLORRED; 數(shù)值B:DRAWNUMBER(FILTERX(LOW<REF(貳倍【下】,1)AND LLV(L,7),6),REF(LOW,0)*0.990,REF(LOW,0))COLORLIGREEN; {數(shù)值A(chǔ): 最高價(jià)大于貳倍【上】,并且,是7日內(nèi)最高價(jià)的最高值。 數(shù)值B: 最低價(jià)小于貳倍【下】,并且,是7日內(nèi)最低價(jià)的最低值。} 數(shù)值C:DRAWNUMBER(FILTERX(HIGH>REF(叁倍【上】,1)AND HHV(H,7),6),REF(HIGH,0)*1.100,REF(HIGH,0))COLORMAGENTA; 數(shù)值D:DRAWNUMBER(FILTERX(LOW<REF(叁倍【下】,1)AND LLV(L,7),6),REF(LOW,0)*0.908,REF(LOW,0))COLORCYAN; {數(shù)值C: 最高價(jià)大于叁倍【上】,并且,是7日內(nèi)最高價(jià)的最高值。 數(shù)值D: 最低價(jià)小于叁倍【下】,并且,是7日內(nèi)最低價(jià)的最低值。} {青K線(xiàn)} 標(biāo)識(shí)0002:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORGREEN; 標(biāo)識(shí)03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORGREEN; 標(biāo)識(shí)04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORGREEN; 標(biāo)識(shí)05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORGREEN; 標(biāo)識(shí)06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORGREEN; 標(biāo)識(shí)07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORGREEN; 標(biāo)識(shí)08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORGREEN; 標(biāo)識(shí)09:STICKLINE(CLOSE<攻擊線(xiàn) AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORGREEN; 標(biāo)識(shí)10:STICKLINE(CLOSE<攻擊線(xiàn) AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORGREEN; 標(biāo)識(shí)11:STICKLINE(CLOSE<攻擊線(xiàn) AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORGREEN; 標(biāo)識(shí)12:STICKLINE(CLOSE<攻擊線(xiàn) AND OPEN<CLOSE,OPEN,LOW,0,0),COLORGREEN; 標(biāo)識(shí)13:STICKLINE(CLOSE<攻擊線(xiàn) AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORGREEN; {紅K線(xiàn)} 標(biāo)識(shí)14:STICKLINE(CLOSE>攻擊線(xiàn) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標(biāo)識(shí)15:STICKLINE(CLOSE>攻擊線(xiàn) AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED; 標(biāo)識(shí)16:STICKLINE(CLOSE>攻擊線(xiàn) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標(biāo)識(shí)17:STICKLINE(CLOSE>攻擊線(xiàn) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標(biāo)識(shí)18:STICKLINE(CLOSE>攻擊線(xiàn) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 標(biāo)識(shí)19:STICKLINE(CLOSE>攻擊線(xiàn) AND 攻擊線(xiàn)>REF(輔助攻擊線(xiàn),1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標(biāo)識(shí)20:STICKLINE(CLOSE>攻擊線(xiàn) AND 攻擊線(xiàn)>REF(輔助攻擊線(xiàn),1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED; 標(biāo)識(shí)22:STICKLINE(CLOSE>攻擊線(xiàn) AND 攻擊線(xiàn)>REF(輔助攻擊線(xiàn),1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標(biāo)識(shí)23:STICKLINE(CLOSE>攻擊線(xiàn) AND 攻擊線(xiàn)>REF(輔助攻擊線(xiàn),1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標(biāo)識(shí)24:STICKLINE(CLOSE>攻擊線(xiàn) AND 攻擊線(xiàn)>REF(輔助攻擊線(xiàn),1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; {藍(lán)色高拋K線(xiàn)} 標(biāo)識(shí)26:STICKLINE(CROSS(HIGH,高拋線(xiàn)) AND (CLOSE>=OPEN),CLOSE,CLOSE-0.05,3,0),COLORFF6600; 標(biāo)識(shí)27:STICKLINE(CROSS(HIGH,高拋線(xiàn)) AND (CLOSE<=OPEN),OPEN,OPEN-0.05,3,0),COLORFF6600; 標(biāo)識(shí)28:STICKLINE(CROSS(CLOSE,高拋線(xiàn)) AND (CLOSE>=OPEN),CLOSE,CLOSE-0.05,3,0),COLORFF6600; 標(biāo)識(shí)29:STICKLINE(CROSS(CLOSE,高拋線(xiàn)) AND (CLOSE<=OPEN),OPEN,OPEN-0.05,3,0),COLORFF6600; 標(biāo)識(shí)30:STICKLINE(HIGH>=高拋線(xiàn) AND (CLOSE>=OPEN),CLOSE,CLOSE-0.05,3,0),COLORFF6600; 標(biāo)識(shí)31:STICKLINE(HIGH>=高拋線(xiàn) AND (CLOSE<=OPEN),OPEN,OPEN-0.05,3,0),COLORFF6600; {紫色低吸K線(xiàn)} 標(biāo)識(shí)32:STICKLINE(CROSS(低吸線(xiàn)2,LOW) AND CLOSE>=OPEN,OPEN,OPEN+0.07,3,0),COLORMAGENTA; 標(biāo)識(shí)33:STICKLINE(CROSS(低吸線(xiàn)2,LOW) AND CLOSE<=OPEN,CLOSE,CLOSE+0.07,3,0),COLORMAGENTA; 標(biāo)識(shí)34:STICKLINE(LOW<=低吸線(xiàn)2 AND CLOSE>=OPEN,OPEN,OPEN+0.07,3,0),COLORMAGENTA; 標(biāo)識(shí)35:STICKLINE(LOW<=低吸線(xiàn)2 AND CLOSE<=OPEN,CLOSE,CLOSE+0.07,3,0),COLORMAGENTA; {黃色買(mǎi)入K線(xiàn)} 標(biāo)識(shí)25:STICKLINE(CROSS(CLOSE,MA5★攻擊線(xiàn)) AND CLOSE>OPEN,OPEN,OPEN+0.05,3,0),COLORYELLOW; 上拐:=DRAWTEXT(CROSS(之子轉(zhuǎn)向,REF(之子轉(zhuǎn)向,1)),之子轉(zhuǎn)向,'上拐')COLORYELLOW; 下拐:=DRAWTEXT(CROSS(REF(之子轉(zhuǎn)向,1),之子轉(zhuǎn)向),之子轉(zhuǎn)向,'下拐')COLORFF6600; 低吸進(jìn)場(chǎng):=DRAWICON(EXIST(REF(標(biāo)識(shí)35,1),1) AND 標(biāo)識(shí)25,L,9); {名稱(chēng)代碼所屬行業(yè)及概念板塊} 所屬行業(yè):DRAWTEXT_FIX(1,0.02,0.01,0,'所屬行業(yè):'),COLORFF6000; 行業(yè)標(biāo)識(shí):DRAWTEXT_FIX(1,0.059,0.01,0,HYBLOCK),COLORRED; 地域標(biāo)識(shí):DRAWTEXT_FIX(1,0.100,0.01,0,DYBLOCK),COLORGREEN; 名稱(chēng)代碼:=STRCAT(STRCAT(STRCAT(STRCAT('名稱(chēng): ',STKNAME),' 代碼: '),CODE),' ' ); 概念板塊:=STRCAT('概念板塊: ',GNBLOCK); 名稱(chēng)代碼標(biāo)識(shí):DRAWTEXT_FIX(ISLASTBAR,0.14,0.01,0,STRCAT(名稱(chēng)代碼,概念板塊)),COLORLICYAN; {主力進(jìn)場(chǎng)·副圖【經(jīng)典指標(biāo)】} RSV30:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100; K30:=SMA(RSV30,5,1); D30:=SMA(K30,3,1); J30:=(3*K30-2*D30)*1.0; 趨勢(shì)快線(xiàn):=EMA(J30,1)COLORRED,LINETHICK1; 趨勢(shì)慢線(xiàn):=EMA(J30,3),COLORGREEN,LINETHICK1; VAR2:=REF(LOW,1); VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100; VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3); VAR5:=LLV(LOW,38); VAR6:=HHV(VAR4,38); VAR7:=IF(LLV(LOW,90),1,0); VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7; DD:=VAR8>5; VAR1S:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); VAR2S:=SMA(ABS(LOW-VAR1S),13,1)/SMA(MAX(LOW-VAR1S,0),10,1); VAR3S:=EMA(VAR2S,10); VAR4S:=LLV(LOW,33); VAR5S:=EMA(IF(LOW<=VAR4S,VAR3S,0),3); 主力進(jìn)場(chǎng):=IF(VAR5S>REF(VAR5S,1),VAR5S,0)*1.1,LINETHICK1,COLORRED; 震倉(cāng):=IF(VAR5S<REF(VAR5S,1),VAR5S,0),COLORGREEN; 買(mǎi)入:=IF((COUNT(DD,2)=2),-20,0)COLORBLACK; 底:=IF(FILTERX((CROSS(震倉(cāng),主力進(jìn)場(chǎng))AND 買(mǎi)入=-20),10),100,0),STICK,COLORMAGENTA,LINETHICK1; DB:=DRAWICON((CROSS(震倉(cāng),主力進(jìn)場(chǎng))AND CLOSE>OPEN),L*0.98,5); {新莊入駐·選股公式 參數(shù):N1 2 100 21 N2 2 100 42} N1:=21; N2:=42; VAR01:=1; VAR02:=1/WINNER(CLOSE); VAR03:=MA(CLOSE,13); VAR04:=100-ABS((CLOSE-VAR03)/VAR03*100); 新莊:=(100-IF(VAR02>5,IF(VAR02<100,VAR02,VAR04-10),0))*VAR01; 選股:=REF(新莊,0)<(20); WR1:=-100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1))+100,COLORRED; WR2:=-100*(HHV(HIGH,N2)-CLOSE)/(HHV(HIGH,N2)-LLV(LOW,N2))+100,COLORGREEN,LINETHICK2; 抄底:=DRAWICON(選股 AND WR1<(10)AND WR2<=(10),L*0.998,11); 逃頂:=DRAWICON(WR1>(90)AND WR2>(90),H+2,12); 強(qiáng)力做多:DRAWICON(向上突破 AND 高拋線(xiàn)>=REF(高拋線(xiàn),1) AND EXIST(WR2<=(10),5) AND EXIST(REF(新莊,0)<(20),5),L*0.98,5); 操盤(pán)提示:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.99,0 ,'★買(mǎi)一、紫黃色K線(xiàn)先后出現(xiàn),進(jìn)場(chǎng),倉(cāng)位在50%-100%之間。 ★買(mǎi)二、A1走平、上行,首紅,試探性進(jìn)場(chǎng)。倉(cāng)位在10%-50%之間。 ★時(shí)間、尾盤(pán)進(jìn)場(chǎng)。 ★賣(mài)一、破進(jìn)場(chǎng)當(dāng)天的最低價(jià)止損。 ★賣(mài)二、頂背離、縮量止盈。')COLORADDEEC; 余額可買(mǎi)股:419822.43/100/C,NODRAW; 單筆可買(mǎi)股:50000/100/C,NODRAW; 數(shù)字文字01:DRAWTEXT_FIX(C!=1,0.02,0.86,0 ,STRCAT(' 余額可買(mǎi)股:',STRCAT(CON2STR(余額可買(mǎi)股,1),' 手~')))COLORADDEEC; 數(shù)字文字02:DRAWTEXT_FIX(C!=1,0.02,0.91,0 ,STRCAT(' 單筆可買(mǎi)股: ',STRCAT(CON2STR(單筆可買(mǎi)股,1),' 手~ ')))COLORADDEEC; {單筆交易單位:5萬(wàn)元}; 數(shù)字文字03:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.07,0 ,'★★★★★ 當(dāng)百日均線(xiàn)向上運(yùn)行時(shí),黃色K線(xiàn)多頭信號(hào)的可信度較高,被套的概率比較低,設(shè)好止損位后,可以放手做票。')COLORADDEEC; 數(shù)字文字04:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.12,0 ,'★★★★★ 當(dāng)百日均線(xiàn)向下運(yùn)行時(shí),黃色K線(xiàn)多頭信號(hào)的可信度就沒(méi)那么高了,需要有紫色K線(xiàn)配合,才能構(gòu)成低吸抄底模式。')COLORADDEEC; 總家數(shù):=DYNAINFO(60)+DYNAINFO(61),COLORYELLOW,NODRAW; AAA1:=STRCAT('滬深上漲家數(shù): ',CON2STR(DYNAINFO(60),0)); AAA2:=STRCAT('滬深下跌家數(shù): ',CON2STR(DYNAINFO(61),0)); 標(biāo)識(shí)001:DRAWTEXT_FIX(ISLASTBAR,0.707,0.01,0,AAA1),COLORRED; 標(biāo)識(shí)002:DRAWTEXT_FIX(ISLASTBAR,0.778,0.01,0,AAA2),COLORGREEN; 標(biāo)識(shí)003:=DRAWKLINE("880005$C","880005$C","880005$C","880005$C"); 數(shù)字文字:DRAWTEXT_FIX(C!=1,0.854,0.01,0,STRCAT('漲跌總家數(shù):',STRCAT(CON2STR(總家數(shù),0),' ~'))),COLORADDEEC; {短線(xiàn)精靈●【副圖指標(biāo)】} VAR1:=((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100+(CLOSE-MA(CLOSE,8))/MA(CLOSE,8)*100 +(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100+(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100 +(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100)/5; {VAR1:=((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100+(CLOSE-MA(CLOSE,8))/MA(CLOSE,8)*100 +(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100+(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100)/8; 說(shuō)明:此一組為短線(xiàn)波段 5+8+13+21+34=81 81/5=16.2} {VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100 +(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3; 說(shuō)明:此一組為原始指標(biāo)組} 短線(xiàn)持幣區(qū)域:IF(VAR1<0,ABS(VAR1),0)*-1,COLORFEDCBA,LINETHICK2; 短線(xiàn)持股區(qū)域:IF(VAR1>0,VAR1,0),COLORRED,LINETHICK2; 柱1:STICKLINE(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+2,0,0,0),COLORGREEN; 壹:=DRAWTEXT(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+2,'---短頂'),COLORGREEN; 柱2:STICKLINE(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+8,0,0,0),COLORRED; 貳:=DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+8,'---大頂'),COLORRED; VAR2:=HHV(VAR1>20,10); 柱3:=STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+15,0,0,0),COLORYELLOW; 叁:=DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+15,'---危險(xiǎn)'),COLORYELLOW; 柱4:STICKLINE(VAR2 AND FILTER(VAR1<REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,0,0,0),COLORGRAY; 肆:=DRAWTEXT(VAR2 AND FILTER(VAR1<REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,'---止損'),COLORGRAY; 柱5:STICKLINE(VAR1<-9 AND VAR1>REF(VAR1,1),VAR1-2,0,0,0),COLORRED; 伍:=DRAWTEXT(VAR1<-9 AND VAR1>REF(VAR1,1),VAR1+8,'---短底'),COLORRED; 柱6:STICKLINE(VAR1<-20 AND FILTER(VAR1>REF(VAR1,1),5),VAR1-8,0,0,0),COLORMAGENTA; 陸:=DRAWTEXT(VAR1<-20 AND FILTER(VAR1>REF(VAR1,1),5),VAR1-8,'---大底'),COLORYELLOW; 準(zhǔn)備:IF(VAR1<-9 AND VAR1>REF(VAR1,1),1,0),COLORBROWN; 零:0,COLORLICYAN,LINETHICK2; {中線(xiàn)精靈● 【副圖指標(biāo)】} VAR1:=((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100+(CLOSE-MA(CLOSE,8))/MA(CLOSE,8)*100 +(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100+(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100 +(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100 +(CLOSE-MA(CLOSE,89))/MA(CLOSE,89)*100+(CLOSE-MA(CLOSE,144))/MA(CLOSE,144)*100)/8; {VAR1:=((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100+(CLOSE-MA(CLOSE,8))/MA(CLOSE,8)*100 +(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100+(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100 +(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100 +(CLOSE-MA(CLOSE,89))/MA(CLOSE,89)*100+(CLOSE-MA(CLOSE,144))/MA(CLOSE,144)*100)/8; 說(shuō)明:此一組為中線(xiàn)波段 5+8+13+21+34+55+89+144=369 369/8=46.125} {VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100 +(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3; 說(shuō)明:此一組為原始指標(biāo)組} 中線(xiàn)持幣區(qū)域:IF(VAR1<0,ABS(VAR1),0)*-1,COLORFEDCBA,LINETHICK2; 中線(xiàn)持股區(qū)域:IF(VAR1>0,VAR1,0),COLORRED,LINETHICK2; 柱1:STICKLINE(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+2,0,0,0),COLORGREEN; 壹:=DRAWTEXT(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+2,'---短頂'),COLORGREEN; 柱2:STICKLINE(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+8,0,0,0),COLORRED; 貳:=DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+8,'---大頂'),COLORRED; VAR2:=HHV(VAR1>20,10); 柱3:=STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+15,0,0,0),COLORYELLOW; 叁:=DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+15,'---危險(xiǎn)'),COLORYELLOW; 柱4:STICKLINE(VAR2 AND FILTER(VAR1<REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,0,0,0),COLORGRAY; 肆:=DRAWTEXT(VAR2 AND FILTER(VAR1<REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,'---止損'),COLORGRAY; 柱5:STICKLINE(VAR1<-9 AND VAR1>REF(VAR1,1),VAR1-2,0,0,0),COLORRED; 伍:=DRAWTEXT(VAR1<-9 AND VAR1>REF(VAR1,1),VAR1+8,'---短底'),COLORRED; 柱6:STICKLINE(VAR1<-20 AND FILTER(VAR1>REF(VAR1,1),5),VAR1-8,0,0,0),COLORMAGENTA; 陸:=DRAWTEXT(VAR1<-20 AND FILTER(VAR1>REF(VAR1,1),5),VAR1-8,'---大底'),COLORYELLOW; 準(zhǔn)備:IF(VAR1<-9 AND VAR1>REF(VAR1,1),1,0),COLORBROWN; 零:0,COLORLICYAN,LINETHICK2; |
|
來(lái)自: 知博陋室 > 《指標(biāo)公式》