VAR1:=(2*CLOSE+HIGH+LOW+OPEN)/5;
A1:=(EMA(VAR1,3)+EMA(VAR1,6)+EMA(VAR1,12)+EMA(VAR1,24))/4;
A2:=EMA(A1,2);
A3:=EMA(A2,2);
A4:=EMA(A3,2);
A5:=EMA(A4,2);
A6:=EMA(A5,2);
A7:=EMA(A6,2);
{*100是为了确保小数点后面四舍五入后相等}
十字星:=(Abs(C-O)/(H-L)<0.11 OR C=O) AND C>A1 AND L<A1;
数字相近1:=INTPART(A1*100)=INTPART(A2*100) ;
数字相近2:=INTPART(A2*100)=INTPART(A3*100) ;
数字相近3:=INTPART(A3*100)=INTPART(A4*100) ;
数字相近4:=INTPART(A4*100)=INTPART(A5*100) ;
数字相近5:=INTPART(A5*100)=INTPART(A6*100) ;
数字相近6:=INTPART(A6*100)=INTPART(A7*100) ;
买进:十字星 AND 数字相近1 AND 数字相近2
AND 数字相近3 AND 数字相近4 AND 数字相近5 AND 数字相近6;