MA05:MA(C,5),COLORWHITE,LINETHICK1;
MA10:MA(C,10),COLORYELLOW,LINETHICK1;
MA20:MA(C,20),COLORMAGENTA,LINETHICK1;
MA60:MA(C,60),COLORGREEN,LINETHICK1;
五金叉十TS:=BARSLAST(CROSS(MA05,MA10));
五金叉廿TS:=BARSLAST(CROSS(MA05,MA20));
十金叉廿TS:=BARSLAST(CROSS(MA10,MA20))+1;
基础价托条件A:=五金叉十TS =五金叉廿TS AND 五金叉廿TS =十金叉廿TS AND 五金叉十TS-十金叉廿TS
基础价托条件B:=COUNT(CROSS(MA05,MA10),五金叉十TS+1)=1 AND COUNT(CROSS(MA05,MA20),五金叉十TS+1)=1 AND CROSS(MA10,MA20) AND MA05 MA10 AND MA10 MA20;
标准价托:=基础价托条件A AND 基础价托条件B;
变异价托成立:=CROSS(MA05,MA10) AND CROSS(MA05,MA20)AND CROSS(MA10,MA20) AND MA20 =REF(MA20,1);
标准价托成立:=标准价托 AND MA20 =REF(MA20,1);
涨停I:=(C-REF(C,1))/REF(C,1) =0.05;
存在涨停:=EXIST(涨停I,五金叉十TS+2);
金三角1:=存在涨停 AND 标准价托成立 AND (EXIST(V MA(V,120) AND C O,6) OR (COUNT(V =MA(V,120),5)=3));
金三角2:=存在涨停 AND 变异价托成立 AND (EXIST(V =REF(V,1)*1.9 AND C O,6) OR (COUNT(V =MA(V,120),5)=3));
JD:=ATAN((MA(C,60)/(REF(MA(C,60),1))-1)*100)*180/3.1416,NODRAW;
金三角:=(金三角1 OR 金三角2) AND JD
价托起点前低点L:=LLV(C,五金叉十TS+1+5);
回调点区间高点H:=FINDHIGH(H,BARSLAST(CROSS(MA05,C) AND COUNT(CROSS(MA05,C),BARSLAST(金三角)+1)=1),BARSLAST(金三角)+REF(五金叉十TS,BARSLAST(金三角)),1);
回调区间涨幅:=(回调点区间高点H-价托起点前低点L)/价托起点前低点L*100
价托成立:=金三角;
关注:=FINDHIGHBARS(H,BARSLAST(CROSS(MA05,C) AND COUNT(CROSS(MA05,C),BARSLAST(价托成立)+1)=1),BARSLAST(价托成立)+REF(五金叉十TS,BARSLAST(价托成立)),1) =2
AND BARSLAST(价托成立){九毛八公式指标网www.9m8.cn}
AND BARSLAST(价托成立)-BARSLAST(CROSS(MA05,C) AND COUNT(CROSS(MA05,C),BARSLAST(价托成立)+1)=1) =0
AND COUNT(CROSS(MA20,C),BARSLAST(价托成立))=0
AND COUNT(C FINDHIGH(H,BARSLAST(CROSS(MA05,C) AND COUNT(CROSS(MA05,C),BARSLAST(价托成立)+1)=1),BARSLAST(价托成立)+REF(五金叉十TS,BARSLAST(价托成立)),1),BARSLAST(CROSS(MA05,C) AND COUNT(CROSS(MA05,C),BARSLAST(价托成立)+1)=1))=0 AND 回调区间涨幅;
回调完毕:=关注 AND C O AND V REF(V,1) AND COUNT(C O AND V REF(V,1),BARSLAST(CROSS(关注,0.5))+1)=1;
过高:=REF(关注,1)=1 AND 关注=0 AND CROSS (C,回调点区间高点H ) AND C REF(C,1) AND C
DRAWTEXT(金三角,L,'金三角'),COLORCYAN;
DRAWICON(回调完毕,L,5),COLORMAGENTA;
DRAWICON(过高,H,38),COLORMAGENTA;