**突破预警公式:ma8:=ma(close,8);ma50:=ma(close,50);pl1:=(((close - ma50) / ma50)<0.008);pl2:=(((close - ma8) / ma8)<0.058);偏离率:=(((pl1 = 1) and (pl2 = 1)) * 0.2);**突破:((((偏离率 = 0) and (ref(偏离率,1) = 0.2)) and (ref((count((偏离率 = 0.2),10) = 10),1) = 1)) * 1);黑马跑道预警公式:跑道aa:=ma(c,2);跑道bb:=ma(c,9);跑道af:=cross(跑道aa,跑道bb);跑道af1:=cross(跑道bb,跑道aa);上穿天数:=barslast(跑道af);周期涨幅:=(hhv(c,上穿天数+8)-llv(c,上穿天数+8))/llv(c,上穿天数+8);黑码跑道:周期涨幅<=0.15 and 上穿天数>=6 and count(跑道af1,上穿天数)<=0;附图上乱麻麻的帮你改了一下,清爽多了试试吧:ma8:=ma(close,8);ma50:=ma(close,50);pl1:=(((close - ma50) / ma50)<0.008);pl2:=(((close - ma8) / ma8)<0.058);偏离率:=(((pl1 = 1) and (pl2 = 1)) * 0.2);**突破:((((偏离率 = 0) and (ref(偏离率,1) = 0.2)) and (ref((count((偏离率 = 0.2),10) = 10),1) = 1)) * 1);drawtext(**突破,0.82,'!**突破'),colorred;stickline(**突破,0.85,0.88,0.1,0),colorred,linethick3;{加速跑道}跑道aa:=ma(c,2);跑道bb:=ma(c,9);跑道af:=cross(跑道aa,跑道bb);跑道af1:=cross(跑道bb,跑道aa);上穿天数:=barslast(跑道af);周期涨幅:=(hhv(c,上穿天数+8)-llv(c,上穿天数+8))/llv(c,上穿天数+8);黑码跑道:周期涨幅<=0.15 and 上穿天数>=6 and count(跑道af1,上穿天数)<=0;stickline(黑码跑道,0.65,0.68,0.1,0),colorred,linethick3;drawtext(黑码跑道 and count(黑码跑道,2)=1,0.62,'!黑码跑道'),colorred;0.5;0.9; 20210311