n:=30;m:=60;散户线:=100*(hhv(high,m)-close)/(hhv(high,m)-llv(low,m));rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;k:=sma(rsv,5,1);d:=sma(k,3,1);j:=3*k-2*d;主力线:=ema(j,6);aa4:=(close-llv(low,21))/(hhv(high,21)-llv(low,21))*100;aa5:=sma(aa4,13,8);趋势:=ceiling(sma(aa5,13,8));xg:cross(趋势,主力线) and ref(散户线,2)<ref(散户线,1) and 散户线<ref(散户线,1); 20210311
dif:ema(c,12)-ema(c,26);dea:ema(dif,9);macd:(dif-dea)*2,nodraw;zero:=0;{macd柱线变色标识}stickline(macd>0 and macd>=ref(macd,1),0,macd,3,0),colorred;stickline(macd>0 and macd<ref(macd,1),0,macd,...
用这个就行了:a1:=(dvol/c)/2;a2:=sum(if(a1>100 and close>ref(close,1),a1,0),0);a3:=sum(if(a1>100 and close<ref(close,1),a1,0),0);a4:=sum(if(a1<100 and close>ref(close,1),a1,0),0);a5:=sum(if...
tr:=sum(max(max(high-low,abs(high-ref(close,1))),abs(low-ref(close,1))),7);hd:=high-ref(high,1);ld:=ref(low,1)-low;dmp:=sum(if(hd>0 and hd>ld,hd,0),7);dmm:=sum(if(ld>0 and ld>hd,ld,0),7);d...