MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA60:=MA(C,60);
MA250:=MA(C,250);
MVH:=MA(V,3);
MV5:=MA(V,5);
MV10:=MA(V,10);
MV20:=MA(V,20);
MV60:=MA(V,60);
MV250:=MA(V,250);
DIF:=EMA(CLOSE,6)-EMA(CLOSE,20);
DEA:=EMA(DIF,6);
二十:=MA(C,20)>=HHV(MA(C,20),20) AND C>MA(C,60) AND MA(C,60)>REF(MA(C,60),1) AND
MA(C,60)>=HHV(MA(C,60),10),COLORRED;
二十选:=IF(二十=1,0.8,0),COLORRED;
一十:=MA(C,10)>=HHV(MA(C,10),20) AND C>MA(C,60) AND MA(C,60)>REF(MA(C,60),1) AND
MA(C,60)>=HHV(MA(C,60),10),COLORYELLOW;
一十选:=IF(一十=1,0.6,0),COLORYELLOW;
XD:=MA5>MA10 AND MA10>MA20;
DD:=XD AND MA20>MA60;
JD10:=ATAN((MA(C,10)/REF(MA(C,10),1)-1)*100)*180/3.1416;
JD20:=ATAN((MA(C,20)/REF(MA(C,20),1)-1)*100)*180/3.1416;
JD1045:=IF(JD10>45,1.2,0),COLORWHITE;
JD2030:=IF(JD20>30,1.4,0),COLORFF00FF;
五日最高:=V>=HHV(V,5);
十日最高:=V>=HHV(V,10);
二十日最高:=V>=HHV(V,20);
六十日最高:=V>=HHV(V,60);
年内最高:=V>=HHV(V,250);
方向:=IF(C>O,C,L);
方向价:=IF(C>MA60 AND 方向>MA20 ,方向-MA20,0);
加速:=V>=HHV(V,5) AND JD1045 AND JD2030 AND XD=1 AND DD=1 AND 一十=1 AND
二十=1 AND C>MA60 AND 方向价>REF(方向价,1) AND DEA>0 AND DIF>REF(DIF,1) AND DIF>0
AND 十日最高 AND 二十日最高;
加速XG:加速 AND COUNT(加速,10)=1;