WJ:=(HIGH+LOW+CLOSE)/3;
V1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE)); V2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ); V3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW); V4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN)); V5:=VOL/IF(HIGH=LOW,4,HIGH-LOW); V6:=(V1*V5); V7:=(V2*V5); V8:=(V3*V5); V9:=(V4*V5); RT:=(V9+V8)/1000; TRE:=-(V6+V7)/1000; RRT:=((V9+V8)-(V6+V7))/1000; TTR:=SUM(RRT,3); DG1:=(CROSS(TTR,0)); VOL選股:=TTR>0 OR DG1; MTM:=CLOSE-REF(CLOSE,12); MAMTM:=MA(MTM,6); MTM大于:=MTM>MAMTM; MTM上穿:= CROSS(MTM,MAMTM); MTM選股:=MTM大于 OR MTM上穿; RSV1:=-(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100; LWR1:=SMA(RSV1,3,1); LWR2:=SMA(LWR1,3,1); LWR大于:=LWR1>LWR2; LWR上穿:= CROSS(LWR1,LWR2); LWR選股:= LWR大于 OR LWR上穿; BBI:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4; BBI大于:=CLOSE>BBI; BBI上穿:=CROSS(CLOSE,BBI); BBI選股:= BBI大于 OR BBI上穿; TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),3); HD :=HIGH-REF(HIGH,1); LD :=REF(LOW,1)-LOW; DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),3); DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),3); PDI:=DMP*100/TR; MDI:=DMM*100/TR; DMI大于:=PDI>MDI; DMI上穿:=CROSS(PDI,MDI); DMI選股:= DMI大于 OR DMI上穿; LC:=REF(CLOSE,1); RSI1:=(SMA(MAX(CLOSE-LC,0),3,1))/(SMA(ABS(CLOSE-LC),3,1))*100; RSI2:=(SMA(MAX(CLOSE-LC,0),12,1))/(SMA(ABS(CLOSE-LC),12,1))*100; RSI大于:=RSI1>RSI2; RSI上穿:= CROSS(RSI1,RSI2); RSI選股:= RSI大于 OR RSI上穿; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); KDJ大于:=K>D; KDJ上穿:=CROSS(K,D); KDJ選股:= KDJ大于 OR KDJ上穿; DIFF:=EMA(CLOSE,6)-EMA(CLOSE,13); DEA:=EMA(DIFF,5); MCDA大于:= DIFF>DEA; MCDA上穿:= CROSS(DIFF,DEA); MCDA選股:= MCDA大于 OR MCDA上穿; MA1:=MA(C,13)-MA(C,34)+MA(C,5); MA2:=MA(C,13)-MA(C,34)+MA(C,8); MA大于:= MA1>MA2; MA上穿:= CROSS(MA1,MA2); MA選股:= MA大于 OR MA上穿; 最后選股:VOL選股 AND MTM選股 AND LWR選股 AND BBI選股 AND DMI選股 AND RSI選股 AND KDJ選股 AND MCDA選股 AND MA選股; 原文鏈接由擇股網(wǎng)(WWW.Zegu.CN)提供 擇股網(wǎng)下載:http://www./html/GS/tong-da-xin/zonghe-optimize-dejiuquanzhibiaoxuangugongshi-zhideyongyou-yuanma.html
|
|