收集:中国股票市场经济分析网
公式原理: 李雨青均线理论认为,如果均线在一段时间内4日线上穿多条均线初步成多头排列后又再次向其他均线靠拢粘合并伴有放量(最好超过5日10日均量),其后重新抬头向上,状如海豚张嘴取食物,为该股主升浪的开始,会有一波不错的行情。前提是20日线上穿62日线,20日线趋势向上。
该公式同样适用于通达信。
注意:此公式未经优化,请使用后有心得的朋友提出优化意见。如你认为什么情况下比较有效或是失效,什么情况下行情能延续比较长等等。
请设置成主图指标。
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 absvol>=ref(absvol,1) and ref(absvol,2)>=ref(absvol,1);
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 absvol>=ref(absvol,1) and ref(absvol,2)>=ref(absvol,1);
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;
版本二(高手优化版本):
Var1:=EMA(CLOSE,12)-EMA(CLOSE,26); {MACD指标中的DIFF}
Var2:=EMA(Var1,9); {MACD中的DEA}
Var3:=Var1-Var2;
Var4:=MA(CLOSE,4);
Var5:=MA(CLOSE,20);
Var6:=MA(CLOSE,62);
Var7:=LLVBARS(Var4,4);{四天内4天线最低值到现在几天}
Var8:=LLVBARS(Var6,30); {30天内62天线最低值到现在几天}
Var9:=COUNT(Var7=1,10);{四天内第三天刚刚创新低即回调的情况在十天内有几次发生了几次}
选股:3< Var8<29 AND Var7=1 AND Var4>Var5 AND Var5>Var6 AND Var3>-0.022 AND Var9=1 AND SLOPE(Var6,5)<0.035;{首次回调又稍稍回升,以最优回归斜率0.035为参考};
版本三(创幻提前张嘴版):
MA62:=MA(CLOSE,62);
MA20:=MA(CLOSE,20);
var1:=slope(ma20,3)>0;
var2:=abs(slope(ma62,3))<0.19;
var3:=slope(ma62,3)>ref(slope(ma62,3),1);
v1:=ma62<ma20;
v2:=count(cross(ma20,ma62),10);
选股:c>ma62 and c<ref(close,1) and ref(close,1)<ref(close,2) and var1 and var2 and var3 and v1 and v2=1;