{九天攬月【主圖指標】 多功能九天攬月交易系統(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)價: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; 支撐均線標注: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; 成本均線標注1:=STICKLINE(成本均線>=REF(成本均線,1),成本均線,REF(成本均線,1),2,0),COLOR0066FF;{COLOR0066FF} 成本均線標注2:=STICKLINE(成本均線<REF(成本均線,1),成本均線,REF(成本均線,1),2,0),COLORGREEN;{COLOR339933} MA17:=MA(C,17)COLORRED,DOTLINE; {COLOR999933} MA21:=MA(C,21)COLORGREEN,DOTLINE; MA21標注1:=STICKLINE(MA21>=REF(MA21,1),MA21,REF(MA21,1),2,0),COLOR0099FF;{COLOR0099FF} MA21標注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; 中長期震蕩值:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20))NODRAW,COLORMAGENTA; 長期震蕩值:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30))NODRAW,COLORRED,LINETHICK2; 短線預(yù)警:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 短期震蕩值=(100)AND 中期震蕩值=(100)AND 中長期震蕩值=(100)AND 長期震蕩值=(100),0.90,0.03,0,'小心短線見頂 ★★★')COLOR0099FF; 短線提醒:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 短期震蕩值<=(6)AND 中期震蕩值<=(6)AND 中長期震蕩值<=(6)AND 長期震蕩值<=(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)); 上九天攬月:EMA(EMA(EMA(EMA(MA(C,7),2),2),5),5),COLORRED,LINETHICK1; 下五洋捉鱉:REF(上九天攬月,1)COLORGREEN;{上九天攬月與下五洋捉鱉同為平滑處理過的一組7日均線(組)} 標識02:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORCYAN; 標識03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORCYAN; 標識04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN; 標識05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORCYAN; 標識06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN; 標識07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORCYAN; 標識08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORCYAN; {藍色打底K線} 標識09:STICKLINE(CLOSE<上九天攬月 AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORCYAN; 標識10:STICKLINE(CLOSE<上九天攬月 AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORCYAN; 標識11:STICKLINE(CLOSE<上九天攬月 AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORCYAN; 標識12:STICKLINE(CLOSE<上九天攬月 AND OPEN<CLOSE,OPEN,LOW,0,0),COLORCYAN; 標識13:STICKLINE(CLOSE<上九天攬月 AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORCYAN; {紅K線系列} 標識14:STICKLINE(CLOSE>上九天攬月 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標識15:STICKLINE(CLOSE>上九天攬月 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED; 標識16:STICKLINE(CLOSE>上九天攬月 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標識17:STICKLINE(CLOSE>上九天攬月 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標識18:STICKLINE(CLOSE>上九天攬月 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 標識19:STICKLINE(CLOSE>上九天攬月 AND 上九天攬月>REF(上九天攬月,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標識20:STICKLINE(CLOSE>上九天攬月 AND 上九天攬月>REF(上九天攬月,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED; 標識22:STICKLINE(CLOSE>上九天攬月 AND 上九天攬月>REF(上九天攬月,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標識23:STICKLINE(CLOSE>上九天攬月 AND 上九天攬月>REF(上九天攬月,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標識24:STICKLINE(CLOSE>上九天攬月 AND 上九天攬月>REF(上九天攬月,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; {藍色打底K線} 標識25:=STICKLINE(CLOSE<上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN; 標識26:=STICKLINE(CLOSE<上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORCYAN; 標識27:=STICKLINE(CLOSE<上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN; 標識28:=STICKLINE(CLOSE<上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORCYAN; 標識29:=STICKLINE(CLOSE<上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORCYAN; 標識30:=STICKLINE(CLOSE>上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN; 標識31:=STICKLINE(CLOSE>上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORCYAN; 標識32:=STICKLINE(CLOSE>上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN; 標識33:=STICKLINE(CLOSE>上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORCYAN; 標識34:=STICKLINE(CLOSE>上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORCYAN; {紅色K線} 標識35:STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE>上九天攬月 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標識36:STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE>上九天攬月 AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED; 標識37:STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE>上九天攬月 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標識38:STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE>上九天攬月 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標識39:STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE>上九天攬月 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; {綠色K線系列} 標識40:STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE<上九天攬月 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORGREEN; 標識41:STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE<上九天攬月 AND CLOSE>OPEN,OPEN,LOW,0,0),COLORGREEN; 標識42:STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE<上九天攬月 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORGREEN; 標識43:STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE<上九天攬月 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORGREEN; 標識44:STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE<上九天攬月 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORGREEN; {淡青色K線} 標識45:=STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE>上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN; 標識46:=STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE>上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORCYAN; 標識47:=STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE>上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN; 標識48:=STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE>上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORCYAN; 標識49:=STICKLINE(上九天攬月>下五洋捉鱉 AND CLOSE>上九天攬月 AND 上九天攬月<REF(上九天攬月,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORCYAN; {深藍色K線系列} 標識50:STICKLINE(CLOSE<下五洋捉鱉 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORBLUE; 標識51:STICKLINE(CLOSE<下五洋捉鱉 AND CLOSE>OPEN,OPEN,LOW,0,0),COLORBLUE; 標識52:STICKLINE(CLOSE<下五洋捉鱉 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORBLUE; 標識53:STICKLINE(CLOSE<下五洋捉鱉 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORBLUE; 標識54:STICKLINE(CLOSE<下五洋捉鱉 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORBLUE; {黃色K線系列}; 標識55:STICKLINE(CLOSE>上九天攬月 AND CLOSE<下五洋捉鱉 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORYELLOW; 標識56:STICKLINE(CLOSE>上九天攬月 AND CLOSE<下五洋捉鱉 AND CLOSE>OPEN,OPEN,LOW,0,0),COLORYELLOW; 標識57:STICKLINE(CLOSE>上九天攬月 AND CLOSE<下五洋捉鱉 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORYELLOW; 標識58:STICKLINE(CLOSE>上九天攬月 AND CLOSE<下五洋捉鱉 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORYELLOW; 標識59:STICKLINE(CLOSE>上九天攬月 AND CLOSE<下五洋捉鱉 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORYELLOW; 標識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,上九天攬月),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; {文字} 持倉:=IF(CLOSE>=SAR(10,2,20),SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLOR0000FF,{COLOR0099FF}; 空倉:=IF(CLOSE<=SAR(10,2,20),SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORFF0033,{COLORDDFF00}; 標識:STICKLINE(C/REF(C,1)>1.095,O,C,1.5,0),COLORYELLOW; 選股:=DRAWICON(CROSS(MA05,MA10)AND CROSS(C,上九天攬月),L*0.92,34); 多頭預(yù)警:DRAWTEXT_FIX(CURRBARSCOUNT=1 AND CROSS(MA05,MA10)AND CROSS(C,上九天攬月),0.68,0.03,0,'看,出現(xiàn)多頭信號了,進場做多吧!★★★')COLORRED; 名稱代碼:=STRCAT(STRCAT(STRCAT(STRCAT('名稱: ',STKNAME),' 代碼: '),CODE),' ' ); 概念板塊:=STRCAT('概念板塊: ',GNBLOCK); 名稱代碼標識:DRAWTEXT_FIX(ISLASTBAR,0.14,0.03,0,STRCAT(名稱代碼,概念板塊)),COLORGREEN; 所屬行業(yè):DRAWTEXT_FIX(1,0.01,0.03,0,'所屬行業(yè):'),COLORCYAN; 所屬行業(yè)標識:DRAWTEXT_FIX(1,0.05,0.03,0,HYBLOCK),COLORRED; 所在地域標識:DRAWTEXT_FIX(1,0.095,0.03,0,DYBLOCK),COLORYELLOW; 指標模板:DRAWTEXT_FIX(1,0.014,0.96,0,'指標模板(三窗口)標配:主圖《九天攬月》 副圖《主力多空》或 副圖《螞蟥波段》 副圖《飛龍量能》 ★★★'),COLOR777777; DRAWTEXT_FIX(1,0.37,0.96,0,' 該股財報 __ 每股收益:')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)營現(xiàn)金流:')COLOR777777; DRAWTEXT_FIX(1,0.607,0.96,0,CON2STR(FINANCE(25),3))COLOR777777; 標識022:DRAWTEXT_FIX(C!=1,0.675,0.96,0,'★★★ 設(shè):3萬元/每個單筆交易單位。 風(fēng)險收益比 ≥ 1:2 。 止損:≤ -3% 。 止盈:≥ +6% 。'),COLOR777777; XC:=C,COLORWHITE LINETHICK1; DRAWNUMBER(CURRBARSCOUNT=1,L*0.99,XC),COLORYELLOW,LINETHICK2; 止損價位0:=C-(C/100*3); 止盈價位1:=C/100*6+C; 止盈價位2:=C/100*9+C; 止盈價位3:=C/100*12+C; 標識0:DRAWTEXT_FIX(C!=0,0.01,0.12,0,'操盤數(shù)據(jù)指南:(數(shù)據(jù)均以現(xiàn)價計)'),COLORLIBLUE; 標識1:DRAWTEXT_FIX(C!=0,0.01,0.18,0,'基于現(xiàn)價的止損位與止盈位參照'),COLORLIBLUE; 標識2:DRAWTEXT_FIX(C!=0,0.01,0.24,0,STRCAT('止損價位0 -3% = -',STRCAT(CON2STR(止損價位0,3),' 元'))),COLORRED; 標識3:DRAWTEXT_FIX(C!=0,0.01,0.30,0,STRCAT('止盈價位1 +6% = +',STRCAT(CON2STR(止盈價位1,3),' 元'))),COLORRED; 標識4:DRAWTEXT_FIX(C!=0,0.01,0.36,0,STRCAT('止損價位2 +9% = +',STRCAT(CON2STR(止盈價位2,3),' 元'))),COLORRED; 標識5:DRAWTEXT_FIX(C!=0,0.01,0.42,0,STRCAT('止盈價位3 +12% = +',STRCAT(CON2STR(止盈價位3,3),' 元'))),COLORRED; 標識6:DRAWTEXT_FIX(C!=0,0.01,0.48,0,'風(fēng)險收益比 1:2 。等額下注是關(guān)鍵。'),COLORLIBLUE; 標識7:DRAWTEXT_FIX(C!=0,0.01,0.54,0,'設(shè):每3萬元為一個 單筆交易單位。'),COLORLIBLUE; {九天攬月【選股公式】 MA05:=MA(C,05); MA10:=MA(C,10); 上九天攬月:=EMA(EMA(EMA(EMA(MA(C,7),2),2),5),5); 選股:DRAWICON(CROSS(MA05,MA10)AND CROSS(C,上九天攬月),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); 標識001:=STICKLINE(IF(VAR103<VAR105,VAR103<=1.015*VAR104,VAR103<=1.005*VAR104),VAR103,VAR104,2,1),COLOR006600 ; 標識002:=STICKLINE(VAR103>1.005*VAR104,VAR103,VAR104,2,1),COLORFF00FF; 上九天攬月2:=EMA(EMA(EMA(EMA(MA(C,1),2),2),5),5),COLOR0099FF,NODRAW; 下五洋捉鱉2:=REF(上九天攬月2,1)COLORLIBLUE,NODRAW; 平均成本線:COST(50)COLOR888888,DOTLINE,DOTLINE,NODRAW; 警示:DRAWTEXT_FIX(BARSTATUS=2 AND C<COST(50),0.87,0.03,0,'注意:該股股價目前低于平均成本線'),COLORGREEN; 成本線復(fù)線1:=EMA(EMA(EMA(EMA(MA(上九天攬月2,2),2),2),2),2),COLOR888888; 成本線復(fù)線2:=REF((C,3),1)COLOR888888; 成本線色塊3:DRAWBAND(MA(上九天攬月2,2),RGB(85,26,139),MA(上九天攬月2,9),RGB(0,100,0)); 現(xiàn)價:DYNAINFO(7)COLORWHITE,NODRAW; 止損負3%:REF(現(xiàn)價*0.97,1)COLORGREEN,NODRAW; 止盈正6%:REF(現(xiàn)價*1.06,1)COLORRED,NODRAW; 漲停正10%:REF(現(xiàn)價*1.10,1)COLORYELLOW,NODRAW; {用最高價計算,上面分別為5% 10%的止損,最后收盤價計算10%為止贏??梢愿郊釉谌我庖粭l公式中。} 止損標識:=DRAWTEXT(ISLASTBAR ,止損負3%,' - 止損 3%'),COLORGREEN; 止盈標識:=DRAWTEXT(ISLASTBAR ,止盈正6%,' - 止盈 6%'),COLORRED; 漲停標識:=DRAWTEXT(ISLASTBAR ,漲停正10%,' - 漲停 10%'),COLORYELLOW; 收盤價標識:=DRAWTEXT(ISLASTBAR ,現(xiàn)價,' - 收盤價'),COLOR3399FF; 上九天攬月:EMA(EMA(EMA(EMA(MA(C,3),2),2),5),5),COLOR0099FF,NODRAW; 下五洋捉鱉:REF(上九天攬月,1)COLORLIBLUE;{上九天攬月與下五洋捉鱉同為平滑處理過的一組5日均線(組)}; 捉鱉:DRAWICON(CROSS(C,上九天攬月),L*0.975,34); {藍色打底K線} 標識02:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORCYAN; 標識03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORCYAN; 標識04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORCYAN; 標識05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORCYAN; 標識06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORCYAN; 標識07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORCYAN; 標識08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORCYAN; 標識09:STICKLINE(CLOSE<上九天攬月 AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORCYAN; 標識10:STICKLINE(CLOSE<上九天攬月 AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORCYAN; 標識11:STICKLINE(CLOSE<上九天攬月 AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORCYAN; 標識12:STICKLINE(CLOSE<上九天攬月 AND OPEN<CLOSE,OPEN,LOW,0,0),COLORCYAN; 標識13:STICKLINE(CLOSE<上九天攬月 AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORCYAN; {紅K線系列} 標識14:STICKLINE(CLOSE>上九天攬月 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標識15:STICKLINE(CLOSE>上九天攬月 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED; 標識16:STICKLINE(CLOSE>上九天攬月 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標識17:STICKLINE(CLOSE>上九天攬月 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標識18:STICKLINE(CLOSE>上九天攬月 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 標識19:STICKLINE(CLOSE>上九天攬月 AND 下五洋捉鱉>REF(下五洋捉鱉,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標識20:STICKLINE(CLOSE>上九天攬月 AND 下五洋捉鱉>REF(下五洋捉鱉,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED; 標識22:STICKLINE(CLOSE>上九天攬月 AND 下五洋捉鱉>REF(下五洋捉鱉,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標識23:STICKLINE(CLOSE>V AND 下五洋捉鱉>REF(下五洋捉鱉,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標識24:STICKLINE(CLOSE>V AND 下五洋捉鱉>REF(下五洋捉鱉,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 名稱代碼:=STRCAT(STRCAT(STRCAT(STRCAT('名稱: ',STKNAME),' 代碼: '),CODE),' ' ); 概念板塊:=STRCAT('概念板塊: ',GNBLOCK); 名稱代碼標識:DRAWTEXT_FIX(ISLASTBAR,0.14,0.03,0,STRCAT(名稱代碼,概念板塊)),COLORYELLOW; 所屬行業(yè):DRAWTEXT_FIX(1,0.01,0.03,0,'所屬行業(yè):'),COLORFF6000; 所屬行業(yè)標識:DRAWTEXT_FIX(1,0.05,0.03,0,HYBLOCK),COLORRED; 所在地域標識: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); 止損價位0:=C-(C/100*3); 止盈價位1:=C/100*6+C; 止盈價位2:=C/100*9+C; 止盈價位3:=C/100*12+C; 標識0:=DRAWTEXT_FIX(C!=0,0.01,0.08,0,'操盤數(shù)據(jù)指南:(數(shù)據(jù)均以現(xiàn)價計)'),COLORLIBLUE; 標識1:=DRAWTEXT_FIX(C!=0,0.01,0.15,0,'基于現(xiàn)價的止損位與止盈位參照'),COLORLIBLUE; 標識2:=DRAWTEXT_FIX(C!=0,0.01,0.22,0,STRCAT('止損價位0 -3% = -',STRCAT(CON2STR(止損價位0,3),' 元'))),COLORRED; 標識3:=DRAWTEXT_FIX(C!=0,0.01,0.29,0,STRCAT('止盈價位1 +6% = +',STRCAT(CON2STR(止盈價位1,3),' 元'))),COLORRED; 標識4:=DRAWTEXT_FIX(C!=0,0.01,0.36,0,STRCAT('止損價位2 +9% = +',STRCAT(CON2STR(止盈價位2,3),' 元'))),COLORRED; 標識5:=DRAWTEXT_FIX(C!=0,0.01,0.43,0,STRCAT('止盈價位3 +12% = +',STRCAT(CON2STR(止盈價位3,3),' 元'))),COLORRED; 標識6:=DRAWTEXT_FIX(C!=0,0.01,0.50,0,'風(fēng)險收益比 1:2 。等額下注是關(guān)鍵。'),COLORLIBLUE; {以下是交易備忘錄的一個標本: 如果不想讓它顯示,可以在:(冒號)后面加個 =(等于)符號即可。} 止損價位:=C-(C/100*3); 止盈價位:=C/100*6+C; 止盈價位02:=C/100*9+C; 止盈價位03:=C/100*12+C; 海波重科止損:=15.52; {換股時,重新計算個股成本價價格,并手動更改名稱、價格} 海波重科贏利:=16.48; {換股時,重新計算個股成本價價格,并手動更改名稱、價格} 海波重科止盈:=16.96; {換股時,重新計算個股成本價價格,并手動更改名稱、價格} 標識0001:DRAWTEXT_FIX(C!=0,0.01,0.12,0,'300517海波重科 預(yù)期賺5400元,相應(yīng)地承擔(dān)虧損2700元的風(fēng)險。'),COLORLIBLUE;{換股時,手動更改代碼、名稱} 標識0002:DRAWTEXT_FIX(C!=0,0.01,0.18,0,'成本價:16.00元 調(diào)用了3個單筆交易單位約9萬元,買入5600股。'),COLORLIBLUE;{換股時,重新計算價格并更改成本價} 標識0003:DRAWTEXT_FIX(C!=0,0.01,0.24,0,STRCAT('海波重科止損 -3% = ',STRCAT(CON2STR(海波重科止損,2),' 元 【 固定的,不變動?!?#39;))),COLORLICYAN;{換股時,手動更改名稱} 標識0004:DRAWTEXT_FIX(C!=0,0.01,0.30,0,STRCAT('海波重科贏利 +3% = ',STRCAT(CON2STR(海波重科贏利,2),' 元 【 固定的,不變動?!?#39;))),COLORLICYAN;{換股時,手動更改名稱} 標識0005:DRAWTEXT_FIX(C!=0,0.01,0.36,0,STRCAT('海波重科止盈 +6% = ',STRCAT(CON2STR(海波重科止盈,2),' 元 【 固定的,不變動?!?#39;))),COLORLICYAN;{換股時,手動更改名稱} 標識0006:DRAWTEXT_FIX(C!=0,0.01,0.42,0,STRCAT('止損價位 -3% = -',STRCAT(CON2STR(止損價位0,3),' 元 【 隨行情變動而變動。】'))),COLORGREEN; 標識0007:DRAWTEXT_FIX(C!=0,0.01,0.48,0,STRCAT('止盈價位 +6% = +',STRCAT(CON2STR(止盈價位1,3),' 元 【 隨行情變動而變動。】'))),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; 標識003:=STICKLINE(VAR4<=MA1,VAR4,MA1,3,1),COLORGREEN; 標識004:DRAWTEXT(CROSS(9.9,買),L*0.96,'短線關(guān)注')COLORLICYAN; |
|