{大智慧版本} macd2:=2*("macd.diff"-"macd.dea");stickline(macd2>=0 and macd2>ref(macd2,1),0,macd2,1.2,0),color0000a5;stickline(macd2>=0 and macd2(macd2,1),0,macd2,1.2,0),coloraa7800;stickline(macd2(macd2,1),0,macd2,1.2,0),color00a500;stickline(macd2<0 and macd2>ref(macd2,1)... 20210311
a1:=barslast(ref(cross("macd.diff","macd.dea"),1));b1:=ref(c,a1+1)>c and ref("macd.diff",a1+1)("macd.diff","macd.dea");macd底背:if(b1>0,10,0);起个名字,保存成条件选股公式就可以了。(如果对您有帮助请采纳答案谢谢)
通达信指标如下: ku1:=if(high=hhv(high,3),1,0);kd1:=if(low=llv(low,3),1,0);ul:=if(ref(ku1,2)=1 and ref(ku1,1)=0 and ku1=0,ref(high,2),ref(high,...dp:=barslast(lv);...