源码如下:
以下四个条件满足一个就可以买入,测试3天获利6%,成功率100%;就是信号太少
每天5点:(CLOSE-DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLOSE,VOL/SUM(VOL,13))*100<=-28 AND (CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34))*100<=-19
AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR
(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND
(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 AND IF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)
AND REF(SMA((CLOSE-LLV(LOW,8))/
(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),2)
AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND
((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3) ;
E4:=(C/MA(C,48))<0.75;
E5:=(C/MA(C,70))<0.70;
E6:=E4 AND E5;
E7:=V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3);
E8:=E6 AND ((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND E7;
买了涨:Filter(E8,3);
VAR1G:=(((CLOSE / MA(CLOSE,40)) * 100) < 78);
VAR2G:=(((CLOSE / MA(CLOSE,60)) * 100) < 74);
VAR3G:=(HIGH > (LOW * 1.051));
VAR4G:=(VAR3G AND (COUNT(VAR3G,5) > 1));
AA:=IF((VAR4G AND (VAR1G OR VAR2G)),2,0);
BB:=c/ref(c,25)<=1.1;
CC:=(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15;
V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
操盘线:=SMA(V3,2,1);
V5:=SMA(操盘线,2,1);
抄底:=IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<REF(操盘线,2) AND 操盘线<23 ,1.5,0);
买就赢利:=BB and AA and CC and 抄底;
E9:=(C/MA(C,48))<0.75;
E10:=(C/MA(C,70))<0.70;
E11:=E9 AND E10;
E12:=V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3);
E13:=E11 AND ((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND E12;
xg:=Filter(E13,3);
Var1:=DMA(CLOSE,VOL/SUM(VOL,34));
Var2:=DMA(CLOSE,VOL/SUM(VOL,13));
Var3:=(CLOSE-Var1)/Var1*100;
Var4:=(CLOSE-Var2)/Var2*100;
XG2:=Var4<=-28 AND Var3<=-19;
百分百:=(买就赢利 OR XG2 ) AND XG;
EMA5:=EMA(c,5);
EMA8:=EMA(c,8);
EMA13:=EMA(c,13);
EMA21:=EMA(c,21);
Var22:=1;
VarA0:=(EMA5-EMA13)*100*Var22/Var22;
VarB0:=(EMA8-EMA21)*100*Var22/Var22;
DIFFx:=EMA((3*VarA0+1*VarB0)/4,3);
DEAx:=EMA(DIFFx,5);
MACDx:=(DIFFx-DEAx)*2;
MACD趋势线:=MACDx;
持股A:=IF(MACDx>0 AND c>o,1,0);
持股B:=IF(MACDx<=0 AND c>o,1,0);
持币A:=IF(MACDx>0 AND c<=o,1,0);
持币B:=IF(MACDx<=0 AND c<=o,1,0);
变盘点A:=IF(COUNT(CROSS(DIFFx,REF(DIFFx,1)) OR CROSS(DEAx,REF(DEAx,1)) OR CROSS(MACDx,REF(MACDx,1)),3) AND c>o,1,0);
变盘点B:=IF(COUNT(CROSS(REF(DIFFx,1),DIFFx) OR CROSS(REF(DEAx,1),DEAx) OR CROSS(REF(MACDx,1),MACDx),3) AND c<=o,1,0);
XGa:=ref(持币B=1,1) and 持股B;
精彩底部:COUNT(百分百=1,3) and XGa;
Var21:=(CLOSE-REF(CLOSE,24))/REF(CLOSE,24)*100;
百年一遇:CROSS(Var21,MA(Var21,12)) AND OPEN<CLOSE AND OPEN/REF(CLOSE,1)<=0.97 AND CLOSE/OPEN>=1.05 AND Var21<-25;
|
|
|
|
|
|