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));{5日均线上穿60日均线}pday2 := barslast(cross(ma10,ma60));{10日均线上穿60日均线,至此形成鸭颈部}pday3 := barslast(ref(high=hhv(high,pday2),1));{形成头部,要下跌}pday4 := barslast(cross(ma10,ma5){ or (ref(ma10,1)<ref(ma5,1) and ma5=ma10)});{下跌后,5日均线和10日均线死叉}pday5 := barslast(cross(ma5,ma10){ or (ref(ma5,1)=ref(ma10,1) and ma5>ma10)});{回落不久,5日均线和10日均线形成金叉,形成部}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); 20210311
名称:上穿三线股七天操盘线:=expma(close,7);一号生命线:=expma(close,14);二号生命线:=ma(close,24);斑马线:=expma(close,12);小黑马线:=expma(close,50);xg:cross(七天操盘线,一号生命线) and cross(七天操盘线,二号生命线) and cross(七天操盘线,斑马线) and 七天操盘线-一号生命线<...