发布者:神韵1993
{江恩斐波主图}
hday:=20;
lday:=20;
上角度:=70;
下角度:=70;
调点:=3;
curr:=currbarscount;
tch:=const(findhigh(h,0,hday*10,1));
gtt:=const(barslast(tch=h))+1;
sx跌h:=const(if(gtt=1,h,ref(h,gtt-1)));
bcl:=const(findlow(l,0,lday*10,1));
dtt:=const(barslast(bcl=l))+1;
sx涨l:=const(if(dtt=1,l,ref(l,dtt-1)));
涨点:=barssince(backset(islastbar,barslast(l=sx涨l)+1));
跌点:=barssince(backset(islastbar,barslast(h=sx跌h)+1));
最低:=if(调点=1,跌点,if(调点=2,涨点,if(调点=3,涨点,跌点)));
l斜率:=下角度/if(c<300,1000,10);
最高:=if(调点=1,跌点,if(调点=2,涨点,if(调点=3,跌点,涨点)));
h斜率:=上角度/if(c<300,1000,10);
im68:=((sx跌h-sx涨l)/8-(sx跌h-sx涨l)/8);
gh跌x:=sx跌h+(sx跌h-sx涨l)/8;
dl涨x:=sx涨l-(sx跌h-sx涨l)/8;
gtht:=if(dtt>gtt,dtt,gtt);
r:=abs(gtt-dtt);
dhh:drawband(if(curr<=gtht,sx跌h,drawnull),rgb(0,120,120),sx跌h,rgb(8,168,168));
dll:drawband(if(curr<=gtht,sx涨l,drawnull),rgb(0,120,120),sx涨l,rgb(0,160,160));
stickline(currbarscount=gtt,sx跌h,sx涨l,0,0),color556600;
stickline(currbarscount=dtt,sx跌h,sx涨l,0,0),color666666;
stickline(currbarscount=1,sx跌h,sx涨l,0,0),color556600;
天线:=sx跌h;
地线:=sx涨l;
k:=(天线-地线)/(if(跌点>=涨点,跌点,涨点)-if(跌点>=涨点,涨点,跌点));
上斜线:=if(地线+const(l斜率*4.00)*最低>=地线,地线+const(l斜率*4.00)*最低,drawnull);
上斜线0:=if(地线+const(l斜率*2.00)*最低>=地线,地线+const(l斜率*2.00)*最低,drawnull);
上斜线1:=if(地线+const(l斜率*1.5)*最低>=地线,地线+const(l斜率*1.5)*最低,drawnull);
上斜线2:=if(地线+const(l斜率*1.00)*最低>=地线,地线+const(l斜率*1.000)*最低,drawnull);
上斜线3:=if(地线+const(l斜率*0.70)*最低>=地线,地线+const(l斜率*0.70)*最低,drawnull);
上斜线4:=if(地线+const(l斜率*0.50)*最低>=地线,地线+const(l斜率*0.50)*最低,drawnull);
上斜线5:=if(地线+const(l斜率*0.365)*最低>=地线,地线+const(l斜率*0.365)*最低,drawnull);
上斜线6:=if(地线+const(l斜率*0.250)*最低>=地线,地线+const(l斜率*0.250)*最低,drawnull);
上斜线7:=if(地线+const(l斜率*0.165)*最低>=地线,地线+const(l斜率*0.165)*最低,drawnull);
上斜线8:=if(地线+const(l斜率*0.123)*最低>=地线,地线+const(l斜率*0.123)*最低,drawnull);
上斜线9:=if(地线+const(l斜率*0.06)*最低>=地线,地线+const(l斜率*0.06)*最低,drawnull);
上9:if(上斜线9<=天线*1.05,上斜线9,drawnull),coloraa00aa,dotline;
上8:if(上斜线8<=天线*1.05,上斜线8,drawnull),coloraa00aa,dotline;
上7:if(上斜线7<=天线*1.05,上斜线7,drawnull),coloraa00aa,dotline;
上6:if(上斜线6<=天线*1.05,上斜线6,drawnull),coloraa00aa,dotline;
上5:if(上斜线5<=天线*1.05,上斜线5,drawnull),coloraa00aa,dotline;
上4:if(上斜线4<=天线*1.05,上斜线4,drawnull),color0000ff,dotline;
上3:if(上斜线3<=天线*1.05,上斜线3,drawnull),coloraa00aa,dotline;
上2:if(上斜线2<=天线*1.05,上斜线2,drawnull),coloraa00aa,dotline;
上1:if(上斜线1<=天线*1.05,上斜线1,drawnull),coloraa00aa,dotline;
上0:if(上斜线0<=天线*1.05,上斜线0,drawnull),coloraa00aa,dotline;
上:if(上斜线<=天线*1.05,上斜线,drawnull),coloraa00aa,dotline;
下斜线:=if(天线-const(h斜率*4.00)*最高<=天线,天线-const(h斜率*4.00)*最高,drawnull);
下斜线0:=if(天线-const(h斜率*2.00)*最高<=天线,天线-const(h斜率*2.00)*最高,drawnull);
下斜线1:=if(天线-const(h斜率*1.500)*最高<=天线,天线-const(h斜率*1.500)*最高,drawnull);
下斜线2:=if(天线-const(h斜率*1.000)*最高<=天线,天线-const(h斜率*1.000)*最高,drawnull);
下斜线3:=if(天线-const(h斜率*0.70)*最高<=天线,天线-const(h斜率*0.70)*最高,drawnull);
下斜线4:=if(天线-const(h斜率*0.50)*最高<=天线,天线-const(h斜率*0.50)*最高,drawnull);
下斜线5:=if(天线-const(h斜率*0.365)*最高<=天线,天线-const(h斜率*0.365)*最高,drawnull);
下斜线6:=if(天线-const(h斜率*0.250)*最高<=天线,天线-const(h斜率*0.250)*最高,drawnull);
下斜线7:=if(天线-const(h斜率*0.165)*最高<=天线,天线-const(h斜率*0.165)*最高,drawnull);
下斜线8:=if(天线-const(h斜率*0.123)*最高<=天线,天线-const(h斜率*0.123)*最高,drawnull);
下斜线9:=if(天线-const(h斜率*0.06)*最高<=天线,天线-const(h斜率*0.06)*最高,drawnull);
下9:if(下斜线9>=地线*0.95,下斜线9,drawnull),coloraaaaaa,dotline;
下8:if(下斜线8>=地线*0.95,下斜线8,drawnull),coloraaaaaa,dotline;
下7:if(下斜线7>=地线*0.95,下斜线7,drawnull),coloraaaaaa,dotline;
下6:if(下斜线6>=地线*0.95,下斜线6,drawnull),coloraaaaaa,dotline;
下5:if(下斜线5>=地线*0.95,下斜线5,drawnull),coloraaaaaa,dotline;
下4:if(下斜线4>=地线*0.95,下斜线4,drawnull),color0000ff,dotline;
下3:if(下斜线3>=地线*0.95,下斜线3,drawnull),coloraaaaaa,dotline;
下2:if(下斜线2>=地线*0.95,下斜线2,drawnull),coloraaaaaa,dotline;
下1:if(下斜线1>=地线*0.95,下斜线1,drawnull),coloraaaaaa,dotline;
下0:if(下斜线0>=地线*0.95,下斜线0,drawnull),coloraaaaaa,dotline;
下:if(下斜线>=地线*0.95,下斜线,drawnull),coloraaaaaa,dotline;
{黄金分割}
x146:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.146,drawnull),dotline,color556600;
drawtext(curr=gtht,(x146)*1.001,strcat(' 0.146%% ',con2str(x146,3))),color889900;
x191:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.191,drawnull),dotline,color556600;
drawtext(curr=gtht,(x191)*1.001,strcat(' 0.191%% ',con2str(x191,3))),color889900;
x236:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.236,drawnull),dotline,color556600;
drawtext(curr=gtht,(x236)*1.001,strcat(' 0.236%% ',con2str(x236,3))),color889900;
x382:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.382,drawnull),dotline,color556600;
drawtext(curr=gtht,(x382)*1.001,strcat(' 0.382%% ',con2str(x382,3))),color889900;
x500:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.500,drawnull),dotline,color556600;
drawtext(curr=gtht,(x500)*1.001,strcat(' 0.500%% ',con2str(x500,3))),color889900;
x618:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.618,drawnull),dotline,color556600;
drawtext(curr=gtht,(x618)*1.001,strcat(' 0.618%% ',con2str(x618,3))),color889900;
x764:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.764,drawnull),dotline,color556600;
drawtext(curr=gtht,(x764)*1.001,strcat(' 0.764%% ',con2str(x764,3))),color889900;
x809:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.809,drawnull),dotline,color556600;
drawtext(curr=gtht,(x809)*1.001,strcat(' 0.809%% ',con2str(x809,3))),color889900;
x854:if(curr<=gtht,sx跌h-(sx跌h-sx涨l)*0.854,drawnull),dotline,color556600;
drawtext(curr=gtht,(x854)*1.001,strcat(' 0.854%% ',con2str(x854,3))),color889900;
{斐波那契周期}
drawtext(currbarscount=gtt,sx跌h*1.02,'斐波那契下跌周期'),color00ff00;
drawtext(currbarscount=gtt,sx跌h*1.01,'1'),color00ff00;
stickline(currbarscount=gtt-2,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-2,sx跌h*1.01,'3'),color00ff00;
stickline(currbarscount=gtt-4,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-4,sx跌h*1.01,'5'),color00ff00;
stickline(currbarscount=gtt-7,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-7,sx跌h*1.01,'8'),color00ff00;
stickline(currbarscount=gtt-12,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-12,sx跌h*1.01,'13'),color00ff00;
stickline(currbarscount=gtt-20,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-20,sx跌h*1.01,'21'),color00ff00;
stickline(currbarscount=gtt-33,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-33,sx跌h*1.01,'34 '),color00ff00;
stickline(currbarscount=gtt-54,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-54,sx跌h*1.01,'55'),color00ff00;
stickline(currbarscount=gtt-67,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-67,sx跌h*1.01,'68'),color00ff00;
stickline(currbarscount=gtt-88,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-88,sx跌h*1.01,'89'),color00ff00;
stickline(currbarscount=gtt-109,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-109,sx跌h*1.01,'110'),color00ff00;
stickline(currbarscount=gtt-143,sx跌h,sx涨l,0,0),color556600;
drawtext(currbarscount=gtt-143,sx跌h*1.01,'144'),color00ff00;
drawtext(currbarscount=dtt,sx涨l*0.96,'斐波那契上升周期'),color0000ff;
drawtext(currbarscount=dtt,sx涨l*0.98,'1'),color0000ff;
stickline(currbarscount=dtt-2,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-2,sx涨l*0.98,'3'),color0000ff;
stickline(currbarscount=dtt-4,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-4,sx涨l*0.98,'5'),color0000ff;
stickline(currbarscount=dtt-7,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-7,sx涨l*0.98,'8'),color0000ff;
stickline(currbarscount=dtt-12,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-12,sx涨l*0.98,'13'),color0000ff;
stickline(currbarscount=dtt-20,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-20,sx涨l*0.98.01,'21'),color0000ff;
stickline(currbarscount=dtt-33,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-33,sx涨l*0.98,'34'),color0000ff;
stickline(currbarscount=dtt-54,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-54,sx涨l*0.98,'55'),color0000ff;
stickline(currbarscount=dtt-67,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-67,sx涨l*0.98,'68'),color0000ff;
stickline(currbarscount=dtt-88,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-88,sx涨l*0.98,'89'),color0000ff;
stickline(currbarscount=dtt-109,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-109,sx涨l*0.98,'110'),color0000ff;
stickline(currbarscount=dtt-143,sx跌h,sx涨l,0,0),coloraa00aa;
drawtext(currbarscount=dtt-143,sx涨l*0.98,'144'),color0000ff;
a1:=c>ref(c,4);
nt:=barslastcount(a1);
tj11:=nt=9;
tj13:=islastbar and between(nt,5,8);
ay:=(backset(tj11>0,9) or backset(tj13>0,nt))*nt;
drawtext(ay>0,h*1.01,var2str(ay,0)),colorff00ff;
drawtext(nt=9,h*1.01,'9'),colorgreen;
b1:=c<ref(c,4);
nt0:=barslastcount(b1);
tj21:=nt0=9 ;
tj23:=islastbar and between(nt0,5,8);
ay1:=(backset(tj21>0,9) or backset(tj23>0,nt0))*nt0;
drawtext(ay1>0,l*0.99,var2str(ay1,0)),colorgreen;
drawtext(nt0=9,l*0.99,'9'),colorgreen;
上一指标公式:峰顶线谷底线主图和黄金柱成交量副图公式下载 通达信峰顶成交量
下一指标公式:变色均线主图有图公式下载 通达信均线有图
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文江恩斐波主图--很实用的趋势分析主图重点支撑 压力分析工具提前预测行情类型走势公式下载 通达信江恩仅供学习研究。