input:k(158,1,300),p(20,1,100),n8(4,1,100),p1(5,1,100);
主线:=(wma(close,p1) * 0.98);
var1:=pow((close - 主线),1);
var2:=ma(var1,3);
var3:=sqrt(var2);
阻力线:=(主线 + (1.96 * var3));
支撑线:=(主线 - (1.96 * var3));
partline(((主线 > ref(主线,1)) and (阻力线 <> 支撑线)),主线),linethick3,colorff;
partline((主线 < ref(主线,1)),主线),linethick2,colorff0000;
drawicon((主线 > ref(主线,1)),主线,10);
n1:=sysparam(3);
n:=((n1 - sysparam(2)) + 1);
hh:=hhv(high,n);
ll:=llv(low,n);
最高:hh[n1],colorff;
最低:ll[n1],colorff;
(最低 + ((最高 - 最低) * 0.191));
(最低 + ((最高 - 最低) * 0.382));
(最低 + ((最高 - 最低) * 0.5)),colorff00ff;
(最低 + ((最高 - 最低) * 0.618));
(最低 + ((最高 - 最低) * 0.809));
drawnumber((barscount(close) = sysparam(2)),ref(最低,barslast((barscount(close) = sysparam(2)))),ref(最低,barslast((barscount(close) = sysparam(2)))),2),shift110,colorffff;
drawnumber((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.191)),barslast((barscount(close) = sysparam(2)))),ref((最低 + ((最高 - 最低) * 0.191)),barslast((barscount(close) = sysparam(2)))),2),shift110,colorffff;
drawnumber((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.382)),barslast((barscount(close) = sysparam(2)))),ref((最低 + ((最高 - 最低) * 0.382)),barslast((barscount(close) = sysparam(2)))),2),shift110,colorffff;
drawnumber((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.5)),barslast((barscount(close) = sysparam(2)))),ref((最低 + ((最高 - 最低) * 0.5)),barslast((barscount(close) = sysparam(2)))),2),shift110,colorffff;
drawnumber((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.618)),barslast((barscount(close) = sysparam(2)))),ref((最低 + ((最高 - 最低) * 0.618)),barslast((barscount(close) = sysparam(2)))),2),shift110,colorffff;
drawnumber((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.809)),barslast((barscount(close) = sysparam(2)))),ref((最低 + ((最高 - 最低) * 0.809)),barslast((barscount(close) = sysparam(2)))),2),shift110,colorffff;
drawnumber((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 1)),barslast((barscount(close) = sysparam(2)))),ref((最低 + ((最高 - 最低) * 1)),barslast((barscount(close) = sysparam(2)))),2),shift110,colorffff;
drawtext((barscount(close) = sysparam(2)),ref(最低,barslast((barscount(close) = sysparam(2)))),'000%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.191)),barslast((barscount(close) = sysparam(2)))),'19.1%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.382)),barslast((barscount(close) = sysparam(2)))),'38.2%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.5)),barslast((barscount(close) = sysparam(2)))),'50%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.618)),barslast((barscount(close) = sysparam(2)))),'61.8%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 0.809)),barslast((barscount(close) = sysparam(2)))),'80.9%↑'),colorffff;
drawtext((barscount(close) = sysparam(2)),ref((最低 + ((最高 - 最低) * 1)),barslast((barscount(close) = sysparam(2)))),'100%↑'),colorffff;
var1:=winner(close);
var2:=(vol / capital);
var3:=(var2 / var1);
财神线:=if((var1 < (n1 / 100)),var3,0);
drawicon((财神线 > 3),low,10),align5;
var1:=winner(close);
var2:=(vol / capital);
var3:=(var2 / var1);
财神线:=if((var1 < (n1 / 100)),var3,0);
财神到:=财神线;
drawicon((((财神线 < ref((财神线 > 1),1)) and (财神线 > 0.5)) and (财神线 < 1)),high,1),align5;
var1111:=forcast(close,5);
stickline((close < open),high,low,1,0),color8800;
stickline((close < open),high,low,0,0),colorff00;
stickline((close < open),close,open,8,0),color8800;
stickline((close < open),close,open,7,0),color9900;
stickline((close < open),close,open,6,0),coloraa00;
stickline((close < open),close,open,5,0),colorbb00;
stickline((close < open),close,open,4,0),colorcc00;
stickline((close < open),close,open,3,0),colordd00;
stickline((close < open),close,open,2,0),coloree00;
stickline((close < open),close,open,1,0),colorff00;
stickline((close >= open),high,low,1,0),colorff;
stickline((close >= open),high,low,0,0),coloreeff;
stickline((close >= open),close,open,8,0),colorff;
stickline((close >= open),close,open,7,0),color22ff;
stickline((close >= open),close,open,6,0),color44ff;
stickline((close >= open),close,open,5,0),color66ff;
stickline((close >= open),close,open,4,0),color88ff;
stickline((close >= open),close,open,3,0),coloraaff;
stickline((close >= open),close,open,2,0),colorccff;
stickline((close >= open),close,open,1,0),coloreeff;
drawnumber((sysparam(2) = barpos),close,finance(33),2),align5;
drawtext((sysparam(2) = barpos),close,' -收益'),align5;
drawtext((barpos = sysparam(2)),high,('\n所属块:' + blkname)),align4,colorffff;
stickline((close < open),high,low,1,0),color8800;
stickline((close < open),high,low,0,0),colorff00;
stickline((close < open),close,open,8,0),color8800;
stickline((close < open),close,open,7,0),color9900;
stickline((close < open),close,open,6,0),coloraa00;
stickline((close < open),close,open,5,0),colorbb00;
stickline((close < open),close,open,4,0),colorcc00;
stickline((close < open),close,open,3,0),colordd00;
stickline((close < open),close,open,2,0),coloree00;
stickline((close < open),close,open,1,0),colorff00;
stickline((close >= open),high,low,1,0),colorff;
stickline((close >= open),high,low,0,0),coloreeff;
stickline((close >= open),close,open,8,0),colorff;
stickline((close >= open),close,open,7,0),color22ff;
stickline((close >= open),close,open,6,0),color44ff;
stickline((close >= open),close,open,5,0),color66ff;
stickline((close >= open),close,open,4,0),color88ff;
stickline((close >= open),close,open,3,0),coloraaff;
stickline((close >= open),close,open,2,0),colorccff;
stickline((close >= open),close,open,1,0),coloreeff;
var1:=(((close + high) + low) / 3);
cb:=ma(var1,4);
a1:=hhv(cb,18);
a2:=hhv(cb,41);
a3:=(hhv(high,62) * 0.98);
b1:=llv(cb,18);
b2:=(llv(low,62) * 1.02);
mid:=ma(close,20);
upper:=(mid + (2 * std(close,20)));
lower:=(mid - (2 * std(close,20)));
var18:=((ema(close,3) - ema(close,6)) - ((ema(close,6) - ema(close,12)) * (0 - 100)));
var28:=ema(var18,3);
var38:=((ema(close,3) - ema(close,6)) - ((ema(close,24) - ema(close,36)) * (0 - 100)));
var48:=ema(var38,9);
var58:=cross(var18,var28);
var36:=cross(var28,var18);
stickline(var36,open,close,1.5,0),colorffffff;
stickline(var58,open,close,8,0),colorff;
stickline(var58,open,(close - ((close - open) * 0.33)),8,0),colorffff;
stickline(var58,open,(close - ((close - open) * 0.66)),8,0),linethick2,colorff00ff;
拐点:=ma(close,n8);
拐点1:=ma(close,n8);
gd1:=(ref((count((拐点 <= ref(拐点,1)),5) = 5),1) and (拐点 > ref(拐点,1)));
gd2:=(ref((count((拐点1 <= ref(拐点1,1)),5) = 5),1) and (拐点1 > ref(拐点1,1)));
drawicon(gd1,(low * 0.99),8);
drawicon(gd1,(low * 0.98),1);
mid:=ma(close,20);
upper:=(mid + (2 * std(close,20)));
lower:=(mid - (2 * std(close,20)));
v1:=(((close - lower) / (upper - lower)) * 100);
v2:=(v1 - ema(v1,5));
k1:=(sum(llv(v2,4),4) / 4);
v3:=(ema(v2,64) * 10);
v4:=ema(((0.4 * v2) * (0 - 1)),3);
v5:=(0 - ((1 * ema(v2,39)) * 10));
a:=(v3 > 10);
b:=(v2 > v4);
d:=(v5 > 10);
e:=(((v3 <= 10) or (v2 <= v4)) or (v5 <= 10));
ks:=(((close - sma(close,13,1)) / sma(close,13,1)) * (0 - 100));
rks:=ref(ks,1);
mls:=((((rks / ks) > 1.23) and (rks > 13)) and ((close / ref(close,1)) > 1.03));
开:=open;
高:=high;
低:=low;
收:=close;
超跌:stickline((ks > 13),高,低,0,1),linethick2,colorffffff;
反弹:stickline((mls = 1),高,低,0,1),linethick2,colorff00ff;
stickline((ks > 13),开,收,8,1),linethick2,colorffffff;
stickline((mls = 1),开,收,8,1),linethick2,colorff00ff;
var1:=((ref(high,1) + ref(low,1)) / 2);
var2:=((ref(high,1) + ref(low,1)) / 2);
var3:=(ma(close,27) + (2 * std(close,27)));
drawicon(cross(var2,var3),(high * 1.035),3);
drawtext(cross(var2,var3),(high * 1.02),''),colorff00;
上:=(ma(high,30) * 1.15);
中1:=(ma(high,3) * 1.03);
中2:=(ma(low,3) * 0.97);
下:=(ma(low,30) * 0.85);
上通道:=(ema(ema(ema(high,5),5),5) * 1.05);
drawtext(filter(((high > 上通道) and (close < 上通道)),3),(high * 1.04),'●逃'),coloree00ff;
短期乖离率:=(((close - ma(close,13)) / ma(close,13)) * 100);
趋势:=(((5 * sma((((close - llv(low,9)) / (hhv(high,9) - llv(low,9))) * 80),5,1)) - (3 * sma(sma((((close - llv(low,7)) / (hhv(high,7) - llv(low,7))) * 80),5,1),3,1))) - sma(sma(sma((((close - llv(low,20)) / (hhv(high,20) - llv(low,20))) * 80),5,1),3,1),2,1));
趋势1:=ma(ma(趋势,5),3);
平衡线:=ema(ema(ema(high,3),3),1);
回挡线:=(平衡线 * 0.92);
drawicon(((cross(趋势,0) and (短期乖离率 > 3)) and ((回挡线 - ref(回挡线,1)) > 0)),low,0);
中期大底:=(llv(low,30) * 1.01);
drawtext((((low <= 中期大底) and ((回挡线 - ref(回挡线,1)) >= (0 - 0.99999))) and ((close / open) > 1.025)),low,'买吧'),colorffff;
var2:=(平衡线 * 0.84);
了结线:=(平衡线 * 1.06);
主线:=wma(close,8);
var1:=pow((close - 主线),1);
var2:=ma(var1,3);
var3:=sqrt(var2);
wx:=ma(close,0);
m1:=(ma(close,15) * if((20 < 5),wx,1));
m2:=(ma(close,20) * if((20 < 7),wx,1));
drawtext((((((((ref(close,1) < m2) and ((主线 - ref(主线,1)) > 0)) and ((了结线 - ref(了结线,1)) > 0.01)) and (low < m2)) and (close > m2)) and ((m1 - ref(m1,1)) > 0)) and ((close / open) > 1.052)),(low - 0.08),'★黄金'),colorffff;
ma10:=ma(close,10);
平均值:=((ma10 / -10) + ma10);
mx:=((平均值 * 2) * 0.54);
ma13:=ma(close,13);
ma34:=ma(close,25);
drawtext(filter((((((((上 - ref(上,1)) > 0) and (短期乖离率 < (0 - 4))) and (close < open)) and (low <= ma34)) and (close < ma13)) and ((mx - ref(mx,1)) > 0)),1),low,'★破多买入'),colorffffff;
短期底:=(llv(high,30) * 0.93);
drawtext((((low <= 短期底) and (close < mx)) and (短期乖离率 > (0 - 8))),(low - 0.15),'★涨20%'),colorff00;
if sysparam(2)=sysparam(1) then ma5:ma(close,5),linethick4,,colormagenta;
if sysparam(2)+1=sysparam(1) then ma10:ma(close,10),linethick4,colorred;
if sysparam(2)+2=sysparam(1) then ma20:ma(close,20),linethick4,colorblue;
if sysparam(2)+3=sysparam(1) then ma30:ma(close,30),linethick4,colorgreen;
if sysparam(2)+4=sysparam(1) then ma40:ma(close,40),linethick4,colorcyan;
if sysparam(2)+5=sysparam(1) then ma50:ma(close,50),linethick4,colorbrown;
上一指标公式:优化后的黑牛均线公式 飞狐均线指标 源码
下一指标公式:编写的常用通式转帖公式 飞狐转帖公式指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文FZ光变黄金公式 飞狐黄金FZ指标 源码仅供学习研究。