A1:=ABS(L-LLV(L,100))/L<0.1;
A2:=V>=1.9*REF(V,1);
A3:=(C-REF(C,1))/REF(C,1);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
DOWN:=OPEN>CLOSE;
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
GJTJ5:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ6:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ7:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ8:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
A:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
B1:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
A5:=BARSLAST(CROSS(50,GJTJ5))<3 AND BARSLAST(CROSS(GJTJ5,50))<3;
B2:=BARSLAST(CROSS(GJTJ8,GJTJ5))<2 AND GJTJ5>GJTJ8;
N:=15;
ZT:=C/REF(C,1)>=1.091 AND C=H;
X1:=COUNT(DOWN,5)=4;
X2:=(HHV(C,20)-LLV(C,1))/ LLV(C,1)/50*100;
XG : C>O AND A1 AND A2 AND A3>0.05;
{ 爱约股_通达信股票指标公式}
翻红:RANGE(REF(MACD,2),REF(MACD,1),REF(MACD,3))
AND REF(MACD,1)<MACD
AND RANGE(REF(MACD,1),0,0.15) AND MACD>0.05;
X3:=(MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667 AND (HIGH-MAX(CLOSE,OPEN))/(HIGH-LOW)<0.333 AND (C-O)<0.1;
X4:=V<MA(V,135);
A6:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
B:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
E:=GJTJ1>60 AND GJTJ4>70;
ENTERLONG:A6 AND B AND E;
A4:=BARSLAST(CROSS(50,GJTJ5))<3 AND BARSLAST(CROSS(GJTJ5,50))<3;
B4:=BARSLAST(CROSS(GJTJ8,GJTJ5))<2 AND GJTJ5>GJTJ8;
ENTERLONG1:A4 AND B1;
COUNT(ZT,N)>=1;
选:X1 AND X2 AND X3 AND X4;