{五線圖譜★【經典指標】} {參數(shù)設置:SHORT 2 1000 12 LONG 2 1000 26 MID 2 1000 9 } 屏蔽:DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.96,0,'████████████')COLORBLACK; 提示1:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,0.08,0,'提高勝率最有效的方法就是:減少操盤次數(shù),降低交易頻率。要知道,交易者操盤勝率的高低與她操盤頻率的高低通常是成反比的。')COLOR888888; 提示2:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,0.15,0,'低位買股三看:①、看MACD的底部是否抬高了、是否過了0軸、且,小能量柱柱堆也已縮腳翻紅了。')COLOR888888; 提示3:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,0.22,0,' ②、看成交量量柱是否越過了135日均量線。')COLOR888888; 提示4:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,0.29,0,' ③、看股價是否越過了平均成本線。且,股指則是越過了60日均價線。二者多頭共振。')COLOR888888; 提示5:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,0.36,0,'只要上述①②③項條件尚未達標,就是空頭時段??疹^時段,空倉觀望是最佳的選擇。')COLOR888888; 提示6:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,0.43,0,'只有上述①②③項條件都達標了,才是多頭時段。多頭時段,持股待漲才是上上之策。')COLOR888888; 提示57:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,0.50,0,'高位賣股三看:①、看MACD是否高位拐頭。②、看股價是否越過高拋線。③、看SAR停損指標是否翻綠。')COLOR888888; DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORGREEN,LINETHICK1; DEA:=EMA(DIF,MID)COLORFFFF33,LINETHICK1; MACD:=(DIF-DEA)/0.5,COLORSTICK; 標柱1:=STICKLINE(MACD>REF(MACD,1) AND MACD>0,0.0001,MACD,1.5,0),COLORRED; 標柱2:=STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0.0001,MACD,1.5,0),COLORYELLOW; 標柱3:=STICKLINE(MACD<REF(MACD,1) AND MACD<0,-0.0001,MACD,1.5,0),COLORGREEN; 標柱4:=STICKLINE(MACD>=REF(MACD,1) AND MACD<0,-0.0001,MACD,1.5,0),COLORLICYAN; 縮頭:=DRAWTEXT(LONGCROSS(標柱2,標柱1,1),MACD+0.1,'縮頭')COLORGREEN; 縮腳:=DRAWTEXT(LONGCROSS(標柱4,標柱3,3),MACD-0.1,'縮腳')COLORRED; MA5★攻擊線:=MA(C,5),COLORRED; N:=20;M:=30;P:=80;B:=100; B1:=85; {} {可調整的參數(shù) _ N:=20; M:=30; P:=80; B:=80; B1:=65; 自調參數(shù)——這是我設置的《300951博碩科技》專用指標參數(shù)。交易者可以自己設置參數(shù)。也可以套用源碼。目前,使用源碼。} {需保留的參數(shù) _ N:=20; M:=30; P:=80; B:=100; 源碼} 轉向:=ZIG(3,3)COLORLICYAN,LINETHICK1; VAR101:=(C+H+O+L)/4; 高拋:=XMA(VAR101,N)*(1+P/1000),COLORCYAN; 低吸:=XMA(VAR101,M)*(1-B1/1000),COLOR0099FF; 高拋線:高拋,COLOR555555,; {√開啟,關閉。} 低吸線:低吸,COLOR555555,; {√開啟,關閉。} 狙擊:=XMA(VAR101,M)*(1-B/1000),COLORCYAN,NODRAW; 超跌:=DRAWTEXT(ISLASTBAR,低吸線,STRCAT(' 超跌',0)),COLORBROWN; 極限:=DRAWTEXT(ISLASTBAR,狙擊,STRCAT(' 極限',0)),COLORLIGREEN; 頂部:=IF(高拋線>=REF(高拋線,1),高拋線,DRAWNULL),COLORRED,LINETHICK1; {關閉} 底部:=IF((C>=MA5★攻擊線)AND 高拋線>=REF(高拋線,1),低吸線,DRAWNULL),COLORLICYAN,LINETHICK1; {關閉} 差額:高拋線-低吸線,NODRAW,COLORRED; 半價:=差額/2,NODRAW,COLORGREEN; 南極○:=XMA(VAR101,M)*(1-B/1000),COLOR888888,DOTLINE; {關閉} MA05:=MA(C,5),COLORRED; MA60:MA(C,60),COLOR0099FF,DOTLINE; 可交易時段:=DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 高拋>=REF(高拋,1),0.800,0.02,0,'友情提示:★★★ 現(xiàn)在,個股處在可交易時段。')COLORRED; 非交易時段:=DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 高拋<REF(高拋,1),0.800,0.02,0,'友情提示:★★★ 現(xiàn)在,個股處在非交易時段。')COLORCYAN; 快:MEMA(MA5★攻擊線,1),COLORMAGENTA; 快升:=IF(快>=REF(快,1),快,DRAWNULL),COLORRED,DOTLINE; 快降:=IF(快<REF(快,1),快,DRAWNULL),COLORGREEN,DOTLINE; 慢:MEMA(EMA(EMA(EMA(MA(C,5),2),1),2),1),COLORCYAN,LINETHICK1; 慢升:=IF(慢>=REF(慢,1),慢,DRAWNULL),COLOR0099FF,LINETHICK1; 慢降:=IF(慢<REF(慢,1),慢,DRAWNULL),COLORCYAN,LINETHICK1; 原值色塊標識:=DRAWBAND(快,RGB(128,0,0),慢,RGB(0,88,0)); 平均成本:COST(50),COLORWHITE,DOTLINE; 平均成本05:=MEMA(COST(50),5),COLORRED,DOTLINE; 平均成本10:=MEMA(COST(50),10),COLORGREEN,DOTLINE; 成本多頭:=C>=(COST(50)), COLORRED,NODRAW; 成本空頭:=C<(COST(50)), COLORGREEN,NODRAW; {壓力與支撐} 壓力均線畫線:=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.999,1); 向下突破:DRAWICON(FILTERX(CROSS(壓力均線30,C),10),H*1.02,2); {SAR指標} SAR持倉標識:DRAWTEXT(CLOSE>=SAR(4,2,20),SAR(4,2,20)-0.3,'●')COLORLIRED; SAR空倉標識:DRAWTEXT(CLOSE<=SAR(4,2,20),SAR(4,2,20)+0.3,'●')COLORLIBLUE; 多頭進場:DRAWICON(LOW<低吸 AND CROSS(C,MA5★攻擊線),L*0.98,34); {BDWT-周線XG} 周線:=C#WEEK; AA:='CLOSE.CLOSE'#WEEK; BB:='OPEN.OPEN'#WEEK; 低吸進場1:=DRAWICON(LOW<南極○ AND CLOSE<OPEN,L*0.98,9); 低吸進場2:=DRAWICON(LOW<南極○ AND AA<BB,L*0.98,9); 低吸【日線】:DRAWTEXT(FILTERX(低吸進場1+縮腳,5),L*0.98,'○')COLORRED;{信號看《主力進場》指標-底部笑臉} 低吸【周線】:DRAWTEXT(FILTERX(低吸進場2+縮腳,5),L*0.96,'●')COLORMAGENTA;{信號看《主力進場》指標-底部笑臉} 低吸000:=DRAWICON(REF(高拋,0)>=REF(高拋,1)AND LOW<低吸線,低吸線,9);{信號看《主力進場》指標-底部笑臉} 高拋離場:DRAWICON(CLOSE>=REF(高拋,1) AND CLOSE>=OPEN,H*1.02,21); 最佳離場點:DRAWICON(FILTERX(CLOSE>=REF(高拋,1) AND CLOSE>=OPEN,5),H*1.02,35); {時間_星期} 年:=STRCAT(CON2STR(YEAR,0),' 年 '); 月:=STRCAT(CON2STR(MONTH,0),' 月 '); 日:=STRCAT(CON2STR(DAY,0),' 日 '); SZ:=STRCAT(STRCAT(年,月), 日); XQ:=STRCAT(' 星期',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日'))))))); 年月日:DRAWTEXT_FIX(C>0,0.015,0.02,0,SZ),COLORGREEN; 星期:DRAWTEXT_FIX(C>0,0.08,0.02,0,XQ),COLORGREEN; {多空布林★主圖【經典指標】布林帶參數(shù): N:2 100 11, M:2 100 6} CV:=CLOSE; BOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4,COLOR0099FF; UPR:=BBIBOLL+M*STD(BOLL,N)COLOR888888,DOTLINE; {COLOR0099FF} DWN:=BBIBOLL-M*STD(BOLL,N)COLOR888888,DOTLINE; {COLOR00FF99}; {綠K線} 標識0002:STICKLINE(CLOSE=OPEN,HIGH,LOW,0,0),COLORGREEN; 標識03:STICKLINE(CLOSE=OPEN,CLOSE,OPEN,3,0),COLORGREEN; 標識04:STICKLINE(CLOSE>OPEN,HIGH,CLOSE,0,0),COLORGREEN; 標識05:STICKLINE(CLOSE>OPEN,LOW,OPEN,0,0),COLORGREEN; 標識06:STICKLINE(CLOSE>OPEN,OPEN,CLOSE,3,1),COLORGREEN; 標識07:STICKLINE(OPEN>CLOSE,HIGH,LOW,0,0),COLORGREEN; 標識08:STICKLINE(OPEN>CLOSE,OPEN,CLOSE,3,0),COLORGREEN; 標識09:STICKLINE(CLOSE<MA5★攻擊線 AND OPEN>=CLOSE,HIGH,LOW,0,0),COLORGREEN; 標識10:STICKLINE(CLOSE<MA5★攻擊線 AND OPEN>=CLOSE,OPEN,CLOSE,3,0),COLORGREEN; 標識11:STICKLINE(CLOSE<MA5★攻擊線 AND OPEN<CLOSE,HIGH,CLOSE,0,0),COLORGREEN; 標識12:STICKLINE(CLOSE<MA5★攻擊線 AND OPEN<CLOSE,OPEN,LOW,0,0),COLORGREEN; 標識13:STICKLINE(CLOSE<MA5★攻擊線 AND OPEN<CLOSE,OPEN,CLOSE,3,1),COLORGREEN; {紅K線} 標識14:STICKLINE(CLOSE>MA5★攻擊線 AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標識15:STICKLINE(CLOSE>MA5★攻擊線 AND CLOSE>OPEN,LOW,OPEN,0,0),COLORRED; 標識16:STICKLINE(CLOSE>MA5★攻擊線 AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標識17:STICKLINE(CLOSE>MA5★攻擊線 AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標識18:STICKLINE(CLOSE>MA5★攻擊線 AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 標識19:STICKLINE(CLOSE>MA5★攻擊線 AND MA5★攻擊線>REF(慢,1) AND CLOSE>OPEN,HIGH,CLOSE,0,0),COLORRED; 標識20:STICKLINE(CLOSE>MA5★攻擊線 AND MA5★攻擊線>REF(慢,1) AND CLOSE>OPEN,OPEN,LOW,0,0),COLORRED; 標識22:STICKLINE(CLOSE>MA5★攻擊線 AND MA5★攻擊線>REF(慢,1) AND CLOSE>OPEN,OPEN,CLOSE,3,1),COLORRED; 標識23:STICKLINE(CLOSE>MA5★攻擊線 AND MA5★攻擊線>REF(慢,1) AND CLOSE<=OPEN,HIGH,LOW,0,0),COLORRED; 標識24:STICKLINE(CLOSE>MA5★攻擊線 AND MA5★攻擊線>REF(慢,1) AND CLOSE<=OPEN,OPEN,CLOSE,3,0),COLORRED; 黃K線標識:STICKLINE(CROSS(C,MA5★攻擊線) AND CLOSE>=OPEN,OPEN,OPEN+0.15,3,0),COLOR0099FF; 紫K線標識:STICKLINE(CLOSE<=狙擊 AND CLOSE<=OPEN,CLOSE,狙擊,3,0),COLORMAGENTA; {藍色高拋K線} 標識26:STICKLINE(CROSS(HIGH,高拋線) AND (CLOSE>=OPEN),CLOSE,CLOSE-0.3,3,0),COLORFF6600; 標識27:STICKLINE(CROSS(HIGH,高拋線) AND (CLOSE<=OPEN),OPEN,OPEN-0.3,3,0),COLORFF6600; 標識28:STICKLINE(CROSS(CLOSE,高拋線) AND (CLOSE>=OPEN),CLOSE,CLOSE-0.3,3,0),COLORFF6600; 標識29:STICKLINE(CROSS(CLOSE,高拋線) AND (CLOSE<=OPEN),OPEN,OPEN-0.3,3,0),COLORFF6600; 標識30:STICKLINE(HIGH>=高拋線 AND (CLOSE>=OPEN),CLOSE,CLOSE-0.2,3,0),COLORFF6600; 標識31:STICKLINE(HIGH>=高拋線 AND (CLOSE<=OPEN),OPEN,OPEN-0.2,3,0),COLORFF6600; {名稱代碼所屬行業(yè)及概念板塊} 所屬行業(yè):DRAWTEXT_FIX(1,0.03,0.99,0,'所屬行業(yè):'),COLORFF6000; 行業(yè)標識:DRAWTEXT_FIX(1,0.069,0.99,0,HYBLOCK),COLORRED; 地域標識:DRAWTEXT_FIX(1,0.105,0.99,0,DYBLOCK),COLORGREEN; 名稱代碼:=STRCAT(STRCAT(STRCAT(STRCAT('名稱: ',STKNAME),' 代碼: '),CODE),' ' ); 概念板塊:=STRCAT('概念板塊: ',GNBLOCK); 名稱代碼標識:DRAWTEXT_FIX(ISLASTBAR,0.16,0.99,0,STRCAT(名稱代碼,概念板塊)),COLOR555555; {根據(jù)MACD的金叉、死叉在主圖畫線,比如,這次金叉了,就在上次死叉前的最高點與這次金叉前的最低點之間連線,如圖所示:} T1:=BARSLAST(CROSS("MACD.DEA","MACD.DIF")); T2:=BARSLAST(CROSS("MACD.DIF","MACD.DEA")); HH:=HHV(H,T2)=H; LL:=LLV(L,T1)=L; 線1:=DRAWLINE(HH,H,LL,L,0)COLORGREEN; 線2:=DRAWLINE(LL,L,HH,H,0)COLORYELLOW; 迪安診斷300244:DYNAINFO(7)COLORWHITE,NODRAW,COLORRED; {所持有的個股} 迪安成本:31.32,NODRAW,COLORCYAN; {成本 31.618元(1000股)成本 31.406元(5100股)成本 31.32元(5100股)到證券賬戶中將“保本價”復制到該項中即可。} 迪安數(shù)量:=5100,NODRAW,COLORGREEN; 迪安價差:C-迪安成本,NODRAW,COLOR0099FF; 迪安盈虧:(迪安價差*5100)-0.03,NODRAW,COLORRED; {到證券賬戶中將“保本價”復制到該項中即可} 迪安盈虧比:迪安價差/迪安成本*100,NODRAW,COLORLICYAN; 賺六個點止盈:=迪安成本+(迪安成本/100*6),NODRAW,COLORRED; {止盈 百分六 止損 百分之三 風險收益比 1:2} 虧三個點止損:=迪安成本-(迪安成本/100*3),NODRAW,COLORGREEN; {止盈 百分六 止損 百分之三 風險收益比 1:2}; 警示1:DRAWTEXT_FIX(BARSTATUS=2 AND C>=COST(50),0.855,0.09,0,'該股股價已高于平均成本線,可持股。'),COLORRED; 警示2:DRAWTEXT_FIX(BARSTATUS=2 AND C<COST(50),0.855,0.09,0,'該股股價尚低于平均成本線,宜觀望。'),COLORGREEN; 警示3:DRAWTEXT_FIX(BARSTATUS=2 AND C>=MA60,0.855,0.03,0,'股指(股價)高于60均??勺们槌止?。'),COLORRED; 警示4:DRAWTEXT_FIX(BARSTATUS=2 AND C<MA60,0.855,0.03,0,'股指(股價)低于60均。暫不宜交易。'),COLORGREEN; |
|