drawnumber(islastbar ,c,c),colormagenta;
pl5:=hhv(h,18);
sjtj:=date<1590301;
aa:=abs((2*close+high+low)/4-ma(close,30))/ma(close,30);
长期趋势线:=dma((2*close+low+high)/4,aa);
cc:=(close/长期趋势线);
ma1:=ma(cc*(2*close+high+low)/4,3);
maaa:=((ma1-长期趋势线)/长期趋势线)/3;
tmp:=ma1-maaa*ma1;
长期趋势上升:if(tmp>长期趋势线 ,长期趋势线,drawnull),linethick4,colorred;
if(tmp>长期趋势线,长期趋势线,drawnull),coloryellow,pointdot,linethick4;
长期趋势下降:if(tmp<=长期趋势线,长期趋势线,drawnull),linethick4,colorgreen;
if(tmp<=长期趋势线,长期趋势线,drawnull),colorblue,pointdot,linethick4;
hzs:=cross(tmp,长期趋势线);
lzs:=cross(长期趋势线,tmp);
drawicon(hzs,长期趋势线-0.1,26);
drawicon(lzs,长期趋势线+0.1,24);
{drawicon(tmp<=长期趋势线 and not(lzs),长期趋势线-0.1,14)};
{drawicon(tmp>长期趋势线 and not(hzs),长期趋势线+0.1,13)};
mah:=(h*18+ref(h,1)*17+ref(h,2)*16+ref(h,3)*15+ref(h,4)*14+ref(h,5)*13+ref(h,6)*12+ref(h,7)*11+ref(h,8)*10+ref(h,9)*9+ref(h,10)*8+ref(h,11)*7+ref(h,12)*6+ref(h,13)*5+ref(h,14)*4+ref(h,15)*3+ref(h,16)*2+ref(h,17)*1)/171;
mal:=(l*18+ref(l,1)*17+ref(l,2)*16+ref(l,3)*15+ref(l,4)*14+ref(l,5)*13+ref(l,6)*12+ref(l,7)*11+ref(l,8)*10+ref(l,9)*9+ref(l,10)*8+ref(l,11)*7+ref(l,12)*6+ref(l,13)*5+ref(l,14)*4+ref(l,15)*3+ref(l,16)*2+ref(l,17)*1)/171;
ma5:=ma(close,5);
ma10:=ma(close,10);
ma20:=ma(close,20);
ma60:=ma(close,60);
dk:= sjtj and( close>=mah or (c>ma5 and c>ma10 and c>ma20 and c>ma60));
kk:= sjtj and( mal>close or (c<ma5 and c<ma10 and c<ma20 and c<ma60));
dk1:=barslast(dk);
kk1:=barslast(kk);
dk2:=barslast(cross(kk1,dk1));
kk2:=barslast(cross(dk1,kk1));
hs:=dk2<kk2;
ls:=kk2<dk2;
w2:=open-close;
ht:=if(open>close,open,close);
lt:=if(open<close,open,close);
stickline(w2>0 and hs,open,close,2,0),colorred;
stickline(w2>0 and hs,open,h,0.0,0),colorred;
stickline(w2>0 and hs,c,l,0.0,0),colorred;
stickline(w2<=0 and hs,open,close,2,1),colorred;
stickline(w2<=0 and hs,o,l,0.0,0),colorred;
stickline(w2<=0 and hs,c,h,0.0,0),colorred;
stickline(w2>0 and ls,open,close,2,0),colorgreen;
stickline(w2>0 and ls,open,h,0.0,0),colorgreen;
stickline(w2>0 and ls,c,l,0.0,0),colorgreen;
stickline(w2<=0 and ls,open,close,2,1),colorgreen;
stickline(w2<=0 and ls,c,h,0.0,0),colorgreen;
stickline(w2<=0 and ls,o,l,0.0,0),colorgreen;
drawtext(hs=1 and ref(ls,1),low*0.995,12),coloryellow;
drawtext(ls=1 and ref(hs,1),h*1.005,13),coloryellow;
drawnumber(islastbar and ls,mah,mah),coloryellow;
drawnumber(islastbar and hs,mal,mal),coloryellow;
趋势线:=(mah+mal)/2 colorgreen,,linethick2;
中级趋势上升:if(hs,趋势线,drawnull),linethick2,colorred;
中级趋势下降:if(ls,趋势线,drawnull),linethick2,colorblue;
drawicon(hs,趋势线*0.995,1);
drawicon(ls,趋势线*1.005,2);
最新价:if(sjtj, c,drawnull),linethick0,coloryellow;
上一指标公式:双轨雷达主图 通达信双轨
下一指标公式:突破划线主图 通达信划线
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文趋势跟踪主图 通达信跟踪仅供学习研究。