AX:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);
AXMA:=MA(AX,5);
ANA:=PLOYLINE(CROSS(AX,AXMA),AXMA);
ANB:=PLOYLINE(CROSS(AXMA,AX),AXMA);
MD:=CROSS(AX,AXMA) AND ((ANB>REF(ANB,1) AND ANB>ANA AND AXMA<=0)
OR ((AXMA<=-45 OR CROSS(AXMA,-45)) AND (ANB<-60
OR LLV("KDJ.J",3)<=-49) AND ANB>0));
AQZ:=COUNT(CROSS(AX,AXMA),ANA<REF(ANA,5) AND ANB>REF(ANB,5));
买:MD AND AQZ AND C<O;
九毛八公式解读
AX赋值:((收盘价的5日简单移动平均/1日前的收盘价的5日简单移动平均-1)*100的反正切*180/3.14115926) AXMA赋值:AX的5日简单移动平均 ANA赋值:当满足条件AX上穿AXMA时以AXMA位置为顶点画折线连接 ANB赋值:当满足条件AXMA上穿AX时以AXMA位置为顶点画折线连接 MD赋值:AX上穿AXMA AND ((ANB>1日前的ANB AND ANB>ANA AND AXMA<=0)OR ((AXMA<=-45 OR AXMA上穿-45) AND (ANB<-60OR 3日内"KDJ的J"的最低值<=-49) AND ANB>0)) AQZ赋值:统计ANA<5日前的ANAANDANB>5日前的ANB日中满足AX上穿AXMA的天数 输出买:MD AND AQZ AND 收阴线