若做主图使用,可先删除普通k线,再将本指标拉入主图;
若不使用本指标,可还原普通k线。
黄金分割线是利用黄金分割比率进行的切线画法,在行情发生转势后,无论是止跌转升或止升转跌,以近期走势中重要的高点和低点之间的涨跌额作为计量的基数, 将原涨跌幅按0.191、0.382、0.5、0.618、0.809分割为5个黄金点,股价在反转后的走势将可能在这些黄金分割点上遇到暂时的阻力或支撑。黄金分割的原理源自斐波那契数列即大自然数字,0.6180339……是众所周知的黄金分割比率,是相邻的斐波那契数列的比率,反映了斐波那契数列的增长,反映了大自然的静态美与动态美。据此又推算出0.191、0.382、0.5、0.618、0.809等,其中黄金分割线中运用最经典的数字为0.382、 0.618,极易产生支撑与压力。
var1:=(2*close+high+low+open)/5;
a1: =(ema(var1,13)+ema(var1,21)+ema(var1,34)+ema(var1,55))/4;
a2: =ema(a1,3);
a3: =ema(a2,3);
a4: =ema(a3,3);
a5: =ema(a4,3);
a6: =ema(a5,3);
a7: =ema(a6,3);
a8: =ema(a7,3);
a9: =ema(a8,3);
a10: =ema(a9,3);
a11: =ema(a10,3);
a12: =ema(a11,3);//www.goodgongshi.com
partline(a1,a1>ref(a1,1),rgb(255,250,0),a1<ref(a1,1),rgb(150,0,250));
partline(a2,a2>ref(a2,1),rgb(255,230,0),a2<ref(a2,1),rgb(140,0,250));
partline(a3,a3>ref(a3,1),rgb(255,210,0),a3<ref(a3,1),rgb(130,0,250));
partline(a4,a4>ref(a4,1),rgb(255,190,0),a4<ref(a4,1),rgb(120,0,250));
partline(a5,a5>ref(a5,1),rgb(255,170,0),a5<ref(a5,1),rgb(100,0,250));
partline(a6,a6>ref(a6,1),rgb(255,150,0),a6<ref(a6,1),rgb(90,0,250));
partline(a7,a7>ref(a7,1),rgb(255,120,0),a7<ref(a7,1),rgb(80,0,250));
partline(a8,a8>ref(a8,1),rgb(255,100,0),a8<ref(a8,1),rgb(70,0,250));
partline(a9,a9>ref(a9,1),rgb(255,80,0),a9<ref(a9,1),rgb(60,0,250));
partline(a10,a10>ref(a10,1),rgb(255,60,0),a10<ref(a10,1),rgb(50,0,250));
partline(a11,a11>ref(a11,1),rgb(255,30,0),a11<ref(a11,1),rgb(40,0,250));
partline(a12,a12>ref(a12,1),rgb(255,0,0),a12<ref(a12,1),rgb(30,0,250)),linethick1;
日:=144;昨前:=1;
高1:ref(hhv(h,日),昨前),colorblue,linethick2;
低1:ref(llv(l,日),昨前),colorred,linethick2;
h1:高1-(高1-低1)*0.191,colorred;
h2:高1-(高1-低1)*0.382,coloryellow;
h3:高1-(高1-低1)*0.5,colorgreen;
h4:高1-(高1-低1)*0.618,colormagenta;
h5:高1-(高1-低1)*0.809,colorcyan;
顶点:高1*1,colorred;
低点:低1*1,colorwhite;
止盈:h1*1,coloryellow;
回档:h2*1,colormagenta;
平衡:h3*1,colorred;
反弹:h4*1,colorcyan;
建仓:h5*1,coloryellow;//www.goodgongshi.com
drawtext(isnull(refx(&close,1)),顶点,'顶点'),colorffcc18;
drawtext(isnull(refx(&close,1)),止盈,'0.809'),colorff18ff;
drawtext(isnull(refx(&close,1)),回档,'0.618'),color18ff18;
drawtext(isnull(refx(&close,1)),平衡,'0.5'),color18ccff;
drawtext(isnull(refx(&close,1)),反弹,'0.382'),orffffff;
drawtext(isnull(refx(&close,1)),建仓,'0.191'),or00ccff;
drawtext(isnull(refx(&close,1)),低点,'低点'),color00cc00;
stickline(open>=close ,close ,open,0,0 ),color00ff11;
stickline(open>=close ,close ,open,10,0 ),color008855;
stickline(open>=close ,close ,open,10,0 ),color009900;
stickline(open>=close ,close ,open,9,0 ),color00aa00;
stickline(open>=close ,close ,open,7,0 ),color00bb00;
stickline(open>=close ,close ,open,6,0 ),color00cc00;
stickline(open>=close ,close ,open,5,0 ),color00dd00;
stickline(open>=close ,close ,open,4,0 ),color00ee00;
stickline(open>=close ,close ,open,3,0 ),color00ff55;
stickline(close>open,close,open,10,0) ,colorff66ff;
stickline(close>open,close,open,9,0) ,colorff88ff;
stickline(close>open,close,open,8,0) ,colorff99ff;
stickline(close>open,close,open,7,0) ,colorffaaff;
stickline(close>open,close,open,0,0) ,colorffbbff;
stickline(close>open,close,open,10,0) ,colorff00ff;
stickline(close>open,close,open,9,0) ,colorff22ff;
stickline(close>open,close,open,8,0) ,colorff44ff;
stickline(close>open,close,open,7,0) ,colorff66ff;
stickline(close>open,close,open,6,0) ,colorff88ff;
stickline(close>open,close,open,5,0) ,colorff99ff;
stickline(close>open,close,open,4,0) ,colorffaaff;
阻挡:=(sma(high,21,2) * 1.05);
stickline((open >= close),close,open,10,0),colorff5b00;
stickline((open >= close),close,open,9,0),colorff6c00;
stickline((open >= close),close,open,8,0),colorff7b00;
stickline((open >= close),close,open,7,0),colorff9c00;
stickline((open >= close),close,open,6,0),colorffbe00;
stickline((open >= close),close,open,3.5,0),colorffcc00;
stickline((open >= close),close,open,1.5,0),colorffff00;
stickline((close >= open),close,open,10,0),color070084;
stickline((close >= open),close,open,9,0),color0000a3;
stickline((close >= open),close,open,8,0),color0000b7;
stickline((close >= open),close,open,7,0),color0000cd;
stickline((close >= open),close,open,6,0),color0000e9;
stickline((close >= open),close,open,5,0),color0754e9;
stickline((close >= open),close,open,1.5,0),color076ef3;
stickline((close >= open),close,open,1,0),color077bf3;
stickline((close > open),open,low,1,0),color0726ca;
stickline((close > open),close,high,1,0),color0726ca;
stickline((open > close),close,low,1,0),colorde9100;
stickline((open > close),open,high,1,0),colorde9100;
stickline(((((close / open) > 1.04) and (close < 阻挡)) and ((close - ref(close,1)) > 0)),close,open,10,0),color0090ff;
stickline(((((close / open) > 1.04) and (close < 阻挡)) and ((close - ref(close,1)) > 0)),close,open,9,0),color009fff;
stickline(((((close / open) > 1.04) and (close < 阻挡)) and ((close - ref(close,1)) > 0)),close,open,8,0),color00b5ff;
stickline(((((close / open) > 1.04) and (close < 阻挡)) and ((close - ref(close,1)) > 0)),close,open,7,0),color00e4ff;
stickline(((((close / open) > 1.04) and (close < 阻挡)) and ((close - ref(close,1)) > 0)),open,low,0.7,0),color00ffff;
stickline(((((close / open) > 1.04) and (close < 阻挡)) and ((close - ref(close,1)) > 0)),close,high,0.7,0),color00ffff;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),open,low,0.7,0),colorff76ff;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),close,high,0.7,0),colorff76ff;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),close,open,9,0),colorff00ff;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),close,open,6,0),colorff62ff;
stickline(((((close < ref(close,1)) and (close < ref(close,1))) and (high > 阻挡)) and (close < 阻挡)),close,open,4,0),colorff76ff;
上一指标公式:底部指标公式下载 同花顺
下一指标公式:CJDX3指标公式下载 同花顺CJDX3
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文自动划黄金分割线指标公式下载 同花顺分割线仅供学习研究。