黄金分割线+江恩八分线
{黄金分割线+江恩八分线 }
input:k(1,1,3);
drawgbklast(c>0,strip(rgb(90,90,90),rgb(0,0,0),0));
drawtextrel(0,3,'代码:'+stklabel),colorffffff;
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,colorgreen;
drawtext(a and k<>3,ll, ' 最低价:'+ll),align2,valign2,colorgreen;
drawtext(a and k<>3,mhl,' 50%:'+mhl),align2,color00ffff;
drawtext(a and k=1, a1, ' 0.191:'+numtostrn(a1,2)),align2,color00ffff;
drawtext(a and k=1, a2, ' 0.382:'+numtostrn(a2,2)),align2,color00ffff;
drawtext(a and k=1, a3, ' 0.618:'+numtostrn(a3,2)),align2,color00ffff;
drawtext(a and k=1, a4, ' 0.809:'+numtostrn(a4,2)),align2,color00ffff;
drawtext(a and k=1, b1, ' 1/8:'+numtostrn(b1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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,color00ff00;
drawtext(a and k=1, b2, ' ﹉﹉﹉﹉'),align2,color00ff00;
drawtext(a and k=1, b3, '﹉﹉'),align0,color00ff00;
drawtext(a and k=1, b4, '﹉﹉'),align0,color00ff00;
drawtext(a and k=1, b5, ' ﹉﹉﹉﹉'),align2,color00ff00;
drawtext(a and k=1, b6, ' ﹉﹉﹉﹉'),align2,color00ff00;
pt := ref(high,1)-ref(low,1);
重心:=(high + low + close)/3;
压力ⅰ:= 2*重心-low;
压力ⅱ:= 重心 + pt;
支撑ⅰ:= 2*重心-high;
支撑ⅱ:= 重心 - pt;
drawtextabs(75,8,' 《逆势操作》'),colorffff00;
drawtextabs(150,8,' 重心:'+重心),color208fff;
drawtextabs(75,27,' 支 撑'),colorffffff;
drawtextabs(75,44,' '+支撑ⅰ),colorffffff;
drawtextabs(75,62,' '+支撑ⅱ),colorffffff;
drawtextabs(75,27,' 压 力'),color00ff00;
drawtextabs(75,44,' '+压力ⅰ),color00ff00;
drawtextabs(75,62,' '+压力ⅱ),color00ff00;
drawtextabs(75,5,'│'),color00ffff;
drawtextabs(75,17,'│'),color00ffff;
drawtextabs(75,29,'│'),color00ffff;
drawtextabs(75,41,'│'),color00ffff;
drawtextabs(75,53,'│'),color00ffff;
drawtextabs(75,65,'│'),color00ffff;
drawtextabs(218,5,'│'),color00ffff;
drawtextabs(218,17,'│'),color00ffff;
drawtextabs(218,29,'│'),color00ffff;
drawtextabs(218,41,'│'),color00ffff;
drawtextabs(218,53,'│'),color00ffff;
drawtextabs(218,65,'│'),color00ffff;
drawtextabs(146,25,'│'),color00ffff;
drawtextabs(146,29,'│'),color00ffff;
drawtextabs(146,41,'│'),color00ffff;
drawtextabs(146,53,'│'),color00ffff;
drawtextabs(146,65,'│'),color00ffff;
drawtextabs(80,0,'────────────'),color00ffff;
drawtextabs(80,20,'────────────'),color00ffff;
drawtextabs(80,37,'────────────'),color00ffff;
drawtextabs(80,54,'────────────'),color00ffff;
drawtextabs(80,71,'────────────'),color00ffff;
wx:=ma(close,0);
stickline(c>=o,c,o,8,0),color0000aa;
stickline(c>=o,c,o,6,0),color0000bb ;
stickline(c>=o,c,o,4,0),color0000cc ;
stickline(c>=o,c,o,2,0),color0000ee;
stickline(c>=o,h,l,0,0),color0000ff;
stickline(c<=o,c,o,8,0),color7b7b00;
stickline(c<=o,c,o,6,0),color909000;
stickline(c<=o,c,o,4,0),colora8a800;
stickline(c<=o,c,o,2,0),colorcece00;
stickline(c<=o,h,l,0,0),colorffff00;
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);
drawtext(g,l*0.997,'▲'),align1,valign0,colorff00ff;
drawtext(g,l,' ̄'),align1,valign0,color00ff00;
drawtext(x,h*1.002,'▼'),align1,valign2,color00ffff;
drawtext(x,h,' ̄'),align1,valign0,color00ffff;
ed:=barslast(g);
ef:=barslast(x);
买入到卖出天数:ed,linethick0,colorffffff;
卖出到买入天数:ef,linethick0,colorffffff;
换手: vol/capital*100,linethick0,colorwhite;
qq:=换手;
drawtextrel(0,910,' 买入到到当前周期:'+numtostr(ed) +'天'+' 卖出到当前周期:'+numtostr(ef) +'天'+' 换手率:'+numtostrn(qq,2) +'%'),colorffff00;
上一指标公式:股龙有心超赢多日主图公式下载 大智慧指标源码多日
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文黄金分割线+江恩八分线公式下载 大智慧指标源码分割线江恩仅供学习研究。