a:=(ema(c,12)-ema(c,25));th:=max(high,ref(close,1));tl:=min(low,ref(close,1));acc1:=sum(close-tl,4)/sum(th-tl,4);acc2:=sum(close-tl,8)/sum(th-tl,8);acc3:=sum(close-tl,16)/sum(th-tl,16);uos:=(acc1*8*16+acc2*4*16+acc3*4*8)/(4*8+4*16+8*16),colorred;mid:=(3*close+low+open+high)/6;牛线:=(20*mid+19*ref(mid,1)+18*ref(mid,2)+17*ref(mid,3)+16*ref(mid,4)+15*ref(mid,5)+14*ref(mid,6)+13*ref(mid,7)+12*ref(mid,8)+11*ref(mid,9)+10*ref(mid,10)+9*ref(mid,11)+8*ref(mid,12)+7*ref(mid,13)+6*ref(mid,14)+5*ref(mid,15)+4*ref(mid,16)+3*ref(mid,17)+2*ref(mid,18)+ref(mid,20))/210;马线:=ma(牛线,6);xg1:=c>牛线;a:=max(ma(c,60),ma(c,120));b:=min(ma(c,60),ma(c,120));xg2:=c>=a;e:=max(ma(c,45),ma(c,90));f:=min(ma(c,45),ma(c,90));xg3:=c>e;j:=max(ma(c,30),ma(c,60));k:=min(ma(c,30),ma(c,60));xg4:=c>j;xg:=xg1 and xg2 and xg3 and xg4;n:=20;sat:=if((amount/c)/(hhv(amount,n)/hhv(c,n))>1,1,(amount/c)/(hhv(amount,n)/hhv(c,n)));sat=1 and xg=1 and ref(xg,1)<1 and barscount(c);公式已测试通过!希望能够帮助你! 20210311