TT:=FILTER(BB5 1 AND EMA(X1,7) REF(EMA(X1,7),1),10);{45度上升}
MM:=WLT1 REF(WLT1,1) AND REF(WLT1,1) REF(WLT1,2) ;{均线向上转折}
GG1:=CROSS(WLT1,WLT2);{均线向上金叉}
{CCI指标}
TYP:= (HIGH + LOW + CLOSE)/3;
CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));
差值1:=ABS(REF(CCI1,1)-CCI1);
CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
差值2:=ABS(REF(CCI2,1)-CCI2);
CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
差值3:=ABS(REF(CCI3,1)-CCI3);
CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
差值4:=ABS(REF(CCI4,1)-CCI4);
CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
差值5:=ABS(REF(CCI5,1)-CCI5);
CCI:=(CCI1+CCI2+CCI3+CCI4+CCI5)/2;
WLT91:=HHV(CCI,13);{CCI的13日内最高}
WLT92:=LLV(CCI,13) -100;{CCI的13日内最低值小于-100}
WLT95:=COUNT(WLT92,13) {CCI的13日内最低值小于-100的情况不少于3次}
WLT93:=CCI WLT91;{CCI大于前13日内最高}
WLT96:=CROSS(CCI,100);{CCI上穿100}
TJ91:=WLT95 AND WLT96;
JLP:=FILTER(TJ91,5);{CCI的13日内完成探底后走强}
超买:=MA(C,10)*IF(CAPITAL=0,1.04,1.1);
超卖:=MA(C,10)*IF(CAPITAL=0,0.95,0.9);
TEND:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42);
DD:=TEND REF(TEND,1) AND REF(TEND,1) REF(TEND,2);{趋势线向上转折}
GG2:=CROSS(WLT1,TEND);{均线与趋势线向上金叉}
HRY1:=LLV(LOW,55);
HRY2:=HHV(HIGH,21);
GG3:=C HRY2*0.8 AND C HRY33;{股价高于牛熊线,低于21日内最高价的80%}
JJ1:=C HRY1*1.62;
TJ1:=GG1;{均线向上金叉}
TJ2:=GG2 AND JJ1;
TJ3:=GG1 AND GG3 ;
XG:=TJ1 OR TJ3 ;
XG2:=C HRY2*0.86 OR LB
XG1:=XG AND XG2 AND C HRY33 AND JLP;
XG3:=XG AND C HHV(HIGH,250)*0.3;
XG11:=XG1 OR XG3;
V1:=CLOSE/REF(CLOSE,3) =1.1;
V2:=BACKSET(V1,2);
XG22:=V2 AND COUNT(V2,2)=1;
W18:XG11 OR XG22;