mkr零轴线主图源码下载:
de:=const(llv(l,90));
ji:=const(hhv(h,90))-de;
de_k:=de+ji/3*2;
ji_k:=ji/2;
l_00:=de_k;
l_20:=ji_k/5+de_k;
l_80:=ji_k*4/5+de_k;
l_100:=ji_k+de_k;
l_5:=l_100-l_00;
l_50:=(l_00+l_100)/2;
drawband(l_100,rgb(00,180,00),l_00,drawnull);
drawband(l_80,rgb(00,150,00),l_00,drawnull);
drawband(l_50,rgb(00,100,00),l_00,drawnull);
drawband(l_20,rgb(00,55,00),l_00,drawnull);
drawtext(currbarscount=200/2,l_100-(l_100*0.03),'====【macd、kdj、rsi主图】===='),colorwhite;
drawtext(islastbar,l_100,'100'),colorred;
drawtext(islastbar,l_80,' 80'),colormagenta;
drawtext(islastbar,l_50,' 50'),coloryellow;
drawtext(islastbar,l_20,' 20'),color00ff00;
drawtext(islastbar,l_00,' 0'),colorwhite;
lc:=ref(close,1);
rsi1:=sma(max(close-lc,0),5,1)/sma(abs(close-lc),5,1)*100;
rsi2:=sma(max(close-lc,0),8,1)/sma(abs(close-lc),8,1)*100;
drawband((rsi1/100-0.5)*l_5/1+l_50,rgb(255,50,50),(rsi2/100-0.5)*l_5/1+l_50,rgb(00,180,80));
drawicon(cross(80,rsi1),l_100,15);
drawicon(cross(rsi1,20),l_00,23);
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
de_a:=const(llv(rsv,90));
dd_a:=const(hhv(rsv,90))-de_a;
r:=(rsv-de_a)/dd_a;
rsv1:=r*ji_k+de_k;
k:sma(rsv1,3,1),colorffffff;
d:sma(k,3,1),coloryellow;
j:3*k-2*d,colorff00ff;
de_m:de+ji/3,colorred;
ji_m:=ji/2;
kdl:=const(llv(ema(c,26),90));
kdh:=const(hhv(ema(c,26),90))-kdl;
r_k1:=(ema(c,12)-kdl)/kdh;
r_k2:=(ema(c,26)-kdl)/kdh;
dif:(r_k1-r_k2)*ji*1.5+de_m,color00ff00;
dea:ema(dif,9),colorliblue;
macd:=(dif-dea)*2+de_m;
stickline(macd<ref(macd,1)and macd>de_m and cross(k,j),de_m,macd,2.8,0),colorff3300;
stickline(macd>ref(macd,1)and macd<de_m and cross(j,k),de_m,macd,2.8,0),colorred;
stickline(macd<dea and macd>de_m and cross(d,k),de_m,macd,2.8,0),color00ff00;
drawkline(h,o,l,c);{好公式网www.goodgongshi.com}
stickline(macd>=de_m,macd,de_m,0,0),colorred;
d_1:=macd>h and h>=de_m and de_m>=l;
d_2:=macd>h and h>=l and l>de_m;
d_3:=h>macd and macd>=l and l>de_m;
d_4:=h>macd and macd>de_m and de_m>=l;
stickline(d_1>0,h,de_m,0,0),coloryellow;
stickline(d_2,h,l,0,0),coloryellow;
stickline(d_3,macd,l,0,0),coloryellow;
stickline(d_4,macd,de_m,0,0),coloryellow;
d_5:=macd<l and l<=de_m and de_m<=h;
d_6:=macd<l and h<de_m;
d_7:=l<macd and macd<=h and h<de_m;
d_8:=l<macd and macd<de_m and de_m<=h;
stickline(macd<de_m,de_m,macd,0,0),color009900;{liblue}
stickline(d_5,de_m,l,0,0),coloryellow;
stickline(d_6,h,l,0,0),coloryellow;
stickline(d_7,h,macd,0,0),coloryellow;
stickline(d_8,de_m,macd,0,0),coloryellow;
drawtext(islastbar,de_m,' 零轴线'),colorwhite;
drawband(ma(dif,2),rgb(255,255,255),dif,rgb(455,0,455));
dea,coloryellow;
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
卖:=if(hhv(dx,2)=hhv(dx,7) and count(dx>50,2) and cross(ma(dx,2),dx),1,0);
drawicon(filter(卖=1,1),high*1.01,8);
买入:=(ma(close,3)+ma(close,6)+ma(close,12)+ma(close,24))/4,color0000ff;
ma1:=sma(c,3,1),colorgreen;
drawicon(cross(ma1,买入),l*0.99,7);
上一指标公式:做波段每年轻松两倍主图下载
下一指标公式:同舟共济主图下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MKR零轴线主图下载仅供学习研究。