海豚張嘴(主圖)
ma4:ma(close,4),colorFFFFFF;
ma10:ma(close,10),coloryellow; ma20:ma(close,20),colorff00ff; ma62:ma(close,62),colorffff00; var1:=slope(ma20,3)>0; var2:=abs(slope(ma62,3))<0.19; var3:=slope(ma62,3)>ref(slope(ma62,3),1); var4:=ref(ma4,4)>ma20; var5:=ref(ma20<ma62,15)and ma20>=ma62; absvol:=(ma4-ma20); var6:=slope(ma4,2)>=ref(slope(ma4,2),1) and con1:=var1 and var2 and var3 and var4 and var5 and var6 ; var41:=ref(ma4>ma20,3); absvol1:=abs(ma4-ma10); var61:=ref(absvol1,2)>ref(absvol1,1) and absvol1>ref(absvol1,1) and slope(ma4,2)<0 and slope(ma4,2)>ref(slope(ma4,2),1); con2:=var1 and var2 and var3 and var41 and var5 and var61 ; con:=con1 or con2; drawtext(not(ref(con,4))and not(ref(con,3))and not(ref(con,1))and not(ref(con,2)) and con,low*0.98,'海豚張嘴');
海豚張嘴(選股公式也是副圖)
ma4:=ma(close,4); ma10:=ma(close,10); ma20:=ma(close,20); ma62:=ma(close,62); var1:=slope(ma20,3)>0; var2:=abs(slope(ma62,3))<0.19; var3:=slope(ma62,3)>ref(slope(ma62,3),1); var4:=ref(ma4,4)>ma20; var5:=ref(ma20<ma62,15)and ma20>=ma62; absvol:=(ma4-ma20); var6:=slope(ma4,2)>=ref(slope(ma4,2),1) and var41:=ref(ma4>ma20,3); absvol1:=abs(ma4-ma10); var61:=ref(absvol1,2)>ref(absvol1,1) and absvol1>ref(absvol1,1) and slope(ma4,2)<0 and slope(ma4,2)>ref(slope(ma4,2),1); con:=var1 and var2 and var3 and (var41 or var4) and var5 and (var6 or var61) ; 海豚張嘴:not(ref(con,4))and not(ref(con,3))and not(ref(con,1))and not(ref(con,2)) and con; |
|