MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
YDAY1:=BARSLAST(CROSS(MA5,MA10));
YDAY2:=BARSLAST(CROSS(MA5,MA20));
YDAY3:=BARSLAST(CROSS(MA10,MA20));
YJZZ:=(YDAY1=YDAY2 AND YDAY2=YDAY3 OR (YDAY1-YDAY2=1 OR YDAY2-YDAY3=1))
AND REF(MA5,2)<REF(MA10,2) AND REF(MA10,2)<REF(MA20,2) AND
MA5>MA10 AND MA10>MA20 ;
YJZZ1:=YDAY1=YDAY2 AND YDAY2=YDAY3 AND MA5>MA10 AND MA10>MA20 AND YDAY1=1;
月金蜘蛛:YJZZ OR YJZZ1;
九毛八公式解读
MA5赋值:收盘价的5日简单移动平均 MA10赋值:收盘价的10日简单移动平均 MA20赋值:收盘价的20日简单移动平均 YDAY1赋值:上次MA5上穿MA10距今天数 YDAY2赋值:上次MA5上穿MA20距今天数 YDAY3赋值:上次MA10上穿MA20距今天数 YJZZ赋值:(YDAY1=YDAY2 AND YDAY2=YDAY3 OR (YDAY1-YDAY2=1 OR YDAY2-YDAY3=1)) AND 2日前的MA5<2日前的MA10 AND 2日前的MA10<2日前的MA20 AND MA5>MA10 AND MA10>MA20 YJZZ1赋值:YDAY1=YDAY2 AND YDAY2=YDAY3 AND MA5>MA10 AND MA10>MA20 AND YDAY1=1 输出月金蜘蛛:YJZZ OR YJZZ1