主黄金线主图技术-用法和图示
今奉献‘主黄金线’主图技术指标原码和图示。
说明:我从论坛上学习了网友们的许多技术指标,加以优化综合,形成‘主图黄金线’指标,内容丰富:有个股所属板块、大盘涨跌家数、黄金分割线、市场成本线、彩色k线(黄色涨停,兰色跌停)、短波顶低信号提示、股价上穿成本线有笑脸、支撑和压力参考值、买入卖出天数等。
希望:1,作为交流,对网友们在实战中观察个股走势会有所帮助。
2,我的理想币为0了,无法再下载学习网友们的技术指标,请求加币!谢谢了!
{主黄金线}
input:k(1,1,3);
t:=barslast(dispstatus=1)+1;
a:=dispstatus=2;hh:=hhv(h, t);ll:=llv(l, t);hl:=hh-ll;wh:=hhvbars(h, t);wl:=llvbars(l, t);
kk:=wh-wl;mhl:=hh-hl*0.5;
if k=1 then begin
hl191:=(hh-ll)*0.191;hl382:=(hh-ll)*0.382;hl618:=(hh-ll)*0.618;hl809:=(hh-ll)*0.809;
if kk<0 then begin
a1:=hh-hl191;a2:=hh-hl382;a3:=hh-hl618;a4:=hh-hl809;
end else begin
a1:=ll+hl191;a2:=ll+hl382;a3:=ll+hl618;a4:=ll+hl809;
end end
if k=1 then begin
hl125:=(hh-ll)*0.125;hl250:=(hh-ll)*0.25;hl375:=(hh-ll)*0.375;hl625:=(hh-ll)*0.625;hl750:=(hh-ll)*0.75;hl875:=(hh-ll)*0.875;
if kk<0 then begin
b1:=hh-hl125;b2:=hh-hl250;b3:=hh-hl375;b4:=hh-hl625;b5:=hh-hl750;b6:=hh-hl875;
end else begin
b1:=ll+hl125;b2:=ll+hl250;b3:=ll+hl375;b4:=ll+hl625;b5:=ll+hl750;b6:=ll+hl875;
end end
drawtext(a and k<>3,hh, '最高价:'+hh),align2,colorff00ff;
drawtext(a and k<>3,ll, '最低价:'+ll),align2,valign2,color00ff00;
drawtext(a and k<>3,mhl,'50%:'+mhl),align2,colorff8000;
drawtext(a and k=1, a1, '0.191:'+numtostrn(a1,2)),align2,color4080ff;
drawtext(a and k=1, a2, '0.382:'+numtostrn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 ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊﹊ ﹊ ﹊﹊'),align2,color208fff,linethick0;
drawtext(a and k=1, a2, '﹊ ﹊﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊﹊'),align2,color208fff,linethick0;
drawtext(a and k=1, a3, '﹊ ﹊﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊﹊﹊'),align2,color208fff,linethick0;
drawtext(a and k=1, a4, '﹊ ﹊﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊ ﹊﹊﹊'),align2,color208fff,linethick0;
drawtext(a and k=1, b1, '﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),align2,colorc0c0c0;
drawtext(a and k=1, b2, '﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),align2,colorc0c0c0;
drawtext(a and k=1, b5, '﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),align2,colorc0c0c0;
drawtext(a and k=1, b6, '﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉﹉'),align2,colorc0c0c0;
市场成本:dma(amount/v/100,v/capital),color0080ff,linethick1;
drawicon(cross(c,市场成本),l,1),align1;
pt:= ref(high,1)-ref(low,1);
重心:=(high + low + close)/3;
压力ⅰ:=2*重心-low;压力ⅱ:= 重心 + pt;
支撑ⅰ:=2*重心-high;支撑ⅱ:= 重心 - pt;
drawtextabs(50,68,'重心:'+重心),color208fff;
drawtextabs(20,87,' 支撑'),color00ff00;
drawtextabs(20,104,' '+支撑ⅰ),color00ff00;
drawtextabs(20,122,' '+支撑ⅱ),color00ff00;
drawtextabs(25,87,' 压力'),colorff00ff;
drawtextabs(25,104,' '+压力ⅰ),colorff00ff;
drawtextabs(25,122,' '+压力ⅱ),colorff00ff;
drawtextabs(25,65,'│'),color00ffff;
drawtextabs(25,77,'│'),color00ffff;
drawtextabs(25,89,'│'),color00ffff;
drawtextabs(25,101,'│'),color00ffff;
drawtextabs(25,113,'│'),color00ffff;
drawtextabs(25,125,'│'),color00ffff;
drawtextabs(170,65,'│'),color00ffff;
drawtextabs(170,77,'│'),color00ffff;
drawtextabs(170,89,'│'),color00ffff;
drawtextabs(170,101,'│'),color00ffff;
drawtextabs(170,113,'│'),color00ffff;
drawtextabs(170,125,'│'),color00ffff;
drawtextabs(96,85,'│'),color00ffff;
drawtextabs(96,89,'│'),color00ffff;
drawtextabs(96,101,'│'),color00ffff;
drawtextabs(96,113,'│'),color00ffff;
drawtextabs(96,125,'│'),color00ffff;
drawtextabs(30,60,'──────────'),color00ffff;
drawtextabs(30,80,'──────────'),color00ffff;
drawtextabs(30,97,'──────────'),color00ffff;
drawtextabs(30,114,'──────────'),color00ffff;
drawtextabs(30,131,'──────────'),color00ffff;
g:=zig(3,5)>ref(zig(3,5),1) and ref(zig(3,5),1)<=ref(zig(3,5),2) and ref(zig(3,5),2)<=ref(zig(3,5),3);
x:=zig(3,5)<ref(zig(3,5),1) and ref(zig(3,5),1)>=ref(zig(3,5),2) and ref(zig(3,5),2)>=ref(zig(3,5),3);
ed:=barslast(g);
ef:=barslast(x);
drawtextrel(25,410,'买入:'+numtostr(ed) +'天'+'卖出:'+numtostr(ef) +'天' ),colorffff00;
{k线优化}
stickline(close>=open,open,close,8,1),colorred;
stickline(open>close,close,open,8,0 ),colorffff00;
stickline(close>=open,close,high,0.5 ,0 ),colorred;
stickline(close>=open,open,low,0.5 ,0),colorred;
stickline(open>close,close,low,0.5 ,0 ),colorffff00;
stickline(open>close,open,high,0.5 ,0 ),colorffff00;
c2:=ref(c,1);
涨停:=if((c-c2)*100/c2>=(10-0.01*100/c2),1,0);
stickline(涨停,open,close,8,0),color00ffff;
跌停:=if((c2-c)*100/c2>=(10-0.01*100/c2),1,0);
stickline(跌停,open,close,8,0),colorff8000;
{粉兰色k线};
f:=100*(c-ref(c,1))/ref(c,1);
今小昨:=if(c<ref(o,1) and f<0,1,0);
p1:=今小昨;
今小前:=if(c<ref(o,2) and f<0,1,0);
p2:=今小前;
stickline(p1=0 and ref(p1,1)=1 and p2=0 and ref(p2,1)=1,open,close,6,0),colormagenta;
stickline(p1=1 and ref(p1,1)=0 and p2=1and ref(p2,1)=0,open,close,3,0),colorblue;
drawtext(g,l*0.997,'△'),align1,valign0,color00ff00;
drawtext(g,l,' ̄'),align1,valign0,color00ff00;
drawtext(x,h*1.002,'▽'),align1,valign2,colorff00ff;
drawtext(x,h,' ̄'),align1,valign0,colorff00ff;
drawtextrel(130,25,'所属板块:'+bkname),colorffffff;
今市上涨家数:=indexadv;
平盘家数:=dynainfo(68);
今市下跌家数:=indexdec;
drawtextabs(30,10,'今市上涨:'+今市上涨家数+' 家'),colorffff00,linethick2;
drawtextabs(65,25,'平盘:'+平盘家数+' 家'),colorffff00,linethick2;
drawtextabs(65,40,'下跌:'+numtostrn(今市下跌家数,0)+' 家'),colorffff00,linethick2;
上一指标公式:多空趋势公式下载 大智慧多空
下一指标公式:黑马黄牛使用说明公式下载 大智慧黑马使用说明
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文主黄金线主图技术-用法和图示公式下载 大智慧线主图黄金仅供学习研究。