N:=35;
天衣:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,4)*25;
无逢:=SMA(天衣,2,1);
买点:=CROSS(天衣,无逢)AND 无逢<N;
Q_1:=C-REF(C,1);
Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);
x1:=LLV(Q_2,2)=LLV(Q_2,7) ;
x2:=COUNT(Q_2<0,2);
x3:=CROSS(Q_2,MA(Q_2,2));
买进:=x1 AND x2 AND x3;
xg:买点 AND 买进;