三买选股公式

DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))/ABS(EMA(CLOSE,12));
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);
MACD0:=(DIF-DEA)*2;

A01:=IF(MACD0>0,1,-1);
A02:=REF(A01,1);
A03:=A01*A02;
A04:=BARSLAST(A03<0);
A05:=A04+1;
MJ0:=(SUM(MACD0,0)-REF(SUM(MACD0,0),A05))/10;

MJ:=MJ0;

A06:=IF(A03>0,0,A03);

T:=LLVBARS(A06,120);

S1:=REF(MJ0,T+1);
T2:=REF(T,T+1)+T+2;
S2:=REF(MJ0,T2);
T3:=REF(T,T2+1)+T2+2;
S3:=REF(MJ0,T3);
T4:=REF(T,T3+1)+T3+2;

SC:HHV(DIF,T2)=HHV(DIF,T4) AND DIF<0.03 AND DIF>-0.03 ANDCOUNT(DIF
AND DEA>DIF AND MA(DIF,10)>0 AND REF(DIF,3)>=0 ANDC/MA(C,10)>0.95;

(0)

相关推荐