源码如下:(只改了颜色和删除了一根移动平均线)不知前人有没有发过?图就不发了!
lhnh:=barslast(dispstatus=1)+1;
nnl:=dispstatus=2;
qqqq:=backset(dispstatus=2 ,barslast(dispstatus=1));
hh:=hhv(h ,lhnh);
ll:=llv(l ,lhnh);
q809:=ll+(hh-ll)*0.809;
q618:=ll+(hh-ll)*0.618;
q500:=ll+(hh-ll)*0.5;
q382:=ll+(hh-ll)*0.382;
q191:=ll+(hh-ll)*0.191;
partline(hh,qqqq,rgb(255,18,28)),dotline;
partline(q191,qqqq,rgb(255,255,255)),dotline;
partline(q382,qqqq,rgb(255,150,150));
partline(q500,qqqq,rgb(255,0,255)),dotline;
partline(q618,qqqq,rgb(150,150,255)),dotline;
partline(q809,qqqq,rgb(0,255,0)),dotline;
partline(ll,qqqq,rgb(238,238,28)),dotline;
drawtext(nnl,hh*0.997,'最高价【'+hh+'】'),align2,color0000ff;
drawtext(nnl,q809,'19.1%【'+q809+'】80.9%'),align2,color00ff00;
drawtext(nnl,q618,'38.2%【'+q618+'】61.8%'),align2,colorffaa00;
drawtext(nnl,q500,'50%【'+q500+'】'),align2,colorff00ff;
drawtext(nnl,q382,'61.8%【'+q382+'】38.2%'),align2,color6699ff;
drawtext(nnl,q191,'80.9%【'+q191+'】19.1%'),align2,colorffffff;
drawtext(nnl,ll*1.003,'最低价【'+ll+'】'),align2,valign2,color00ffff;
var1:=close>ref(close,1) and close>ref(close,2);
var2:=ref(var1,1) and close<=ref(close,1) and close>=ref(close,2);
var3:=ref(var2,1) and close>=ref(close,1) and close<=ref(close,2);
var4:=ref(var3,1) and close<=ref(close,1) and close>=ref(close,2);
var5:=ref(var4,1) and close>=ref(close,1) and close<=ref(close,2);
var6:=ref(var5,1) and close<=ref(close,1) and close>=ref(close,2);
var7:=ref(var6,1) and close>=ref(close,1) and close<=ref(close,2);
var8:=ref(var7,1) and close<=ref(close,1) and close>=ref(close,2);
var9:=ref(var8,1) and close>=ref(close,1) and close<=ref(close,2);
vara:=ref(var9,1) and close<=ref(close,1) and close>=ref(close,2);
varb:=ref(vara,1) and close>=ref(close,1) and close<=ref(close,2);
varc:=ref(varb,1) and close<=ref(close,1) and close>=ref(close,2);
vard:=close<ref(close,1) and close<ref(close,2);
vare:=ref(vard,1) and close>=ref(close,1) and close<=ref(close,2);
varf:=ref(vare,1) and close<=ref(close,1) and close>=ref(close,2);
var10:=ref(varf,1) and close>=ref(close,1) and close<=ref(close,2);
var11:=ref(var10,1) and close<=ref(close,1) and close>=ref(close,2);
var12:=ref(var11,1) and close>=ref(close,1) and close<=ref(close,2);
var13:=ref(var12,1) and close<=ref(close,1) and close>=ref(close,2);
var14:=ref(var13,1) and close>=ref(close,1) and close<=ref(close,2);
var15:=ref(var14,1) and close<=ref(close,1) and close>=ref(close,2);
var16:=ref(var15,1) and close>=ref(close,1) and close<=ref(close,2);
var17:=ref(var16,1) and close<=ref(close,1) and close>=ref(close,2);
var18:=ref(var17,1) and close>=ref(close,1) and close<=ref(close,2);
var19:=ref(vard or vare or varf or var10 or var11 or var12 or var13 or var14 or var15 or var16 or var17 or var18,1) and var1;
stickline(var19,ref(close,1),ref(close,2),4,0),color0000ff;
var1a:=ref(var1 or var2 or var3 or var4 or var5 or var6 or var7 or var8 or var9 or vara or varb or varc,1) and vard;
stickline(var1a,ref(close,1),ref(close,2),4,0),colorff0000;
上一指标公式:趋势无敌主图公式 飞狐无敌趋势指标 源码
下一指标公式:讯雷天成C公式 飞狐天成指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文甲乙动态黄金分割公式 飞狐甲乙源码指标 源码仅供学习研究。