rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100; k:=sma(rsv,9,1); d:=sma(k,9,1); j:=3*k-2*d; bbi:=(ema(close,3)+ema(close,6)+ema(close,12)+ema(close,24))/4; ebbi:=(ema(c,6)+ema(c,18)+ema(c,54)+ema(c,162))/4; ff1:=ema(c,3)>ema(c,7) and ema(c,7)>ema(c,21) and ema(c,21)>ema(c,54); diff:=ema(close,12)-ema(close,26); dea:=ema(diff,9); 主升浪:=if(bbi>ebbi and ff1 and diff>dea,10,0); xg:cross(k,d) and cross(j,d);参考资料: 20210311
var1:=(2*close+high+low)/4;var2:=llv(low,34);var3:=hhv(high,34);xx:=ema((var1-var2)/(var3-var2)*100,13);yy:=ema(0.667*ref(xx,1)+0.333*xx,2);cross(xx,yy) and xx<20 ;
cys:=(c-(0.01*ema(amount,13)/ema(v,13)))/(0.01*ema(amount,13)/ema(v,13))*100;底背离:ref(c,barslast(ref(filter(backset(ref(cys,n)=llv(cys,2*n+1),n+1),n) and cys=llv(cys,n+1),1))+1)>c and ref(cys,barslast(...