【波峰與漲停】
主要是在每一個上漲波段或者是下跌波段操作中,有不同的波峰形態(tài)走勢以及漲停趨勢,其基本的源碼如下:
P1:=5;
P2:=10;
P3:=30;
P4:=60;
P5:=120;
P6:=250;
DRAWGBK(O>0,RGB(33,47,58),RGB(0,0,0),0,'02',0),LINETHICK2;
{波峰}
TY:=H;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C002:=BACKSET(B2,10+1);
LD:=FILTER(C002,10);
波峰:REF(H,BARSLAST(HD)),COLOR00FF00,POINTDOT;
STICKLINE(H,波峰,波峰,8,0),COLORYELLOW,LINETHICK2;
{跳空}
STICKLINE(REF(L,1)>H,H,REF(L,1),5,0),COLORGRAY;
STICKLINE(REF(H,1)
{漲停}
STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,-1),COLOR00FFFF;
{跌停}
{藍}
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;
{紅}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;
C3:=REF(C,1);
漲停0:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0),COLOR2DFFFF;
STICKLINE(漲停0,OPEN,CLOSE,3,0),COLOR00AAAA;
STICKLINE(漲停0,OPEN,CLOSE,2.5,0),COLOR00CACA;
STICKLINE(漲停0,OPEN,CLOSE,2,0),COLOR00E3E3;
STICKLINE(漲停0,OPEN,CLOSE,1.5,0),COLOR02FFFF;
STICKLINE(漲停0,OPEN,CLOSE,1,0),COLOR2DFFFF;
跌停0:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0),COLOR33FF33;
STICKLINE(跌停0,OPEN,CLOSE,3,0),COLOR00B700;
STICKLINE(跌停0,OPEN,CLOSE,2.5,0),COLOR00D200;
STICKLINE(跌停0,OPEN,CLOSE,2,0),COLOR00EA00;
STICKLINE(跌停0,OPEN,CLOSE,1.5,0),COLOR0FFF0F;
STICKLINE(跌停0,OPEN,CLOSE,1,0),COLOR33FF33;
獲利比例:WINNER(C)*100,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.5,1.5,0,STRCAT('獲利比例:',CON2STR(獲利比例,2)));
EXPMA10:EXPMA(CLOSE,10),LINETHICK4,COLOR00FFFF;
EXPMA60:EXPMA(CLOSE,60),COLOR0033FF,LINETHICK4;
DRAWICON(CROSS(EXPMA10,EXPMA60),EXPMA10,5);
K:=KDJ.K;
J:=KDJ.J;
ENTERLONG:CROSS(J,K) ;
ENTERSHORT:CROSS(K,J) ;
DRAWTEXT_FIX(1,0.00,0.00,0,'[主題投資]:')COLOR0000FF;
DRAWTEXT_FIX(1,0.05,0.00,0,EXTERNSTR(0,1))COLOR0000FF;
均價線0:=AMOUNT/V/100,POINTDOT;
C02:=REF(C,1);
漲停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
DT00:=CREF(C,1)*0.898;
STICKLINE(漲停,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(漲停,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(漲停,H,L,0,0),COLORYELLOW;
STICKLINE(DT00,OPEN,CLOSE,4,0),COLORWHITE;
STICKLINE(DT00,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(DT00,C,O,4,0),COLORGREEN;
賣出線:=98;
階段賣:=96;
均價線:=AMOUNT/V/100,POINTDOT;
C2:=REF(C,1);
漲停1:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
DT:=CREF(C,1)*0.898;
STICKLINE(漲停1,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(漲停1,OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE(漲停1,H,L,0,0),COLORYELLOW;
趨勢:=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);
底部:=10;
買入警戒:STICKLINE(趨勢<=10,HIGH,LOW,0.5,0),LINETHICK2,COLOR00FF00;
STICKLINE(趨勢<=10,OPEN,CLOSE,5,1),LINETHICK2,COLOR00FF00;
賣出警戒:STICKLINE(趨勢>=階段賣,HIGH,LOW,0.5,0),COLORYELLOW;
STICKLINE(趨勢>=階段賣,OPEN,CLOSE,6,1),LINETHICK2,COLORYELLOW;
DRAWTEXT((CROSS(趨勢,底部)),(LOW * 0.98),'↖買入'),COLORFF00FF;
DRAWICON((CROSS(趨勢,底部)),L-0.04,1);
PHD:=IF(LLV(L,3)>=REF(H,3),REF(H,3),
IF((LLV(L,3)>=REF(C,3) AND REF(C,3)>REF(O,3)),REF(C,3),
IF(LLV(L,3)>=REF(O,3) AND REF(C,3)>REF(O,3),REF(O,3),REF(L,3))));
【畫量柱標識】
{1.畫倍量黃金柱標識}
倍量黃金柱:=DRAWICON((LLV(L,3)>REF(L,3) OR LLV(L,3)=REF(L,3)) AND HHV(V,3)
REF(C,3)>REF(O,3) AND REF(V,3)>=2*REF(V,4),H+0.2,17);
{2.畫梯量黃金柱標識}
梯量黃金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)
REF(V,5)>REF(V,6) AND REF(V,4)>REF(V,5) AND REF(V,3)>REF(V,4),H,17);
{3.畫平量黃金柱標識}
平量黃金柱:=DRAWICON(LLV(L,3)>REF(L,3) AND HHV(V,3)
REF(C,3)>REF(O,3) AND ABS(REF(V,3)-REF(V,4))/REF(V,4)<=0.03,H,19);
倍量:=DRAWICON((VOL>REF(V,1)*2.0 OR VOL=REF(V,1)*2.0) AND C>REF(C,1),H+0.2,26);
STICKLINE(倍量,OPEN,CLOSE,-1,0),COLORYELLOW;
倍量黃金線:STICKLINE(倍量黃金柱,PHD,PHD,28,0),COLORMAGENTA,LINETHICK5;
DRAWICON(倍量黃金柱,PHD*1.008,12);
HJZ:=(3*C+H+L+O)/6;
HJZ2:=(8*HJZ+7*REF(HJZ,1)+6*REF(HJZ,2)+5*REF(HJZ,3)+4*REF(HJZ,4)+3*REF(HJZ,5)+2*REF(HJZ,6)+REF(HJZ,8))/36;
HJZ3:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>HJZ2 AND C>O;
黃金柱:FILTER(HJZ3,5),STICK,COLORRED,LINETHICK4,NODRAW;
STICKLINE(黃金柱,O,C,3.3,0),COLORRED;
STICKLINE(黃金柱,H,L,0.1,0),COLORRED;
DRAWTEXT(黃金柱,H*0.98,'←黃金柱'),COLORYELLOW;
XG:=SUMBARS(FILTER(黃金柱,2),1);
STICKLINE(XG,REF(C,XG-1),REF(C,XG-1),10,0),COLORGREEN;
XG1:=SUMBARS(FILTER(黃金柱,2),1);
STICKLINE(XG1,REF(L,XG1-1),REF(L,XG1-1),10,0),COLORAA00FF;
EMA13:=EMA(C,13),COLOR0000FF,LINETHICK2;
IF(C>EMA13,EMA13,DRAWNULL),COLORRED,LINETHICK2;
IF(C
X:=21;
TTY:=H;
AAT:=REF(TTY,X)=HHV(TTY,2*X+1);
BBT:=FILTER(AAT,X);
CCT:=BACKSET(BBT,X+1);
HD10T:=FILTER(CCT,X);
AA1T:=REF(TTY,X)=LLV(TTY,2*X+1);
BB1T:=FILTER(AA1T,X);
CC1T:=BACKSET(BB1T,X+1);
LD10T:=FILTER(CC1T,X);
三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2))>=REF(L,3);
三日量縮:=(MAX(MAX(V,REF(V,1)),REF(V,2))
三日價漲A:=C>=REF(C,1);
三日價漲C:=MIN(MIN(C,REF(C,1)),REF(C,2))>=REF(L,3);
TIM:=IF(DATE<1140214,1,0);
縮倍柱:=(VOL*1.95<=REF(VOL,1))*TIM;
百日低量:=(VOL=LLV(VOL,100))*TIM;
倍量柱:=C>REF(C,1)*1.04 AND (VOL>=1.9*REF(VOL,1))*TIM;
四日前倍量柱:=(REF(VOL,3)>1.9*REF(VOL,4))*TIM;
四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,3)<1.9*REF(VOL,4) AND 三日量縮)*TIM;
前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日價漲C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND
(REF(三日不破,1) OR REF(三日價漲C,1)),3)=0;
倍量黃金柱1:=四日前倍量柱 AND 三日量縮 AND 三日不破 AND 三日價漲A AND 前三引用不成立;
高量黃金柱:=四日前高量柱 AND 三日量縮 AND 三日不破 AND 三日價漲A AND 前三引用不成立;
黃金柱1:=倍量黃金柱1 OR 高量黃金柱;
次倍量黃金柱:=NOT(黃金柱) AND 四日前倍量柱 AND 三日量縮 AND 三日不破 AND 三日價漲B AND 前三引用不成立;
次高量黃金柱:=NOT(黃金柱) AND 四日前高量柱 AND 三日量縮 AND 三日不破 AND 三日價漲B AND 前三引用不成立;
次黃金柱:=次倍量黃金柱 OR 次高量黃金柱;
準倍量黃金柱:=NOT(黃金柱 OR 次黃金柱) AND 四日前倍量柱 AND ((三日量縮 AND 三日價漲C) OR (COUNT(倍量柱,3)>=1 AND 三日不破))
AND 前三引用不成立;
準高量黃金柱:=NOT(黃金柱 OR 次黃金柱) AND 四日前高量柱 AND (三日量縮 AND 三日價漲C) AND 前三引用不成立;
準黃金柱:=準倍量黃金柱 OR 準高量黃金柱;
倍量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準黃金柱) AND 四日前倍量柱 AND 三日不破 AND 三日價漲A AND 前三引用不成立;
高量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準黃金柱) AND 四日前高量柱 AND 三日不破 AND 三日價漲A AND 前三引用不成立;
將軍柱:=倍量將軍柱 OR 高量將軍柱;
次倍量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準黃金柱 OR 將軍柱) AND 四日前倍量柱 AND 三日不破 AND 三日價漲B AND 前三引用不成立;
次高量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準黃金柱 OR 將軍柱) AND 四日前高量柱 AND 三日不破 AND 三日價漲B AND 前三引用不成立;
次將軍柱:=次倍量將軍柱 OR 次高量將軍柱;
準倍量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準黃金柱 OR 將軍柱 OR 次將軍柱) AND 四日前倍量柱 AND 三日價漲C AND 前三引用不成立;
準高量將軍柱:=NOT(黃金柱 OR 次黃金柱 OR 準黃金柱 OR 將軍柱 OR 次將軍柱) AND 四日前高量柱 AND 三日價漲C AND 前三引用不成立;
準將軍柱:=準倍量將軍柱 OR 準高量將軍柱;
BACKSET100:=BACKSET(黃金柱 OR 次黃金柱 OR 準黃金柱 OR 將軍柱 OR 次將軍柱 OR 準將軍柱,4);
FILTER100:=FILTER(BACKSET100,3);
BACKSET101:=BACKSET(黃金柱,4);
FILTER101:=FILTER(BACKSET101,3);
BACKSET102:=BACKSET(次黃金柱,4);
FILTER102:=FILTER(BACKSET102,3);
BACKSET103:=BACKSET(準黃金柱,4);
FILTER103:=FILTER(BACKSET103,3);
BACKSET104:=BACKSET(將軍柱,4);
FILTER104:=FILTER(BACKSET104,3);
BACKSET105:=BACKSET(次將軍柱,4);
FILTER105:=FILTER(BACKSET105,3);
BACKSET106:=BACKSET(準將軍柱,4);
FILTER106:=FILTER(BACKSET106,3);
主要是對量柱的簡單分析,黃金柱、倍量柱、將軍柱等不同的量能變化分析;
【重繪K線】
DRAWKLINE(H,O,L,C);
{重繪K線 顯示大陽\大陰\漲停\跌停\假陰}
{假陰柱}
假陰:=C
STICKLINE(假陰,O,C,1,0),COLORRED;
{假陽柱}
STICKLINE(假陽,O,C,1,0),COLORGREEN;
{漲停}
AAAA:=CLOSE/REF(C,1)>=1.09;
STICKLINE(AAAA,O,C,1,0),COLORYELLOW;
STICKLINE(AAAA,L,H,1,0),COLORYELLOW;
{跌停}
DRAWTEXT(FILTER101,LOW*0.986,'↖黃金柱'),COLORYELLOW;
STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;
DRAWTEXT(FILTER102,LOW*0.986,'↖次黃'){,COLORFF00FF},COLORYELLOW;
STICKLINE(FILTER102,OPEN,CLOSE,0.5,0),COLORYELLOW;
DRAWTEXT(FILTER103,LOW*0.986,'↖準黃'),COLORFF00FF{,COLORYELLOW};
STICKLINE(FILTER103,OPEN,CLOSE,0.5,0),COLORYELLOW;
DRAWTEXT(FILTER104,LOW*0.986,'↖將軍柱'),COLORRED;
STICKLINE(FILTER104,OPEN,CLOSE,0.5,0),COLORYELLOW;
DRAWTEXT(FILTER105,LOW*0.986,'↖次將'),COLORFF00FF{,COLORYELLOW};
STICKLINE(FILTER105,OPEN,CLOSE,0.5,0),COLORYELLOW;
DRAWTEXT(FILTER106,LOW*0.986,'↖準將'),COLORFF00FF{,COLORYELLOW};
STICKLINE(FILTER106,OPEN,CLOSE,0.5,0),COLORYELLOW;
立樁量:=VOL=HHV(VOL,40) AND VOL>1.9*REF(VOL,1);
立樁量三日突破:=IF(BARSLAST(立樁量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立樁量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立樁
量)=3 AND CLOSE>REF(HIGH,3),1,0)));
立樁量三日不破:=BARSLAST(立樁量)=3 AND REF(LOW,3)<=MIN(MIN(C,REF(C,1)),REF(C,2));
BACKSET300:=BACKSET(立樁量三日不破,4);
BACKSET301:=BACKSET(立樁量三日突破,4);
立樁量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立樁量;
【極點精準線】
DRAWICON(C
均價:AMOUNT/VOL/100,NODRAW;
假陰1:=O>C AND 均價>REF(C,1);
DRAWTEXT(假陰1,L-0.2,'↖假陰真陽'),COLORE8E8E8;
STICKLINE(假陰1,O,C,1,0),COLORRED;
{極點精準線: CONST(C),COLORLIRED,LINETHICK2;{現(xiàn)價線};
頂?shù)组_關(guān):=0;
點位差:=0;
指定點:=0;
V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);
STICKLINE(V2V,H,L,0,0),COLORYELLOW;
STICKLINE(V2V,O,C,3.1,0),COLOR0033FF;
STICKLINE(V2V,O,C,2.1,0),COLOR0077FF;
STICKLINE(V2V,O,C,1.1,0),COLOR00BBFF;
STICKLINE(V2V,O,C,0.1,0),COLOR00FFFF;
ZT:=C/REF(C,1)>1.097;
ZT數(shù):COUNT(ZT,BARSSINCE(ZT)),NODRAW;
均價1:=AMO/VOL/100;
假陰真陽:=C
DT0:=假陰真陽;
STICKLINE(DT0,H,L,0,0),COLORFFAA00;
STICKLINE(DT0,O,C,3,0),COLORFF3300;
STICKLINE(DT0,O,C,2,0),COLORFF7700;
STICKLINE(DT0,O,C,1,0),COLORFFAA00;
STICKLINE(DT0,O,C,0.1,0),COLORFFFF00;
YX:=REF(O,BARSLAST(假陰真陽));
假陰實頂:YX,COLORFF7700,NODRAW;
STICKLINE(V,YX,YX,1,0),COLORFF7700;
L0:=點位差/100;
前極點精準線:IF(頂?shù)组_關(guān)=0,CONST(REF(L,指定點)),CONST(REF(H,指定點))),COLOR178448,LINETHICK3;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
A11:=CLOSE
A12:=OPEN-CLOSE;{第一個陰線的實柱長}
B11:=BARSLAST(CLOSE>=OPEN);
B12:=REF(CLOSE,B11)-REF(OPEN,B11);{第一個陽線的實柱長}
C10:=B11<3;
C11:=A12-B12>0;
C14:=IF(B11=2,C13,C12);
CC:=C10 AND C11 AND C13;{必須條件}
G11:=VOL
G17:=VOL<(REF(VOL,B11)*1/4+REF(VOL,12)*3/4);{有副作用,禁用}
G21:=VOL<(1/3*SUM(VOL,5)/5+1/3*REF(VOL,B11)+1/3*LLV(VOL,5));{好,不壞}
G22:=10.00>100*SUM(DYNAINFO(37),5)/5;{小測試無副作用}
G23:=10000000*(HIGH-LOW)/VOL;
G24:=10000000*(REF(HIGH,B11)-REF(LOW,B11))/REF(VOL,B11);
G241:=SUM(G24,12)/12;
G25:=G23>G241;
GG:=G11 AND G21 AND G22 AND G25;{重要的限制條件}
F11:=CC AND GG;
以上就是本文講解的關(guān)于鳳凰波段主圖的指標公式解析,如果您還想要了解更加專業(yè)的技術(shù)分析,請點擊股票技術(shù)指標公式進行研究學(xué)習(xí)!
上一篇:解讀鳳凰金拐杖與成交量的股
下一篇:解說會心主圖指標公式的源碼
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:www.xinsheng8.com
銷售熱線:0371-65350319
技術(shù)支持:13333833889