EMA30:=EMA(CLOSE,30);
EMA5:=EMA(CLOSE,5);
X2:=EMA5;
X3:=EMA30;
均价线:=AMOUNT/V/100;
AA1:=MA(C,4);
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
买进:=DRAWTEXT(CROSS(AA1,X3*0.998-0.018),L*0.97,'★-买进- ');
买进1:=DRAWTEXT(CROSS(L,X3*0.9998+0.018) AND C>REF(C,1),L*0.97,'★-买进 ');
MJ:=买进 OR 买进1;
HH:=COUNT(涨停,15)>=1;
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
PP3:=操作线<20 AND REF(操作线,1)>20;
A:=SMA(L,4,3) ;
理想通:=EMA((C-LLV(L,5))/(HHV(H,6)-LLV(L,6)),2)*100,COLORYELLOW,LINETHICK1;
VARB1:=SMA(SMA(理想通,2,1),2,1);
VARB2:=(VARB1/2+36.8)*1;
VARB3:=SMA(VARB2,2,1)+2.2,COLORFFFF00;
VARB4:=SMA(VARB2,2,1)-35.08;
CROSS(理想通,VARB4*0.9998+0.0018) AND A AND REF(PP3,1) AND HH AND MJ;