用法:
1.黃金分割線結合均線判斷支持和壓力,均線為5日 8日 和55日 144日。短線60分鐘來分析判斷買賣。
2.選股盡量選在55日和144日均線以上的票,利用單陽不破,選縮量回調到黃金分割和這2條均線支持時買入,獲利概率較大。
源碼如下:
MA5:MA(C,5);
MA10:MA(C,8),LINETHICK1,COLORYELLOW ;
MA55:MA(C,55),LINETHICK3,COLORLIMAGENTA;
MA144:MA(C,144),LINETHICK2,COLORGREEN;
高1:=HHV(H,N);
低1:=LLV(L,N);
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;
高:REFDATE(高1,DATE);
低:REFDATE(低1,DATE);
一:REFDATE(H1,DATE);
二:REFDATE(H2,DATE);
{漲停標注}
STICKLINE(C/REF(C,1)>1.095,C,O,2,0),COLORYELLOW;
{財務數據}
DRAWTEXT_FIX(ISLASTBAR,0.18,0.01,1,'上市日期:'),COLOR00FF00;
DRAWNUMBER_FIX(ISLASTBAR,0.18,0.01,0,FINANCE(42)),COLOR00FF00;
DRAWTEXT_FIX(1,0.01,0.13,0,EXTERNSTR(0,1)),COLORRED;
DRAWTEXT_FIX(1,0.26,0.01,0,EXTERNSTR(0,2)),COLORDD00DD;
DRAWTEXT_FIX(1,0.01,0.066,0,EXTERNSTR(0,3)),COLOR00DD00;
DRAWTEXT_FIX(ISLASTBAR ,0.06,0.01,1,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR ,0.065,0.01,0,HYBLOCK),COLORYELLOW;三:REFDATE(H3,DATE);
四:REFDATE(H4,DATE),COLORRED;
五:REFDATE(H5,DATE);
{DRAWTEXT(CURRBARSCOUNT=1.00,一,'一(0.191)'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1.00,二,'二(0.382)'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1.00,三,'三(0.50)'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1.00,四,'四(0.618'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1.00,五,'五(0.809)'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1.00,高,'高'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1.00,低,'低'),COLORYELLOW;
DRAWKLINE(H,O,L,C);};
盤整天數:=5;{盤整天數自己調,以5--7日為最佳}
下探幅度:=5;
上沖幅度:=25;
漲停:=(C-REF(C,1))/REF(C,1)>0.09;{漲幅大于9個點}
縮量:=HHV(VOL,盤整天數-2)<REF(VOL,盤整天數-1) AND SUM(VOL, 盤整天數)>2* SUM(VOL, 盤整天數-2);
七傷拳:=縮量 AND REF(漲停,盤整天數) AND COUNT(漲停,盤整天數+1)=1 AND (HHV(H,盤整天數)-REF(C,盤整天數))/REF(C,盤整天數)*100<上沖幅度 AND (LLV(L,盤整天數)-REF(C,盤整天數))/REF(C,盤整天數)*100>(下探幅度*-1);
DRAWTEXT(七傷拳,LOW*0.98,'七傷拳'),COLORRED;
陽漲幅:=3.5;
陽倍量:=1.9;
單陽收:=C;
單陽開:=O;
單陽:=單陽收>=REF(C,1)*(1+陽漲幅/100)AND VOL>REF(VOL,1)*陽倍量;
DRAWTEXT(CURRBARSCOUNT<100 AND 單陽,L*0.98,'陽'),COLOR00FFFF;
高不破價:=REF(C,BARSLAST(單陽));
低不破價:=REF(L,BARSLAST(單陽));
單陽不破:=CURRBARSCOUNT<100 AND BARSLAST(單陽)<11 AND (LLV(L,BARSLAST(單陽))>低不破價 OR LLV(L,BARSLAST(單陽))=低不破價);
STICKLINE(單陽不破,低不破價-低不破價*0.0005,低不破價,4,0),COLORGREEN;
STICKLINE(單陽不破,高不破價,高不破價,4,0),COLORRED;
STICKLINE(單陽,單陽開,單陽收,2,0),COLORYELLOW;
DRAWTEXT(BARSLAST(單陽)=1 AND 單陽不破,低不破價*0.98,'1'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=2 AND 單陽不破,低不破價*0.98,'2'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=3 AND 單陽不破,低不破價*0.98,'3'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=4 AND 單陽不破,低不破價*0.98,'4'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=5 AND 單陽不破,低不破價*0.98,'5'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=6 AND 單陽不破,低不破價*0.98,'6'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=7 AND 單陽不破,低不破價*0.98,'7'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=8 AND 單陽不破,低不破價*0.98,'8'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=9 AND 單陽不破,低不破價*0.98,'9'),COLORGREEN;
DRAWTEXT(BARSLAST(單陽)=10 AND 單陽不破,低不破價*0.98,'10'),COLORGREEN;
(責任編輯:張曉軒)