%>
MA5:MA(CLOSE,5), COLOR0000FF;
MA10:MA(CLOSE,10) ,COLOR00FF00;
N:=3;
VAR11:=MA(CLOSE,N);
VAR12:=MA(CLOSE,2*N);
VAR13:=MA(CLOSE,3*N);
VAR14:=MA(CLOSE,4*N);
{股票教程网-股票公式网站 www.gwgz.net}
VAR15:=MA((VAR11+VAR12+VAR13+VAR14)/4,5);
上轨:VAR15*1.08,COLORYELLOW,LINETHICK2;
下轨:VAR15*0.92,COLORYELLOW,LINETHICK2;
中上:VAR15*1.05,COLORGREEN,LINETHICK2;
中下:VAR15*0.95,COLORGREEN,LINETHICK2;
一脸笑:=CROSS(c,中上) and c/ref(c,1)>1.085;
又笑脸:=CROSS(c,上轨) and c/ref(c,1)>1.085;;
DRAWICON(一脸笑,l*0.97,1),ALIGN1;
DRAWICON(又笑脸,l*0.91,1),ALIGN1;