AM5:=MA(C,5); MA10:=MA(C,10); MA60:=MA(C,60); PDAY1:=BARSLAST(CROSS(MA5,MA60));{5日上穿60日均線} PDAY2:=BARSLAST(CROSS(MA10,MA60));{10日上穿60日均線} PDAY3:=BARSLAST(HIGH=HHV(HIGH,PDAY2));{形成頭部要下跌} PDAY4:=BARSLAST(CROSS(MA10,MA5));{下跌后,5日和10日均線形成死叉} PDAY5:=BARSLAST(CROSS(MA5,MA10));{五日十日再次金叉} A1:=PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5; A2:=COUNT(CROSS(MA10,MA5),PDAY2)=1; XG:A1 AND A2;
|
|