均線拐點(diǎn)

{N:1,10,3;}
MA5:MA(C,5);
MA10:=MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30);
MA60:MA(C,60);
MA120:=MA(C,120);
短線多頭:=MA5>MA10 AND MA10>MA20 AND MA20>MA30;
中線多頭:=MA30>MA120 AND MA60>MA120;
均線粘合:=(HHV(MA5,HHV(MA10,MA20))/LLV(MA5,LLV(MA10,MA20))-1)*100<=N;
均線拐點(diǎn):=COUNT(短線多頭,10) AND COUNT(MA5<REF(MA5,1),3) AND MA5>REF(MA5,1);
XG:=中線多頭 AND 均線粘合 AND 均線拐點(diǎn) AND C>REF(C,1);
選股:=XG AND NOT(REF(XG,1));
均線粘合2:=(MAX(MA5,MAX(MA10,MA20))/MIN(MA5,MIN(MA10,MA20))-1)*100<=N;
XG2:=中線多頭 AND 均線粘合2 AND 均線拐點(diǎn) AND C>REF(C,1);
選股2:=XG2 AND NOT(REF(XG2,1)),COLORWHITE,linethick2;
{以下設(shè)置主圖顯示方式:}
STICKLINE(選股,h,l,0,1),COLORYELLOW,linethick2;
STICKLINE(選股,o,c,4,1),COLORYELLOW,linethick2;
DRAWTEXT(選股,L-0.1, '買'),COLORYELLOW;
STICKLINE(選股2,h,l,0,1),COLORWHITE,linethick2;
STICKLINE(選股2,o,c,4,1),COLORWHITE,linethick2;