M1:=8;
M2:=25;
M3:=12;
M4:=50;
ZYG1:=EXPMA(CLOSE,M1)COLORBLUE,LINETHICK1;
ZYG2:=EXPMA(CLOSE,M2)COLORGREEN,LINETHICK2;
ZYG3:=EXPMA(C,M3)COLORLIGREEN,DOTLINE;
ZYG4:=EXPMA(C,M4)COLORWHITE,DOTLINE;
卖:=CROSS(ZYG1,ZYG2);买:=CROSS(ZYG2,ZYG1);DRAWTEXT(卖,L*0.995,'持股'),COLORYELLOW;STICKLINE(卖,C,O,2,0),COLORYELLOW;
DRAWTEXT(买,H*1.008,'持币'),COLORGREEN;STICKLINE(买,C,O,2,0),COLORGREEN;DX:=(C+H+L+O)/4;MTM:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);FB:=MA(DX,17)+ABS(MA(DX,17)-REF(MA(DX,17),1));
FS:=MA(DX,17)+MA(DX,17)-REF(MA(DX,17),1);买1:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0);
卖1:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0);STICKLINE(FILTER(买1=1,5),C,O,2,0),COLORFF00FF;
STICKLINE(FILTER(卖1=1,1),C,O,2,0),COLOR00FF00;RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;A:=(3*C+L+O+H)/6;
BB:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6) +13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210;
MA101:=MA(CLOSE,10);周MA101:=MA(MA101,5),COLORRED,LINETHICK2;上翘:IF(周MA101>REF(周MA101,1),周MA101,DRAWNULL),COLORRED,LINETHICK4;
下拐:IF(周MA101<REF(周MA101,1),周MA101,DRAWNULL),COLORGRAY,LINETHICK4;
BOLL:=MA(CLOSE,20);上轨:BOLL+2*STD(CLOSE,20);
下轨:BOLL-2*STD(CLOSE,20);MA5 := MA(CLOSE, 5);
MA10 := MA(CLOSE, 10);MA20 := MA(CLOSE, 20);MA30 := MA(CLOSE, 30);
MA60 := MA(CLOSE, 60);MA_LONG1 := MA5 > MA10 AND MA10 > MA20 AND MA20 > MA30 AND MA30 > MA60;EXP1 := EMA(CLOSE, 12);
EXP2 := EMA(CLOSE, 50);EXPMA_JC := CROSS(EXP1, EXP2);
BOLL1 := MA(CLOSE, 20);UP := BOLL1 + 2 * STD(CLOSE, 20);
好股网:=CLOSE >= MA_LONG1 AND EXPMA_JC;
DRAWICON(好股网,L,7);STICKLINE(好股网,O,C,2,0),COLORYELLOW;
DRAWTEXT(好股网,L*0.985,'↑龙渊聚势战法'),COLORYELLOW;