李雨青整合版源码
-
相关简介:把原码直接复在MACD里就OK啦; 原码如下: DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG); DEA: EMA(DIFF,M); MACD : 2*(DIFF-DEA); Zero : 0; MACD骑墙进:DIFF=0 AND CROSS(DIFF,dea) AND V/MA(V,5)1.5,colormagenta; MACD骑墙出:DIFF0 AND CROSS(dea,DIFF) AND V/MA(V,5)1.5,colorcyan; 底背离进:R
-
文章来源:股海网作者:股海网发布时间:2014-11-27浏览次数:
把原码直接复在MACD里就OK啦;
原码如下:
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA);
Zero : 0;
MACD骑墙进:DIFF>=0 AND CROSS(DIFF,dea) AND V/MA(V,5)>1.5,colormagenta;
MACD骑墙出:DIFF<0 AND CROSS(dea,DIFF) AND V/MA(V,5)<1.5,colorcyan;
底背离进:REF(CLOSE,BARSLAST(REF(CROSS(DIFF,DEA),1) AND MACD<0)+1)>CLOSE AND DIFF>REF(DIFF,BARSLAST(REF(CROSS(DIFF,DEA),1) AND MACD<0)+1) AND CROSS (DIFF,DEA) AND MACD>0,colormagenta;
底背离出:REF(CLOSE,BARSLAST(REF(CROSS(DEA,DIFF),1) AND MACD>0)+1)>CLOSE AND DIFF>REF(DIFF,BARSLAST(REF(CROSS(DEA,DIFF),1) AND MACD>0)+1) AND CROSS (DEA,DIFF) AND MACD<0,colorcyan;
ma4:=MA(C,4);
mA5:=MA(C,5);
mA10:=MA(C,10);
mA20:=MA(C,20);
MA60:=MA(C,60);
mA62:=MA(C,62);
小金角进:COUNT(REF(mA10<mA20,3),16)>=15 AND COUNT(mA5>mA10,3)>2 AND CROSS(mA10,mA20)AND mA20>REF(mA20,1),colormagenta;
小金角出:COUNT(REF(mA10>mA20,3),16)<15 AND COUNT(mA5<mA10,3)<2 AND CROSS(mA20,mA10)AND mA20<REF(mA20,1),colorcyan;
大金角进:CROSS(mA20,mA62)AND mA62>REF(mA62,1) AND COUNT(V>REF(V,1),3)>2,colormagenta;
大金角出:CROSS(mA62,mA20)AND mA62<REF(mA62,1) AND COUNT(V>REF(V,1),3)<2,colorcyan;
小金边进:REF(COUNT(CROSS(ma10,ma20),15)=1 AND C<REF(CLOSE,1) AND REF(CLOSE,1)<REF(CLOSE,2) AND ma10>C AND C>ma20 AND SLOPE(MA20,4)>0 AND SLOPE(MA10,3)>0,2)=1 AND ma4>REF(ma4,1) AND V>REF(V,1),colormagenta;
小金边出:REF(COUNT(CROSS(ma20,ma10),15)=1 AND C>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND ma10<C AND C<ma20 AND SLOPE(MA20,4)<0 AND SLOPE(MA10,3)<0,2)=1 AND ma4<REF(ma4,1) AND V<REF(V,1),colorcyan;
大金边进:COUNT(CROSS(mA20,mA62)AND mA62>REF(mA62,1) AND COUNT(V>REF(V,1),3)>2,30)>0 AND C<mA20 AND C>mA62 AND mA62>REF(mA62,1),colormagenta;
大金边出:COUNT(CROSS(mA62,mA20)AND mA62<REF(mA62,1) AND COUNT(V<REF(V,1),3)<2,30)>0 AND C>mA20 AND C<mA62 AND mA62<REF(mA62,1),colorcyan;
半山水库进:CROSS(ma20,ma60) AND ma60>REF(ma60,1),colormagenta;
半山水库出:CROSS(ma60,ma20) AND ma60<REF(ma60,1),colorcyan;
海豚张嘴进:CROSS(mA20,mA62)AND mA20>REF(mA20,1)AND COUNT(mA4/mA20>1.05,10)>5 AND ABS(mA4/mA20-1)<0.02 AND V/MA(V,5)>1.5,colormagenta;
海豚张嘴出:CROSS(mA62,mA20)AND mA20<REF(mA20,1)AND COUNT(mA4/mA20<1.05,10)>5 AND ABS(mA4/mA20-1)>0.02 AND V/MA(V,5)<1.5,colorcyan;
金足底进:(MA4<MA20 AND MA4>=REF(MA4,1) AND C>MA4 AND MA10>REF(MA10,1) AND MA20>=REF(MA20,1) AND V>MA(V,5)),colormagenta;股