网友求助:

希望是出现笑脸同时轨道变红色为选股条件
麻烦各位老师了!
MA3:=MA(CLOSE,20);
MA4:=MA(CLOSE,40);
MA3:="引用均线.MA3";
MA4:="引用均线.MA4";
JJ:=(CLOSE+HIGH+LOW)/3;
A1:=EMA(JJ,10);
B1:=REF(A1,1);
BS:=CROSS(A1,B1);
DRAWICON(BS=1,L,1);
FILLRGN(A1,B1,A1>B1,RGB(250,250,50),A1<B1,RGB(0,50,150));
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
BBQ:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
BDQ:=MA(BBQ,6);
BB:=CROSS(MA3,BBQ) AND MA4>MA3;
DRAWICON(BB=1,BDQ,14);
FILLRGN(BBQ,BDQ,BBQ>BDQ,RGB(250,50,50),BBQ<BDQ,RGB(0,50,150));
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通1:=AA*102/100;
通2:=AA*(200-102)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:(1+7/100)*DD,CIRCLEDOT,COLORGREEN;
下:(1-7/100)*DD,CIRCLEDOT,COLORGREEN;
中:(上+下)/2,CIRCLEDOT,COLORGRAY;
PARTLINE(上,上>=REF(上,1),RGB(255,0,255)),CIRCLEDOT;
PARTLINE(中,中>=REF(中,1),RGB(0,255,255)),CIRCLEDOT;
PARTLINE(下,下>=REF(下,1),RGB(255,0,255)),CIRCLEDOT;

 

解答如下:

JJ:=(CLOSE+HIGH+LOW)/3;
A1:=EMA(JJ,10);
B1:=REF(A1,1);
BS:=CROSS(A1,B1);
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
下:=(1-7/100)*DD;
xg:下>=REF(下,1) AND bs;