{DRAWGBK(C>0,RGB(0,150,150),RGB(0,00,100),0,' ',0),LINETHICK2;}
X_3:=IF(PERIOD<3,35,IF(PERIOD<=5,28,IF(PERIOD<=7,21,IF(PERIOD<=8,14,IF(PERIOD<=9,7,5)))));
X_4:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_5:=MAX(HIGH-LOW,MAX(HIGH-REF(CLOSE,1),REF(CLOSE,1)-LOW))/REF(CLOSE,1)*100;
X_6:=(HIGH-LOW)/REF(CLOSE,1)*100;
X_7:=vol/REF(MA(VOL,5),1);
X_8:=VOL;
X_9:=(HIGH+LOW+CLOSE)/3;
X_10:=CLOSE>X_9;
X_11:=CLOSE
X_13:=Abs(IF(X_11,X_12,0));
X_14:=IF(X_10,X_12,0);
阴线效率:=ABS(SUM(IF(X_12<0,X_12,0),7)),DOTLINE,COLOR008000;
阳线效率:=SUM(IF(X_12>0,X_12,0),7),DOTLINE,COLORRED;
X_15:=ABS(阴线效率-阳线效率);
X_16:=49;
X_17:=(阴线效率+阳线效率)/2;
X_18:=STDP(MAX(阴线效率,阳线效率),X_16);
X_19:=STDP(MIN(阴线效率,阳线效率),X_16);
X_20:=WMA(X_17,X_16);
X_21:=X_20+1.618*X_18;
X_22:=X_20-1.618*X_19;
X_23:=阳线效率>阴线效率 AND 阳线效率>=X_20;
X_24:=阴线效率>阳线效率 AND 阴线效率>=X_20;
X_25:=阳线效率>阴线效率 AND 阳线效率>X_21;
X_26:=阴线效率>阳线效率 AND 阴线效率>X_21;
X_27:=阳线效率<阴线效率 AND 阳线效率
X_30:=阴线效率>=HHV(阴线效率,100) AND 阴线效率>0;
X_31:=阳线效率<=LLV(阳线效率,100);
X_32:=阴线效率<=LLV(阴线效率,100);
STICKLINE(X_23,1.1,1.2,2,0),COLOR000080;
STICKLINE(X_24,1.2,1.3,2,0),COLORGREEN;
STICKLINE(X_25,1.3,1.4,2,0),COLORYELLOW;
STICKLINE(X_26,1.4,1.5,2,0),COLORWHITE;
{STICKLINE(X_23,阳线效率,MAX(X_20,阴线效率),2,0),COLORRED;
STICKLINE(X_24,阴线效率,MAX(X_20,阳线效率),2,0),COLORGREEN;
STICKLINE(X_25,阳线效率,MAX(X_21,阴线效率),2,0),COLORYELLOW;
STICKLINE(X_26,阴线效率,MAX(X_21,阳线效率),2,0),COLORWHITE;}
CMA:=(COST(95)-COST(5))/((COST(95)+COST(5)))*100,NODRAW,COLORYELLOW;
ZT:=C/REF(C,1)>=1.08 AND C=H AND NOT(CODELIKE('688'));
STICKLINE(X_25 AND ZT AND CMA<20,1.5,1.6,2,0),COLORFF00FF;
DRAWTEXT(CURRBARSCOUNT=1,1.35,'★三色启动★'),COLORYELLOW;
MAH:=MA(H,3);
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA60:=MA(C,60);
MA250:=MA(C,250);
MVH:=MA(V,3);
MV5:=MA(V,5);
MV10:=MA(V,10);
MV20:=MA(V,20);
MV60:=MA(V,60);
MV250:=MA(V,250);
二十:=MA(C,20)>=HHV(MA(C,20),20) AND C>MA(C,60) AND MA(C,60)>REF(MA(C,60),1) AND
MA(C,60)>=HHV(MA(C,60),10),COLORRED;
二十选:IF(二十=1,0.8,0),NODRAW,COLORRED;
一十:=MA(C,10)>=HHV(MA(C,10),20) AND C>MA(C,60) AND MA(C,60)>REF(MA(C,60),1) AND
MA(C,60)>=HHV(MA(C,60),10),COLORYELLOW;
一十选:IF(一十=1,0.6,0),NODRAW,COLORYELLOW;
JD10:=ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*180/3.1416;
JD20:=ATAN((MA(C,20)/REF(MA(C,20),1)-1)*100)*180/3.1416;
JD1045:IF(JD10>45,1.2,0),NODRAW,COLORWHITE;
JD2030:IF(JD20>30,1.4,0),NODRAW,COLORFF00FF;
ND:=MAX(MAX(MA5,MA10),MA20);
NX:=MIN(MIN(MA5,MA10),MA20);
NHDX:=(ND-NX)/NX*100;
NDD:=MAX(MAX(MA5,MA10),MAX(MA20,MA60));
NXD:=MIN(MIN(MA5,MA10),MIN(MA20,MA60));
NHDD:=(NDD-NXD)/NXD*100;
XD:=MA5>MA10 AND MA10>MA20;
DD:=XD AND MA20>MA60;
DIF:=EMA(CLOSE,6)-EMA(CLOSE,20);
DEA:=EMA(DIF,6);
macd:=(DIF-DEA)*2;
STICKLINE(XD=1,0.2,0.3,2,0),COLOR000080;
DRAWTEXT(CURRBARSCOUNT=1,0.25,'★短多头★'),COLORYELLOW;
STICKLINE(DD=1,0.3,0.4,2,0),COLORFF80FF;
DRAWTEXT(CURRBARSCOUNT=1,0.35,'★大多头★'),COLORYELLOW;
STICKLINE(二十=1,0.4,0.5,2,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,0.45,'★二十均新高★'),COLORYELLOW;
STICKLINE(一十=1,0.6,0.5,2,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,0.55,'★一十均新高★'),COLORYELLOW;
STICKLINE(NHDX<5,0,0.1,2,0),COLOR8080FF;
DRAWTEXT(CURRBARSCOUNT=1,0.05,'★小粘合★'),COLORYELLOW;
STICKLINE(NHDD<8,0.1,0.2,2,0),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,0.15,'★大粘合★'),COLORYELLOW;
STICKLINE(JD1045,0.6,0.7,2,0),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,0.65,'★一十均>45度★'),COLORYELLOW;
STICKLINE(JD2030,0.7,0.8,2,0),COLOR400080;
DRAWTEXT(CURRBARSCOUNT=1,0.75,'★二十均>30度★'),COLORYELLOW;
地量:=V
DRAWTEXT(CURRBARSCOUNT=1,-0.05,'★地量★'),COLORYELLOW;
五日最高:=V>=HHV(V,5);
STICKLINE(五日最高,-0.2,-0.1,2,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,-0.15,'★五日最高★'),COLORYELLOW;
十日最高:=V>=HHV(V,10);
STICKLINE(十日最高,-0.2,-0.3,2,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,-0.25,'★十日最高★'),COLORYELLOW;
二十日最高:=V>=HHV(V,20);
STICKLINE(十日最高,-0.4,-0.3,2,0),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,-0.35,'★二十日最高★'),COLORYELLOW;
六十日最高:=V>=HHV(V,60);
STICKLINE(十日最高,-0.4,-0.5,2,0),COLORFF0080;
DRAWTEXT(CURRBARSCOUNT=1,-0.45,'★六十日最高★'),COLORYELLOW;
年内最高:=V>=HHV(V,250);
STICKLINE(年内最高,-0.6,-0.5,2,0),COLOR000080;
DRAWTEXT(CURRBARSCOUNT=1,-0.55,'★年内最高★'),COLORYELLOW;
方向:=IF(C>O,C,L);
方向价:=IF(C>MA60 AND 方向>MA20 ,方向-MA20,0);
STICKLINE(C>MA60 AND 方向价>REF(方向价,1),0.8,0.9,2,0),COLORRED;
STICKLINE(方向价DRAWTEXT(CURRBARSCOUNT=1,0.85,'★天地距向★'),COLORYELLOW;
STICKLINE(C>MA60 AND DIF>0 AND DEA>0 AND DIF>REF(DIF,1),0.9,1,2,0),COLORMAGENTA;
STICKLINE(C>MA60 AND DIF>0 AND DEA>0 AND DIFSTICKLINE(DIF<0 AND DEA<0,0.9,1,2,0),COLORBLUE;
DRAWTEXT(CURRBARSCOUNT=1,0.95,'★MacD强弱区间★'),COLORYELLOW;
STICKLINE(MV5>REF(MV5,1) AND MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MV10>REF(MV10,1),
1,1.1,2,0),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=1,1.05,'★五日量均走势★'),COLORYELLOW;
-0.1,COLORWHITE,LINETHICK3;
预备:=V>=HHV(V,5) AND NHDX<5 AND NHDD<8 AND XD=1 AND DD=1 AND 一十=1 AND
二十=1 AND C>MA60 AND 方向价>REF(方向价,1) AND DEA>0 AND DIF>REF(DIF,1) AND DIF>0 ;
DRAWTEXT(预备 AND COUNT(预备,10)=1,-0.15,'★预备'),COLORRED;
加速:=V>=HHV(V,5) AND JD1045 AND JD2030 AND XD=1 AND DD=1 AND 一十=1 AND
二十=1 AND C>MA60 AND 方向价>REF(方向价,1) AND DEA>0 AND DIF>REF(DIF,1) AND DIF>0
AND 十日最高 AND 二十日最高;
DRAWTEXT(加速 AND COUNT(加速,10)=1,-0.25,'★加速'),COLORYELLOW;
买在起涨:=MV5>REF(MV5,1) AND MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MV10>REF(MV10,1)
AND 五日最高 AND COUNT(五日最高,5)=1 AND EXIST(地量,3) AND EXIST(NHDX<5,5) AND C>MA60;
DRAWTEXT(买在起涨 AND COUNT(买在起涨,10)=1,-0.35,'★买在起涨'),COLORYELLOW;
上攻:=XD=1 OR DD=1 OR 二十=1 OR 一十=1 OR JD1045 OR JD2030;
量均:=MV5>REF(MV5,1) AND MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MV10>REF(MV10,1);
量攻:=五日最高 OR 十日最高 OR 二十日最高 OR 六十日最高;
试买:=方向价>REF(方向价,1) AND 上攻 AND 量攻 AND COUNT(量攻,5)=1 AND 量均 AND COUNT(量均,5)=1;
DRAWTEXT(试买,1.05,'★试买'),COLORYELLOW;
上多:=MV5>REF(MV5,1) AND MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MV10>REF(MV10,1) AND C>MA60 AND DIF>0 AND DEA>0 AND DIF>REF(DIF,1)
AND C>MA60 AND 方向价>REF(方向价,1);
启动:=上多 AND 五日最高 ;
DRAWTEXT(启动 AND COUNT(启动,5)=1,1,'★启动'),COLORRED;
空警:=方向价STICKLINE(空警,1.2,-0.5,2,0),COLORBLUE;
换手:=VOL/CAPITAL*100;
HS:=(IF(CSTICKLINE(HS<1,-0.6,-0.7,2,0),COLORGREEN;
STICKLINE(HS>1 AND HS<5,-0.6,-0.7,2,0),COLORYELLOW;
STICKLINE(HS>5 AND HS<30,-0.6,-0.7,2,0),COLOR0000FF;
STICKLINE(C=O AND C>REF(C,1)*1.095,-0.6,-0.7,2,0),COLOR0000FF;
STICKLINE(HS>10 AND HS<30,-0.6,-0.7,2,0),COLORMAGENTA;
STICKLINE(HS>30 AND C>2*MA250,-0.6,-0.7,2,0),COLORGREEN;
STICKLINE(HS>30 AND C<2*MA250,-0.6,-0.7,2,0),COLORFF0080;
DRAWTEXT(CURRBARSCOUNT=1,-0.65,'★换手率★'),COLORYELLOW;
振幅:=IF(NOT(O=C AND C>=REF(C,1)*0.95),(H/L-1)*100,10);
STICKLINE(振幅>5 AND C>O,-0.8,-0.7,2,0),COLOR0080FF;
STICKLINE(振幅>5 AND C
STICKLINE(C>=REF(C,1)*1.095 ,-0.8,-0.7,2,0),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,-0.75,'★振幅★'),COLORYELLOW;
Q1:=X_25 AND ZT AND CMA<20;
牛像:=X_23 OR X_25 OR Q1;
牛股:=牛像 AND 启动 AND 振幅>5 AND HS>3 AND C<2*MA250;
DRAWTEXT(牛股 AND COUNT(牛股,20)=1,1.3,'★牛股'),COLORMAGENTA;
黄:=DYNAINFO(37)*100,COLORYELLOW;
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
{IF(CURRBARSCOUNT=1,DYNAINFO(37)*100*TOTAL/CTIME,DRAWNULL),CIRCLEDOT,COLORWHITE;}
紫:=MA(MA(DYNAINFO(37),2),2)*100,COLORMAGENTA,LINETHICK3;
涨:=黄>1 AND 紫>1 AND 黄>紫;
调:=黄>1 AND 紫>1 AND 黄<紫;
阴跌:=黄<1 AND 紫<1;
STICKLINE(涨,-0.8,-0.9,2,0),COLORRED;
STICKLINE(调,-0.8,-0.9,2,0),COLORYELLOW;
STICKLINE(阴跌,-0.8,-0.9,2,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,-0.85,'★虚拟换手率★'),COLORYELLOW;
潜伏:=牛像 AND MV5>REF(MV5,1) AND MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MV10>REF(MV10,1)
AND 上攻 AND 涨 AND 振幅>5 AND C>O ;
潜伏买点:=潜伏 AND COUNT(潜伏,10)=1;
DRAWTEXT(潜伏买点,-0.6,'☆潜伏'),COLORRED;
短价顶:=C>=HHV(C,5);
中价顶:=C>=HHV(C,20);
长价顶:=C>=HHV(C,60);
年价顶:=C>=HHV(C,250);
短量顶:=V>=HHV(V,5);
中量顶:=V>=HHV(V,20);
长量顶:=V>HHV(V,60);
年量顶:=V>=HHV(V,250);
STICKLINE(短价顶,2,2.1,2,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,2.05,'★5日短价顶★'),COLORYELLOW;
STICKLINE(短量顶,2,1.9,2,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,1.95,'★5日短量顶★'),COLORYELLOW;
STICKLINE(中价顶,2.1,2.2,2,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,2.15,'★20日中价顶★'),COLORYELLOW;
STICKLINE(中量顶,1.8,1.9,2,0),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,1.85,'★20日短量顶★'),COLORYELLOW;
STICKLINE(长价顶,2.2,2.3,2,0),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,2.25,'★60日长价顶★'),COLORYELLOW;
STICKLINE(长量顶,1.7,1.8,2,0),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,1.75,'★60日长量顶★'),COLORYELLOW;
STICKLINE(年价顶,2.3,2.4,2,0),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,2.35,'★250日年价顶★'),COLORYELLOW;
STICKLINE(年量顶,1.7,1.6,2,0),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,1.65,'★250日年量顶★'),COLORYELLOW;
STICKLINE(C>MA60,2.4,2.5,2,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,2.45,'★操作休息走牛区★'),COLORYELLOW;
STICKLINE(C
{2,LINETHICK3,COLORGREEN;}
0.2,LINETHICK3,COLORYELLOW;
0.8,LINETHICK3,COLORFFFF80;
1.6,LINETHICK3,COLOR80FF80;
-0.6,LINETHICK3,COLORFF8000;
1.1,LINETHICK3,COLORFFFFFF;
AAF:=WINNER(C+C*15/100)*100;
BBF:=WINNER(C+C*0/100)*100;
CCF:=AAF-BBF;
ddf:=(WINNER(C-C*0.1/100)-WINNER(C-C*15/100))*100;
EE:=CCF<3 AND DDF<0.5 AND O!=L;
A1F:=DYNAINFO(6);
A2F:=IF(L>A1F,0,IF(HA3F:=V/WINNER(L);
A4F:=REF(HHV(C,120),1);
A5F:=REF(LLV(C,120),1);
A6F:=100*(C-A5F)/(A4F-A5F);
A7F:=A2F>0 OR A2F=1;
A8F:=A7F AND A3F/REF(A3F,3)>=3 AND A6F<80 ;
A9F:=REF(A8F,1) OR REF(A8F,2) OR REF(A8F,3) OR REF(A8F,4);
A10F:=A8F AND A9F;
进场:=FILTER(A8F,3);
加仓:=FILTER(A10F,3) OR EE;
私募机构进场日:=STICKLINE(进场,0,5,40,0),COLORYELLOW;
私募机构加仓日:=STICKLINE(加仓,0,10,40,0),COLORFF00FF;
DRAWTEXT(进场,-0.26,'★私募进场'),COLORRED;
DRAWTEXT(加仓,-0.46,'★私募进场'),COLORMAGENTA;