ZDX:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
生命:=EMA(SLOPE(C,5),5)*6.18+ZDX;
M3:=MA(C,3);
M5:MA(C,5);
M10:MA(C,10);
M20:MA(C,20);
M27:MA(C,27);
角度5:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.1416;
角度10:=ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*180/3.141;
角度20:=ATAN((MA(C,20)/REF(MA(C,20),1)-1)*100)*180/3.1416;
drawflagtext(C>=0,H,'MA5》'+ NUMTOSTR(intpart(角度5))+'度');
drawflagtext(C>=0,L,'MA10》'+ NUMTOSTR(intpart(角度10))+'度');
DRAWTEXTREL(10,70,'10线角度》'+ NUMTOSTR(intpart(角度10))+'度');
DRAWTEXTREL(10,130,'20线角度》'+ NUMTOSTR(intpart(角度20))+'度');
级别:COUNT(C>MA(C,5),1)+COUNT(C>MA(C,10),1)+COUNT(C>MA(C,20),1)
+COUNT(C>MA(C,30),1)+COUNT(C>MA(C,60),1)+COUNT(C>MA(C,98),1)+
COUNT(C>MA(C,120),1)+COUNT(C>MA(C,144),1)+COUNT(C>MA(C,250),1),LINETHICK0;
SQS:=MA(LOW,20)*1.2;
CSQS:=MA(LOW,13)*1.083;
XQS:=MA(HIGH,20)*0.8;
WSQD:=IF(C>CSQS,IF(C>SQS,4,3),IF( C<CSQS,2,IF(C<XQS,0,1)));
VCCC1:=WSQD=3;
VCCC2:=WSQD=4 AND C>=REF(C,1);
STICKLINE(VCCC2,IF(C>O,O,C+(O-C)*0.618),C,7,0),COLOR000085;
STICKLINE(VCCC2,IF(C>O,O,C+(O-C)*0.618),C,6,0),COLOR0000A5;
STICKLINE(VCCC2,IF(C>O,O,C+(O-C)*0.618),C,5,0),COLOR0000C5;
STICKLINE(VCCC2,IF(C>O,O,C+(O-C)*0.618),C,4,0),COLOR0000D5;
STICKLINE(VCCC2,IF(C>O,O,C+(O-C)*0.618),C,3,0),COLOR0000FF;
STICKLINE(VCCC2,IF(C>O,O,C+(O-C)*0.618),C,1.6,0),COLOR0000F5;
STICKLINE(VCCC2,IF(C>O,O,C+(O-C)*0.618),C,0.8,0),COLOR3A3AFF;
ZHDX:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
SMX:=EMA(SLOPE(C,5),5)*6.18+ZHDX;
LXX:=EMA(ZHDX,16);
ZDJDD:=ATAN((ZHDX/REF(ZHDX,1)-1)*100)*180/3.1416;
ZDSM:=ATAN((SMX/REF(SMX,1)-1)*100)*180/3.1416;
ZDM:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.1416;
JJD4:=ATAN((MA(C,27)/REF(MA(C,27),1)-1)*100)*180/3.1416;
JJD5:=ATAN((MA(C,56)/REF(MA(C,56),1)-1)*100)*180/3.1416;
JJDXX:=(JJD4>10 AND JJD4<53 AND JJD5>-13.8) OR (JJD5>13 AND JJD5<46 AND JJD4>0);
JJDPD:=COUNT(JJDXX,1);
JDGDPD:=MA(C,5)/MA(C,60)<=1.25;
RSI1:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
RSI2:=SMA(MAX(CLOSE-REF(CLOSE,1),0),12,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),12,1)*100;
RSI3:=SMA(MAX(CLOSE-REF(CLOSE,1),0),24,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),24,1)*100;
JXJCA:=CROSS(MA(C,5),MA(C,10)) OR (MA(C,5)>MA(C,10) AND
REF(MA(C,5),1)=REF(MA(C,10),1));
JXJCB:=CROSS(MA(C,5),MA(C,18));
M510B:=100*MA(C,5)/MA(C,10);
M1020B:=100*MA(C,10)/MA(C,20);
M510B1:=COUNT(M510B>=100.0 AND M510B<101.0,3)>1 AND M510B>101.01
AND COUNT(M510B>=100.0,5)>=5 AND H/C<1.0318;
M510B1X:=COUNT(M510B>=100.0 AND M510B<100.5,3)>1 AND M510B>=100.51
AND COUNT(M510B>=100.0,5)>=5 AND H/C<1.0318;
M510B2:=COUNT(M510B>=101.0 AND M510B<101.5,3)>1 AND M510B>101.5
AND COUNT(M510B>=100.0,5)>=5 AND H/C<1.0318;
M510B3:=COUNT(M510B>=101.5 AND M510B<102.0,3)>1 AND M510B>102
AND COUNT(M510B>=100.0,5)>=5 AND H/C<1.0318;
M1020B1:=COUNT(M1020B>=100.0 AND M1020B<101,3)>1 AND M1020B>101.01
AND COUNT(M1020B>=100.0,7)>=7 AND H/C<1.0318;
M510BX:=M1020B1;
MAX1:=INTPART(100*(MA(C,5)-MA(C,10))/MA(C,10));
MAXHP:=MAX1=0 OR MAX1=-1;
MAXHPX:=MAXHP OR REF(MAXHP,1);
SS1:=(LOW+HIGH+CLOSE*2)/4;
SS2:= MA(SS1,4);
SS3:=HHV(SS2,10);
SS4:=MA(SS3,3);
SS5:=1.25*SS4-0.25*SS3;
XKKJ:=IF(SS5>SS3,SS3,SS5);
FF1:=LLV(SS2,10);
FF2:=MA(FF1,3);
FF3:=1.25*FF2-0.25*FF1;
DKKJ:=IF(FF3<FF1,FF1,FF3);
MA13:=MA(C,13);
ZDHM:=CROSS(C,DKKJ) AND CROSS(C,MA13) AND CROSS(C,XKKJ);
ZHM:=CROSS(C,MA13) AND CROSS(C,XKKJ);
DHMM:=ZDHM OR ZHM;
CCC1:=DHMM;
AV:=IF(C>=O,C,O);
BV:=IF(C>=O,O,C);
STICKLINE(CCC1,L,H,0.1,0),COLORYELLOW;
STICKLINE(CCC1,BV,AV,3,0),COLORRED;
STICKLINE(CCC1,BV,AV,2.2,0),COLOR3D3DFF;
STICKLINE(CCC1,BV,AV,1,0),COLOR6565FF;
STICKLINE(CCC1,BV,AV,0.1,0),COLOR7A7AFF;
STICKLINE(CCC1,0.3*(AV-BV)+BV,0.618*(AV-BV)+BV,2.99,0),COLORWHITE;
STICKLINE(CCC1,0.4*(AV-BV)+BV,0.46*(AV-BV)+BV,2.96,0),COLORGREEN;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);
DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.97),'★大搏 '),COLOR00FFFF;
A2:=(C-REF(C,1))/REF(C,1)*100<1.02;
A3:=H>MA(C,5)*1.12;
AA:= A2 AND A3;
STICKLINE(AA,H,IF(C>O,C,O),0.3,0),COLORGREEN;
{VLL:=CROSS(MA(C,13),MA(C,21));
DRAWTEXT(VLL,MA(C,13)-0.09,'圆底'),COLORWHITE;}
BZHDX:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
BSMX:=EMA(SLOPE(C,5),6)*6.18+BZHDX;
BLXX:=EMA(BZHDX,16);
BZDJDD:=ATAN((BZHDX/REF(BZHDX,1)-1)*100)*180/3.1416;
HPTS1:=COUNT(BZDJDD>-16 AND BZDJDD<=67,5);
HPTS2:=COUNT(BZDJDD>-16 AND BZDJDD<=67,7);
HPTS3:=COUNT(BZDJDD>-16 AND BZDJDD<=67,9);
HPLG:=(HPTS1>=5 OR HPTS2>=6 OR HPTS3>=8 OR (HPTS3>=7 AND HPTS1>=3))
AND (V/MA(V,55))>=1.0618 AND BZDJDD<=67;
BJCA:=COUNT(CROSS(BSMX,BZHDX),1);
JCA1:=COUNT(CROSS(BZHDX,MA(C,5)),1);
BJCB:=COUNT(CROSS(BSMX,BLXX*1.001),1);
JCB1:=COUNT(CROSS(MA(C,5),BZHDX),2);
JCC1:=COUNT(CROSS(BSMX,MA(C,5)),1);
JCC2:=COUNT(CROSS(BSMX,MA(C,5)),2);
BJCC:=JCC1>=1 OR JCC2>=1;
JCF1:=COUNT(CROSS(BSMX,BLXX),2)+COUNT(CROSS(BSMX,BZHDX),2)
+COUNT(CROSS(BSMX,MA(C,5)),2);
JCH1:=COUNT(C>BZHDX,1)+COUNT(C>BSMX,1)+COUNT(C>BLXX,1);
JCH3:=COUNT(C>BZHDX,1)+COUNT(C>MA(C,5),1)+COUNT(C>BLXX,1);
JCH2:=COUNT(L<=BZHDX,1)+COUNT(L<=BSMX,1)+COUNT(L<=BLXX,1)+COUNT(L<=MA(C,5),1);
JCH:=JCH1>=3 AND (JCH2>=3 OR REF(JCH2,1)>=3) AND
(BJCA>=1 OR BJCB>=1 );
JCHH:=JCH3>=3 AND (JCH2>=3 ) AND MA(V,5)/MA(V,55)>1.5;
JCF:=JCF1>=2;
BJCDX:=COUNT(C>MA(C,5) AND H>=BSMX,1);
BJCD:=BJCDX>=1 AND L<=MA(C,5) AND L<BSMX AND BSMX>=MA(C,5) AND BSMX>=REF(BSMX,1);
JCVSS:=COUNT((CROSS(MA(V,5),MA(V,55)) AND REF(MA(V,5),1) <REF(MA(V,55),1)) OR
(CROSS(MA(V,5),MA(V,10)) AND REF(MA(V,5),1) <REF(MA(V,10),1)) OR
(CROSS(MA(V,10),MA(V,55)) AND REF(MA(V,10),1) <REF(MA(V,55),1)),1);
JCE:= L<BSMX AND BSMX>=MA(C,5) AND JCVSS>=1 AND BJCD=1;
CVDS:=COUNT(V/MA(V,55)>=1.60,3)>=1 AND (L<BSMX*0.999 OR (L<BLXX AND BSMX<BLXX)
OR V/MA(V,55)>3) AND ((V>MA(V,10) AND V>MA(V,5)) OR (MA(V,5)>MA(V,10)));
VJD:=ATAN((MA(V,55)/REF(MA(V,55),1)-1)*100)*180/3.1416;
JJD:=BZDJDD;
XV:=VJD>0 AND VJD<=75;
XJ1:=CROSS(JJD,29 ) AND REF(JJD,1)<=30 ;
XJ2:=CROSS(JJD,41 ) AND REF(JJD,1)<=41 ;
XJ3:=CROSS(JJD,47 ) AND REF(JJD,1)<=47 ;
XJ:=XJ1 OR XJ2 OR XJ3;
VJJC:=XV AND XJ;
JNDHM:=(((BJCB=1 OR BJCA=1 OR BJCC=1 OR JCE OR JCF) AND CVDS=1)
OR (JCH AND VJJC AND V/MA(V,55)>=1.488) OR JCHH ) AND
(H/BLXX<=1.19 OR C/BLXX<1.1) AND BSMX>=REF(BSMX,1) AND H/C<=1.03;
JDMA5:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.1416;
ZHCJS1:=COUNT(C>=REF(C,1),3)>=2 AND COUNT(C<=REF(C,1),3)>=1
AND C>=REF(C,1) AND REF(C,2)>=REF(C,1);
ZHCJS2:=COUNT(C>REF(C,1),4)>=2 AND COUNT(C< |