请高手将这个通达信的指标改成选股公式。谢谢!
N 2 90 9
M 2 90 3
p 2 90 10
KK:=LLV(LOW,N);
EE:=HHV(HIGH,N);
YY:=EMA((CLOSE-KK)/(EE-KK)*100,M);
MM:=EMA(YY,M);
AA:MA(MM,M);
AZ:18;
BZ:50;
CZ:88;
CC:=(CLOSE/AA);
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
MAAA:=((MA1-AA)/AA)/3;
TMP:=MA1-MAAA*MA1;
J:IF(MM<=AA,AA,DRAWNULL),LINETHICK3,COLORCYAN;
JJ:=IF(MM<=AA,1,2);
A:=MM,LINETHICK2,COLORYELLOW;
X:=IF(MM<=AA,MM,DRAWNULL),LINETHICK2,COLORGREEN;
UP1:=JJ=2 AND EXIST(CROSS(AA,AZ),P);
DOWN1:=CROSS(AZ,AA);
XG:TFILTER(UP1=1,DOWN1=1,1);
STICKLINE(XG=1,AZ,CZ,2,0),COLORYELLOW;
PS:最顶上的变量P的意思是当J消失时,允许往前几天内存在指标跌破AZ然后又涨起来,选股时用"XG=1"来选,图中黄色柱橡蔽子是符合握渗你选股条件时点梁皮州。