买线:=ema(c,2);卖线:=ema(slope(c,21)*20+c,42); bu:=cross(买线,卖线);sel:=cross(卖线,买线);drawicon(bu,l-0.1,1);drawicon(sel,h+0.1,2);stickline(买线>=卖线,low,high,0.0,1),colorred;stickline(买线>=卖线,close,open,2,1),colorred;stickline(买线<卖线,low,high,0.0,1),colorgreen;stickline(买线<卖线,close,open,2,1),colorgreen;散户:ema(close,5),colorwhite;操盘:ma(close,9),colorcyan,linethick2;界点:ma(close,20),colormagenta;lc:=ref(close,1);rsi:=((sma(max((close - lc),0),3,1) / sma(abs((close - lc)),3,1))*100);ff:=ema(close,3);ma15:=ema(close,21);日:=150;昨前:=3;高1:=ref(hhv(h,日),昨前);低1:=ref(llv(l,日),昨前);h1:=高1-(高1-低1)*0.191;h2:=高1-(高1-低1)*0.382;h3:=高1-(高1-低1)*0.5;h4:=高1-(高1-低1)*0.618;h5:=高1-(高1-低1)*0.809;顶:refdate(高1,date),colorred;一0.809:refdate(h1,date),coloryellow;二0.618:refdate(h2,date),colormagenta;三0.500:refdate(h3,date),colorwhite;四0.382:refdate(h4,date),colorgreen;五0.191:refdate(h5,date),coloryellow;低:refdate(低1,date),colorred;将公式完全覆盖你原有公式即可。 20210311