AA:=MA((2*C+H+L)/4,5);
B1:=AA*1.02;
B2:=AA*0.98;
CC:=Abs((2*C+H+L)/4-MA(C,20))/MA(C,20);
DD:=DMA(C,CC);
B3:=1.07*DD;
BB:=(B3-REF(B3,5))/REF(B3,5)*1000;
上穿:=B1>B3,COLORGREEN;
连升:=COUNT(BB>=REF(BB,1),2)>=2,COLORGREEN;
量能:=MA(V,10)>=MA(V,55),COLORGREEN;
阳线:=COUNT(C>O,7)>=4,COLORGREEN;
GZ:=上穿 AND 连升 AND 量能 AND 阳线;
关注:=IF(GZ,150,0),COLORYELLOW;
三天关注:=COUNT(关注=150,3)>=1,COLORGREEN;
通道二三:=B1>B3 AND B3>=REF(B3,1),COLORGREEN;
最大涨幅:=HHV(C,20)/LLV(C,20)< 1.5,COLORGREEN;
多头排列:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,20)>=REF(MA(C,20),1) AND MA(C,55)>=REF(MA(C,55),1),COLORGREEN;
JR5:=L<=B2*1.006;
昨日股价:=REF(MA(C,5),1)>=REF(MA(C,5),2) OR REF(C,1)>=REF(MA(C,5),1),COLORGREEN;
JR7:=REF(B1,1)>REF(B3,1);
XG:三天关注 AND 通道二三 AND 最大涨幅 AND 多头排列 AND JR5 AND 昨日股价 AND JR7;