ZMA5:=MA(C,5);
BBMA10:=MA(C,10);
YC0X1:=ZMA5>=REF(ZMA5,1);
H02:=MAX(ZMA5,BBMA10);
L02:=MIN(ZMA5,BBMA10);
ZJPB2:=(C-REF(C,1))/REF(C,1)*100;
穿二线:=H02
STICKLINE(穿二线,O,C,0.80,0),COLORBROWN;
角度10:=ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*57.3;
选股:=(角度10>=1 {现在是1度,角度可调} AND 穿二线);
STICKLINE(选股,O,C,1.180,0),COLOR0000FF;
STICKLINE(选股,O,C,0.50,0),COLOR00FFFF;
DRAWTEXT(选股,L*0.98, '穿二线'),COLORYELLOW;
KC:=FORCAST(((2*C+H+L)/4*0.618+C*0.382),3);
AAX:=(KC-MA(KC,9))/MA(KC,9)*100;
VAR0:=MIN(EXIST(KC,55),9);
AAX1:=EMA(AAX,VAR0)*VAR0;
AAX2:=MA(AAX1,3);
AAX3:=MA(AAX1,5);
卖:=AAX3>3 AND AAX1
VBA:=FILTER(卖,5);
DRAWTEXT(VBA,H*1.08,'★卖'),COLORGREEN;
VB2:=EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6)*100;
VB3:=IF(LLV(VB2,3)=LLV(VB2,11) AND COUNT(VB2<0,2) AND CROSS(VB2,MA(VB2,2)),1,0);
VB4:=FILTER(VB3=1,5);
DRAWTEXT(VB4,L*0.97,'★买'),COLORRED;
STICKLINE(VB4,CLOSE,OPEN,2,0), COLORYELLOW ;
STICKLINE(VBA,CLOSE,OPEN,2,0),COLORCYAN ;
MAC3:=(ATAN((MA(C,3)/REF(MA(C,3),1)-1)*100)*180/3.14115926);
M3:=MA(MAC3,3);
AA:=PLOYLINE(CROSS(MAC3,M3),M3);
AAB:=PLOYLINE(CROSS(M3,MAC3),MAC3);
买二:=COUNT(CROSS(MAC3,M3),AAREF(AAB,3));
DRAWTEXT(买二,L*0.97,'★买二'),COLORMAGENTA;