susie
2024-05-27 10:54:34
最佳回答
1.这两个公式都是通用源码,可在通达信上直接使用。 2.我将{彩虹图}中没用的源码去掉了。 {彩虹图} x1:=(close+low+high)/3; x2:=ema(x1,6); x3:=ema(x2,5); var2:=ema(ema(x1,1),13); var3:=ema(var2,21); stickline(var2>=var3,var2,var3,8,0),colorred; stickline(var2<var3,var2,var3,8,0),colorcyan; xclose:=ema((open+high+low+close)/4,3); xopen:=ema((ref(open,1)+ref(xclose,1))/2,3); tempg:=max(high,xopen); xhigh:=ema(max(tempg,xclose),3); temp:=min(low,xopen); xlow:=ema(min(temp,xclose),3); o1:=if(xopen<xclose,xopen,xclose); c1:=if(xopen<xclose,xclose,xopen); stickline(xopen>=xclose,xhigh,xlow,0.1,0),colorgreen; stickline(xopen>=xclose,c1,o1,6,0),colorgreen; stickline(xopen<xclose,xhigh,xlow,0.1,0),colormagenta; stickline(xopen<xclose,c1,o1,6,0),colormagenta; 转折线:if(close=-1,ma(high,6),ma(low,6)),linethick2,coloryellow; {傻瓜线} rsv:=(close-llv(low,40))/(hhv(high,40)-llv(low,40))*100; k:sma(rsv,14,1),colorgreen,linethick2; d:sma(k,10,1),colormagenta,linethick3; drawicon(cross(k,d),k,25); 20210311