n:=7;tr1:=sma(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),n,1);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sma(if(hd>0 and hd>ld,hd,0),n,1);dmm:=sma(if(ld>0 and ld>hd,ld,0),n,1);pdi火:dmp*100/tr,colorred;mdi炸:dmm*100/tr,colorblue;adx:sma(abs(mdi炸-pdi火)/(mdi炸+pdi火)*100,n,1),colorff66ff;adxr:(adx+ref(adx,6))/2,color66ff66;drawtext(pdi火>mdi炸,pdi火,'');drawtext(mdi炸>pdi火,mdi炸,''); 20210311
v1:=ema(close,60)-ema(close,300);v2:=ema(v1,300);v3:=(close-llv(low,8))/(hhv(high,8)-llv(low,8))*100;v4:=sma(v3,2,1);v5:=sma(v4,2,1);v6:=close/ref(close,3)>=1.1;v7:=backset(v6,3);大涨买:if((v7 and cou...
输出波段选5ri:统计5日中满足ma1上穿ma2andma1>昨日ma1andma2>昨日ma2 =1ma1:ma(close,m1);ma2:ma(close,m2);ma3:ma(close,m3);ma4:ma(close,m4);drawtext(cross(ma1,ma2) and ma1>ref(ma1,1) and ma2>ref(ma2,1),ma2,&...