{1.均线多头排列, 5均线大于10均线,10均线大于20均线}
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
A1:=MA5 > MA10;
A2:=MA10>MA20;
A3:=A1 AND A2;{均线多头排列}
B1:=(OPEN-MA20)/MA20>-0.01 AND (OPEN-MA20)/MA20<0.01;{开盘价与20均线在+-0.01内}
B2:=MIN(OPEN,CLOSE );
B3:=(B2-MA20)/MA20>-0.01 AND (B2-MA20)/MA20<0.01;
B4:=(LOW-MA20)/MA20>-0.01 AND (LOW-MA20)/MA20<0.01;
B5:=B3 AND B4;
B6:=B1 OR B5;{股价开盘或下引线在20日线的正负1%得范围}
C1:=CLOSE>MA10;
A3 AND B6 AND C1;