{妖股通道主图源码如下}
N:=1;
好股网1:=KDJ.K,COLORWHITE;
好股网2:=KDJ.D,COLORYELLOW;
好股网3:=KDJ.J,COLORMAGENTA;
好股网4:=KDJ.K#WEEK,NODRAW;
好股网5:=KDJ.D#WEEK,NODRAW;
好股网6:=KDJ.J#WEEK,NODRAW;
日金叉:=CROSS(好股网1,好股网2) AND (好股网2<40 OR 好股网2>60);
周金叉:=CROSS(好股网4,好股网5) AND (好股网5<40 OR 好股网5>60);
共振:=(周金叉 AND 日金叉);
STICKLINE(共振,-30,100,3,0),COLORLIRED;
DRAWTEXT((周金叉 AND 日金叉),-5,' 日周共振'),COLORYELLOW;
DRAWTEXT((周金叉 AND 日金叉),5,' K D J'),COLORYELLOW;
DRAWICON((周金叉 AND 日金叉),-5,5);
好股网7:STICKLINE(好股网1>=好股网2,88,85,5,0),COLORMAGENTA;
好股网8:STICKLINE(好股网1<好股网2,88,85,5,0),COLORLIBLUE;
好股网9:STICKLINE(好股网4>=好股网5,-20,-25,5,0),COLORMAGENTA;
{微信公众号:好股网}
好股网10:STICKLINE(好股网4<好股网5,-20,-25,5,0),COLORLIBLUE;
DRAWTEXT(ISLASTBAR,88,'__日线'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,-22,'__周线'),COLORYELLOW;
LC:=REF(CLOSE,1);
RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,LINETHICK2;
MA6:MA(RSI6,6),COLORGREEN;红线:IF(MA6>REF(MA6,1) OR RSI6>MA6,MA6,DRAWNULL),COLORRED,LINETHICK2;
XG:=好股网1>=好股网2 AND 好股网4>=好股网5 AND 红线;
黄柱:=BARSLASTCOUNT(XG)=1;STICKLINE(黄柱,88,-20,1,1),COLORYELLOW;
DRAWICON(黄柱,90,9);DRAWICON(黄柱,70,9);
DRAWICON(黄柱,50,9);DRAWICON(黄柱,30,9);
DRAWICON(黄柱,10,9);DRAWICON(黄柱,-10,9);
{妖股通道副图源码如下}
ZB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BVAR101*10,ZBVAR101/10),3);
ZBVAR103:=LLV(LOW,13);
ZBVAR104:=HHV(ZBVAR102,13);
ZBVAR105:=IF(MA(C,34),1,0);
ZBVAR106:=EMA(IF(LOW<=ZBVAR103,(ZBVAR102+ZBVAR104*2)/2,0),3)/618*ZBVAR105;
ZBVAR107:=IF(ZBVAR106>100,100,ZBVAR106);
ZBVAR108:=ZBVAR107>15 AND ZBVAR76;
ZBVAR109:=ZBVAR108 OR ZBVAR107=100;
STICKLINE(ZBVAR109,LOW,O,3,0),COLORMAGENTA;
STICKLINE(ZBVAR109,C,O,3,0),COLORBLUE;
ZBVAR110:=EMA(C,2);
ZBVAR111:=EMA(SLOPE(C,21)*20+C,42);
ZBVAR112:=IF(CROSS(ZBVAR110,ZBVAR111),LOW-0.02,DRAWNULL);
ZBVAR113:=(LOW+HIGH+C*2)/4;
ZBVAR114:=EMA(ZBVAR113,14);
ZBVAR115:=(ZBVAR114-REF(ZBVAR114,1))/REF(ZBVAR114,1)*100;
ZBVAR116:=IF(ZBVAR115>=0,ZBVAR114,DRAWNULL);
ZBVAR117:=IF(CROSS(ZBVAR112,0),5,0);
ZBVAR118:=IF(CROSS(ZBVAR116,0),10,0);
ZBVAR119:=ZBVAR117 AND ZBVAR118;
DRAWICON(ZBVAR119,LOW*0.99,1),COLORGREEN;
DRAWICON(ZBVAR119,LOW*0.98,1),COLORGREEN;
ZBVAR120:=REF(C,1);
ZBVAR121:=SMA(MAX(C-ZBVAR120,0),5,1)/SMA(ABS(C-ZBVAR120),5,1)*100;
ZBVAR122:=CROSS(80,ZBVAR121);
DRAWICON(ZBVAR122,HIGH*1.01,2),COLORGREEN;
DRAWICON(ZBVAR122,HIGH*1.02,2),COLORGREEN;
ZBVAR123:=SMA(MAX(C-ZBVAR26,0),3,1)/SMA(ABS(C-ZBVAR26),3,1)*100;
ZBVAR124:=EMA(C,3);
ZBVAR125:=EMA(C,21);
DRAWICON(CROSS(ZBVAR124,ZBVAR125),LOW*0.97,38),COLORRED;
DRAWICON(CROSS(88,ZBVAR123),HIGH*1.03,39),COLORYELLOW;
ZBVAR126:=8;
ZBVAR127:=100*EMA(EMA(ZBVAR53,ZBVAR126),ZBVAR126)/EMA(EMA(ABS(ZBVAR53),ZBVAR126),ZBVAR126);
ZBVAR128:=IF(LLV(ZBVAR127,2)=LLV(ZBVAR127,7) AND COUNT(ZBVAR127<0,2) AND CROSS(ZBVAR127,MA(ZBVAR127,2)),1,0);
DRAWICON(FILTER(ZBVAR128=1,5),LOW*0.99,7),COLORRED;
ZBVAR129:=C-REF(C,1);
ZBVAR130:=IF(C-REF(C,1)>=0,ZBVAR129,0);
ZBVAR131:=REF(C,1)-C;
ZBVAR132:=IF(C-REF(C,1)<=0,ZBVAR131,0);
ZBVAR133:=SUM(ZBVAR130,90)/SUM(ZBVAR132,90);
ZBVAR134:=100-100/(1+ZBVAR133);
ZBVAR135:=EMA(ZBVAR134,21);
ZBVAR136:=EMA(ZBVAR135,5);
ZBVAR137:=EMA(ZBVAR135,3);
ZBVAR138:=(C*2+HIGH+LOW)/4;
ZBVAR139:=EMA(ZBVAR138,13)-EMA(ZBVAR138,21);
ZBVAR140:=EMA(ZBVAR139,3);
ZBVAR141:=EMA(ZBVAR139,10);
ZBVAR142:=IF(ZBVAR140>=ZBVAR141,ZBVAR140,ZBVAR141);
ZBVAR143:=IF(ZBVAR141-ZBVAR140,ZBVAR141,ZBVAR140);
ZBVAR144:=EMA(C,7)-EMA(C,21);
ZBVAR145:=EMA(0.668*REF(ZBVAR144,1)+0.333*ZBVAR144,1);
ZBVAR146:=IF(ZBVAR144>=ZBVAR145,ZBVAR144,ZBVAR145);
ZBVAR147:=IF(ZBVAR145-ZBVAR144,ZBVAR145,ZBVAR144);
ZBVAR148:=ZBVAR142>ZBVAR143;
ZBVAR149:=ZBVAR142=ZBVAR143;
ZBVAR150:=ZBVAR146>ZBVAR147;
ZBVAR151:=ZBVAR146=ZBVAR147;
ZBVAR152:=ZBVAR151 AND ZBVAR149;
ZBVAR153:=ZBVAR150 AND ZBVAR148;
STICKLINE(ZBVAR150,HIGH,LOW,0,0),COLORRED;
STICKLINE(ZBVAR151,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(ZBVAR148,O,C,1,0),COLORRED;
STICKLINE(ZBVAR149,O,C,1,0),COLORGREEN;
STICKLINE(ZBVAR153,O,C,2,0),COLORRED;
STICKLINE(ZBVAR152,O,C,2,0),COLORBLUE;
ZBVAR154:=HHV(MA(HIGH,3),2);
UP:LLV(MA(HIGH,3),1),COLORRED;
DOWN:IF(ZBVAR154-UP>0,UP,DRAWNULL),COLORGREEN;
ZBVAR155:=MA(REF(HHV((C+LOW+O+HIGH)/4,30),1),3);
STICKLINE(REF(COUNT(C<ZBVAR155,5)=5,1) AND C>ZBVAR155 AND C>O,C,O,2,0),COLORYELLOW;
DRAWICON(REF(COUNT(C<ZBVAR155,5)=5,1) AND C>ZBVAR155 AND C>O,LOW,42),COLORRED;
ZBVAR156:=MA(C,60)>REF(MA(C,60),1);
ZBVAR157:=COST(50);
ZBVAR158:=WINNER(C)*100>50;
ZBVAR159:=CROSS(C,ZBVAR157);
ZBVAR160:=ZBVAR156 AND ZBVAR157 AND ZBVAR158 AND ZBVAR159 AND ZBVAR150;
STICKLINE(ZBVAR160,C,O,1,0),COLORMAGENTA;
DRAWICON(ZBVAR160,LOW*0.99,44),COLORRED;
ZBVAR161:=MA(C,10);
ZBVAR162:=MA(C,54);
STICKLINE(C/REF(C,1)>=1.096 AND HIGH=C,O,C,2,0),COLORYELLOW;
ZBVAR163:=EMA(C,5);
ZBVAR164:=EMA(ZBVAR163,0);
ZBVAR165:=HHV(MA(HIGH,3),2);
ZBVAR166:=LLV(MA(HIGH,3),1);
DRAWICON(ZBVAR166=ZBVAR165 AND REF(ZBVAR165,1)>REF(ZBVAR166,1) AND ZBVAR150,LOW,1);
DRAWICON(ZBVAR166<ZBVAR165 AND REF(ZBVAR166=ZBVAR165,1) AND ZBVAR151,HIGH*1.01,2);
ZBVAR167:=MA(C,5)>MA(C,10) AND MA(C,10)>REF(MA(C,10),1) AND MA(C,5)>REF(MA(C,5),1);
ZBVAR168:=100*(1-WINNER(C));
ZBVAR169:=100-ZBVAR168;
ZBVAR170:=CROSS(ZBVAR169,ZBVAR168);
DRAWICON(ZBVAR170,LOW,25);
ZBVAR171:=MA(C,5);
ZBVAR172:=MA(C,13);
ZBVAR173:=MA(C,34);
ZBVAR174:=ZBVAR171>REF(ZBVAR171,1) AND ZBVAR172>REF(ZBVAR172,1) AND ZBVAR173>REF(ZBVAR173,1);
ZBVAR175:=EMA(C,3);
ZBVAR176:=EMA(SLOPE(C,34)*5+C,21);
ZBVAR177:=CROSS(ZBVAR175,ZBVAR176);
ZBVAR178:=CROSS(ZBVAR175,ZBVAR176) AND ZBVAR174;
ZBVAR179:=ZBVAR177>0;
ZBVAR180:=ZBVAR178>0;
ZBVAR181:=MA(C,34);
ZBVAR182:=ZBVAR179 OR ZBVAR180;
ZBVAR183:=C>ZBVAR181 AND REF(C,1)<ZBVAR181;
ZBVAR184:=CROSS(C,MA(C,250)) AND VOL>=REF(VOL,1)*2;
ZBVAR185:=(C/REF(C,1)-1)*100>9.97 AND CROSS(C,MA(C,250));
ZBVAR186:=ZBVAR184 OR ZBVAR185 OR ZBVAR183;
ZBVAR187:=ZBVAR182 AND ZBVAR170 AND ZBVAR186 AND ZBVAR167;
STICKLINE(ZBVAR187,C,O,3.05,0),COLOR000099;
STICKLINE(ZBVAR187,C,O,2.2,0),COLOR0000CC;
STICKLINE(ZBVAR187,C,O,1.5,0),COLORRED;
STICKLINE(ZBVAR187,C,O,0.5,0),COLORYELLOW;
VAR2:ZBVAR52 OR ZBVAR102 OR ZBVAR94 OR ZBVAR85 OR ZBVAR86 OR ZBVAR104 OR ZBVAR149,NODRAW;
VAR1:ZBVAR77 AND C/REF(C,1)>1.095 AND ZBVAR80 AND ZBVAR79 OR ZBVAR103 OR ZBVAR150 OR ZBVAR152 OR ZBVAR153 OR ZBVAR156 OR ZBVAR155 OR ZBVAR154 OR ZBVAR157,NODRAW;
VAR3:ZBVAR97 AND ZBVAR84 AND ZBVAR101 AND ZBVAR81,NODRAW;
捉妖:VAR1 AND C/REF(C,1)>1.095,NODRAW;
DRAWTEXT(TFILTER(捉妖,20,0),L*0.99,'←捉妖'),COLORYELLOW;
擒龙:VAR3>=1 AND C/REF(C,1)>1.095,NODRAW;
DRAWTEXT(TFILTER(ZBVAR19=ZBVAR17,20,0) AND 擒龙 ,L*0.99,'←擒龙'),COLORRED;