lowv:=llv(low,9);highv:=hhv(high,9);rsv:=ema((close-lowv)/(highv-lowv)*100,3);k:ema(rsv,3);d:ma(k,3);a1:=barslast(ref(cross(k,d),1));底背离:ref(close,a1+1)>close and k>ref(k,a1+1)and cross(k,d);dra...
diff:=ema(close,12)-ema(close,26);dea:=ema(diff,9);macd:=2*(diff-dea);c1:=barslast(ref(cross(dea,diff),1));xg:ref(c,c1+1)(diff,c1+1)>diff and cross(dea,diff);