速率诡计修改版:参考macd,放大速率百分比,倍数*2,便于肉眼更好辨识去掉提神和拐点忖度(不训诲),去掉0轴代码,手动诞生0轴即可;用法 :J1过0轴,短期均线拐头;J2 过0轴世博体育(中国)官方网站,中期均线拐头;j1和 mj1金叉死叉类 似macd diff 交叉 dea;红绿青色柱子,代表多空,以及速率背离 情景:INPUT: P1(5,3,999,1),P2(21,5,999,1);A1:=MA(Close,P1);A2:=REF(A1,1);J1:(A1-A2)/A2*200; MJ1:MA(J1,3); A3:=MA(Close,P2); A4:=REF(A3,1);J2:(A3-A4)/A4*200; MJ2:=MA(J2,10); STICKLINE(J1>0 AND J2>0,J1,0,2,0),COLORRED; STICKLINE(J1<0 AND J2>0,0,J1,2,0),COLORYELLOW; STICKLINE(J1>0 AND J2<0,J1,0,2,0),COLORMAGENTA; STICKLINE(J1<0 AND J2<0,0,J1,2,0),COLORGREEN; DRAWICON(CROSS(J1,mJ1) AND count(mj1<-3,3)>=1 ,J1*1.5,1); DRAWICON(CROSS(mJ1,J1) AND count(mj1>3,3)>=1,J1*1.8,2); B1:=BARSLAST(REF(CROSS(J1,MJ1) and MJ1<0,1));底背离:=REF(CLOSE,B1 1)>CLOSE AND J1>REF(J1,B1 1) AND CROSS(J1,MJ1);DRAWLINE(B1=0,MJ1,底背离,MJ1,0),COLORRED,linethick3;B2:=BARSLAST(REF(CROSS(MJ1,J1) and MJ2>0,1));顶背离:=REF(CLOSE,B2 1)<CLOSE AND REF(MJ1,B2 1)>J1 AND CROSS(MJ1,J1);DRAWLINE(B2=0,MJ1,顶背离,MJ1,0),COLORWHITE,linethick2;
图片世博体育(中国)官方网站
图片
图片
wb貌似对含有淘气代码的著述王人要审核,小编何处也不知谈能不成过。截图发吧,修改了下前次贴的速率诡计,去掉一些容易导致编译问题的,学习macd,放大2倍数值,肉眼容易看。
图片
本站仅提供存储作事,通盘本色均由用户发布,如发现存害或侵权本色,请点击举报。