瑶瑶?.*
2024-12-22 13:10:25
最佳回答
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100; k:sma(rsv,3,1),colorcfb53b,linethick1; d:sma(k,3,1),colorcc3299,linethick1; j:3*k-2*d,colorffffff,linethick1; {gupiaoff.com}partline(j ,j<=0) ,colorblue,linethick1; partline(j ,j>=100) ,colorred,linethick1; partline(d ,d>=80) ,coloryellow,linethick2; 顶:100,color9966ff,linethick1; o轴:0,color9966ff,linethick1; diff:(ema(close,5)-ema(close,20))*100; dea:ema(diff,5); zz:=cross(dea,diff); drawicon(zz,dea,2); zz1:=cross(diff,dea); drawicon(zz1,diff,1); diff0:=(ema(close,12)-ema(close,26))*100;dea0:=ema(diff0,9); macd:2*(diff0-dea0),linethick0; stickline(macd>0,0,macd,0.00001,0),colorred; diff2:=(ema(close,12)-ema(close,26))*100; dea2:=ema(diff2,9); macd1:2*(diff2-dea2),linethick0; stickline(macd1<0,0,macd1,0.00001,0),colorffaaaa; sqx:=(c-ma(close,13))*100; diff7:=ema(ma(sqx,7),1); dea1:=ema(diff7,7); macd0:=(diff7-dea1)*2; 低位金叉:=if(cross(diff7,dea1) and diff7<-0.1,0.3,0);stickline(低位金叉,0,15,8,0),coloryellow; drawicon(低位金叉 ,0.3,1); jccount:=count(cross(diff7,dea1),barslast(dea1>=0)); 二次金叉:=if(cross(diff7,dea1) and dea1<0 andcount(jccount=2,21)=1,0.2,0); stickline(二次金叉,30,15,8,0),colorff00ff; a1:=barslast(ref(cross(diff7,dea1),1)); 底背离:=if(ref(close,a1+1)>close and diff7>ref(diff7,a1+1) and cross(diff7,dea1),0.1,0); stickline(底背离,45,30,8,0),colorred; {drawline(a1=0,dea1,底背离,dea1,0),colorred;} a2:=barslast(ref(cross(dea1,diff7),1)); 顶背离:=ref(close,a2+1)<close and ref(diff7,a2+1)>diff7 andcross(dea1,diff7); drawline(a2=0,dea1,顶背离,dea1,0),colorgreen; a3:=cross(diff7,dea1) and dea1<0; 零下二次金叉:=if(filter(count(a3,21)=2,10),0.05,0); stickline(零下二次金叉,45,60,8,0),colorwhite; 20210311