N:=60;
DIF:=EMA(CLOSE,4)-EMA(CLOSE,43);
DEA:=EMA(DIF,6);
A:=REF(L,1)=LLV(L,N);
A1:=C>=O AND O>=L;
A2:=MACD>0;
A3:=MACD<=0 AND MACD>REF(MACD,1);
A4:=A2 OR A3;
XG1:=A AND A1 AND A4;
B:=L=LLV(L,N);
B1:=C>L AND C>REF(C,1);
B2:=C>O AND O>=L;
B3:=B1 OR B2;
B4:=A4;
XG2:=B AND B3 AND B4;
XG3:XG1 OR XG2; |