以下是通达信波段主升选股公式(无源码的请下载附件导入)
通达信指标 波段主升选股
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; |