{霸王擒龙主升副图源码如下}
游资筹码1:=AMOUNT/VOL;
游资筹码2:=(OPEN+C)/2;
游资筹码3:=EMA(C,6);游资筹码4:=MA(游资筹码3,1);
游资筹码5:=EMA(C,18);游资筹码6:=REF(游资筹码4,1);
游资筹码7:=REF(游资筹码5,1);
游资筹码8:=BARSCOUNT(C);
游资筹码9:=IF(游资筹码8=1,0,(游资筹码4-游资筹码6)/游资筹码6*100);
游资筹码10:=REF(LOW,1);
游资筹码11:=SMA(ABS(LOW-游资筹码10),13,1)/SMA(MAX(LOW-游资筹码10,0),13,1)*100;
游资筹码12:=IF(PERIOD=4,60,0) AND C>0 AND VOL>1;
游资筹码13:=EMA(IF(C*1.2,游资筹码11*13,游资筹码11/13),13);
游资筹码14:=LLV(LOW,34);
游资筹码15:=IF(DATE>=1230626,游资筹码12,1);
游资筹码16:=HHV(游资筹码13,34);
游资筹码17:=IF(LLV(LOW,56),1,0);
游资筹码18:=EMA(IF(LOW<=游资筹码14,(游资筹码13+游资筹码16*2)/2,0),3)/618*游资筹码17;
游资筹码19:=游资筹码18>REF(游资筹码18,1);
游资筹码20:=REF(LLV(LOW,100),3);
游资筹码21:=REFDATE(游资筹码20,DATE);
游资筹码22:=LOW=游资筹码21;游资筹码23:=游资筹码19 AND 游资筹码22;
游资筹码24:=游资筹码15;游资筹码25:=游资筹码23>REF(游资筹码23,1);
游资筹码26:=IF(游资筹码15,1,0);游资筹码27:=游资筹码25>REF(游资筹码25,1);
大底:游资筹码27,NODRAW,COLORRED,LINETHICK2;
NOTEXTYF_MAXDQB:IF(游资筹码27 AND 游资筹码26,100,0),COLORRED,LINETHICK3;
游资筹码28:=IF(游资筹码8=1 AND 游资筹码24,0,(游资筹码5-游资筹码7)/游资筹码7*100);
游资筹码29:=REF(C,1);
游资筹码30:=IF(游资筹码8=1,0,(C-游资筹码29)/游资筹码29*100);
游资筹码31:=IF(游资筹码8=1,(C+OPEN)/2,游资筹码6);
游资筹码32:=游资筹码4;游资筹码33:=游资筹码6;游资筹码34:=REF(游资筹码4,2);
游资筹码35:=(游资筹码32+游资筹码33+游资筹码34)/3;
游资筹码36:=(ABS(游资筹码32-游资筹码35)+ABS(游资筹码33-游资筹码35)+ABS(游资筹码34-游资筹码35))/3;
游资筹码37:=REF(游资筹码9,1);游资筹码38:=REF(游资筹码9,2);
游资筹码39:=IF(游资筹码8<3,0,游资筹码36/游资筹码32*100);
NOTEXT步:IF(游资筹码27,58,0),COLORBLACK,LINETHICK3;
游资筹码40:=100-100*(HHV(H,5*34)-C)/(HHV(H,5*34)-LLV(LOW,5*34));
游资筹码41:=游资筹码40>20 AND 游资筹码40>REF(游资筹码40,1);
游资筹码42:=(C*2+H+LOW)/4;
游资筹码43:=EMA(游资筹码42,13)-EMA(游资筹码42,34);
游资筹码44:=EMA(游资筹码43,5);
游资筹码45:=2*(游资筹码43-游资筹码44)*3.8;
游资筹码46:=游资筹码45>0 AND 游资筹码45>REF(游资筹码45,1);
游资筹码47:=AMOUNT/C/(HHV(AMOUNT,20)/HHV(C,20));
游资筹码48:=游资筹码47>=80/100;
游资筹码49:=MA(C,6);
游资筹码50:=MA(C,18);
游资筹码51:=3*游资筹码50-2*游资筹码49;
游资筹码52:=3*游资筹码49-2*游资筹码50;
游资筹码53:=SUM(EMA((C+LOW)/2,2)/2.98,3);
游资筹码54:=EMA(游资筹码53,21);
游资筹码55:=MA(C,30);
游资筹码56:=2*MA(LLV((C+LOW)/2,8)*1.1,13)-EMA((C+LOW)/2,3)-(C+LOW)/2*0.1;
游资筹码57:=IF((EMA((C+LOW)/2,3)-游资筹码56)*5>0,POW((EMA((C+LOW)/2,3)-游资筹码56)*5,2)/10,(-1)*POW((EMA((C+LOW)/2,3)-游资筹码56)*5,2)/10);
游资筹码58:=IF(游资筹码57>0,游资筹码57-0,(-1));
游资筹码59:=CROSS(游资筹码58,0) AND (C+LOW)/2>MA((C+LOW)/2,8);
游资筹码60:=CROSS(游资筹码58,0) AND (C+LOW)/2>MA((C+LOW)/2,8);
游资筹码61:=游资筹码41 AND 游资筹码46 AND 游资筹码59 AND 游资筹码48;
试盘:游资筹码60 AND 游资筹码26,NODRAW,COLORMAGENTA;
游资筹码62:=IF(游资筹码8<3,0,IF(游资筹码9<0 AND 游资筹码37<0 AND 游资筹码38<0,0-1,1));
游资筹码63:=REF(游资筹码9,1);游资筹码64:=IF(游资筹码8>11 AND 游资筹码63<0 AND 游资筹码9>0,1,0);
游资筹码65:=BARSLAST(游资筹码64=1);
游资筹码66:=REF(游资筹码65,1);
游资筹码67:=IF(游资筹码8>11 AND 游资筹码37<0 AND 游资筹码9>0,游资筹码66+1,游资筹码66);
游资筹码68:=IF(游资筹码8>11 AND 游资筹码37>0 AND 游资筹码9<0,1,0);
游资筹码69:=游资筹码31;游资筹码70:=游资筹码31;
游资筹码71:=IF(游资筹码8>11 AND 游资筹码69<OPEN,OPEN,游资筹码31);
游资筹码72:=IF(游资筹码8>11 AND 游资筹码70>OPEN,OPEN,游资筹码31);
游资筹码73:=0;游资筹码74:=REF(游资筹码31,1);
游资筹码75:=IF(游资筹码9>0.5 AND (游资筹码39>0.215 OR LOW>游资筹码31) AND C>=OPEN AND (C>=200 OR (C<200 AND 游资筹码30<11)),1,0);
游资筹码76:=IF(游资筹码9<0-0.3 AND (游资筹码39>0.2 OR H<游资筹码31) AND (OPEN>=C OR 游资筹码30<0-1),1,0);
游资筹码77:=BARSSINCE(游资筹码75);
游资筹码78:=BARSSINCE(游资筹码76);
游资筹码79:=游资筹码76 OR BARSTATUS=2;
游资筹码80:=COUNT(游资筹码75,BARSLAST(游资筹码79))=1 AND 游资筹码75;
主升:游资筹码61 AND 游资筹码24,NODRAW,COLORYELLOW;
NOTEXT爆:IF(游资筹码60 AND 游资筹码26,98,0),COLORMAGENTA,LINETHICK3;
NOTEXT起:IF(游资筹码60,88,0),COLORBLACK,LINETHICK3;
NOTEXT回:IF(游资筹码61,78,0),COLORYELLOW,LINETHICK3;
NOTEXT转:IF(游资筹码61,68,0),COLORBLACK,LINETHICK3;
异动擒龙81:=(3*C+LOW+OPEN+H)/6;
异动擒龙82:=SMA(C,5,1);异动擒龙83:=MA(C,5);
异动擒龙84:=MA(C,10);异动擒龙85:=MA(C,30);
异动擒龙86:=BARSLAST(CROSS(异动擒龙84,异动擒龙83)) AND CROSS(异动擒龙83,异动擒龙84);
异动擒龙87:=异动擒龙86 AND 异动擒龙83>异动擒龙85 AND 异动擒龙84>异动擒龙85 AND 异动擒龙84>REF(异动擒龙84,1);
异动擒龙88:=EMA(C,5);
异动擒龙89:=EMA(EMA(C,90)*1.01,10);
异动擒龙90:=LLV(LOW,21);异动擒龙91:=HHV(H,21);
异动擒龙92:=EMA((C-异动擒龙90)/(异动擒龙91-异动擒龙90)*100,5);
异动擒龙93:=EMA((C-异动擒龙90)/(异动擒龙91-异动擒龙90)*50,13);
异动擒龙94:=CROSS(异动擒龙92,异动擒龙93);
异动擒龙95:=AMOUNT/VOL;
异动擒龙96:=LOW<异动擒龙95*0.9;
异动擒龙97:=(C-REF(C,1))/REF(C,1)*100>1.2;
异动擒龙98:=LOW<MA(C,5)*0.921;
异动擒龙99:=VOL<MA(VOL,5)*1.5;
异动擒龙100:=IF(C>REF(C,1),88,0);
异动擒龙101:=IF(C/REF(C,1)>1.05 AND H/C<1.01 AND 异动擒龙100>0,91,0);
异动擒龙102:=COUNT(游资筹码79,BARSLAST(游资筹码75))=1 AND 游资筹码79;异动擒龙103:=BARSLAST(异动擒龙102);
异动擒龙104:=BARSLAST(游资筹码80);
异动擒龙105:=(SUM(异动擒龙102,异动擒龙104)=0)*异动擒龙104;
异动擒龙106:=REF(游资筹码71,异动擒龙105);
异动擒龙107:=FILTER(异动擒龙101>90,45);
捉妖:异动擒龙107,NODRAW,COLORCYAN;
异动擒龙108:=FILTER(异动擒龙101>90,35);
大妖:异动擒龙108,NODRAW,COLORFF6633;
NOTEXT捉:IF(异动擒龙107,58,0),COLORCYAN,LINETHICK3;
NOTEXT妖:IF(异动擒龙107,48,0),COLORBLACK,LINETHICK3;
NOTEXT大:IF(异动擒龙108,38,0),COLORFF6633,LINETHICK3;
NOTEXTYF:IF(异动擒龙108,28,0),COLORBLACK,LINETHICK3;
DRAWICON(游资筹码27,5,1);
DRAWICON(游资筹码27,15,1);
DRAWICON(游资筹码27,25,1);
DRAWICON(游资筹码27,35,1);
DRAWICON(游资筹码27,45,1);
DRAWICON(游资筹码27,55,1);
DRAWICON(游资筹码27,65,1);
DRAWICON(游资筹码27,75,1);
NOTEXT00:0,DOTLINE,COLORFF6633;
NOTEXT0:0,POINTDOT,COLORFF6633,LINETHICK4;
异动擒龙109:=REF(异动擒龙106,1);
异动擒龙110:=IF(游资筹码80=1,(C-游资筹码71)/游资筹码71*100,(游资筹码72-异动擒龙109)/异动擒龙109*100);
异动擒龙111:=IF(异动擒龙105=0 AND 游资筹码80=0 AND 异动擒龙102=0,0,异动擒龙110);
异动擒龙112:=游资筹码80;异动擒龙113:=异动擒龙102;异动擒龙114:=异动擒龙105;
异动擒龙115:=异动擒龙111;异动擒龙116:=IF(异动擒龙112=1,异动擒龙106,IF(异动擒龙114!=0 OR 异动擒龙113=1,异动擒龙109,0));
异动擒龙117:=IF(异动擒龙113=1,游资筹码72,0);
异动擒龙118:=IF(异动擒龙112=1,1,IF(异动擒龙114>0,2,IF(异动擒龙113=1,9,0)));
异动擒龙119:=EMA(C,6);
异动擒龙120:=BARSCOUNT(C);
异动擒龙121:=游资筹码80;异动擒龙122:=异动擒龙102;
游资筹码123:=异动擒龙105;游资筹码124:=异动擒龙111;
游资筹码125:=IF(异动擒龙121=1,异动擒龙106,IF(游资筹码123!=0 OR 异动擒龙122=1,异动擒龙109,0));
游资筹码126:=IF(异动擒龙122=1,游资筹码72,0);
游资筹码127:=COUNT(游资筹码79=1 AND 异动擒龙111!=0,0);
游资筹码128:=IF(游资筹码79=1,异动擒龙111,0);
游资筹码129:=SUM(游资筹码128,0)-游资筹码127;游资筹码130:=游资筹码127;
游资筹码131:=IF(游资筹码8<240,游资筹码8,240);
游资筹码132:=SUM(游资筹码128,0)-游资筹码127-REF(SUM(游资筹码128,0)-游资筹码127,游资筹码131);
游资筹码133:=COUNT(游资筹码79=1 AND 异动擒龙111!=0,0)-REF(COUNT(游资筹码79=1 AND 异动擒龙111!=0,0),游资筹码131);
游资筹码134:=IF(异动擒龙121>=1,1,IF(游资筹码123>0,2,IF(异动擒龙122>=1,9,0)));
游资筹码135:=EMA(C,6);
{霸王擒妖主升主图源码如下}
显示开关:=1;
顶价:=REF(H,BARSLAST(H>REF(H,1)));
底价:=REF(L,BARSLAST(L<REF(L,1)));
共振顶0:=H>REF(顶价,1) AND L>REF(底价,1);
共振底0:=L<REF(底价,1) AND H<REF(顶价,1);
共振顶1:=共振顶0 AND H=HHV(H,BARSLAST(共振底0));
共振底1:=共振底0 AND L=LLV(L,BARSLAST(共振顶0));
共振顶:=FILTERX(共振顶1,BARSLAST(共振底1));
共振底:=FILTERX(共振底1,BARSLAST(共振顶1));
UP1:=BARSLAST(共振底);
顶力度1:=HHV(L,UP1+1)>LLV(H,UP1+1);
顶包含1:=COUNT(L>REF(L,1),UP1)>2 AND COUNT(H>REF(H,1),UP1)>2;
DN1:=BARSLAST(共振顶);
底力度1:=HHV(L,DN1+1)>LLV(H,DN1+1);
底包含1:=COUNT(H<REF(H,1),DN1)>2 AND COUNT(L<REF(L,1),DN1)>2;
捉牛顶10:=共振顶 AND UP1>3 AND 顶力度1 AND 顶包含1;
捉牛底10:=共振底 AND DN1>3 AND 底力度1 AND 底包含1;
捉牛顶11:=捉牛顶10 AND H=HHV(H,BARSLAST(捉牛底10));
捉牛底11:=捉牛底10 AND L=LLV(L,BARSLAST(捉牛顶10));
捉牛顶12:=捉牛顶11 AND H=HHV(H,BARSLAST(捉牛底11));
捉牛底12:=捉牛底11 AND L=LLV(L,BARSLAST(捉牛顶11));
捉牛顶1:=FILTERX(捉牛顶12,BARSLAST(捉牛底12));
捉牛底1:=FILTERX(捉牛底12,BARSLAST(捉牛顶12));
UP2:=BARSLAST(捉牛底1);
顶力度2:=HHV(L,UP2+1)>LLV(H,UP2+1);
顶包含2:=COUNT(L>REF(L,1),UP2)>2 AND COUNT(H>REF(H,1),UP2)>2;
DN2:=BARSLAST(捉牛顶1);
底力度2:=HHV(L,DN2+1)>LLV(H,DN2+1);
底包含2:=COUNT(H<REF(H,1),DN2)>2 AND COUNT(L<REF(L,1),DN2)>2;
捉牛顶20:=共振顶 AND UP2>3 AND 顶力度2 AND 顶包含2;
捉牛底20:=共振底 AND DN2>3 AND 底力度2 AND 底包含2;
捉牛顶21:=捉牛顶20 AND H=HHV(H,BARSLAST(捉牛底20));
捉牛底21:=捉牛底20 AND L=LLV(L,BARSLAST(捉牛顶20));
捉牛顶2:=FILTERX(捉牛顶21,BARSLAST(捉牛底21));
捉牛底2:=FILTERX(捉牛底21,BARSLAST(捉牛顶21));
捉牛顶3:=捉牛顶1 OR 捉牛顶2;
捉牛底3:=捉牛底1 OR 捉牛底2;
捉牛顶41:=FILTERX(捉牛顶3 AND H=HHV(H,BARSLAST(捉牛底3)),BARSLAST(捉牛底3));
捉牛底41:=FILTERX(捉牛底3 AND L=LLV(L,BARSLAST(捉牛顶3)),BARSLAST(捉牛顶3));
捉牛顶42:=FILTERX(捉牛顶41 AND H=HHV(H,BARSLAST(捉牛底41)),BARSLAST(捉牛底41));
捉牛底42:=FILTERX(捉牛底41 AND L=LLV(L,BARSLAST(捉牛顶41)),BARSLAST(捉牛顶41));
捉牛顶431:=捉牛顶42 AND (BARSLAST(捉牛底42)>1 OR BARSLAST(捉牛底42)=DRAWNULL);
捉牛底431:=捉牛底42 AND (BARSLAST(捉牛顶42)>1 OR BARSLAST(捉牛顶42)=DRAWNULL);
捉牛顶432:=捉牛顶431 AND (H=HHV(H,BARSLAST(捉牛底431)) OR BARSLAST(捉牛底431)=DRAWNULL);
捉牛底432:=捉牛底431 AND (L=LLV(L,BARSLAST(捉牛顶431)) OR BARSLAST(捉牛顶431)=DRAWNULL);
捉牛顶43:=FILTERX(捉牛顶432,BARSLAST(捉牛底431));
捉牛底43:=FILTERX(捉牛底432,BARSLAST(捉牛顶431));
捉牛顶441:=捉牛顶43 AND (BARSLAST(捉牛底43)>2 OR BARSLAST(捉牛底43)=DRAWNULL);
捉牛底441:=捉牛底43 AND (BARSLAST(捉牛顶43)>2 OR BARSLAST(捉牛顶43)=DRAWNULL);
捉牛顶442:=捉牛顶441 AND (H=HHV(H,BARSLAST(捉牛底441)) OR BARSLAST(捉牛底441)=DRAWNULL);
捉牛底442:=捉牛底441 AND (L=LLV(L,BARSLAST(捉牛顶441)) OR BARSLAST(捉牛顶441)=DRAWNULL);
捉牛顶44:=FILTERX(捉牛顶442,BARSLAST(捉牛底441));
捉牛底44:=FILTERX(捉牛底442,BARSLAST(捉牛顶441));
捉牛顶451:=捉牛顶44 AND (BARSLAST(捉牛底44)>3 OR BARSLAST(捉牛底44)=DRAWNULL);
捉牛底451:=捉牛底44 AND (BARSLAST(捉牛顶44)>3 OR BARSLAST(捉牛顶44)=DRAWNULL);
捉牛顶452:=捉牛顶451 AND (H=HHV(H,BARSLAST(捉牛底451)) OR BARSLAST(捉牛底451)=DRAWNULL);
捉牛底452:=捉牛底451 AND (L=LLV(L,BARSLAST(捉牛顶451)) OR BARSLAST(捉牛顶451)=DRAWNULL);
捉牛顶45:=FILTERX(捉牛顶452,BARSLAST(捉牛底452));
捉牛底45:=FILTERX(捉牛底452,BARSLAST(捉牛顶452));
DN511:=BARSLAST(捉牛顶45);
底力度511:=HHV(L,DN511+1)>LLV(H,DN511+1);
底包含511:=COUNT(H<REF(H,1),DN511)>2 AND COUNT(L<REF(L,1),DN511)>2;
捉牛底511:=捉牛底43 AND (捉牛底45<>1) AND DN511>3 AND 底力度511 AND 底包含511 AND (L=LLV(L,BARSLAST(捉牛顶45)));
捉牛底51:=FILTERX(捉牛底511,BARSLAST(捉牛顶45));
UP512:=BARSLAST(捉牛底45);
顶力度512:=HHV(L,UP512+1)>LLV(H,UP512+1);
顶包含512:=COUNT(L>REF(L,1),UP512)>2 AND COUNT(H>REF(H,1),UP512)>2;
捉牛顶512:=捉牛顶43 AND (捉牛顶45<>1) AND UP512>3 AND 顶力度512 AND 顶包含512 AND (H=HHV(H,BARSLAST(捉牛底45)));
捉牛顶51:=FILTERX(捉牛顶512,BARSLAST(捉牛底45));
捉牛顶521:=捉牛顶45 OR 捉牛顶51;
捉牛底521:=捉牛底45 OR 捉牛底51;
捉牛顶52:=FILTERX(捉牛顶521 AND H=HHV(H,BARSLAST(捉牛底521)),BARSLAST(捉牛底521));
捉牛底52:=FILTERX(捉牛底521 AND L=LLV(L,BARSLAST(捉牛顶521)),BARSLAST(捉牛顶521));
UP53:=BARSLAST(捉牛底52);
顶力度53:=HHV(L,UP53+1)>LLV(H,UP53+1);
顶包含53:=COUNT(L>REF(L,1),UP53)>2 AND COUNT(H>REF(H,1),UP53)>2;
DN53:=BARSLAST(捉牛顶52);
底力度53:=HHV(L,DN53+1)>LLV(H,DN53+1);
底包含53:=COUNT(H<REF(H,1),DN53)>2 AND COUNT(L<REF(L,1),DN53)>2;
捉牛顶53:=捉牛顶52 AND UP53>3 AND 顶力度53 AND 顶包含53 AND (H=HHV(H,BARSLAST(捉牛底52)));
捉牛底53:=捉牛底52 AND DN53>3 AND 底力度53 AND 底包含53 AND (L=LLV(L,BARSLAST(捉牛顶52)));
捉牛顶54:=FILTERX(捉牛顶53 AND H=HHV(H,BARSLAST(捉牛底53)),BARSLAST(捉牛底53));
捉牛底54:=FILTERX(捉牛底53 AND L=LLV(L,BARSLAST(捉牛顶53)),BARSLAST(捉牛顶53));
捉牛顶55:={共振顶 AND}H=HHV(H,BARSLAST(捉牛底54)) AND L>LLV(L,BARSLAST(捉牛底54)) AND BARSLAST(捉牛顶54)<BARSLAST(捉牛底54) AND (BARSNEXT(捉牛底54)<BARSNEXT(捉牛顶54) OR BARSNEXT(捉牛顶54)=DRAWNULL);
捉牛底55:={共振底 AND}L=LLV(L,BARSLAST(捉牛顶54)) AND H<HHV(H,BARSLAST(捉牛顶54)) AND BARSLAST(捉牛底54)<BARSLAST(捉牛顶54) AND (BARSNEXT(捉牛顶54)<BARSNEXT(捉牛底54) OR BARSNEXT(捉牛底54)=DRAWNULL);
捉牛顶56:=捉牛顶54 OR 捉牛顶55;
捉牛底56:=捉牛底54 OR 捉牛底55;
捉牛顶6:=FILTERX(捉牛顶56 AND H=HHV(H,BARSLAST(捉牛底56)),BARSLAST(捉牛底56));
捉牛底6:=FILTERX(捉牛底56 AND L=LLV(L,BARSLAST(捉牛顶56)),BARSLAST(捉牛顶56));
捉牛顶7:=捉牛顶6 AND BARSLAST(捉牛底6)>3;
捉牛底7:=捉牛底6 AND BARSLAST(捉牛顶6)>3;
捉牛顶:=BARSLAST(捉牛顶6),NODRAW;
捉牛底:=BARSLAST(捉牛底6),NODRAW;
NOTEXT_上捉牛:DRAWLINE(捉牛底=0,L,捉牛顶=0,H,0),COLORGREEN,LINETHICK2;
NOTEXT_下捉牛:DRAWLINE(捉牛顶=0,H,捉牛底=0,L,0),COLOR0000FF,LINETHICK2;
L低:=REF(L,捉牛底);
H高:=REF(H,捉牛顶);
L低A:=IF(捉牛顶<捉牛底 AND 显示开关=1 OR 显示开关=2,L低,DRAWNULL);
H高A:=IF(捉牛顶<捉牛底 AND 显示开关=1 OR 显示开关=2,H高,DRAWNULL);
PB1A:=POW(L低A,0.382)*POW(H高A,0.618);
PB2A:=SQRT(L低A*H高A);
PB3A:=POW(L低A,0.618)*POW(H高,0.382);
PB4A:=POW(L低A,0.875)*POW(H高A,0.125);
PB5A:=H高A-(H高A-L低A)*1.236,NODRAW;
PB6A:=H高A-(H高A-L低A)*1.618,NODRAW;
DRAWTEXT(捉牛顶,(PB1A),VARCAT('PB1=',VAR2STR(PB1A,2))),COLORYELLOW;
DRAWTEXT(捉牛顶,(PB2A),VARCAT('PB2=',VAR2STR(PB2A,2))),COLORYELLOW;
DRAWTEXT(捉牛顶,(PB3A),VARCAT('PB3=',VAR2STR(PB3A,2))),COLORYELLOW;
DRAWTEXT(捉牛顶,(PB4A),VARCAT('PB4=',VAR2STR(PB4A,2))),COLORYELLOW;
DRAWTEXT(捉牛顶,(PB5A),VARCAT('PB5=',VAR2STR(PB5A,2))),COLORYELLOW;
DRAWTEXT(捉牛顶,(PB6A),VARCAT('PB6=',VAR2STR(PB6A,2))),COLORYELLOW;
STICKLINE(捉牛顶<捉牛底,PB1A,PB1A,3,1),COLORFF8800;
STICKLINE(捉牛顶<捉牛底,PB2A,PB2A,3,1),COLORFF8800;
STICKLINE(捉牛顶<捉牛底,PB3A,PB3A,3,1),COLORFF8800;
STICKLINE(捉牛顶<捉牛底,PB4A,PB4A,3,1),COLORFF8800;
STICKLINE(捉牛顶<捉牛底,PB5A,PB5A,3,1),COLORFF8800;
STICKLINE(捉牛顶<捉牛底,PB6A,PB6A,3,1),COLORFF8800;
STICKLINE(捉牛顶=0,H,PB6A,0,0),COLORFF8800;
L低B:=IF(捉牛顶>捉牛底 AND 显示开关=1 OR 显示开关=3,L低,DRAWNULL);
H高B:=IF(捉牛顶>捉牛底 AND 显示开关=1 OR 显示开关=3,H高,DRAWNULL);
PS1B:=POW(H高B,0.382)*POW(L低B,0.618);
PS2B:=SQRT(H高B*L低B);
PS3B:=POW(H高B,0.618)*POW(L低B,0.382);
PS4B:=POW(H高B,0.875)*POW(L低B,0.125);
PS5B:=L低B+(H高B-L低B)*1.236,NODRAW;
PS6B:=L低B+(H高B-L低B)*1.618,NODRAW;
DRAWTEXT(捉牛底,(PS1B),VARCAT('PS1=',VAR2STR(PS1B,2))),COLORWHITE;
DRAWTEXT(捉牛底,(PS2B),VARCAT('PS2=',VAR2STR(PS2B,2))),COLORWHITE;
DRAWTEXT(捉牛底,(PS3B),VARCAT('PS3=',VAR2STR(PS3B,2))),COLORWHITE;
DRAWTEXT(捉牛底,(PS4B),VARCAT('PS4=',VAR2STR(PS4B,2))),COLORWHITE;
DRAWTEXT(捉牛底,(PS5B),VARCAT('PS5=',VAR2STR(PS5B,2))),COLORWHITE;
DRAWTEXT(捉牛底,(PS6B),VARCAT('PS6=',VAR2STR(PS6B,2))),COLORWHITE;
STICKLINE(捉牛顶>捉牛底,PS1B,PS1B,3,1),COLORMAGENTA;
STICKLINE(捉牛顶>捉牛底,PS2B,PS2B,3,1),COLORMAGENTA;
STICKLINE(捉牛顶>捉牛底,PS3B,PS3B,3,1),COLORMAGENTA;
STICKLINE(捉牛顶>捉牛底,PS4B,PS4B,3,1),COLORMAGENTA;
STICKLINE(捉牛顶>捉牛底,PS5B,PS5B,3,1),COLORMAGENTA;
STICKLINE(捉牛顶>捉牛底,PS6B,PS6B,3,1),COLORMAGENTA;
STICKLINE(捉牛底=0,L,PS6B,0,0),COLORMAGENTA;
DRAWTEXT(捉牛底=0,L,VARCAT('【低点】',VAR2STR(底价,2))),COLORGREEN;
DRAWTEXT(捉牛顶=0,H,VARCAT('【高点】',VAR2STR(顶价,2))),COLORRED;
DRAWICON(捉牛顶=0,H,2);
DRAWICON(捉牛底=0,L,1);
{霸王擒龙波段副图源码如下}
游资筹码1:=AMOUNT/VOL;
游资筹码2:=(OPEN+C)/2;
游资筹码3:=EMA(C,6);游资筹码4:=MA(游资筹码3,1);
游资筹码5:=EMA(C,18);游资筹码6:=REF(游资筹码4,1);
游资筹码7:=REF(游资筹码5,1);
游资筹码8:=BARSCOUNT(C);
游资筹码9:=IF(游资筹码8=1,0,(游资筹码4-游资筹码6)/游资筹码6*100);
游资筹码10:=REF(LOW,1);
游资筹码11:=SMA(ABS(LOW-游资筹码10),13,1)/SMA(MAX(LOW-游资筹码10,0),13,1)*100;
游资筹码12:=IF(PERIOD=4,60,0) AND C>0 AND VOL>1;
游资筹码13:=EMA(IF(C*1.2,游资筹码11*13,游资筹码11/13),13);
游资筹码14:=LLV(LOW,34);
游资筹码15:=IF(DATE>=1230626,游资筹码12,1);
游资筹码16:=HHV(游资筹码13,34);
游资筹码17:=IF(LLV(LOW,56),1,0);
游资筹码18:=EMA(IF(LOW<=游资筹码14,(游资筹码13+游资筹码16*2)/2,0),3)/618*游资筹码17;
游资筹码19:=游资筹码18>REF(游资筹码18,1);
游资筹码20:=REF(LLV(LOW,100),3);
游资筹码21:=REFDATE(游资筹码20,DATE);
游资筹码22:=LOW=游资筹码21;游资筹码23:=游资筹码19 AND 游资筹码22;
游资筹码24:=游资筹码15;游资筹码25:=游资筹码23>REF(游资筹码23,1);
游资筹码26:=IF(游资筹码15,1,0);游资筹码27:=游资筹码25>REF(游资筹码25,1);
大底:游资筹码27,NODRAW,COLORRED,LINETHICK2;
NOTEXTYF_MAXDQB:IF(游资筹码27 AND 游资筹码26,100,0),COLORRED,LINETHICK3;
游资筹码28:=IF(游资筹码8=1 AND 游资筹码24,0,(游资筹码5-游资筹码7)/游资筹码7*100);
游资筹码29:=REF(C,1);
游资筹码30:=IF(游资筹码8=1,0,(C-游资筹码29)/游资筹码29*100);
游资筹码31:=IF(游资筹码8=1,(C+OPEN)/2,游资筹码6);
游资筹码32:=游资筹码4;游资筹码33:=游资筹码6;游资筹码34:=REF(游资筹码4,2);
游资筹码35:=(游资筹码32+游资筹码33+游资筹码34)/3;
游资筹码36:=(ABS(游资筹码32-游资筹码35)+ABS(游资筹码33-游资筹码35)+ABS(游资筹码34-游资筹码35))/3;
游资筹码37:=REF(游资筹码9,1);游资筹码38:=REF(游资筹码9,2);
游资筹码39:=IF(游资筹码8<3,0,游资筹码36/游资筹码32*100);
NOTEXT步:IF(游资筹码27,58,0),COLORBLACK,LINETHICK3;
游资筹码40:=100-100*(HHV(H,5*34)-C)/(HHV(H,5*34)-LLV(LOW,5*34));
游资筹码41:=游资筹码40>20 AND 游资筹码40>REF(游资筹码40,1);
游资筹码42:=(C*2+H+LOW)/4;
游资筹码43:=EMA(游资筹码42,13)-EMA(游资筹码42,34);
游资筹码44:=EMA(游资筹码43,5);
游资筹码45:=2*(游资筹码43-游资筹码44)*3.8;
游资筹码46:=游资筹码45>0 AND 游资筹码45>REF(游资筹码45,1);
游资筹码47:=AMOUNT/C/(HHV(AMOUNT,20)/HHV(C,20));
游资筹码48:=游资筹码47>=80/100;
游资筹码49:=MA(C,6);
游资筹码50:=MA(C,18);
游资筹码51:=3*游资筹码50-2*游资筹码49;
游资筹码52:=3*游资筹码49-2*游资筹码50;
游资筹码53:=SUM(EMA((C+LOW)/2,2)/2.98,3);
游资筹码54:=EMA(游资筹码53,21);
游资筹码55:=MA(C,30);
游资筹码56:=2*MA(LLV((C+LOW)/2,8)*1.1,13)-EMA((C+LOW)/2,3)-(C+LOW)/2*0.1;
游资筹码57:=IF((EMA((C+LOW)/2,3)-游资筹码56)*5>0,POW((EMA((C+LOW)/2,3)-游资筹码56)*5,2)/10,(-1)*POW((EMA((C+LOW)/2,3)-游资筹码56)*5,2)/10);
游资筹码58:=IF(游资筹码57>0,游资筹码57-0,(-1));
游资筹码59:=CROSS(游资筹码58,0) AND (C+LOW)/2>MA((C+LOW)/2,8);
游资筹码60:=CROSS(游资筹码58,0) AND (C+LOW)/2>MA((C+LOW)/2,8);
游资筹码61:=游资筹码41 AND 游资筹码46 AND 游资筹码59 AND 游资筹码48;
试盘:游资筹码60 AND 游资筹码26,NODRAW,COLORMAGENTA;
游资筹码62:=IF(游资筹码8<3,0,IF(游资筹码9<0 AND 游资筹码37<0 AND 游资筹码38<0,0-1,1));
游资筹码63:=REF(游资筹码9,1);游资筹码64:=IF(游资筹码8>11 AND 游资筹码63<0 AND 游资筹码9>0,1,0);
游资筹码65:=BARSLAST(游资筹码64=1);
游资筹码66:=REF(游资筹码65,1);
游资筹码67:=IF(游资筹码8>11 AND 游资筹码37<0 AND 游资筹码9>0,游资筹码66+1,游资筹码66);
游资筹码68:=IF(游资筹码8>11 AND 游资筹码37>0 AND 游资筹码9<0,1,0);
游资筹码69:=游资筹码31;游资筹码70:=游资筹码31;
游资筹码71:=IF(游资筹码8>11 AND 游资筹码69<OPEN,OPEN,游资筹码31);
游资筹码72:=IF(游资筹码8>11 AND 游资筹码70>OPEN,OPEN,游资筹码31);
游资筹码73:=0;游资筹码74:=REF(游资筹码31,1);
游资筹码75:=IF(游资筹码9>0.5 AND (游资筹码39>0.215 OR LOW>游资筹码31) AND C>=OPEN AND (C>=200 OR (C<200 AND 游资筹码30<11)),1,0);
游资筹码76:=IF(游资筹码9<0-0.3 AND (游资筹码39>0.2 OR H<游资筹码31) AND (OPEN>=C OR 游资筹码30<0-1),1,0);
游资筹码77:=BARSSINCE(游资筹码75);
游资筹码78:=BARSSINCE(游资筹码76);
游资筹码79:=游资筹码76 OR BARSTATUS=2;
游资筹码80:=COUNT(游资筹码75,BARSLAST(游资筹码79))=1 AND 游资筹码75;
主升:游资筹码61 AND 游资筹码24,NODRAW,COLORYELLOW;
NOTEXT爆:IF(游资筹码60 AND 游资筹码26,98,0),COLORMAGENTA,LINETHICK3;
NOTEXT起:IF(游资筹码60,88,0),COLORBLACK,LINETHICK3;
NOTEXT回:IF(游资筹码61,78,0),COLORYELLOW,LINETHICK3;
NOTEXT转:IF(游资筹码61,68,0),COLORBLACK,LINETHICK3;
异动擒龙81:=(3*C+LOW+OPEN+H)/6;
异动擒龙82:=SMA(C,5,1);异动擒龙83:=MA(C,5);
异动擒龙84:=MA(C,10);异动擒龙85:=MA(C,30);
异动擒龙86:=BARSLAST(CROSS(异动擒龙84,异动擒龙83)) AND CROSS(异动擒龙83,异动擒龙84);
异动擒龙87:=异动擒龙86 AND 异动擒龙83>异动擒龙85 AND 异动擒龙84>异动擒龙85 AND 异动擒龙84>REF(异动擒龙84,1);
异动擒龙88:=EMA(C,5);
异动擒龙89:=EMA(EMA(C,90)*1.01,10);
异动擒龙90:=LLV(LOW,21);异动擒龙91:=HHV(H,21);
异动擒龙92:=EMA((C-异动擒龙90)/(异动擒龙91-异动擒龙90)*100,5);
异动擒龙93:=EMA((C-异动擒龙90)/(异动擒龙91-异动擒龙90)*50,13);
异动擒龙94:=CROSS(异动擒龙92,异动擒龙93);
异动擒龙95:=AMOUNT/VOL;
异动擒龙96:=LOW<异动擒龙95*0.9;
异动擒龙97:=(C-REF(C,1))/REF(C,1)*100>1.2;
异动擒龙98:=LOW<MA(C,5)*0.921;
异动擒龙99:=VOL<MA(VOL,5)*1.5;
异动擒龙100:=IF(C>REF(C,1),88,0);
异动擒龙101:=IF(C/REF(C,1)>1.05 AND H/C<1.01 AND 异动擒龙100>0,91,0);
异动擒龙102:=COUNT(游资筹码79,BARSLAST(游资筹码75))=1 AND 游资筹码79;异动擒龙103:=BARSLAST(异动擒龙102);
异动擒龙104:=BARSLAST(游资筹码80);
异动擒龙105:=(SUM(异动擒龙102,异动擒龙104)=0)*异动擒龙104;
异动擒龙106:=REF(游资筹码71,异动擒龙105);
异动擒龙107:=FILTER(异动擒龙101>90,45);
捉妖:异动擒龙107,NODRAW,COLORCYAN;
异动擒龙108:=FILTER(异动擒龙101>90,35);
大妖:异动擒龙108,NODRAW,COLORFF6633;
NOTEXT捉:IF(异动擒龙107,58,0),COLORCYAN,LINETHICK3;
NOTEXT妖:IF(异动擒龙107,48,0),COLORBLACK,LINETHICK3;
NOTEXT大:IF(异动擒龙108,38,0),COLORFF6633,LINETHICK3;
NOTEXTYF:IF(异动擒龙108,28,0),COLORBLACK,LINETHICK3;
DRAWICON(游资筹码27,5,1);
DRAWICON(游资筹码27,15,1);
DRAWICON(游资筹码27,25,1);
DRAWICON(游资筹码27,35,1);
DRAWICON(游资筹码27,45,1);
DRAWICON(游资筹码27,55,1);
DRAWICON(游资筹码27,65,1);
DRAWICON(游资筹码27,75,1);
NOTEXT00:0,DOTLINE,COLORFF6633;
NOTEXT0:0,POINTDOT,COLORFF6633,LINETHICK4;
异动擒龙109:=REF(异动擒龙106,1);
异动擒龙110:=IF(游资筹码80=1,(C-游资筹码71)/游资筹码71*100,(游资筹码72-异动擒龙109)/异动擒龙109*100);
异动擒龙111:=IF(异动擒龙105=0 AND 游资筹码80=0 AND 异动擒龙102=0,0,异动擒龙110);
异动擒龙112:=游资筹码80;异动擒龙113:=异动擒龙102;异动擒龙114:=异动擒龙105;
异动擒龙115:=异动擒龙111;异动擒龙116:=IF(异动擒龙112=1,异动擒龙106,IF(异动擒龙114!=0 OR 异动擒龙113=1,异动擒龙109,0));
异动擒龙117:=IF(异动擒龙113=1,游资筹码72,0);
异动擒龙118:=IF(异动擒龙112=1,1,IF(异动擒龙114>0,2,IF(异动擒龙113=1,9,0)));
异动擒龙119:=EMA(C,6);
异动擒龙120:=BARSCOUNT(C);
异动擒龙121:=游资筹码80;异动擒龙122:=异动擒龙102;
游资筹码123:=异动擒龙105;游资筹码124:=异动擒龙111;
游资筹码125:=IF(异动擒龙121=1,异动擒龙106,IF(游资筹码123!=0 OR 异动擒龙122=1,异动擒龙109,0));
游资筹码126:=IF(异动擒龙122=1,游资筹码72,0);
游资筹码127:=COUNT(游资筹码79=1 AND 异动擒龙111!=0,0);
游资筹码128:=IF(游资筹码79=1,异动擒龙111,0);
游资筹码129:=SUM(游资筹码128,0)-游资筹码127;游资筹码130:=游资筹码127;
游资筹码131:=IF(游资筹码8<240,游资筹码8,240);
游资筹码132:=SUM(游资筹码128,0)-游资筹码127-REF(SUM(游资筹码128,0)-游资筹码127,游资筹码131);
游资筹码133:=COUNT(游资筹码79=1 AND 异动擒龙111!=0,0)-REF(COUNT(游资筹码79=1 AND 异动擒龙111!=0,0),游资筹码131);
游资筹码134:=IF(异动擒龙121>=1,1,IF(游资筹码123>0,2,IF(异动擒龙122>=1,9,0)));
游资筹码135:=EMA(C,6);