好公式网用指标公式为投资注入科技力量!
您的位置:好公式网飞狐公式任意区间黄金分割线公式 飞狐任意分割线指标 源码

任意区间黄金分割线公式 飞狐任意分割线指标 源码

  • 指标公式类型:飞狐公式
  • 公式推荐星级:
  • 指标公式安全:已通过5款杀毒软件查杀,请放心下载!
  • 公式更新时间:2018-10-01 19:22:20
  • 指标公式标签:分割线 区间
  • 公式运行环境: WinXP/Win7/Win8/Win10/Win All
  • 指标公式语言:用简体中文编写

指标公式详细说明

好公式网(www.goodgongshi.com)告诉您:当前正要下载:任意区间黄金分割线公式 飞狐任意分割线指标 源码

任意区间黄金分割线
input:高(0,0,255),xs(0,0,3),调(0,0,2),f(0,0,255),f1(0,0,255),f2(0,0,255),角(0,0,1),角2(0,0,1);
ttt:=islastbar=1;
a1:=((h-l)/l)*100;
a2:=h-l;
drawtextex(ttt,0,176,1,'【振幅:'+numtostr(a1[sysparam(1)],2)+'% '+numtostr(a2[sysparam(1)],2)+'元 】'+''),colordddd00;
drawtextex(ttt,0,1,1,'【代码:'+stklabel+' 名称:'+stkname+'】'),color00ffff;
as:=(o+h+l+c)/4;
bl: ema(as,f),linethick1,color208fff;
bl1: ma(c,f1),linethick1,colorffffff;
bl2: ma(c,f2),linethick1,color00ffff;
partline(bl<ref(bl,1),bl),colorff0000,linethick2;
partline(bl1<ref(bl1,1),bl1),color00ff00,linethick1;
partline(bl2<ref(bl2,1),bl2),color00ff00,linethick1;
tt1:=islastbar=1 and 角=1;tt2:=islastbar=1 and 角2=1;
qmc:=ref(bl1,1);qmc1:=ref(bl1,2);
qmc2:=ref(bl2,1);qmc3:=ref(bl2,2);
cmc:=bl1-qmc;cmc1:=qmc-qmc1;cpj:=(cmc+cmc1)/2;
cmd:=bl2-qmc2;cmd1:=qmc2-qmc3;dpj:=(cmd+cmd1)/2;
q1:=atan((bl1/ref(bl1,1)-1)*100)*180/3.1416;
q2:=atan((qmc/ref(qmc,1)-1)*100)*180/3.1416;
q3:=atan((qmc1/ref(qmc1,1)-1)*100)*180/3.1416;
aq1:=atan((bl2/ref(bl2,1)-1)*100)*180/3.1416;
aq2:=atan((qmc2/ref(qmc2,1)-1)*100)*180/3.1416;
aq3:=atan((qmc3/ref(qmc3,1)-1)*100)*180/3.1416;
drawtextex(tt1,0,75,16,'【任意均线角度】'+' '),colorffffff;
drawtextex(tt1,0,2,30,' '+numtostr(f1,0)+''+'日=; ∠'+numtostr(q1,2)+' 度'+'/前日=;∠'+numtostr(q2,2)+' 度'+'/前2日=;∠'+numtostr(q3,2)+' 度'+''),colorffffff;
drawtextex(tt1,0,2,44,' '+numtostr(f1,0)+''+'日均值:'+numtostr(bl1,2)+' 元'+''+'/前日=:'+numtostr(qmc,2)+' 元'+'/前2日=:'+numtostr(qmc1,2)+' 元'),colorffffff;
drawtextex(tt1,0,2,58,' '+numtostr(f1,0)+''+'日均线近三日的平均增(减)速;'+numtostr(cpj,2)+' 元'+''),colorffffff;
drawtextex(tt2,0,2,88,' '+numtostr(f2,0)+''+'日=; ∠'+numtostr(aq1,2)+' 度'+'/前日=;∠'+numtostr(aq2,2)+' 度'+'/前2日=;∠'+numtostr(aq3,2)+' 度'+''),color00ffff;
drawtextex(tt2,0,2,102,' '+numtostr(f2,0)+''+'日均值:'+numtostr(bl2,2)+' 元'+''+'/前日=:'+numtostr(qmc2,2)+' 元'+'/前2日=:'+numtostr(qmc3,2)+' 元'),color00ffff;
drawtextex(tt2,0,2,116,' '+numtostr(f2,0)+''+'日均线近三日的平均增(减)速;'+numtostr(dpj,2)+' 元'+''),color00ffff;
blt:=barstatus=2;
drawtext(blt and bl>ref(bl,1),bl,'↑'+numtostr(f,0)+':'+numtostr(bl,2)),color208fff;
drawtext(blt and bl<ref(bl,1),bl,'↓'+numtostr(f,0)+':'+numtostr(bl,2)),color208fff;
drawtext(blt and bl1>ref(bl1,1),bl1,'↑'+numtostr(f1,0)+':'+numtostr(bl1,2)),colorffffff;
drawtext(blt and bl1<ref(bl1,1),bl1,'↓'+numtostr(f1,0)+':'+numtostr(bl1,2)),colorfffded;
drawtext(blt and bl2>ref(bl2,1),bl2,'↑'+numtostr(f2,0)+':'+numtostr(bl2,2)),color00cccc;
drawtext(blt and bl2<ref(bl2,1),bl2,'↓'+numtostr(f2,0)+':'+numtostr(bl2,2)),color00cccc;
ta1:=barpos=sysparam(1);
ta2:=barpos=sysparam(3);
t1:=datacount-barpos+0;
t2:=datediff(date,currentdate);
x:=sysparam(2);//最初
x1:=sysparam(3);//最后
x2:=sysparam(4);//最高
x3:=sysparam(5);//最低
x4:=sysparam(1);
yg:=ref(h,barslast(ta1));yd:=ref(l,barslast(ta1));
n:=((x1 - x) + 1);
zg:=ref(h,高);
hh:=hhv(zg,1);
ll:=llv(l,n);
gg:hh[x1],colorff00ff;
dd1:=ll[x1],colorff0000;
dd:=yd[x1],color005555,linedot;
partline(yd,yd),linethick1,color00ff00;
drawtext(ta2,yd,'k线低--'+numtostr(yd,2)),colorffffff,align2,pxdn5;
//drawtext(ta2,yg,'k线高--'+numtostr(yg,2)),colorffffff,align2,pxdn5;
//drawtext(ttt ,dd1,'最低'+numtostr(dd1,2)),align1,colorffee00,,pxup25;
drawtext(ttt ,gg,' 最高'+numtostr(gg,2)),align1,colorffaaaa,,pxdn5;
q:=(dd + ((gg - dd) * 0.191));
q2:=(dd + ((gg - dd) * 0.382));
q3:=(dd + ((gg - dd) * 0.50));
q4:=(dd + ((gg - dd) * 0.618));
q5:=(dd + ((gg - dd) * 0.809));
y_1:=ref(q,barslast(ta1));
y_2:=ref(q2,barslast(ta1));
y_3:=ref(q3,barslast(ta1));
y_4:=ref(q4,barslast(ta1));
y_5:=ref(q5,barslast(ta1));
partline(y_1,y_1),linedot,color005555;
partline(y_2,y_2),linedot,color005555;
partline(y_3,y_3),linedot,colordddddd;
partline(y_4,y_4),linedot,color005555;
partline(y_5,y_5),linedot,color005555;
drawtext(ta2,q,numtostr(q,2)+' :--0.191'),color00bbbb,align2,pxdn5;
drawtext(ta2,q2,numtostr(q2,2)+' :--0.382'),color00bbbb,align2,pxup22;
drawtext(ta2,q3,'★:('+numtostr(q3,2)+') ←*1/2'),colorffffff,align2,pxdn5;
drawtext(ta2,q4,numtostr(q4,2)+' :--0.618'),color00bbbb,align2,pxdn5;
drawtext(ta2,q5,numtostr(q5,2)+' :--0.809'),color00bbbb,align2,pxdn5;
jn1:=dd+(hh-dd)*0.875;jn7:=dd+(hh-dd)*0.85;jn9:=dd+(hh-dd)*0.72;jn12:=dd+(hh-dd)*0.28;
jn14:=dd+(hh-dd)*0.75;jn8:=dd+(hh-dd)*0.78;jn2:=dd+(hh-dd)*0.667;
jn6:=dd+(hh-dd)*0.125;jn10:=dd+(hh-dd)*0.25; jn13:=dd+(hh-dd)*0.15;
jn3:=dd+(hh-dd)*0.333;hj6:=dd+(hh-dd)*0.55;hj7:=dd+(hh-dd)*0.45;
hj13:=dd+(hh-dd)*0.98;hj14:=dd+(hh-dd)*0.93; jn11:=dd+(hh-dd)*0.22;
tt6:=islastbar=1 and xs=1;
tt7:=islastbar=1 and xs=2;
tt8:=islastbar=1 and xs=3;
drawtext(tt7,jn1,''+'7/8﹡→('+numtostr(jn1,2)+' '+'← *'),align2,coloraa88aa,pxup8;
drawtext(tt7,jn14,''+'6/8﹡→('+numtostr(jn14,2)+' '+'← *'),align2,coloraa88aa,pxup8;
drawtext(tt8,jn7,''+'85%﹡→('+numtostr(jn7,2)+''+'-----'),align2,color208bbb,pxup8;
drawtext(tt8,jn8,''+'78%﹡→('+numtostr(jn8,2)+''+'← '),align2,color9bbb00,pxup8;
drawtext(tt8,jn9,''+'72%﹡→('+numtostr(jn9,2)+''+'← '),align2,color9bbb00,pxup8;
drawtext(tt6 or tt7 or tt8,jn2,''+'2/3﹡→('+numtostr(jn2,2)+' '+'←-- *'),align2,color00ff00,pxup8;
drawtext(tt6 or tt7 or tt8,jn3,''+'1/3﹡→('+numtostr(jn3,2)+' '+'←-- *'),align2,color00ff00,pxup8;
drawtext(tt6 or tt7 or tt8,hj6,''+'55%﹡→('+numtostr(hj6,2)+''+'←'),align2,coloraaaaaa,pxup8;
drawtext(tt6 or tt7 or tt8,hj7,''+'45%﹡→('+numtostr(hj7,2)+''+'←'),align2,coloraaaaaa,pxup8;
drawtext(tt7,jn10,''+'2/8﹡→('+numtostr(jn10,2)+' '+'← *'),align2,coloraa88aa,pxup8;
drawtext(tt7,jn6,''+'1/8﹡→('+numtostr(jn6,2)+' '+'← *'),align2,coloraa88aa,pxup8;
drawtext(tt6 or tt7 or tt8,hj13,''+'98%﹡→('+numtostr(hj13,2)+''+'← '),align2,colorcccc00,pxup8;
//drawtext(tt6,hj9,''+'95%('+numtostr(hj9,2)+''+'←'),align2,colorffff00,pxdn2;
drawtext(tt6 or tt7 or tt8,hj14,''+'93%﹡→('+numtostr(hj14,2)+''+'← '),align2,colorcccc00,pxup8;
drawtext(tt8,jn13,''+'15%﹡→('+numtostr(jn13,2)+''+'-----'),align2,color208eee,pxup8;
drawtext(tt8,jn12,''+'28%﹡→('+numtostr(jn12,2)+''+'← '),align2,color9fff00,pxup8;
drawtext(tt8,jn11,''+'22%﹡→('+numtostr(jn11,2)+''+'← '),align2,color9fff00,pxup8;
//drawtext(tt6,hj10,''+'10%﹡→('+numtostr(hj10,2)+''+'← '),align2,colorffff00,pxup8;
//drawtext(tt6,hj12,''+'8%﹡→('+numtostr(hj12,2)+''+'← '),align2,colorffff00,pxup8;
//drawtext(tt6,hj15,''+'3%﹡→('+numtostr(hj15,2)+''+'← '),align2,colorffff00,pxup8;
tt4:=islastbar=1 and 调=1;
tt5:=islastbar=1 and 调=2;
ghjs1:=yd+(hh-yd)*1.191;gjns1:=yd+(hh-yd)*1.333;
ghjs2:=yd+(hh-yd)*1.382;gjns2:=yd+(hh-yd)*1.25;
ghjs3:=yd+(hh-yd)*1.03; gjns3:=yd+(hh-yd)*1.15;
ghjs4:=yd+(hh-yd)*1.08; gjns4:=yd+(hh-yd)*1.125;
ghjs5:=yd+(hh-yd)*1.45; gjns5:=yd+(hh-yd)*1.22;
ghjs6:=yd+(hh-yd)*1.50; gjns6:=yd+(hh-yd)*1.28;
drawtext(tt4,ghjs3,''+'3%﹡→('+numtostr(ghjs3,2)+''+'← '),align2,coloraaaa00,pxup8;
drawtext(tt4,ghjs4,''+'8%﹡→('+numtostr(ghjs4,2)+''+'← '),align2,coloraaaa00,pxup8;
drawtext(tt4,gjns4,''+'1/8﹡→('+numtostr(gjns4,2)+' '+'← *'),align2,colorffaaaa,pxup8;
drawtext(tt4,gjns3,''+'15%﹡→('+numtostr(gjns3,2)+' '+'← *'),align2,color208eee,pxup8;
drawtext(tt4,ghjs1,''+'19.1%﹡→('+numtostr(ghjs1,2)+' '+'←- *'),align2,color00bbbb,pxup8;
drawtext(tt4,gjns5,''+'22%﹡→('+numtostr(gjns5,2)+''+'← '),align2,color9aaa00,pxup8;
drawtext(tt4,gjns2,''+'2/8﹡→('+numtostr(gjns2,2)+' '+'← *'),align2,colorffaaaa,pxup8;
drawtext(tt4,gjns6,''+'28%﹡→('+numtostr(gjns6,2)+''+'← '),align2,color9aaa00,pxup8;
drawtext(tt4,gjns1,''+'1/3﹡→('+numtostr(gjns1,2)+' '+'←-- *'),align2,color00dd00,pxup8;
drawtext(tt4,ghjs2,''+'38.2%﹡→('+numtostr(ghjs2,2)+' '+'←- *'),align2,color00bbbb,pxup8;
drawtext(tt4,ghjs5,''+'45%﹡→('+numtostr(ghjs5,2)+' '+'← *'),align2,colorbbbbbb,pxup8;
drawtext(tt4,ghjs6,''+'50%﹡→('+numtostr(ghjs6,2)+''+'﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊﹊'),align2,colordddddd,pxdn2;
ghj1:=hh+(yd-hh)*1.191;gjn1:=hh+(yd-hh)*1.333;
ghj2:=hh+(yd-hh)*1.382;gjn2:=hh+(yd-hh)*1.25;
ghj3:=hh+(yd-hh)*1.03; gjn3:=hh+(yd-hh)*1.15;
ghj4:=hh+(yd-hh)*1.08; gjn4:=hh+(yd-hh)*1.125;
ghj5:=hh+(yd-hh)*1.45; gjn5:=hh+(yd-hh)*1.22;
ghj6:=hh+(yd-hh)*1.50; gjn6:=hh+(yd-hh)*1.28;
ghj7:=hh+(yd-hh)*1.55; gjn7:=hh+(yd-hh)*1.667;
ghj8:=hh+(yd-hh)*1.618;gjn8:=hh+(yd-hh)*1.75;
ghj9:=hh+(yd-hh)*1.809;
drawtext(tt5,ghj3,''+'3%﹡→('+numtostr(ghj3,2)+''+'← '),align2,colordddd00,pxup8;
drawtext(tt5,ghj4,''+'8%﹡→('+numtostr(ghj4,2)+''+'← '),align2,colordddd00,pxup8;
drawtext(tt5,gjn4,''+'1/8﹡→('+numtostr(gjn4,2)+' '+'← *'),align2,color208fff,pxup8;
drawtext(tt5,gjn3,''+'15%﹡→('+numtostr(gjn3,2)+' '+'← *'),align2,color208eee,pxdn2;
drawtext(tt5,ghj1,''+'19.1%﹡→('+numtostr(ghj1,2)+' '+'←- *'),align2,color00ffff,pxup8;
drawtext(tt5,gjn5,''+'22%﹡→('+numtostr(gjn5,2)+''+'← '),align2,colorffff00,pxup8;
drawtext(tt5,gjn2,''+'2/8﹡→('+numtostr(gjn2,2)+' '+'← *'),align2,color208fff,pxup8;
drawtext(tt5,gjn8,''+'6/8﹡→('+numtostr(gjn8,2)+' '+'← *'),align2,color208fff,pxup8;
drawtext(tt5,gjn6,''+'28%﹡→('+numtostr(gjn6,2)+''+'← '),align2,colorffff00,pxup8;
drawtext(tt5,gjn1,''+'1/3﹡→('+numtostr(gjn1,2)+' '+'←-- *'),align2,color00ff00,pxup8;
drawtext(tt5,gjn7,''+'2/3﹡→('+numtostr(gjn7,2)+' '+'←-- *'),align2,color00ff00,pxup8;
drawtext(tt5,ghj2,''+'38.2%﹡→('+numtostr(ghj2,2)+' '+'←- *'),align2,color00ffff,pxup8;
drawtext(tt5,ghj5,''+'45%﹡→('+numtostr(ghj5,2)+' '+'← *'),align2,colorffffff,pxup8;
drawtext(tt5,ghj6,''+'50%﹡→('+numtostr(ghj6,2)+''+' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align2,colorffffff,pxdn2;
drawtext(tt5,ghj7,''+'55%﹡→('+numtostr(ghj7,2)+' '+'← *'),align2,colorffffff,pxup8;
drawtext(tt5,ghj8,''+'61.8%﹡→('+numtostr(ghj8,2)+''+' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align2,color00ffff,pxdn2;
drawtext(tt5,ghj9,''+'80.9%﹡→('+numtostr(ghj9,2)+''+' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align2,color00ffff,pxdn2;
d1:=hh-dd;
d2:=d1/hh*100;
dz2:=d1/dd*100;
d3:=hh-l;
d4:=d3/hh*100;
d5:=hh-c;
d6:=d5/hh*100;
d7:=h-dd;
d8:=d7/dd*100;
d9:=c-dd;
d10:=d9/dd*100;
gh1:=dd+(hh-dd)*1.55;
gh2:=dd+(hh-dd)*1.618;
gh3:=dd+(hh-dd)*1.667;
gh4:=dd+(hh-dd)*1.75;
gh5:=dd+(hh-dd)*1.809;
gh6:=dd+(hh-dd)*1.875;
drawtextex(tt4,0,327,1,'【突破后空间】55%:('+numtostr(gh1,2)+' 元)--0.618:('+numtostr(gh2,2)+' 元)--2/3('+numtostr(gh3,2)+' 元)'),coloraaaaaa;
drawtextex(tt4,0,327,16,' 6/8:('+numtostr(gh4,2)+' 元)--0.809:('+numtostr(gh5,2)+' 元)--7/8('+numtostr(gh6,2)+' 元)'),color00bb00;
stickline(ta1,gg,dd,0,0),linethick0,colorffaaaa;
drawtext((barpos = sysparam(1)),dd,'▲'),align0,color00ffdd,pxdn5;
drawtext(ta1,sysparam(4),'\n \n \n \n \n \n \n \n ★交易天:'+numtostr(t1[sysparam(1)],0)+'(天) / '+'◆自然天:'+numtostr(t2[sysparam(1)],0)+'(天) '),colorbbbbbb,pxdn107,align2;
drawtext(ta1,sysparam(4),' \n \n \n \n \n \n \n \n阶段高('+numtostr(hh,2)+' 元)'+'\n----至 ---'+ '\nk线低('+numtostr(yd,2)+' 元)'+''),color00ee00,pxdn107,align2;
//drawtext(ta1,sysparam(4),' \n \n \n \n \n \n \n \n' +' \n \n \n 【创于09.08.02 草根】'),colorffffff,pxdn107,align2;
a:=sysparam(1);
vertline(barpos=a),pointdot,color996666,shift4;
vertline(barpos=a),pointdot,color996666,shift7;
vertline(barpos=a),pointdot,color996666,shift12;
vertline(barpos=a),pointdot,color996666,shift20;
vertline(barpos=a),pointdot,color996666,shift33;
vertline(barpos=a),pointdot,color996666,shift54;
vertline(barpos=a),pointdot,color996666,shift88;
vertline(barpos=a),pointdot,color996666,shift143;
vertline(barpos=a),pointdot,color996666,shift232;
drawtext(barpos=a,sysparam(5),'天数'+numtostr(t1[sysparam(1)],0)+''),color0095bc,align2,pxup50;
drawtext(barpos=a,sysparam(5),'5'),color0095bc,shift4,pxup50;
drawtext(barpos=a,sysparam(5),'8'),color0095bc,shift7,pxup50;
drawtext(barpos=a,sysparam(5),'13'),color0095bc,shift12,pxup50;
drawtext(barpos=a,sysparam(5),'21'),color0095bc,shift20,pxup50;
drawtext(barpos=a,sysparam(5),'34'),color0095bc,shift33,pxup50;
drawtext(barpos=a,sysparam(5),'55'),color0095bc,shift54,pxup50;
drawtext(barpos=a,sysparam(5),'89'),color0095bc,shift88,pxup50;
drawtext(barpos=a,sysparam(5),'144'),color0095bc,shift143,pxup50;
drawtext(barpos=a,sysparam(5),'233'),color0095bc,shift232,pxup50;

{添加到参数精灵中
--------黄金线调整--------
峰顶 高param#1 手动调节任意波幅顶点(即交易天数);
回调 xsparam#2 调1-3时,计算k线低到任意顶点区间价位;
穿越 调param#3 调1-2时,计算上或下破点后区间价位;
--------均价线--------
均线 ema param#4 手动调节任意均线周期;
均线2 f1 param#5 手动调节任意均线周期;
均线3 f2 param#6 手动调节任意均线周期;
--------启用均线角度值--------
角=1 param#7 对应均线2f1;
角2=1param#8 对应均线3f2;


任意区间黄金分割线

  >>>使用本站搜索工具可以找到更多任意区间黄金分割线公式 飞狐任意分割线指标 源码

指标公式下载地址

点这下载软件
好公式网提供全网最全的指标公式软件,感谢您的支持!鼠标双击图片可看大图!
下载请点击右侧“立即下载”,如只有源码,请点击本页面右侧的导入方法按图导入!
本站指标基于网友分享,仅供研究自学,勿作他用,本站对下载使用不承担任何责任!

指标公式下载注意

    ☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!

    ☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。

    ☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;

    ☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;

    ☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;

    ☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;

    ☉ hxf格式指标公式,仅可以用同花顺软件引入使用。

    ☉ 如果您发现下载软件链接错误,请联系管理员报告错误。

    ☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!

    ☉ 本文任意区间黄金分割线公式 飞狐任意分割线指标 源码仅供学习研究。

猜你喜欢

学了又学