{黄金坑找底-选股} rr8:=ma(close,27);rr9:=(close-rr8)/rr8*100;rra:=ma(rr9,2);rrb:=barslast(cross(-10,rra)=1);rrd:=rra<-10 and rrb>3;黄金坑:=if(rrd,1,0);typ:=(high+low+close)/3;{cci14:=if((typ-ma(typ,14))/(...
dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd0:=(dif-dea)*2;x0:=barslast(cross(dif,dea));xg:if(x0=0 and dif>ref(dif,ref(x0,1)+1)and l(l,ref(x0,1)+1),1,0);公式里的macd金叉低点对比用macd的dif值做的对比,