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);
ND:=MAX(MAX(MA5,MA10),MA20);
NX:=MIN(MIN(MA5,MA10),MA20);
NHDX:=(ND-NX)/NX*100;
NDD:=MAX(MAX(MA5,MA10),MAX(MA20,MA60));
NXD:=MIN(MIN(MA5,MA10),MIN(MA20,MA60));
NHDD:=(NDD-NXD)/NXD*100;
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;
方向:=IF(C>O,C,L);
方向价:=IF(C>MA60 AND 方向>MA20 ,方向-MA20,0);
预备:=V>=HHV(V,5) AND NHDX<5 AND NHDD<8 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 ;
预备XG:预备 AND COUNT(预备,10)=1;