地线:MA(REF(LLV(C,30),1),2),COLORRED,LINETHICK2;
MA25:MA(C,25),LINETHICK3;
MA34:MA(C,34),COLORBLUE,LINETHICK1;
MA60:MA(C,60),COLORLIRED,LINETHICK2;
MA354:MA(C,354),COLORBROWN,LINETHICK3;
MA15:MA(C,15),,COLORYELLOW,LINETHICK2;
MA250:MA(C,250),COLORCYAN,LINETHICK3;
MA125:MA(CLOSE,125),LINETHICK4,POINTDOT,COLORGRAY;
红:IF(CLOSE>=SAR(6,8,13),SAR(6,8,13),
DRAWNULL),CIRCLEDOT,COLORRED,{COLOR9955FF};
绿:IF(CLOSE<=SAR(6,8,13),SAR(6,8,13),
DRAWNULL),CIRCLEDOT,COLORGREEN,{COLORDDFF00};
DRAWICON(CROSS(MA25,MA60),MA60,27);
DRAWICON(CROSS(MA5,MA25),MA25,16);
V5:=EMA(CLOSE,1);主线:=EMA(V5,5) ;
本:=EMA(HHV(主线,5),1);
急进:=EMA(HHV(本,17),1);
稳健:=EMA(HHV(急进,19),2);
起爆线:EMA(HHV(稳健,17),3),LINETHICK2, COLORRED;
IF(MA25PP1:= H >=MA(C,5)*(100+MAH)/100;
PP2:=L*(100+MAL)/100<=MA(C,25);
DRAWICON(PP1,H*1.02,15);
DRAWICON(PP2,L*0.97,26);
STICKLINE(CROSS(MA(C,5),MA(C,25)),O,C,1,0),COLORYELLOW;
DRAWICON((MA(C,4)*4+MA(C,25))/5>=MA(C,25) AND MA(C,5)
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
{双底启动}
双底:=COUNT(CROSS("KDJ.K","KDJ.D"),15)>=1 {前15天KDJ金叉}
AND COUNT(CROSS("KDJ.D","KDJ.K"),7)=1 {7天内KDJ死叉}
AND "KDJ.J">REF("KDJ.J",1) AND REF("KDJ.J",1)<30 {今日J拐头}
AND H/REF(C,1)>=1.03 {今日上涨3%以上}
{AND V/REF(V,1)>=1.5} ; {今日量能是昨天的1.5倍以上}
双底启动:=FILTER(双底,10);
DRAWTEXT(双底启动,REF(C,1)*1.03,'★双底启动'),COLORFF00FF;
T:=BARSCOUNT(V);
DRAWICON(T>20 AND "MACD.DIF">"MACD.DEA" AND V=LLV(V,5),L,17);
半分位:=(O+C)/2;
昨半分位:=REF(半分位,1);
STICKLINE(ISLASTBAR,昨半分位,昨半分位,10,0),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,昨半分位,昨半分位),COLORYELLOW;
DRAWTEXT(ISLASTBAR,昨半分位,' 昨半分位'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.55,1,0,DYBLOCK),COLORYELLOW,LINETHICK3;
DRAWTEXT_FIX(C>0,0.6,1,0,HYBLOCK),COLORRED,LINETHICK3;
DRAWTEXT_FIX(C>0,1,1,0,EXTERNSTR(0,1)),COLORWHITE,LINETHICK3;
DRAWTEXT(ISLASTBAR,LOW,HYBLOCK);
H1:=VOL/CAPITAL*100;
MV1:=MA(VOL,1);
MV3:=MA(VOL,3);
MV5:=MA(VOL,5);
MV60:=MA(VOL,60);
M1:=MA(CLOSE,20);
M2:=MA(CLOSE,24);
M3:=MA(CLOSE,5);
M4:=MA(CLOSE,10);
M5:=MA(CLOSE,55);
M6:=MA(CLOSE,60);
DRAWTEXT(C*1.015>O AND O
DRAWICON(C*1.015>O AND O
JJ:=(3*C+H+L+O)/6;
VAR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>VAR1;
LJL:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(HIGH,3),1,0)));
TP:=TJ2=1;
STICKLINE(CLOSE,REF(LOW,BARSLAST(LJL)),REF(LOW,BARSLAST(LJL)),6,0),COLORYELLOW;
TJ3:=IF(BARSLAST(LJL)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(LJL)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(LJL)=3 AND CLOSE>REF(LOW,3),1,0)));
STFZ:=TJ3=1;
CL:=STFZ AND TP;
TJCL:=FILTER(CL,3);
DRAWTEXT(LJL,L*0.99,'黄'),COLORGREEN;