diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);a1:=barslast(ref(cross(diff,dea),1));b1:=ref(c,a1+1)>c and ref(diff,a1...stickline(底背离,0,0.05,8,0),colorred。 20210311
typ:=(high+low+close)/3;cci:=(typ-ma(typ,14))/(0.015***edev(typ,14));ref(cci<-100,1) and cci>=-100;选股周期用60分,别用日线,通达信公式,通常提示分钟数据不全。这时要先把a股所有股票的1分钟和5分钟数据配合相应起止日期下载完,选股才能正确。
diff:=ema(close,12) - ema(close,26);dea:=ema(diff,9);a1:=barslast(ref(cross(diff,dea),1));b1:=ref(c,a1+1)>c and ref(diff,a1+1)0,5);这个是底背离公式,你只要在选股周期上选择5分钟图就行了
根据题意,选股公式如下:dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;均macd:=ema(macd,5);a1:=barslast(ref(cross(macd,均macd),1));金叉底背:=ref(close,a1+1)>close and macd>ref(macd,a1+1) and c...