股票公式:獨孤九劍(通達(dá)信)
(2017-07-06 20:41:20)
轉(zhuǎn)載▼
標(biāo)簽:
轉(zhuǎn)載原文地址:
股票公式:獨孤九劍(通達(dá)信)作者:
wei095獨孤九劍:=MA(C,0),COLORMAGENTA;
RSV:=EMA((CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,3);
DS:=EMA(RSV,3),;
JH:=MA(DS,3),;
K:3*DS-2*JH,COLORBROWN;
KDSJH:=IF((DATE>20091230),0,0),;
持股線:IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK2;
持幣線:IF(K<REF(K,1),K,DRAWNULL),COLORGREEN,LINETHICK2;
獨孤出手:IF((K<3),8,0) ,COLORYELLOW;
獨孤收劍:IF((K>97),92,100),COLORWHITE;
STICKLINE(DS>JH,DS,JH,2,0),COLORMAGENTA;
STICKLINE(DS<JH,JH,DS,2,1),COLORCYAN;
VAR1:=CROSS(K,DS) AND DS<20 ;
抄底:STICKLINE(VAR1,-2,5,4,1),COLORWHITE;
DRAWTEXT(VAR1 AND COUNT(VAR1,10)=1,3,'抄底'),COLORYELLOW;
VAR2:=CROSS(K,DS) AND DS>20 AND DS<40 ;
STICKLINE(VAR2,3,15,0.5,1),COLORYELLOW;
VAR3:=CROSS(DS,K) AND DS>90;
逃頂:STICKLINE(VAR3,95,102,4,1),COLORWHITE;
DRAWTEXT(VAR3 AND COUNT(VAR3,10)=1,97,'逃頂'),COLORYELLOW;
VAR4:=CROSS(DS,K) AND DS<90 AND DS>80;
STICKLINE(VAR4,85,97,0.5,1),COLORYELLOW;
{拉升}
拉升:C/REF(C,1)>1.048 AND C=H AND BETWEEN (FORCAST(V,4),0.2*FORCAST(V,12),
2.1*FORCAST(V,12)),COLORGRAY;
STICKLINE(拉升,40,20,0,0),COLORGRAY;
DRAWTEXT(拉升,38,'拉'),COLORLIGRAY;
{一劍封喉}
A:=REF(CLOSE,1);
BB:=SMA(MAX(CLOSE-A,0),5,1)/SMA(ABS(CLOSE-A),5,1)*1000;
HH:=BB-LLV(BB,10);
S:=(MA(HH,2)*3+HH*13)/16;
一劍封喉:=IF(S>13,MA(S,2),S);
YY:=DRAWICON(CROSS(一劍封喉,21),72,1);
STICKLINE(YY,57,56,1,1),COLORLIMAGENTA;
STICKLINE(YY,62,56,0,0),COLOR99CCFF;
{超跌}
AA1:=REF(LOW,1);
AA2:=SMA(ABS(LOW-AA1),13,1)/SMA(MAX(LOW-AA1,0),13,1)*4;
AA3:=EMA(AA2,13);
AA4:=LLV(LOW,34);
AA5:=EMA(IF(LOW<=AA4,AA3,0),3);
超跌:STICKLINE(AA5>REF(AA5,1),76,60,0,0),COLORRED;
STICKLINE(AA5>REF(AA5,1),69,68,3,1),COLORRED;
DRAWTEXT(超跌,64,'底'),COLORBROWN;
{機會來臨}
獨孤彈劍:REF(IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,-1,0),1),
STICK,COLOR8E8BFF;
STICKLINE(獨孤彈劍,85,76,0,0),COLOR8E8BFF;
STICKLINE(獨孤彈劍,83,84,2,0),COLOR8E8BFF;
{之字轉(zhuǎn)向指標(biāo),不作買賣依據(jù),只作判斷預(yù)測用}
轉(zhuǎn)上:=ZIG(3,10)>REF(ZIG(3,10),1)
AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
STICKLINE(轉(zhuǎn)上,-1,3,0,1),COLORWHITE;
STICKLINE(轉(zhuǎn)上,-1,-4,2,0),COLORYELLOW;
轉(zhuǎn)下:=ZIG(3,10)<REF(ZIG(3,10),1)
AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
STICKLINE(轉(zhuǎn)下,101,104,2,0),COLORYELLOW;
STICKLINE(轉(zhuǎn)下,97,101,0,1),COLORWHITE;
{MACD}
破刀式:=EMA(CLOSE,6)-EMA(CLOSE,13);
破槍式:=EMA(破刀式,5);
劍揮金花:=DRAWICON(CROSS(破刀式,破槍式),50,1);
STICKLINE(劍揮金花,45,45,5,0),COLORRED;
STICKLINE(劍揮金花,45,50,0,0),COLORRED;
劍指死穴:=DRAWICON(CROSS(破槍式,破刀式),50,2);
STICKLINE(劍指死穴,55,55,5,0),COLORGREEN;
STICKLINE(劍指死穴,55,50,0,0),COLORGREEN;
{RSI}
N1:=6; N2:=12; N3:=24;
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
破鞭式:=DRAWTEXT(CROSS(RSI1,RSI3),50,'B');
STICKLINE(破鞭式,47,47,3,0),COLORYELLOW;
STICKLINE(破鞭式,47,50,0,0),COLORYELLOW;
破箭式:=DRAWTEXT(CROSS(RSI3,RSI1),50,'S');
STICKLINE(破箭式,53,53,3,0),COLORWHITE;
STICKLINE(破箭式,53,50,0,0),COLORWHITE;
{總劍訣}
劍訣:=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);
劍指長虹:IF(CROSS(劍訣,MA(劍訣,10))AND 劍訣<30,1,0),STICK,COLOR0066FF;
STICKLINE(劍指長虹,-4,-3,1,1),COLOR0066FF;
STICKLINE(劍指長虹,-1,-1,3,1),COLOR0066FF;
STICKLINE(劍指長虹,-3,3,0,0),COLOR0066FF;
劍鋒反轉(zhuǎn):IF(CROSS(MA(劍訣,9),劍訣) AND 劍訣>70,1,0),STICK,COLOR00FF99;
STICKLINE(劍鋒反轉(zhuǎn),104,103,1,1),COLOR00FF99;
STICKLINE(劍鋒反轉(zhuǎn),101,101,3,1),COLOR00FF99;
STICKLINE(劍鋒反轉(zhuǎn),103,97,0,0),COLOR00FF99;
建倉: STICKLINE(劍訣<=10,-1,0,1,1) ,COLORRED;
潛龍騰天:IF(CROSS(劍訣,10),1,0),STICK ,COLORFF99FF;
STICKLINE(潛龍騰天,0,3,1,1),COLORFF99FF;
減倉:STICKLINE(劍訣>=90,101,100,1,1) , COLORGREEN;
北海斬蛟:IF(CROSS(84,劍訣),1,0),STICK,COLORA0660A;
STICKLINE(北海斬蛟,100,97,1,1),COLORA0660A;
{說明:嚴(yán)格按照信號買賣,做獨孤求??;}
{1,柱狀線為KDJ。長釘子是MACD。短釘子是RSI。錘頭是之字轉(zhuǎn)向。條條是拉升信號。
雙色火柴竿是一劍封喉。螺桿是獨孤彈劍信號。中字是超跌底。
總劍訣有3組對稱信號:分別用短劍,螞蟻方塊,小豎方格表示;
以上九大指標(biāo)濃縮在一個指標(biāo)里,稱為獨孤九劍;}
{2,多數(shù)情況下,獨孤出手是來送錢的,信號出來后,第2天會出陽線;
多數(shù)情況下,獨孤收劍是來放血的,信號出來后,第2天會出陰線;
如果想買獨孤出手和想賣獨孤收劍在收盤前半小時操作;
抄底逃頂是轉(zhuǎn)勢的拐點,成功率在百分之九十五以上;}
{3,當(dāng)獨孤彈劍出現(xiàn)時,會有一至三天反彈;拉升信號是強勢的表現(xiàn);}
{4,一劍封喉是冒險招,雖然能買到最低點,但有時候也是一天行情,必須服從其他指標(biāo);}
{5,之字轉(zhuǎn)向是未來函數(shù)指標(biāo),不能作為買賣的依據(jù),但它是轉(zhuǎn)向的前期預(yù)警;}
{6,當(dāng)"底"字出來時,表示超跌了,但超跌底字信號的出現(xiàn)并不代表就是買點,
還要配合之字轉(zhuǎn)向,均線,抄底等信號才能夠動手。當(dāng)“底”字出完后,
只有“抄底”2字的出現(xiàn)后,才是上升行情的開始。}
{7,總劍訣為右側(cè)交易信號,是判斷趨勢的確認(rèn)信號,也是成熟的買點信號。
劍指長虹是上升途中的追加信號,劍鋒反轉(zhuǎn)是最后的清倉信號;}
{8,當(dāng)2個或多個指標(biāo)在同一天出現(xiàn)時,表示為共振;}
{9, 記住3不要:下降通道不要做股票。弱勢股不要搶反彈。信號不確定不要動作;
如果做中長線,看周線,看月線的趨勢;};