强烈关注主图之老鸭头选股指标公式

MA5:=MA(C,5);

MA10:=MA(C,10);

MA20:=MA(C,20);

MA40:=MA(C,40);

MA60:=MA(C,60);

PDAY1 := BArslAst(crOSS(MA5,MA60));

PDAY2 := BARSLAST(CROSS(MA10,MA60));

PDAY3 := BARSLAST(REF(HIGH=HHV(HIGH,PDAY2),1));

PDAY4 := BARSLAST(CROSS(MA10,MA5){ OR (REF(MA10,1)<REF(MA5,1) AND MA5=MA10)});

PDAY5 := BARSLAST(CROSS(MA5,MA10){ OR (REF(MA5,1)=REF(MA10,1) AND MA5>MA10)});

A1:= PDAY1>PDAY2 AND PDAY2>PDAY3 AND PDAY3>PDAY4 AND PDAY4>PDAY5 AND PDAY5<5;

A2:= COUNT(CROSS(MA10,MA5),PDAY2)=1;

A3:=MA5>MA60 AND MA10>MA60;

老鸭头:(A1 AND A2 AND A3) AND FILTER(A1 AND A2 AND A3 ,5);