P:=(HIGH+LOW+CLOSE)/3;P0:=(P-MA(P,27))/(0.015*AVEDEV(P,27));P1:=SMA(P0,7,1);
R:=(((CLOSE - LLV(LOW,38)) / (HHV(HIGH,38) - LLV(LOW,38))) * 100);
R0:=(SMA(SMA(SMA(R,6,1),5,1),3,1)-50)*2;
主升开始:crOSS(P0,P1)AND REF(P0,1)<100 AND BETWEEN(R0,-60,75) AND (H-L)/L*100 <4.5 AND(C-REF(C,1))/REF(C,1)*100<2.2 AND "wr.WR1">10 AND PPART(5)*100 > 82 AND "WR.WR1">10 AND CAPITAL<100000000 AND "macd.DIF">"MacD.DEA" AND COUNT(EMA(C,500)>REF(EMA(C,500),1),5)>3 AND VR >80 AND vr < 250 AND cci <200 AND COUNT(EMA(C,60)>REF(EMA(C,60),1),5)>3 AND COUNT(EMA(C,120)>REF(EMA(C,120),1),5)>3 AND COUNT(EMA(C,250)>REF(EMA(C,250),1),5)>3 AND
"kdj.K#DAY">"kdJ.D#DAY" AND "MACD.DIF#DAY">"MACD.DEA#DAY"
AND "rsi.RSI1#DAY">50 AND "KDJ.K#WEEK">"KDJ.D#WEEK"
AND "MACD.DIF#WEEK">"MACD.DEA#WEEK" AND "RSI.RSI1#WEEK">40
AND "KDJ.K#MONTH">"KDJ.D#MONTH" AND "MACD.DIF#MONTH">"MACD.DEA#MONTH"
AND "RSI.RSI1#MONTH">30;