{九天攬?jiān)隆局鲌D指標(biāo)】 多功能九天攬?jiān)陆灰紫到y(tǒng)主圖} MA05:MA(C,05)COLORRED,LINETHICK1; MA10:MA(C,10)COLORGREEN,LINETHICK1; 均線色塊1:DRAWBAND(MA(CLOSE,5),RGB(85,26,139),MA(CLOSE,10),RGB(0,100,0)); {均線色塊:DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));} 日線_K線:=DRAWKLINE(H,O,L,C); 現(xiàn)價(jià):DYNAINFO(7)COLORLIBLUE,NODRAW; A:=(3*C+L+O+H)/6; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210; 當(dāng)前獲利籌碼:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),COLOR0099FF,NODRAW; 平均成本線:COST(50)COLOR888888,DOTLINE,DOTLINE; 支撐均線:=LLV(HIGH,30),,COLORFFCC00; 支撐均線標(biāo)注:DRAWICON(FILTERX(CROSS(C,支撐均線),10),L-0.1,1); 成本均線:=EMA(X,13),COLOR3300FF,LINETHICK2; 成本均線1:=IF(成本均線>REF(成本均線,1)OR C>(成本均線),成本均線,DRAWNULL)COLOR000066,LINETHICK2; 成本均線2:=IF(成本均線<REF(成本均線,1)OR C<(成本均線),成本均線,DRAWNULL)COLOR333300,LINETHICK2; 成本均線標(biāo)注1:=STICKLINE(成本均線>=REF(成本均線,1),成本均線,REF(成本均線,1),2,0),COLOR0066FF;{COLOR0066FF} 成本均線標(biāo)注2:=STICKLINE(成本均線<REF(成本均線,1),成本均線,REF(成本均線,1),2,0),COLORGREEN;{COLOR339933} MA17:=MA(C,17)COLORRED,DOTLINE; {COLOR999933} MA21:=MA(C,21)COLORGREEN,DOTLINE; MA21標(biāo)注1:=STICKLINE(MA21>=REF(MA21,1),MA21,REF(MA21,1),2,0),COLOR0099FF;{COLOR0099FF} MA21標(biāo)注2:=STICKLINE(MA21<REF(MA21,1),MA21,REF(MA21,1),2,1),COLOR336600;{COLOR336600} 短期震蕩值:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5))NODRAW,COLORCYAN; 中期震蕩值:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10))NODRAW,COLOR0099FF; 中長(zhǎng)期震蕩值:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20))NODRAW,COLORMAGENTA; 長(zhǎng)期震蕩值:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30))NODRAW,COLORRED,LINETHICK2; 短線預(yù)警:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 短期震蕩值=(100)AND 中期震蕩值=(100)AND 中長(zhǎng)期震蕩值=(100)AND 長(zhǎng)期震蕩值=(100),0.90,0.03,0,'小心短線見(jiàn)頂 ★★★')COLOR0099FF; 短線提醒:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 短期震蕩值<=(6)AND 中期震蕩值<=(6)AND 中長(zhǎng)期震蕩值<=(6)AND 長(zhǎng)期震蕩值<=(6),0.90,0.98,0,'短線已然超跌 ★★★')COLORGREEN; 日:=150; 昨前:=3; 高1:=REF(HHV(H,日),昨前); 低1:=REF(LLV(L,日),昨前); H1:=高1-(高1-低1)*0.191; H2:=高1-(高1-低1)*0.382; H3:=高1-(高1-低1)*0.5; H4:=高1-(高1-低1)*0.618; H5:=高1-(高1-低1)*0.809; XAA_7:=150; XAA_8:=3; XAA_9:=REF(HHV(HIGH,XAA_7),XAA_8); XAA_10:=REF(LLV(LOW,XAA_7),XAA_8); XAA_11:=XAA_9-(XAA_9-XAA_10)*0.191; XAA_12:=XAA_9-(XAA_9-XAA_10)*0.382; XAA_13:=XAA_9-(XAA_9-XAA_10)*0.5; XAA_14:=XAA_9-(XAA_9-XAA_10)*0.618; XAA_15:=XAA_9-(XAA_9-XAA_10)*0.809; 九天:REFDATE(XAA_9,DATE),COLOR555555,DOTLINE; 五洋:REFDATE(XAA_10,DATE),COLOR555555,DOTLINE; 三分之一:=(CLOSE-REF(CLOSE,1))/3,NODRAW; 警戒線1:=CLOSE-三分之一; 數(shù)字1:=DRAWNUMBER(CURRBARSCOUNT=1 AND REF(C,0)>REF(C,1) AND C/REF(C,1)>1.02,H+0.5,REF(警戒線1,0)); 二分之一:=(REF(CLOSE,1)-REF(CLOSE,2))/2,NODRAW; 警戒線2:=REF(CLOSE,1)-二分之一; 數(shù)字2:=DRAWNUMBER(CURRBARSCOUNT=1,L-0.3,REF(警戒線2,0)); 上九天攬?jiān)?EMA(EMA(EMA(EMA(MA(C,7),2),2),5),5),COLORRED,LINETHICK1; 下五洋捉鱉:REF(上九天攬?jiān)?1)COLORGREEN;{上九天攬?jiān)屡c下五洋捉鱉同為平滑處理過(guò)的一組7日均線(組)} 標(biāo)識(shí)02:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORCYAN; 標(biāo)識(shí)03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORCYAN; 標(biāo)識(shí)04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN; 標(biāo)識(shí)05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORCYAN; 標(biāo)識(shí)06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN; 標(biāo)識(shí)07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORCYAN; 標(biāo)識(shí)08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORCYAN; {藍(lán)色打底K線} 標(biāo)識(shí)09:STICKLINE(CLOSE<上九天攬?jiān)?AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORCYAN; 標(biāo)識(shí)10:STICKLINE(CLOSE<上九天攬?jiān)?AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORCYAN; 標(biāo)識(shí)11:STICKLINE(CLOSE<上九天攬?jiān)?AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORCYAN; 標(biāo)識(shí)12:STICKLINE(CLOSE<上九天攬?jiān)?AND OPEN<CLOSE,OPEN,LOW,0,0),COLORCYAN; 標(biāo)識(shí)13:STICKLINE(CLOSE<上九天攬?jiān)?AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORCYAN; {紅K線系列} 標(biāo)識(shí)14:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標(biāo)識(shí)15:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED; 標(biāo)識(shí)16:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標(biāo)識(shí)17:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標(biāo)識(shí)18:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 標(biāo)識(shí)19:STICKLINE(CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?gt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標(biāo)識(shí)20:STICKLINE(CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?gt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED; 標(biāo)識(shí)22:STICKLINE(CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?gt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標(biāo)識(shí)23:STICKLINE(CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?gt;REF(上九天攬?jiān)?1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標(biāo)識(shí)24:STICKLINE(CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?gt;REF(上九天攬?jiān)?1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; {藍(lán)色打底K線} 標(biāo)識(shí)25:=STICKLINE(CLOSE<上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN; 標(biāo)識(shí)26:=STICKLINE(CLOSE<上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORCYAN; 標(biāo)識(shí)27:=STICKLINE(CLOSE<上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN; 標(biāo)識(shí)28:=STICKLINE(CLOSE<上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORCYAN; 標(biāo)識(shí)29:=STICKLINE(CLOSE<上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORCYAN; 標(biāo)識(shí)30:=STICKLINE(CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN; 標(biāo)識(shí)31:=STICKLINE(CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORCYAN; 標(biāo)識(shí)32:=STICKLINE(CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN; 標(biāo)識(shí)33:=STICKLINE(CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORCYAN; 標(biāo)識(shí)34:=STICKLINE(CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORCYAN; {紅色K線} 標(biāo)識(shí)35:STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE>上九天攬?jiān)?AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標(biāo)識(shí)36:STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE>上九天攬?jiān)?AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED; 標(biāo)識(shí)37:STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE>上九天攬?jiān)?AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標(biāo)識(shí)38:STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE>上九天攬?jiān)?AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標(biāo)識(shí)39:STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE>上九天攬?jiān)?AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; {綠色K線系列} 標(biāo)識(shí)40:STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE<上九天攬?jiān)?AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORGREEN; 標(biāo)識(shí)41:STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE<上九天攬?jiān)?AND CLOSE>OPEN,OPEN,LOW,0,0),COLORGREEN; 標(biāo)識(shí)42:STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE<上九天攬?jiān)?AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORGREEN; 標(biāo)識(shí)43:STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE<上九天攬?jiān)?AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORGREEN; 標(biāo)識(shí)44:STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE<上九天攬?jiān)?AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORGREEN; {淡青色K線} 標(biāo)識(shí)45:=STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN; 標(biāo)識(shí)46:=STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORCYAN; 標(biāo)識(shí)47:=STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN; 標(biāo)識(shí)48:=STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORCYAN; 標(biāo)識(shí)49:=STICKLINE(上九天攬?jiān)?gt;下五洋捉鱉 AND CLOSE>上九天攬?jiān)?AND 上九天攬?jiān)?lt;REF(上九天攬?jiān)?1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORCYAN; {深藍(lán)色K線系列} 標(biāo)識(shí)50:STICKLINE(CLOSE<下五洋捉鱉 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORBLUE; 標(biāo)識(shí)51:STICKLINE(CLOSE<下五洋捉鱉 AND CLOSE>OPEN,OPEN,LOW,0,0),COLORBLUE; 標(biāo)識(shí)52:STICKLINE(CLOSE<下五洋捉鱉 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORBLUE; 標(biāo)識(shí)53:STICKLINE(CLOSE<下五洋捉鱉 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORBLUE; 標(biāo)識(shí)54:STICKLINE(CLOSE<下五洋捉鱉 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORBLUE; {黃色K線系列}; 標(biāo)識(shí)55:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE<下五洋捉鱉 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORYELLOW; 標(biāo)識(shí)56:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE<下五洋捉鱉 AND CLOSE>OPEN,OPEN,LOW,0,0),COLORYELLOW; 標(biāo)識(shí)57:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE<下五洋捉鱉 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORYELLOW; 標(biāo)識(shí)58:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE<下五洋捉鱉 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORYELLOW; 標(biāo)識(shí)59:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE<下五洋捉鱉 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORYELLOW; 標(biāo)識(shí)60:=DRAWTEXT_FIX(1,0,1.02,0,3),COLORWHITE; VAR0:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),15,1)*100; JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100; 多頭紅色B:DRAWICON(FILTERX(CROSS(C,上九天攬?jiān)?,8),L*0.975,7); {紅色:B} 空頭綠色S:DRAWICON(CROSS(84,JH),H*1.03,8); {綠色:S} 賣:DRAWTEXT(FILTER(CROSS(82,VAR0),2),H*1.02,' 賣'),COLORCYAN; {文字} 持倉(cāng):=IF(CLOSE>=SAR(10,2,20),SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLOR0000FF,{COLOR0099FF}; 空倉(cāng):=IF(CLOSE<=SAR(10,2,20),SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORFF0033,{COLORDDFF00}; 標(biāo)識(shí):STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 選股:=DRAWICON(CROSS(MA05,MA10)AND CROSS(C,上九天攬?jiān)?,L*0.92,34); 多頭預(yù)警:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS(MA05,MA10)AND CROSS(C,上九天攬?jiān)?,0.68,0.03,0,'看,出現(xiàn)多頭信號(hào)了,進(jìn)場(chǎng)做多吧!★★★')COLORRED; 名稱代碼:=STRCAT(STRCAT(STRCAT(STRCAT('名稱: ',STKNAME),' 代碼: '),CODE),' ' ); 概念板塊:=STRCAT('概念板塊: ',GNBLOCK); 名稱代碼標(biāo)識(shí):DRAWTEXT_FIX(ISLASTBAR,0.14,0.03,0,STRCAT(名稱代碼,概念板塊)),COLORGREEN; 所屬行業(yè):DRAWTEXT_FIX(1,0.01,0.03,0,'所屬行業(yè):'),COLORCYAN; 所屬行業(yè)標(biāo)識(shí):DRAWTEXT_FIX(1,0.05,0.03,0,HYBLOCK),COLORRED; 所在地域標(biāo)識(shí):DRAWTEXT_FIX(1,0.095,0.03,0,DYBLOCK),COLORYELLOW; 指標(biāo)模板:DRAWTEXT_FIX(1,0.014,0.96,0,'指標(biāo)模板(三窗口)標(biāo)配:主圖《九天攬?jiān)隆?副圖《主力多空》或 副圖《螞蟥波段》 副圖《飛龍量能》 ★★★'),COLOR777777; DRAWTEXT_FIX(1,0.37,0.96,0,' 該股財(cái)報(bào) __ 每股收益:')COLOR777777; DRAWTEXT_FIX(1,0.458,0.96,0,STRCAT(CON2STR(FINANCE(30)/FINANCE(1),2),' (元/股)'))COLOR777777; M3:=(FINANCE(20)-FINANCE(21))/FINANCE(20)*100; DRAWTEXT_FIX(1,0.503,0.96,0,' 毛利率:')COLOR777777; DRAWTEXT_FIX(1,0.535,0.96,0,CON2STR(M3,3))COLOR777777; DRAWTEXT_FIX(1,0.560,0.96,0,' 經(jīng)營(yíng)現(xiàn)金流:')COLOR777777; DRAWTEXT_FIX(1,0.607,0.96,0,CON2STR(FINANCE(25),3))COLOR777777; 標(biāo)識(shí)022:DRAWTEXT_FIX(C!=1,0.675,0.96,0,'★★★ 設(shè):3萬(wàn)元/每個(gè)單筆交易單位。 風(fēng)險(xiǎn)收益比 ≥ 1:2 。 止損:≤ -3% 。 止盈:≥ +6% 。'),COLOR777777; XC:=C,COLORWHITE LINETHICK1; DRAWNUMBER(CURRBARSCOUNT=1,L*0.99,XC),COLORYELLOW,LINETHICK2; 止損價(jià)位0:=C-(C/100*3); 止盈價(jià)位1:=C/100*6+C; 止盈價(jià)位2:=C/100*9+C; 止盈價(jià)位3:=C/100*12+C; 標(biāo)識(shí)0:DRAWTEXT_FIX(C!=0,0.01,0.12,0,'操盤數(shù)據(jù)指南:(數(shù)據(jù)均以現(xiàn)價(jià)計(jì))'),COLORLIBLUE; 標(biāo)識(shí)1:DRAWTEXT_FIX(C!=0,0.01,0.18,0,'基于現(xiàn)價(jià)的止損位與止盈位參照'),COLORLIBLUE; 標(biāo)識(shí)2:DRAWTEXT_FIX(C!=0,0.01,0.24,0,STRCAT('止損價(jià)位0 -3% = -',STRCAT(CON2STR(止損價(jià)位0,3),' 元'))),COLORRED; 標(biāo)識(shí)3:DRAWTEXT_FIX(C!=0,0.01,0.30,0,STRCAT('止盈價(jià)位1 +6% = +',STRCAT(CON2STR(止盈價(jià)位1,3),' 元'))),COLORRED; 標(biāo)識(shí)4:DRAWTEXT_FIX(C!=0,0.01,0.36,0,STRCAT('止損價(jià)位2 +9% = +',STRCAT(CON2STR(止盈價(jià)位2,3),' 元'))),COLORRED; 標(biāo)識(shí)5:DRAWTEXT_FIX(C!=0,0.01,0.42,0,STRCAT('止盈價(jià)位3 +12% = +',STRCAT(CON2STR(止盈價(jià)位3,3),' 元'))),COLORRED; 標(biāo)識(shí)6:DRAWTEXT_FIX(C!=0,0.01,0.48,0,'風(fēng)險(xiǎn)收益比 1:2 。等額下注是關(guān)鍵。'),COLORLIBLUE; 標(biāo)識(shí)7:DRAWTEXT_FIX(C!=0,0.01,0.54,0,'設(shè):每3萬(wàn)元為一個(gè) 單筆交易單位。'),COLORLIBLUE; {九天攬?jiān)隆具x股公式】 MA05:=MA(C,05); MA10:=MA(C,10); 上九天攬?jiān)?=EMA(EMA(EMA(EMA(MA(C,7),2),2),5),5); 選股:DRAWICON(CROSS(MA05,MA10)AND CROSS(C,上九天攬?jiān)?,L*0.92,34);} {支 撐 線【選股公式】 支撐線:=LLV(HIGH,20); 支撐線選股:DRAWICON(FILTERX(CROSS(C,支撐線),10),L,1);}; ------------------------------------------------------------------------------------- 又有: {蝌蚪波段【主圖】56 波段操盤} N:=30; M:=15; P1:=90; P2:=85; VAR101:=(C+H+O+L)/4; VAR102:=(3*CLOSE+LOW+OPEN+HIGH)/6; VAR103:=(20*VAR102+19*REF(VAR102,1)+18*REF(VAR102,2)+17*REF(VAR102,3)+16*REF(VAR102,4)+15*REF(VAR102,5)+14*REF(VAR102,6)+13*REF(VAR102,7)+ 12*REF(VAR102,8)+11*REF(VAR102,9)+10*REF(VAR102,10)+9*REF(VAR102,11)+8*REF(VAR102,12)+7*REF(VAR102,13)+6*REF(VAR102,14)+5*REF(VAR102,15) +4*REF(VAR102,16)+3*REF(VAR102,17)+2*REF(VAR102,18)+REF(VAR102,20))/210; VAR104:=MA(VAR103,13); VAR105:=EMA(MA(CLOSE,3),34); VAR106:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; VAR107:=MA(VAR106,5); VAR108:=MA(VAR106,10); 標(biāo)識(shí)001:=STICKLINE(IF(VAR103<VAR105,VAR103<=1.015*VAR104,VAR103<=1.005*VAR104),VAR103,VAR104,2,1),COLOR006600 ; 標(biāo)識(shí)002:=STICKLINE(VAR103>1.005*VAR104,VAR103,VAR104,2,1),COLORFF00FF; 上九天攬?jiān)?:=EMA(EMA(EMA(EMA(MA(C,1),2),2),5),5),COLOR0099FF,NODRAW; 下五洋捉鱉2:=REF(上九天攬?jiān)?,1)COLORLIBLUE,NODRAW; 平均成本線:COST(50)COLOR888888,DOTLINE,DOTLINE,NODRAW; 警示:DRAWTEXT_FIX(BARSTATUS=2 AND C<COST(50),0.87,0.03,0,'注意:該股股價(jià)目前低于平均成本線'),COLORGREEN; 成本線復(fù)線1:=EMA(EMA(EMA(EMA(MA(上九天攬?jiān)?,2),2),2),2),2),COLOR888888; 成本線復(fù)線2:=REF((C,3),1)COLOR888888; 成本線色塊3:DRAWBAND(MA(上九天攬?jiān)?,2),RGB(85,26,139),MA(上九天攬?jiān)?,9),RGB(0,100,0)); 現(xiàn)價(jià):DYNAINFO(7)COLORWHITE,NODRAW; 止損負(fù)3%:REF(現(xiàn)價(jià)*0.97,1)COLORGREEN,NODRAW; 止盈正6%:REF(現(xiàn)價(jià)*1.06,1)COLORRED,NODRAW; 漲停正10%:REF(現(xiàn)價(jià)*1.10,1)COLORYELLOW,NODRAW; {用最高價(jià)計(jì)算,上面分別為5% 10%的止損,最后收盤價(jià)計(jì)算10%為止贏??梢愿郊釉谌我庖粭l公式中。} 止損標(biāo)識(shí):=DRAWTEXT(ISLASTBAR ,止損負(fù)3%,' - 止損 3%'),COLORGREEN; 止盈標(biāo)識(shí):=DRAWTEXT(ISLASTBAR ,止盈正6%,' - 止盈 6%'),COLORRED; 漲停標(biāo)識(shí):=DRAWTEXT(ISLASTBAR ,漲停正10%,' - 漲停 10%'),COLORYELLOW; 收盤價(jià)標(biāo)識(shí):=DRAWTEXT(ISLASTBAR ,現(xiàn)價(jià),' - 收盤價(jià)'),COLOR3399FF; 上九天攬?jiān)?EMA(EMA(EMA(EMA(MA(C,3),2),2),5),5),COLOR0099FF,NODRAW; 下五洋捉鱉:REF(上九天攬?jiān)?1)COLORLIBLUE;{上九天攬?jiān)屡c下五洋捉鱉同為平滑處理過(guò)的一組5日均線(組)}; 捉鱉:DRAWICON(CROSS(C,上九天攬?jiān)?,L*0.975,34); {藍(lán)色打底K線} 標(biāo)識(shí)02:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORCYAN; 標(biāo)識(shí)03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORCYAN; 標(biāo)識(shí)04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN; 標(biāo)識(shí)05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORCYAN; 標(biāo)識(shí)06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN; 標(biāo)識(shí)07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORCYAN; 標(biāo)識(shí)08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORCYAN; 標(biāo)識(shí)09:STICKLINE(CLOSE<上九天攬?jiān)?AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORCYAN; 標(biāo)識(shí)10:STICKLINE(CLOSE<上九天攬?jiān)?AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORCYAN; 標(biāo)識(shí)11:STICKLINE(CLOSE<上九天攬?jiān)?AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORCYAN; 標(biāo)識(shí)12:STICKLINE(CLOSE<上九天攬?jiān)?AND OPEN<CLOSE,OPEN,LOW,0,0),COLORCYAN; 標(biāo)識(shí)13:STICKLINE(CLOSE<上九天攬?jiān)?AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORCYAN; {紅K線系列} 標(biāo)識(shí)14:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標(biāo)識(shí)15:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED; 標(biāo)識(shí)16:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標(biāo)識(shí)17:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標(biāo)識(shí)18:STICKLINE(CLOSE>上九天攬?jiān)?AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 標(biāo)識(shí)19:STICKLINE(CLOSE>上九天攬?jiān)?AND 下五洋捉鱉>REF(下五洋捉鱉,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標(biāo)識(shí)20:STICKLINE(CLOSE>上九天攬?jiān)?AND 下五洋捉鱉>REF(下五洋捉鱉,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED; 標(biāo)識(shí)22:STICKLINE(CLOSE>上九天攬?jiān)?AND 下五洋捉鱉>REF(下五洋捉鱉,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標(biāo)識(shí)23:STICKLINE(CLOSE>V AND 下五洋捉鱉>REF(下五洋捉鱉,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標(biāo)識(shí)24:STICKLINE(CLOSE>V AND 下五洋捉鱉>REF(下五洋捉鱉,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 名稱代碼:=STRCAT(STRCAT(STRCAT(STRCAT('名稱: ',STKNAME),' 代碼: '),CODE),' ' ); 概念板塊:=STRCAT('概念板塊: ',GNBLOCK); 名稱代碼標(biāo)識(shí):DRAWTEXT_FIX(ISLASTBAR,0.14,0.03,0,STRCAT(名稱代碼,概念板塊)),COLORYELLOW; 所屬行業(yè):DRAWTEXT_FIX(1,0.01,0.03,0,'所屬行業(yè):'),COLORFF6000; 所屬行業(yè)標(biāo)識(shí):DRAWTEXT_FIX(1,0.05,0.03,0,HYBLOCK),COLORRED; 所在地域標(biāo)識(shí):DRAWTEXT_FIX(1,0.095,0.03,0,DYBLOCK),COLORYELLOW; 壓力均線畫線:HHV(HIGH,30),COLOR666666,DOTLINE; 支撐均線畫線:LLV(LOW,30),COLOR666666,DOTLINE; 壓力均線30:=HHV(LOW,30),COLORFFCC00,DOTLINE; 支撐均線30:=LLV(HIGH,30),COLORFFCC00,DOTLINE; 向上突破支撐:DRAWICON(FILTERX(CROSS(C,支撐均線30),10),L*0.995,1); 向下突破支撐:DRAWICON(FILTERX(CROSS(壓力均線30,C),10),H*1.02,2); 止損價(jià)位0:=C-(C/100*3); 止盈價(jià)位1:=C/100*6+C; 止盈價(jià)位2:=C/100*9+C; 止盈價(jià)位3:=C/100*12+C; 標(biāo)識(shí)0:=DRAWTEXT_FIX(C!=0,0.01,0.08,0,'操盤數(shù)據(jù)指南:(數(shù)據(jù)均以現(xiàn)價(jià)計(jì))'),COLORLIBLUE; 標(biāo)識(shí)1:=DRAWTEXT_FIX(C!=0,0.01,0.15,0,'基于現(xiàn)價(jià)的止損位與止盈位參照'),COLORLIBLUE; 標(biāo)識(shí)2:=DRAWTEXT_FIX(C!=0,0.01,0.22,0,STRCAT('止損價(jià)位0 -3% = -',STRCAT(CON2STR(止損價(jià)位0,3),' 元'))),COLORRED; 標(biāo)識(shí)3:=DRAWTEXT_FIX(C!=0,0.01,0.29,0,STRCAT('止盈價(jià)位1 +6% = +',STRCAT(CON2STR(止盈價(jià)位1,3),' 元'))),COLORRED; 標(biāo)識(shí)4:=DRAWTEXT_FIX(C!=0,0.01,0.36,0,STRCAT('止損價(jià)位2 +9% = +',STRCAT(CON2STR(止盈價(jià)位2,3),' 元'))),COLORRED; 標(biāo)識(shí)5:=DRAWTEXT_FIX(C!=0,0.01,0.43,0,STRCAT('止盈價(jià)位3 +12% = +',STRCAT(CON2STR(止盈價(jià)位3,3),' 元'))),COLORRED; 標(biāo)識(shí)6:=DRAWTEXT_FIX(C!=0,0.01,0.50,0,'風(fēng)險(xiǎn)收益比 1:2 。等額下注是關(guān)鍵。'),COLORLIBLUE; {以下是交易備忘錄的一個(gè)標(biāo)本: 如果不想讓它顯示,可以在:(冒號(hào))后面加個(gè) =(等于)符號(hào)即可。} 止損價(jià)位:=C-(C/100*3); 止盈價(jià)位:=C/100*6+C; 止盈價(jià)位02:=C/100*9+C; 止盈價(jià)位03:=C/100*12+C; 海波重科止損:=15.52; {換股時(shí),重新計(jì)算個(gè)股成本價(jià)價(jià)格,并手動(dòng)更改名稱、價(jià)格} 海波重科贏利:=16.48; {換股時(shí),重新計(jì)算個(gè)股成本價(jià)價(jià)格,并手動(dòng)更改名稱、價(jià)格} 海波重科止盈:=16.96; {換股時(shí),重新計(jì)算個(gè)股成本價(jià)價(jià)格,并手動(dòng)更改名稱、價(jià)格} 標(biāo)識(shí)0001:DRAWTEXT_FIX(C!=0,0.01,0.12,0,'300517海波重科 預(yù)期賺5400元,相應(yīng)地承擔(dān)虧損2700元的風(fēng)險(xiǎn)。'),COLORLIBLUE;{換股時(shí),手動(dòng)更改代碼、名稱} 標(biāo)識(shí)0002:DRAWTEXT_FIX(C!=0,0.01,0.18,0,'成本價(jià):16.00元 調(diào)用了3個(gè)單筆交易單位約9萬(wàn)元,買入5600股。'),COLORLIBLUE;{換股時(shí),重新計(jì)算價(jià)格并更改成本價(jià)} 標(biāo)識(shí)0003:DRAWTEXT_FIX(C!=0,0.01,0.24,0,STRCAT('海波重科止損 -3% = ',STRCAT(CON2STR(海波重科止損,2),' 元 【 固定的,不變動(dòng)?!?#39;))),COLORLICYAN;{換股時(shí),手動(dòng)更改名稱} 標(biāo)識(shí)0004:DRAWTEXT_FIX(C!=0,0.01,0.30,0,STRCAT('海波重科贏利 +3% = ',STRCAT(CON2STR(海波重科贏利,2),' 元 【 固定的,不變動(dòng)?!?#39;))),COLORLICYAN;{換股時(shí),手動(dòng)更改名稱} 標(biāo)識(shí)0005:DRAWTEXT_FIX(C!=0,0.01,0.36,0,STRCAT('海波重科止盈 +6% = ',STRCAT(CON2STR(海波重科止盈,2),' 元 【 固定的,不變動(dòng)?!?#39;))),COLORLICYAN;{換股時(shí),手動(dòng)更改名稱} 標(biāo)識(shí)0006:DRAWTEXT_FIX(C!=0,0.01,0.42,0,STRCAT('止損價(jià)位 -3% = -',STRCAT(CON2STR(止損價(jià)位0,3),' 元 【 隨行情變動(dòng)而變動(dòng)?!?#39;))),COLORGREEN; 標(biāo)識(shí)0007:DRAWTEXT_FIX(C!=0,0.01,0.48,0,STRCAT('止盈價(jià)位 +6% = +',STRCAT(CON2STR(止盈價(jià)位1,3),' 元 【 隨行情變動(dòng)而變動(dòng)?!?#39;))),COLORRED; 買:=IF("KDJ.J"<0,10,0); 條件:=CROSS(9.9,買); VAR1:=(2*CLOSE+HIGH+LOW)/4; VAR2:=LLV(LOW,5); VAR3:=HHV(HIGH,5); VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5); MA1:=MA(VAR4,3); AA:=STICKLINE(VAR4>MA1,VAR4,MA1,3,1),COLORRED; BBB:=STICKLINE(VAR4>MA1 AND REF(VAR4,1)<30,VAR4,MA1,3,1),COLORYELLOW; 標(biāo)識(shí)003:=STICKLINE(VAR4<=MA1,VAR4,MA1,3,1),COLORGREEN; 標(biāo)識(shí)004:DRAWTEXT(CROSS(9.9,買),L*0.96,'短線關(guān)注')COLORLICYAN; |
|
來(lái)自: 知博陋室 > 《指標(biāo)公式》