刀锋短线 通达信主图指标 源码 贴图

2020-08-27 10:04:00来源:本站整理浏览:530

刀锋短线 通达信主图指标 源码 贴图

刀锋短线 通达信主图指标 源码 贴图


M5:MA(C,5),COLORWHITE;
M10:MA(C,10),COLORYELLOW;
M20:MA(C,20),COLORMAGENTA;
M30:MA(C,30),COLORCYAN;
M60:MA(C,60),COLORGREEN;
M120:MA(C,120),COLORRED;
M250:MA(C,250),COLORGRAY;
TU:=IF(C>=O,C,O);
UT:=IF(C>=O,O,C);
上影:=(H-TU)/TU*100,NODRAW,COLORMAGENTA;
下影:=(UT-L)/L*100,NODRAW,COLORGREEN;
低开%:IF(O<REF(C,1),(O-REF(C,1))/REF(C,1)*100,0),NODRAW,COLORCYAN;
发行价:=EXTERNVALUE(0,2),NODRAW,COLORMAGENTA;
净资产:=FINANCE(34),NODRAW,COLORWHITE;{每股净资产}
{FINANCE(18),NODRAW;每股公积金}
{FINANCE(32),NODRAW;每股未分配利润}
股值:=FINANCE(34)+FINANCE(18)+FINANCE(32),COLORGREEN,NODRAW,COLORYELLOW;
衰减系数:=EXTERNVALUE(0,1),NODRAW,COLORGREEN;

取底:=IF(REF(C,1)>REF(O,1),REF(O,1),REF(C,1));
下影中间价:=(取底+REF(L,1))/2,LINETHICK0;

停:=IF((CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)) AND C!=O,1,0);

Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,FGBLOCK);
Z3:=STRCAT(Z2,DYBLOCK);
Z4:=STRCAT(Z3,' ');


VER0:=IF(O>REF(C,1),REF(C,1),O);
VER1:=IF(停,(C-VER0)*0.2+VER0,O);
AA:=C;
{WWW.GPXIAZAI.COM}
支撑均线:=IF(BARSCOUNT(C)<20,M10,IF(BARSCOUNT(C)<30,M20,IF(BARSCOUNT(C)>=60,M60,M30)));
均4:=REF(支撑均线,4);
支4:=INTPART(均4*100);
均40:=支4/100;
均3:=REF(支撑均线,3);
支3:=INTPART(均3*100);
均30:=支3/100;
均2:=REF(支撑均线,2);
支2:=INTPART(均2*100);
均20:=支2/100;
均1:=REF(支撑均线,1);
支1:=INTPART(均1*100);
均10:=支1/100;
走平或向上0:=IF(均10>=均20 AND 均20>=均30 AND 均30>=均40,1,0);
走平或向上1:=COUNT(M10>M20 AND M10>REF(M10,1) AND M20>REF(M20,1),6)=6 AND C>支撑均线;
走平或向上2:=COUNT(M5>M10 AND M5>REF(M5,1) AND M10>REF(M10,1),6)=6 AND C>支撑均线;
走平或向上3:=COUNT(支撑均线>REF(支撑均线,1),6)=6 AND C>支撑均线;
走平或向上:=走平或向上0 OR 走平或向上1 OR 走平或向上2 OR 走平或向上3;

涨幅:=(C-REF(C,1))/REF(C,1)*100;
震幅:=(H-REF(C,1))/REF(C,1)*100;
涨停:=IF((CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)) AND C!=O AND COUNT(涨幅>30,3)=0 AND COUNT(停,2)<=1 AND COUNT(停,10)<=3 AND COUNT(停 AND REF(停,1),10)=0,1,0),NODRAW;
{涨停:=IF((CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)) AND C<>O,1,0);}
涨停1:=IF((CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)),1,0);
涨停板:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)) AND C<>O AND C>IF(BARSCOUNT(C)<20,M10,IF(BARSCOUNT(C)<30,M20,IF(BARSCOUNT(C)>=60,M60,M30)));
涨停板1:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)) AND C>IF(BARSCOUNT(C)<20,M10,IF(BARSCOUNT(C)<30,M20,IF(BARSCOUNT(C)>=60,M60,M30)));
大阳:=C>=O AND (C-REF(C,1))/REF(C,1)*100>=3;
K线根数:=BARSCOUNT(C);
CX:=IF(BARSCOUNT(C)<60,60,3);{次新股除外}
跳空:=L>REF(H,1) AND (CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)) AND C<>O AND C>IF(BARSCOUNT(C)<20,M10,IF(BARSCOUNT(C)<30,M20,IF(BARSCOUNT(C)>=60,M60,M30)));
去大中阴线:=(C-O)/O*100<-5 OR (C-REF(C,1))/REF(C,1)*100<=-5;
去除连续两阴:=IF((REF(C,1)<REF(O,1) AND REF(C,1)<REF(C,2) AND REF(C,2)<REF(O,2) AND (REF(C,1)-REF(O,2))/REF(O,2)*100<=-5) OR (REF(C,2)<REF(O,2) AND (REF(C,1)-REF(O,2))/REF(O,2)*100<=-5 AND REF(C,1)<REF(O,1)),1,0),LINETHICK0;
三只乌鸦:=C<O AND REF(C,1)<REF(O,1) AND REF(C,2)<REF(O,2),LINETHICK0;
昨三只乌鸦:=COUNT(REF(三只乌鸦,1),1)>=1,LINETHICK0; {涨停后第四天}
前三只乌鸦:=COUNT(REF(三只乌鸦,1),2)>=1,LINETHICK0;{涨停后第五天}
六天三乌鸦:=COUNT(REF(三只乌鸦,1),3)>=1,LINETHICK0;{涨停后第六天}
七天三乌鸦:=COUNT(REF(三只乌鸦,1),4)>=1,LINETHICK0;{涨停后第七天}
八天三乌鸦:=COUNT(REF(三只乌鸦,1),5)>=1,LINETHICK0;{涨停后第八天}
九天三乌鸦:=COUNT(REF(三只乌鸦,1),6)>=1,LINETHICK0;{涨停后第八天}

{第一种情况:长上影}
长上影:=上影>=3 AND H=HHV(H,10) AND C>=O AND C=HHV(C,10) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20); {AND C>O}
去长上影阴线:=IF((C-H)/H*100<-6 AND C<=O AND 跳空=0,1,0);

跳空长上影0:=跳空 AND 长上影 AND COUNT(REF(去长上影阴线,1),5)=0 AND AA;
跳空长上影1:=REF(跳空,1) AND 长上影 AND COUNT(REF(去长上影阴线,1),5)=0 AND AA; { AND REF(停,1)=0}
跳空长上影2:=REF(跳空,2) AND REF(L,1)>REF(H,3) AND 长上影 AND COUNT(REF(去长上影阴线,1),5)=0 AND AA; { AND REF(停,2)=0}
跳空长上影3:=REF(跳空,3) AND REF(L,1)>REF(H,4) AND REF(L,2)>REF(H,4) AND 长上影 AND COUNT(REF(去长上影阴线,1),5)=0 AND AA ; { AND REF(停,3)=0}
跳空长上影4:=REF(跳空,4) AND REF(L,1)>REF(H,5) AND REF(L,2)>REF(H,5) AND REF(L,3)>REF(H,5) AND 长上影 AND COUNT(REF(去长上影阴线,1),5)=0 AND AA; { AND REF(停,4)=0}

跳空长上影:=跳空长上影0 OR 跳空长上影1 OR 跳空长上影2 OR 跳空长上影3 OR 跳空长上影4,COLORYELLOW;

{第二种情况:实体大阳}

跳空上影低开:=(REF(跳空长上影,1) AND (O<=REF(C,1) OR L<=REF(C,1))) OR (REF(跳空长上影,2) AND REF(L,1)>REF(C,2) AND L<=REF(C,2)) OR (REF(跳空长上影,1) AND L<=REF(O,1)) OR (REF(跳空长上影,2) AND REF(L,1)>REF(O,2) AND L<=REF(O,2));

涨停实体:=IF(停,(C-O)/O*100,0),COLORYELLOW;
涨停后高开阴线:=IF(REF(涨停板1,2) AND REF(O,1)>=REF(C,2) AND REF(O,1)>REF(C,1),1,0);
两日最高:=HHV(REF(H,1),2);
去掉大阴线:=IF(REF(O,1)>REF(C,1) AND ((REF(C,1)-REF(O,1))/REF(O,1)*100<=-5 OR REF(上影,1)>=5 OR (REF(H,1)-REF(C,1))/REF(C,1)*100>=5 OR (REF(C,1)-REF(C,2))/REF(C,2)*100<=-5),1,0);
低开:=IF((REF(涨停板1,1) AND 走平或向上 AND 低开%<=-3.5 AND COUNT(REF(涨停板1,1),10)<=CX) OR (REF(涨停板1,2) AND 去掉大阴线=0 AND 低开%<=-3.5 AND 涨停后高开阴线=0 AND ((REF(C,1)-REF(C,2))/REF(C,2)*100>=3.5 OR (两日最高-O)/O*100>=8) AND COUNT(REF(涨停,1),10)<=CX),O,0),COLORCYAN;
{低开:IF((REF(涨停板1,1) AND 走平或向上 AND 低开%<=-3.5 AND COUNT(REF(涨停板1,1),10)<=CX) OR (REF(涨停板1,2) AND 去掉大阴线=0 AND 涨停后高开阴线=0 AND ((REF(C,1)-REF(C,2))/REF(C,2)*100>=3.5 OR (两日最高-O)/O*100>=8) AND COUNT(REF(涨停,1),10)<=CX),O,0),COLORCYAN,NODRAW; AND (REF(C,1)-REF(O,1))/REF(O,1)*100>=-6}
{低开:IF((REF(涨停板1,1) AND 走平或向上 AND 低开%<=-3.5 AND COUNT(REF(涨停板1,1),10)<=CX) OR (REF(涨停板1,2) AND 去掉大阴线=0 AND 涨停后高开阴线=0 AND (REF(C,1)-REF(O,1))/REF(O,1)*100>=-6 AND ((REF(C,1)-REF(C,2))/REF(C,2)*100>=3.5 OR (两日最高-O)/O*100>=8) AND COUNT(REF(涨停,1),10)<=CX),O,0),NODRAW,COLORCYAN;}
低开取值:=IF(低开=DRAWNULL,0,低开),NODRAW;
{WWW.GPXIAZAI.COM}
去长上影阴线1:=IF(上影>5 AND 低开=0 AND L<=REF(C,1)*0.945 AND (O-L)/L*100>=3,1,0);
低走0:=IF(REF(涨停板1,1) AND 走平或向上 AND (O-REF(C,1))/REF(C,1)*100<=1.5 AND (L-REF(C,1))/REF(C,1)*100<=-4.5 AND 低开取值=0 AND L<=REF(C,1)*0.945,IF(O<REF(C,1)*0.945,O,REF(C,1)*0.945),DRAWNULL),COLORCYAN,NODRAW; {AND 去长上影阴线1=0}
低走1:=IF(REF(涨停板1,2) AND 走平或向上 AND 去掉大阴线=0 AND (REF(O,1)-REF(C,2))/REF(C,2)*100<=1.5 AND REF(C,1)<REF(C,2) AND (L-取底)/取底*100<=-5 AND 低开取值=0 AND AA,IF(O<REF(C,1)*0.95,O,REF(C,1)*0.95),DRAWNULL),COLORCYAN; {AND 去长上影阴线1=0}
低开低走:IF(低开=DRAWNULL,0,低开) + IF(低走0=DRAWNULL,0,低走0) + IF(低走1=DRAWNULL,0,低走1),COLORCYAN,NODRAW;
低开走取值:=IF(低开低走=0,DRAWNULL,低开低走);


实体大阳:=大阳 AND H=HHV(H,10) AND C>=O AND C=HHV(C,10) AND MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20); {AND C>O}

跳空大阳1:=REF(跳空,1) AND 实体大阳 AND AA; { AND REF(停,1)=0 AND COUNT(REF(去长上影阴线,1),5)=0}
跳空大阳2:=REF(跳空,2) AND REF(L,1)>REF(H,3) AND 实体大阳 AND AA; { AND REF(停,2)=0 AND COUNT(REF(去长上影阴线,1),5)=0 }
跳空大阳3:=REF(跳空,3) AND REF(L,1)>REF(H,4) AND REF(L,2)>REF(H,4) AND 实体大阳 AND AA ; { AND REF(停,3)=0 AND COUNT(REF(去长上影阴线,1),5)=0}
跳空大阳4:=REF(跳空,4) AND REF(L,1)>REF(H,5) AND REF(L,2)>REF(H,5) AND REF(L,3)>REF(H,5) AND 实体大阳 AND AA; { AND REF(停,4)=0 AND COUNT(REF(去长上影阴线,1),5)=0}

跳空大阳:=跳空大阳1 OR 跳空大阳2 OR 跳空大阳3 OR 跳空大阳4,COLORYELLOW,LINETHICK0; {跳空大阳0 OR}

买点:=IF(O<=REF(C,1) AND (REF(C,1)-O)/O*100>=3.5,O,IF(O>REF(C,1) AND L<=REF(C,1) AND (REF(C,1)-L)/L*100>=3.5,REF(C,1)*0.94,DRAWNULL)),COLORYELLOW;
买点1:=IF(O<=REF(C,2) AND 走平或向上 AND (REF(C,2)-O)/O*100>=3.5,O,IF(O>REF(C,2) AND L<=REF(C,2) AND (REF(C,2)-L)/L*100>=3.5,REF(C,2)*0.94,DRAWNULL)),COLORYELLOW;
买一:=IF((REF(跳空长上影,1) OR REF(跳空大阳,1)) AND REF(C,1)<>REF(O,1) AND 走平或向上 AND L<=买点 AND COUNT(REF(涨停,1),10)<=CX AND COUNT(REF(去大中阴线,1),2)=0 AND AA AND (O-REF(C,1))/REF(C,1)*100<=1.5,买点,DRAWNULL),COLORYELLOW;
买二:=IF((REF(跳空长上影,2) OR REF(跳空大阳,2)) AND 走平或向上 AND L<=买点1 AND REF(L,1)>REF(C,2) AND L<=REF(C,2) AND 买一=0 AND 买点1 AND COUNT(REF(涨停,1),10)<=CX AND COUNT(REF(去大中阴线,1),3)=0 AND AA AND (O-REF(C,1))/REF(C,1)*100<=1.5,买点1,DRAWNULL),COLORYELLOW;
买三:=IF((REF(跳空长上影,1) OR REF(跳空大阳,1)) AND 走平或向上 AND (REF(C,1)-O)/O*100>=3.5 AND L<=REF(O,1) AND 买一=0 AND 买二=0 AND COUNT(REF(涨停,1),10)<=CX AND COUNT(REF(去大中阴线,1),4)=0 AND AA AND (O-REF(C,1))/REF(C,1)*100<=1.5,IF(O<REF(O,1),O,REF(O,1)),DRAWNULL),COLORWHITE;
买四:=IF((REF(跳空长上影,2) OR REF(跳空大阳,2)) AND 走平或向上 AND (REF(C,1)-O)/O*100>=3.5 AND REF(L,1)>REF(O,2) AND L<=REF(O,2) AND 买一=0 AND 买二=0 AND 买三=0 AND COUNT(REF(涨停,1),10)<=CX AND COUNT(REF(去大中阴线,1),5)=0 AND AA AND (O-REF(C,1))/REF(C,1)*100<=1.5,IF(O<=REF(O,2),O,REF(O,2)),0),COLORWHITE;

缺口低买:IF(买一=DRAWNULL,0,买一) + IF(买二=DRAWNULL,0,买二) + IF(买三=DRAWNULL,0,买三) + IF(买四=DRAWNULL,0,买四),COLORYELLOW,NODRAW;

实体涨停:=停 AND (C-O)/O*100>=7 AND C>M5 AND C>IF(BARSCOUNT(C)<20,M10,IF(BARSCOUNT(C)<30,M20,IF(BARSCOUNT(C)>=60,M60,M30)));
实体涨停1:=停 AND (C-O)/O*100<7 AND (C-L)/L*100>=7 AND C>M5 AND C>IF(BARSCOUNT(C)<20,M10,IF(BARSCOUNT(C)<30,M20,IF(BARSCOUNT(C)>=60,M60,M30)));
实体涨停双响:=REF(实体涨停,1) AND 停 AND ((C-O)/O*100>=6 OR (H-L)/L*100>=6) AND C>M5 AND C>IF(BARSCOUNT(C)<20,M10,IF(BARSCOUNT(C)<30,M20,IF(BARSCOUNT(C)>=60,M60,M30)));
跌停:=(C-REF(C,1))/REF(C,1)*100<=-9;

TP1:=REF(C,3)/REF(C,4)>1.095 AND REF(C,3)=REF(H,3);
TP2:=MAX(C,O)/MIN(C,O)<1.05 AND C/REF(C,1)<1.09;
TP3:=REF(O,2)>REF(C,3) AND REF(C,1)>REF(C,3) AND EVERY(MIN(C,O)>REF(C,3),3);
去掉两阴:=IF(COUNT(O>=C AND C<REF(C,1),2)=2,1,0);
三只喜鹊:=TP1 AND EVERY(TP2,3) AND 去掉两阴=0 AND TP3 AND 三只乌鸦=0 AND REF(C,3)<>REF(O,3) AND REF(C,3)>IF(BARSCOUNT(C)<20,M10,IF(BARSCOUNT(C)<30,M20,IF(BARSCOUNT(C)>=60,M60,M30)));
取前实底:=IF(REF(C,1)>=REF(O,1),REF(O,1),REF(C,1));
喜一:=IF(REF(三只喜鹊,1) AND 走平或向上 AND O<=取前实底,O,IF(REF(三只喜鹊,1) AND 走平或向上 AND L<=取前实底,取前实底,DRAWNULL)),COLORGREEN;
喜一值:=IF(喜一=DRAWNULL,0,喜一);
三日实体底:=LLV(取前实底,3);
喜二:=IF(REF(三只喜鹊,1) AND 走平或向上 AND O<=三日实体底,O,IF(REF(三只喜鹊,1) AND 走平或向上 AND L<=三日实体底,三日实体底,DRAWNULL)),COLOR0088FF;
喜二值:=IF(喜二=DRAWNULL,0,喜二);
三日最低:=LLV(REF(L,1),3);
喜三:=IF(REF(三只喜鹊,1) AND 走平或向上 AND O<=三日最低,O,IF(REF(三只喜鹊,1) AND 走平或向上 AND L<=三日最低,三日最低,DRAWNULL)),COLORCYAN;
喜三值:=IF(喜三=DRAWNULL,0,喜三);
喜鹊取值:=IF(REF(喜一,1)=DRAWNULL,0,REF(喜一,1))+IF(REF(喜二,1)=DRAWNULL,0,REF(喜二,1))+IF(REF(喜三,1)=DRAWNULL,0,REF(喜三,1));

取小:=MIN(MIN(REF(喜一,1),REF(喜二,1)),REF(喜三,1));
喜四0:=IF(REF(三只喜鹊,2) AND 喜鹊取值=0 AND O<=REF(取前实底,2),O,IF(REF(三只喜鹊,2) AND L<=REF(取前实底,2),REF(取前实底,2),DRAWNULL)),COLORGREEN;
喜四:=IF(REF(三只喜鹊,2) AND 喜鹊取值=0 AND 走平或向上 AND REF(三只乌鸦,1)=0 AND O<=REF(取前实底,2),喜四0,IF(REF(喜一值,1)>0 AND 走平或向上 AND 喜四0<取小,喜四0,IF(REF(喜二值,1)>0 AND 走平或向上 AND 喜四0<取小,喜四0,IF(REF(喜三值,1)>0 AND 走平或向上 AND 喜四0<取小,喜四0,DRAWNULL)))),COLORGREEN;
喜四值:=IF(喜四=DRAWNULL,0,喜四);

喜鹊闹梅0:=IF(喜一值>0 AND 喜二值>0 AND 喜一值<喜二值,喜一值,IF(喜一值>0 AND 喜二值=0,喜一值,IF(喜一值=0 AND 喜二值>0,喜二值,IF(喜一值>0 AND 喜二值>0 AND 喜一值>=喜二值,喜二值,0))));
喜鹊闹梅1:=IF(喜三值>0 AND 喜鹊闹梅0>0 AND 喜三值<喜鹊闹梅0,喜三值,IF(喜三值>0 AND 喜鹊闹梅0=0,喜三值,IF(喜三值=0 AND 喜鹊闹梅0>0,喜鹊闹梅0,IF(喜三值>0 AND 喜鹊闹梅0>0 AND 喜三值>=喜鹊闹梅0,喜鹊闹梅0,0))));

喜四预警:=IF(喜四值>0 AND REF(喜鹊闹梅1,1)=0,1,0);

喜鹊闹梅:喜鹊闹梅1 + 喜四预警,COLORGREEN,NODRAW;

{五日内回踩十日线附近找买点}
涨板:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1)) AND C!=O AND (C-M10)/M10*100>=5 AND C>IF(BARSCOUNT(C)<20,M10,IF(BARSCOUNT(C)<30,M20,IF(BARSCOUNT(C)>=60,M60,M30)));
真假阳:=REF(C,1)>REF(O,1) OR REF(C,1)>REF(C,2) AND COUNT(M10>REF(M10,1),4)=4;

踩一:=IF(REF(涨板,1) AND COUNT(M10>REF(M10,1),4)=4 AND L<=M10*1.013 AND (REF(C,1)-L)/L*100>=5,IF(REF(C,1)*0.965<M10*1.013,REF(C,1)*0.965,M10*1.013),DRAWNULL),COLORWHITE;
踩一开:=IF(踩一=DRAWNULL,DRAWNULL,IF(O<=踩一,O,踩一));
十一:=IF(REF(涨板,1) AND 走平或向上 AND L<=踩一开 AND (REF(C,1)-L)/L*100>=3.5 AND AA AND (O-REF(C,1))/REF(C,1)*100<=1.5,踩一开,0),COLORRED;

踩二:=IF(REF(涨板,2) AND 真假阳 AND L<=M10*1.013 AND (REF(C,2)-L)/L*100>=3.5 AND IF(REF(踩一开,1)=DRAWNULL,0,REF(踩一开,1))=0 AND COUNT(REF(去大中阴线,1),1)=0,IF(REF(C,2)*0.965<M10*1.013,REF(C,2)*0.965,M10*1.013),DRAWNULL),COLORWHITE;
踩二开:=IF(踩二=DRAWNULL,DRAWNULL,IF(O<=踩二,O,踩二));
十二:=IF(REF(涨板,2) AND 走平或向上 AND L<=踩二开 AND (REF(C,2)-踩二开)/踩二开*100>=3.5 AND IF(REF(踩一开,1)=DRAWNULL,0,REF(踩一开,1))=0 AND COUNT(REF(去大中阴线,1),1)=0 AND AA,踩二开,0),COLORWHITE;

踩三:=IF(REF(涨板,3) AND 真假阳 AND L<=M10*1.013 AND (REF(C,3)-L)/L*100>=3.5 AND IF(REF(踩二开,1)=DRAWNULL,0,REF(踩二开,1))=0 AND IF(REF(踩一开,2)=DRAWNULL,0,REF(踩一开,2))=0 AND COUNT(REF(去大中阴线,1),2)=0,IF(REF(C,3)*0.965<M10*1.013,REF(C,3)*0.965,M10*1.013),DRAWNULL),COLORWHITE;
踩三开:=IF(踩三=DRAWNULL,DRAWNULL,IF(O<=踩三,O,踩三));
十三:=IF(REF(涨板,3) AND 走平或向上 AND L<=踩三开 AND (REF(C,3)-踩三开)/踩三开*100>=3.5 AND IF(REF(踩二开,1)=DRAWNULL,0,REF(踩二开,1))=0 AND IF(REF(踩一开,2)=DRAWNULL,0,REF(踩一开,2))=0 AND COUNT(REF(去大中阴线,1),2)=0 AND COUNT(去除连续两阴,1)=0,踩三开,0),COLORWHITE;

踩四:=IF(REF(涨板,4) AND L<=M10*1.013 AND (REF(C,4)-L)/L*100>=5 AND IF(REF(踩三开,1)=DRAWNULL,0,REF(踩三开,1))=0 AND IF(REF(踩二开,2)=DRAWNULL,0,REF(踩二开,2))=0 AND IF(REF(踩一开,3)=DRAWNULL,0,REF(踩一开,3))=0 AND COUNT(REF(去大中阴线,1),3)=0,IF(REF(C,4)*0.965<M10*1.013,REF(C,4)*0.965,M10*1.013),DRAWNULL),COLORWHITE;
踩四开:=IF(踩四=DRAWNULL,DRAWNULL,IF(O<=踩四,O,踩四));
十四:=IF(REF(涨板,4) AND 走平或向上 AND 昨三只乌鸦=0 AND L<=踩四开 AND (REF(C,4)-踩四开)/踩四开*100>=5 AND IF(REF(踩三开,1)=DRAWNULL,0,REF(踩三开,1))=0 AND IF(REF(踩二开,2)=DRAWNULL,0,REF(踩二开,2))=0 AND IF(REF(踩一开,3)=DRAWNULL,0,REF(踩一开,3))=0 AND COUNT(REF(去大中阴线,1),3)=0 AND COUNT(去除连续两阴,2)=0 AND AA,踩四开,0),COLORWHITE;

踩五:=IF(REF(涨板,5) AND L<=M10*1.013 AND (REF(C,5)-L)/L*100>=5 AND IF(REF(踩四开,1)=DRAWNULL,0,REF(踩四开,1))=0 AND IF(REF(踩三开,2)=DRAWNULL,0,REF(踩三开,2))=0 AND IF(REF(踩二开,3)=DRAWNULL,0,REF(踩二开,3))=0 AND IF(REF(踩一开,4)=DRAWNULL,0,REF(踩一开,4))=0 AND COUNT(REF(去大中阴线,1),4)=0,IF(REF(C,5)*0.95<M10*1.013,REF(C,5)*0.95,M10*1.013),DRAWNULL),COLORWHITE;
踩五开:=IF(踩五=DRAWNULL,DRAWNULL,IF(O<=踩五,O,踩五));
十五:=IF(REF(涨板,5) AND 走平或向上 AND 前三只乌鸦=0 AND L<=踩五开 AND (REF(C,5)-踩五开)/踩五开*100>=5 AND IF(REF(踩四开,1)=DRAWNULL,0,REF(踩四开,1))=0 AND IF(REF(踩三开,2)=DRAWNULL,0,REF(踩三开,2))=0 AND IF(REF(踩二开,3)=DRAWNULL,0,REF(踩二开,3))=0 AND IF(REF(踩一开,4)=DRAWNULL,0,REF(踩一开,4))=0 AND COUNT(REF(去大中阴线,1),4)=0 AND COUNT(去除连续两阴,3)=0 AND AA,踩五开,0),COLORWHITE;

板上长阳:=REF(涨停板,1) AND C>O AND (C-REF(C,1))/REF(C,1)*100>5 AND (C-O)/O*100>=3.5; {涨停板第二天}
横五:=IF(REF(板上长阳,5) AND L<=M10*1.013 AND (REF(C,5)-L)/L*100>=5,IF(REF(C,5)*0.95<M10*1.013,REF(C,5)*0.95,M10*1.013),DRAWNULL),COLORWHITE;
横五开:=IF(横五=DRAWNULL,DRAWNULL,IF(O<=横五,O,横五));
板上阳十五:=IF(REF(板上长阳,5) AND 走平或向上 AND L<=横五开 AND (REF(C,5)-横五开)/横五开*100>=5 AND REF(C,1)>=REF(C,6) AND REF(C,2)>=REF(C,6) AND REF(C,3)>=REF(C,6) AND REF(C,4)>=REF(C,6) AND COUNT(REF(去大中阴线,1),4)=0 AND COUNT(去除连续两阴,3)=0 AND AA,横五开,0),COLORWHITE;

横六:=IF(REF(板上长阳,6) AND L<=M10*1.013 AND (REF(C,6)-L)/L*100>=5,IF(REF(C,6)*0.95<M10*1.013,REF(C,6)*0.95,M10*1.013),DRAWNULL),COLORWHITE;
横六开:=IF(横六=DRAWNULL,DRAWNULL,IF(O<=横六,O,横六));
板上阳十六:=IF(REF(板上长阳,6) AND 走平或向上 AND IF(REF(板上阳十五,1)=DRAWNULL,0,REF(板上阳十五,1))=0 AND L<=横六开 AND (REF(C,6)-横六开)/横六开*100>=5 AND REF(C,1)>=REF(C,7) AND REF(C,2)>=REF(C,7) AND REF(C,3)>=REF(C,7) AND REF(C,4)>=REF(C,7) AND REF(C,5)>=REF(C,7) AND COUNT(REF(去大中阴线,1),5)=0 AND COUNT(去除连续两阴,4)=0 AND AA,横六开,0),COLORWHITE;

横七:=IF(REF(板上长阳,7) AND L<=M10*1.013 AND (REF(C,7)-L)/L*100>=5,IF(REF(C,7)*0.95<M10*1.013,REF(C,7)*0.95,M10*1.013),DRAWNULL),COLORWHITE;
横七开:=IF(横七=DRAWNULL,DRAWNULL,IF(O<=横七,O,横七));
板上阳十七:=IF(REF(板上长阳,7) AND 走平或向上 AND IF(REF(板上阳十六,1)=DRAWNULL,0,REF(板上阳十六,1))=0 AND IF(REF(板上阳十五,2)=DRAWNULL,0,REF(板上阳十五,2))=0 AND L<=横七开 AND (REF(C,6)-横七开)/横七开*100>=5 AND REF(C,1)>=REF(C,8) AND REF(C,2)>=REF(C,8) AND REF(C,3)>=REF(C,8) AND REF(C,4)>=REF(C,8) AND REF(C,5)>=REF(C,8) AND REF(C,6)>=REF(C,8) AND COUNT(REF(去大中阴线,1),6)=0 AND COUNT(去除连续两阴,5)=0 AND AA,横七开,0),COLORWHITE;

涨停踩十:IF(十一=DRAWNULL,0,十一) + IF(十二=DRAWNULL,0,十二) + IF(十三=DRAWNULL,0,十三) ,COLORWHITE,NODRAW; {+ IF(十四=DRAWNULL,0,十四) + IF(十五=DRAWNULL,0,十五) + IF(板上阳十五=DRAWNULL,0,板上阳十五) + IF(板上阳十六=DRAWNULL,0,板上阳十六) + IF(板上阳十七=DRAWNULL,0,板上阳十七)}

双龙出海1:=涨停1 AND REF(涨停1,2) AND COUNT(REF(涨停1,1),1)=0 AND COUNT(REF(涨停1,2),5)<=3,NODRAW;
双龙出海2:=涨停1 AND REF(涨停1,3) AND COUNT(REF(涨停1,1),2)=0 AND COUNT(REF(涨停1,3),5)<=3,NODRAW;
双龙出海3:=涨停1 AND REF(涨停1,4) AND COUNT(REF(涨停1,1),3)=0 AND COUNT(REF(涨停1,4),5)<=3,NODRAW;
双龙出海4:=涨停1 AND REF(涨停1,5) AND COUNT(REF(涨停1,1),4)=0 AND COUNT(REF(涨停1,5),5)<=3,NODRAW;
双龙出海5:=涨停1 AND REF(涨停1,6) AND COUNT(REF(涨停1,1),5)=0 AND COUNT(REF(涨停1,6),5)<=3,NODRAW;
双龙出海6:=涨停1 AND REF(涨停1,7) AND COUNT(REF(涨停1,1),6)=0 AND COUNT(REF(涨停1,7),5)<=3,NODRAW;
双龙出海7:=涨停1 AND REF(涨停1,8) AND COUNT(REF(涨停1,1),7)=0 AND COUNT(REF(涨停1,8),5)<=3,NODRAW;
双龙出海8:=涨停1 AND REF(涨停1,9) AND COUNT(REF(涨停1,1),8)=0 AND COUNT(REF(涨停1,9),5)<=3,NODRAW;
双龙出海9:=涨停1 AND REF(涨停1,10) AND COUNT(REF(涨停1,1),9)=0 AND COUNT(REF(涨停1,10),5)<=3,NODRAW;
双龙出海10:=涨停1 AND REF(涨停1,11) AND COUNT(REF(涨停1,1),10)=0 AND COUNT(REF(涨停1,11),5)<=3,NODRAW;
双龙出海11:=涨停1 AND REF(涨停1,12) AND COUNT(REF(涨停1,1),11)=0 AND COUNT(REF(涨停1,12),5)<=3,NODRAW;

双龙出海:双龙出海1 OR 双龙出海2 OR 双龙出海3 OR 双龙出海4 OR 双龙出海5 OR 双龙出海6 OR 双龙出海7 OR 双龙出海8 OR 双龙出海9 OR 双龙出海10 OR 双龙出海11,NODRAW,COLORMAGENTA;

前年:=EXTERNVALUE(0,1);
去年:=EXTERNVALUE(0,2);
今年:=IF(FINANCE(30)<0,1,0);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,'三年亏损:'),COLORCYAN;
DRAWTEXT_FIX(前年,0.05,0,0,CON2STR(前年,0)),COLORCYAN;
DRAWTEXT_FIX(前年=0,0.05,0,0,'0'),COLORCYAN;
DRAWTEXT_FIX(1,0.057,0,0,' +'),COLORCYAN;
DRAWTEXT_FIX(去年,0.07,0,0,CON2STR(去年,0)),COLORCYAN;
DRAWTEXT_FIX(去年=0,0.07,0,0,'0'),COLORCYAN;
DRAWTEXT_FIX(1,0.077,0,0,' +'),COLORCYAN;
DRAWTEXT_FIX(今年,0.089,0,0,CON2STR(今年,0)),COLORCYAN;
DRAWTEXT_FIX(今年=0,0.089,0,0,'0'),COLORCYAN;

DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,STRCAT(Z1,0)),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,STRCAT(Z4,GNBLOCK)),COLORCYAN;

STICKLINE(双龙出海,O,C,2.5,0),COLORMAGENTA;
STICKLINE(停,H,L,0,0),COLORRED;
STICKLINE(停,O,C,1.1,0),COLORYELLOW;
STICKLINE(停,O,C,1.1,0),COLORYELLOW;
DRAWTEXT(双龙出海,HIGH*1.01,'双'),COLORMAGENTA;

STICKLINE((REF(涨停板1,1) AND 走平或向上 AND 低开%<=-3.5 AND COUNT(REF(涨停板1,1),10)<=CX) OR (REF(涨停板1,2) AND 去掉大阴线=0 AND 低开%<=-3.5 AND 涨停后高开阴线=0 AND ((REF(C,1)-REF(C,2))/REF(C,2)*100>=3.5 OR (两日最高-O)/O*100>=8) AND COUNT(REF(涨停,1),10)<=CX),O,O,3,0),COLORCYAN;

{STICKLINE(REF(涨停板1,1) AND 走平或向上 AND (O-REF(C,1))/REF(C,1)*100<=1.5 AND (O-REF(C,1))/REF(C,1)*100>=-4.5 AND (L-REF(C,1))/REF(C,1)*100<=-5.5 AND 低开=0 AND L<=低走0,低走0,低走0,3,0),COLORCYAN;
STICKLINE(REF(涨停板1,2) AND 走平或向上 AND (REF(O,1)-REF(C,2))/REF(C,2)*100<=1.5 AND REF(C,1)<REF(C,2) AND (L-取底)/取底*100<=-5 AND 低开=0 AND L<=低走1,低走1,低走1,9,0),COLORCYAN;
STICKLINE(低开=0 AND L<=低开低走,低开低走,低开低走,3,0),COLORCYAN;}
STICKLINE((低走0 OR 低走1) AND 低开=0,IF(O<REF(C,1)*0.945,O,低开走取值),IF(O<REF(C,1)*0.945,O,低开走取值),3,0),COLORCYAN;
{STICKLINE((低走0 OR 低走1) AND 低开=0,IF(O<REF(C,1)*0.945,O,REF(C,1)*0.945),IF(O<REF(C,1)*0.945,O,REF(C,1)*0.945),3,0),COLORCYAN;}

STICKLINE((REF(跳空长上影,1) OR REF(跳空大阳,1)) AND REF(C,1)<>REF(O,1) AND 走平或向上 AND L<=买点 AND COUNT(REF(涨停,1),10)<=CX AND COUNT(REF(去大中阴线,1),2)=0 AND (O-REF(C,1))/REF(C,1)*100<=1.5,买点,买点,3,0),COLORYELLOW;
STICKLINE((REF(跳空长上影,2) OR REF(跳空大阳,2)) AND 走平或向上 AND L<=买点1 AND REF(L,1)>REF(C,2) AND L<=REF(C,2) AND 买点1 AND 买一=0 AND COUNT(REF(涨停,1),10)<=CX AND COUNT(REF(去大中阴线,1),3)=0 AND AA AND (O-REF(C,1))/REF(C,1)*100<=1.5,买点1,买点1,3,0),COLORYELLOW;
STICKLINE((REF(跳空长上影,1) OR REF(跳空大阳,1)) AND 走平或向上 AND (REF(C,1)-O)/O*100>=3.5 AND L<=REF(O,1) AND 买一=0 AND 买二=0 AND COUNT(REF(涨停,1),10)<=CX AND COUNT(REF(去大中阴线,1),4)=0 AND AA AND (O-REF(C,1))/REF(C,1)*100<=1.5,IF(O<REF(O,1),O,REF(O,1)),IF(O<REF(O,1),O,REF(O,1)),3,0),COLORYELLOW;
STICKLINE((REF(跳空长上影,2) OR REF(跳空大阳,2)) AND 走平或向上 AND (REF(C,1)-O)/O*100>=3.5 AND REF(缺口低买,1)=0 AND REF(L,1)>REF(O,2) AND L<=REF(O,2) AND COUNT(REF(涨停,1),10)<=CX AND COUNT(REF(去大中阴线,1),5)=0 AND AA AND (O-REF(C,1))/REF(C,1)*100<=1.5,IF(O<=REF(O,2),O,REF(O,2)),IF(O<=REF(O,2),O,REF(O,2)),3,0),COLORYELLOW;


STICKLINE(REF(三只喜鹊,1) AND 走平或向上 AND L<=喜一 AND AA ,喜一,喜一,3,0),COLORGREEN;
STICKLINE(REF(三只喜鹊,1) AND 走平或向上 AND L<=喜二 AND AA,喜二,喜二,3,0),COLORGREEN;
STICKLINE(REF(三只喜鹊,1) AND 走平或向上 AND L<=喜三 AND AA,喜三,喜三,3,0),COLORGREEN;
STICKLINE(REF(三只喜鹊,2) AND 走平或向上 AND REF(三只乌鸦,1)=0 AND L<=喜四 AND AA,喜四,喜四,3,0),COLORGREEN;
STICKLINE(REF(涨板,1) AND 走平或向上 AND L<=踩一开 AND (REF(C,1)-L)/L*100>=5 AND AA AND (O-REF(C,1))/REF(C,1)*100<=1.5,踩一开,踩一开,3,0),COLORWHITE;
STICKLINE(REF(涨板,2) AND 走平或向上 AND L<=踩二开 AND (REF(C,2)-踩二开)/踩二开*100>=3.5 AND IF(REF(踩一开,1)=DRAWNULL,0,REF(踩一开,1))=0 AND COUNT(REF(去大中阴线,1),1)=0 AND AA,踩二开,踩二开,3,0),COLORWHITE;
STICKLINE(REF(涨板,3) AND 走平或向上 AND L<=踩三开 AND (REF(C,3)-踩三开)/踩三开*100>=3.5 AND IF(REF(踩二开,1)=DRAWNULL,0,REF(踩二开,1))=0 AND IF(REF(踩一开,2)=DRAWNULL,0,REF(踩一开,2))=0 AND COUNT(REF(去大中阴线,1),2)=0 AND COUNT(去除连续两阴,1)=0,踩三开,踩三开,3,0),COLORWHITE;

MA54:=MA(C,54);
HJ_8:=(REF(C,3)-C)/REF(C,3)*100>5;
HJ_9:=FILTER(HJ_8,10);
HJ_10:=BARSLAST(HJ_9);
HJ_11:=REF(HIGH,HJ_10+2);
HJ_12:=REF(HIGH,HJ_10+1);
HJ_13:=REF(HIGH,HJ_10);
HJ_14:=MAX(HJ_11,HJ_12);
HJ_15:=MAX(HJ_14,HJ_13);
HJ_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
HJ_17:=HJ_10<150;
HJ_18:=(OPEN-HJ_15)/HJ_15*100<30;
HJ_19:=(CLOSE-LLV(LOW,HJ_10))/LLV(LOW,HJ_10)*100<50;
HJ_20:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
HJ_21:=VOL/MA(VOL,5)<3.5;
HJ_22:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
HJ_25:=HJ_16 AND HJ_17 AND HJ_18 AND HJ_19 AND HJ_20 AND HJ_21 AND HJ_22;
暴利:=FILTER(HJ_25,15);
PL1:=(((CLOSE-MA54)/MA54)<0.1);
PL2:=(((CLOSE-M10)/M10)<0.3);
偏离率:=(((PL1=1) AND (PL2=1))*0.2);
平台突破:=((((偏离率=0) AND (REF(偏离率,1)=0.2)) AND (REF((COUNT((偏离率=0.2),10)=10),1)=1))*-0.1);
妖股突破:=平台突破=-0.1;
XDF:=(暴利 OR 妖股突破);
VARA:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VARAA:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);
FLIGA:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
妖股:XDF AND C/REF(C,1)>1.095 AND FLIGA AND VARAA,NODRAW;
DRAWTEXT(妖股,LOW*0.975,' 妖股'),COLORYELLOW;

 

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式