[PEL] 复制代码
input:p(26,20,100,8),s(12,5,40,4),m(9,2,60,6);
DIFF :EMA(CLOSE,S) - EMA(CLOSE,P);
DEA :EMA(DIFF,M);
MACD1 :2*(DIFF-DEA), COLORSTICK;
ma250:ma(c,250);
ma250_1:"ma.ma1#MIN1"(250);
ma250_3:"ma.ma1#MIN3"(250);
ma250_5:"ma.ma1#MIN5"(250);
ma250_10:"ma.ma1#MIN10"(250);
ma250_15:"ma.ma1#MIN15"(250);
ma250_30:"ma.ma1#MIN30"(250);
cd1:l>ma250 AND c<min(min(ma250_1,ma250_3),min(min(ma250_5,ma250_10),min(ma250_15,ma250_30))) ;
cd2:dea>0 and diff>0;
cd3:macd1<0 and ref(macd1,1)<0 and abs(macd1)>abs(ref(macd1,1));
预警条件:cd1 and cd2 and cd3; |