九毛八公式指标
老师请帮忙 将公式中的进场系数做个选股公式 谢谢 AA:=1090630; VAR1:=1/WINNER(CLOSE); VAR2:=MA(CLOSE,13); VAR3:=1000-ABS((CLOSE-VAR2)/VAR2*100); VAR4:=LLV(LOW,75); VAR5:=HHV(HIGH,75); VAR6:=(VAR5-VAR4)/100; VAR7:=SMA((CLOSE-VAR4)/VAR6,20,1); VAR8:=SMA((OPEN-VAR4)/VAR6,20,1); VAR9:=3*VAR7-2*SMA(VAR7,15,1); VARA:=3*VAR8-2*SMA(VAR8,15,1); VARB:=100-VARA; VARC:=IF(9001015,IF(VAR1<1000,VAR1,VAR3-10),0))*VARC; VARD:=庄家量>VAR3; VARE:=REF(LOW,1)*0.9; VARF:=LOW*0.9; VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL; VAR11:=EMA(VAR10,30); VAR12:=CLOSE-REF(CLOSE,1); VAR13:=MAX(VAR12,0); VAR14:=ABS(VAR12); VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*1000; VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*1000; VAR17:=BARSCOUNT(CLOSE); VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*1000; VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+1000; VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1); VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*1000; VAR1D:=SMA(VAR1C,4,1); VAR1E:=SMA(VAR1D,3,1); VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*1000; VAR20:=VAR18<=25 AND VAR19<-95 and var1f>20 AND VAR1B<-30 and var1e<30 var11-close>=-0.25 AND VAR15<22 and var16<28 var17>50; VAR21:=(HIGH+LOW+CLOSE)/3; VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14)); VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70)); VAR24:=IF(VAR22>=150 AND VAR22<200 and var23>=150 AND VAR23<200,10,0); VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 AND VAR23>-200,-10,VAR24); VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*1000; VAR27:=REVERSE(VAR26); VAR28:=SMA(VAR26,3,1); 散户:=SMA(VAR28,3,1)*VARC, , COLORWHITE; 庄家:=SMA(散户,3,1)*VARC; 见顶:=IF(CROSS(散户,庄家) AND 散户<30,庄家,0)*VARC, , COLORRED; 见底:=IF(CROSS(庄家,散户) AND 庄家>75,庄家,100)*VARC, , COLORGREEN; SS:=SLOPE(庄家量,3)/REF(庄家量,3)>0.1; RI:=(INDEXC/REF(INDEXC,1))-1; SI:=(CLOSE/REF(CLOSE,1))-1; CI:=REF(CLOSE,1)*(1+RI); GAIN:=CLOSE-(CI); ROUTE:=ABS(CI-REF(CLOSE,1))+ABS(CLOSE-(CI)); FH:=IF((SI)>0,1,0-1); ZM:=IF((ABS(RI)<0.008) AND (ABS(SI)<0.008) AND (ABS(RI-SI)<0.015),0.35*FH*VOL,0.5*GAIN/ROUTE*VOL); ZMF:=SUM(ZM,0) ; AA1:=(EMA(ZMF,30)-EMA(ZMF,40))/30 ; XX:=SLOPE(AA1,3)/REF(AA1,3)>0.1; VARR1:=(2*CLOSE+HIGH+LOW)/4; VARR2:=EMA(EMA(EMA(VARR1,4),4),4); J:= (VARR2-REF(VARR2,1))/REF(VARR2,1)*100; D:= MA(J,3); K:= MA(J,1); R:=K>D; QQ:=VOL>REF(VOL,5); SSS:=IF(DATE<=AA,SS,0); QQQ:=IF(DATE<=AA,QQ,0); XXX:=IF(DATE<=AA,XX,0); R AND QQQ AND SSS AND XXX; 公式模块:
VAR4:=LLV(LOW,75);
VAR5:=HHV(HIGH,75); VAR6:=(VAR5-VAR4)/100; VAR7:=SMA((CLOSE-VAR4)/VAR6,20,1); VAR8:=SMA((OPEN-VAR4)/VAR6,20,1); VAR9:=3*VAR7-2*SMA(VAR7,15,1); VARC:=IF(900101<DATE AND DATE<1090630,1,0); 进场系数:= (100-VAR9)*VARC; 庄家量:=MA(WINNER(CLOSE*0.95)*1500,5)*VARC; SS:=SLOPE(庄家量,3)/REF(庄家量,3)>0.1; AA:=9090630; VARR1:=(2*CLOSE+HIGH+LOW)/4; VARR2:=EMA(EMA(EMA(VARR1,4),4),4); J:= (VARR2-REF(VARR2,1))/REF(VARR2,1)*100; D:= MA(J,3); K:= MA(J,1); R:=K>D; RI:=(INDEXC/REF(INDEXC,1))-1; SI:=(CLOSE/REF(CLOSE,1))-1; CI:=REF(CLOSE,1)*(1+RI); GAIN:=CLOSE-(CI); ROUTE:=ABS(CI-REF(CLOSE,1))+ABS(CLOSE-(CI)); FH:=IF((SI)>0,1,0-1); ZM:=IF((ABS(RI)<0.008) AND (ABS(SI)<0.008) AND (ABS(RI-SI)<0.015),0.35*FH*vol,0.5*GAIN/ROUTE*VOL); ZMF:=SUM(ZM,0) ; AA1:=(EMA(ZMF,30)-EMA(ZMF,40))/30 ; XX:=SLOPE(AA1,3)/REF(AA1,3)>0.1; QQ:=VOL>REF(VOL,5); SSS:=IF(DATE<=AA,SS,0); QQQ:=IF(DATE<=AA,QQ,0); XXX:=IF(DATE<=AA,XX,0); R AND QQQ AND SSS AND XXX;
200>