t1:=barpos=sysparam(2)+左侧右移;
t2:=barpos=sysparam(3)-右侧左移;
t11:=sysparam(2)+左侧右移;
t21:=sysparam(3)-右侧左移;
ymd:=date;
d1:ymd[t11],linethick0,coloryellow;
d2:ymd[t21],linethick0,coloryellow;
{d2:hhv(if(t2,date,0),0),linethick0;}
vertline(t1),color00ffff,pointdot;
vertline(t2),color00ffff,pointdot;
{d1:=if(t1 or t2,barpos,0);
dd:=d1;
x835:=sortpos(dd,1,1,datacount);
间隔:=abs(d1[dd[1]]-d1[dd[2]]),linethick0;}
间隔:=t21-t11,linethick0;
{ccc:ref(barstatus=2,右侧左移);}
x1:=间隔*(0.191);
x8:=间隔*(0.382);
x05:=间隔*(0.5);
x3:=间隔*(0.618);
x5:=间隔*(0.809);
x1831:=sysparam(2)+左侧右移+round(x1);
tx1:=barpos=x1831;
vertline(tx1),colorffff33,pointdot;
d191:ymd[x1831],linethick0,colorcyan;
x1838:=t11+round(x8);
tx8:=barpos=x1838;
vertline(tx8),color00aaaa,pointdot;
d382:ymd[x1838],linethick0,color009999;
x18305:=t11+round(x05);
tx05:=barpos=x18305;
vertline(tx05),color0000ff,pointdot;
d050:ymd[x18305],linethick0,colorred;
x1833:=t11+round(x3);
tx3:=barpos=x1833;
vertline(tx3),color00aaaa,pointdot;
d618:ymd[x1833],linethick0,color009999;
x1835:=t11+round(x5);
tx5:=barpos=x1835;
vertline(tx5),colorffff33,pointdot;
d809:ymd[x1835],linethick0,colorcyan;
ph:=sysparam(4);
pl:=sysparam(5);
drawtext(t1,pl,strleft(numtostr(d1+19000000,0),4)+strright(numtostr(d1,0),4)),color00ffff;
drawtext(t2,pl,strleft(numtostr(d2+19000000,0),4)+strright(numtostr(d2,0),4)),color00ffff;
drawtext(tx1,pl,strleft(numtostr(d191+19000000,0),4)+strright(numtostr(d191,0),4)),colorffff33;
drawtext(tx8,pl,strleft(numtostr(d382+19000000,0),4)+strright(numtostr(d382,0),4)),color00aaaa;
drawtext(tx05,pl,strleft(numtostr(d050+19000000,0),4)+strright(numtostr(d050,0),4)),color0000ff;
drawtext(tx3,pl,strleft(numtostr(d618+19000000,0),4)+strright(numtostr(d618,0),4)),color00aaaa;
drawtext(tx5,pl,strleft(numtostr(d809+19000000,0),4)+strright(numtostr(d809,0),4)),colorffff33;
drawtext(t1,ph*0.99,'0.000'),color00ffff;
drawtext(t2,ph*0.99,'1.000'),color00ffff;
drawtext(tx1,ph*0.99,'0.191'),colorffff33;
drawtext(tx8,ph*0.99,'0.382'),color00aaaa;
drawtext(tx05,ph*0.99,'0.500'),color0000ff;
drawtext(tx3,ph*0.99,'0.618'),color00aaaa;
drawtext(tx5,ph*0.99,'0.809'),colorffff33;
h1:=hhv(high,n);
l1:=llv(low,n);
hh:=ref(h1,nn);
ll:=ref(l1,nn);
<%
vh=ffl.vardata("hh")
vl=ffl.vardata("ll")
vn=ffl.vardata("n")
last=ubound(vh)
if vn>last then vn=last+1
for i=last to last-vn+1 step-1
vh(i)=vh(last)
vl(i)=vl(last)
next
ffl.vardata("hh")=vh
ffl.vardata("ll")=vl
ffl.varstartindex("hh")=last-vn+1
ffl.varstartindex("ll")=last-vn+1
%>
hh,color009999;
drawtext(close>0and islastbar=1,hh,' 1.000'),color009999;
drawnumber(barscount(ll)=n-(n-1),hh,hh,2),align2,color009999;
ll+((hh-ll)*0.809),pointdot,linethick1,coloryellow;
drawtext(close>0and islastbar=1,ll+((hh-ll)*0.809),' 0.809'),color009999;
drawnumber(barscount(ll)=n-(n-1),ll+((hh-ll)*0.809),ll+((hh-ll)*0.809),2),align2,color009999;
ll+((hh-ll)*0.764),pointdot,linethick1,coloryellow;
drawtext(close>0and islastbar=1,ll+((hh-ll)*0.764),' 0.764'),color009999;
drawnumber(barscount(ll)=n-(n-1),ll+((hh-ll)*0.764),ll+((hh-ll)*0.764),2),align2,color009999;
ll+((hh-ll)*0.618),pointdot,linethick1,coloryellow;
drawtext(close>0and islastbar=1,ll+((hh-ll)*0.618),' 0.618'),color009999;
drawnumber(barscount(ll)=n-(n-1),ll+((hh-ll)*0.618),ll+((hh-ll)*0.618),2),align2,color009999;
ll+((hh-ll)*0.500),pointdot,linethick1,coloryellow;
drawtext(close>0and islastbar=1,ll+((hh-ll)*0.500),' 0.500'),color009999;
drawnumber(barscount(ll)=n-(n-1),ll+((hh-ll)*0.500),ll+((hh-ll)*0.500),2),align2,color009999;
ll+((hh-ll)*0.382),pointdot,linethick1,coloryellow;
drawtext(close>0and islastbar=1,ll+((hh-ll)*0.382),' 0.382'),color009999;
drawnumber(barscount(ll)=n-(n-1),ll+((hh-ll)*0.382),ll+((hh-ll)*0.382),2),align2,color009999;
ll+((hh-ll)*0.236),pointdot,linethick1,coloryellow;
drawtext(close>0and islastbar=1,ll+((hh-ll)*0.236),' 0.236'),color009999;
drawnumber(barscount(ll)=n-(n-1),ll+((hh-ll)*0.236),ll+((hh-ll)*0.236),2),align2,color009999;
ll+((hh-ll)*0.191),pointdot,linethick1,coloryellow;
drawtext(close>0and islastbar=1,ll+((hh-ll)*0.191),' 0.191'),color009999;
drawnumber(barscount(ll)=n-(n-1),ll+((hh-ll)*0.191),ll+((hh-ll)*0.191),2),align2,color009999;
ll,color009999;
drawtext(close>0and islastbar=1,ll,' 0.000↑'),color009999;
drawnumber(barscount(ll)=n-(n-1),ll,ll,2),align2,color009999;
fbars:=sysparam(0);
f5:=barssince(close)=fbars-1;
vertline(f5),pointdot,color996666,linethick1,shift5;
drawnumber(f5,sysparam(4),5,0),shift5,coloryellow;
ff5:=barssince(close)=fbars-5;
vertline(ff5),pointdot,color996666,linethick1;
drawnumber(ff5,sysparam(4),5,0),coloryellow;
f8:=barssince(close)=fbars-1;
ff8:=barssince(close)=fbars-8;
vertline(f8),pointdot,color996666,linethick1,shift8;
drawnumber(f8,sysparam(4),8,0),shift8,colorred;
vertline(ff8),pointdot,color996666,linethick1;
drawnumber(ff8,sysparam(4),8,0),colorred;
f13:=barssince(close)=fbars-1;
ff13:=barssince(close)=fbars-13;
vertline(f13),pointdot,color996666,linethick1,shift13;
drawnumber(f13,sysparam(4),13,0),shift13,colorgreen;
vertline(ff13),pointdot,color996666,linethick1;
drawnumber(ff13,sysparam(4),13,0),colorgreen;
f21:=barssince(close)=fbars-1;
ff21:=barssince(close)=fbars-21;
vertline(f21),pointdot,color996666,linethick1,shift21;
drawnumber(f21,sysparam(4),21,0),shift21,colormagenta;
vertline(ff21),pointdot,color996666,linethick1;
drawnumber(ff21,sysparam(4),21,0),colormagenta;
f34:=barssince(close)=fbars-1;
ff34:=barssince(close)=fbars-34;
vertline(f34),pointdot,color996666,linethick1,shift34;
drawnumber(f34,sysparam(4),34,0),shift34,colorcyan;
vertline(ff34),pointdot,color996666,linethick1;
drawnumber(ff34,sysparam(4),34,0),colorcyan;
f55:=barssince(close)=fbars-1;
ff55:=barssince(close)=fbars-54;
vertline(f55),pointdot,color996666,linethick1,shift55;
drawnumber(f55,sysparam(4),55,0)shift55,colorff0099;
vertline(ff55),pointdot,color996666,linethick1;
drawnumber(ff55,sysparam(4),55,0),colorff0099;
f89:=barssince(close)=fbars-1;
ff89:=barssince(close)=fbars-88;
vertline(f89),pointdot,color996666,linethick1,shift89;
drawnumber(f89,sysparam(4),89,0),shift89,colorblue;
vertline(ff89),pointdot,color996666,linethick1;
drawnumber(ff89,sysparam(4),89,0),colorblue;
f134:=barssince(close)=fbars+20;
ff134:=barssince(close)=fbars-144;
vertline(f134),pointdot,color996666,linethick1,shift124;
drawnumber(f134,sysparam(4),144,0),shift124,color996666;
vertline(ff134),pointdot,color996666,linethick1;
drawnumber(ff134,sysparam(4),144,0),color996666;
当前月:=fracpart(round(currentdate/100)/100)*100;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='1',close,numtostr(当前月,0)+'月时间窗口:6、15、21、*25\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='2',close,numtostr(当前月,0)+'月时间窗口:6、15、21\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='3',close,numtostr(当前月,0)+'月时间窗口:6、15、*20、21\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='4',close,numtostr(当前月,0)+'月时间窗口:6、15、21\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='5',close,numtostr(当前月,0)+'月时间窗口:6、*12、15、21\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='6',close,numtostr(当前月,0)+'月时间窗口:6、*14、21\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='7',close,numtostr(当前月,0)+'月时间窗口:8、15、*19、23\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='8',close,numtostr(当前月,0)+'月时间窗口:*6、8、15、23\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='9',close,numtostr(当前月,0)+'月时间窗口:8、15、*18、23\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='10',close,numtostr(当前月,0)+'月时间窗口:8、15、23、*31\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='11',close,numtostr(当前月,0)+'月时间窗口:8、15、23、*28\n \n \n \n '),color00ffff,align4;
drawtext(sysparam(2)=barpos and numtostr(当前月,0)='12',close,numtostr(当前月,0)+'月时间窗口:8、15、23、*31\n \n \n \n '),color00ffff,align4;
我奉献一个给我曾经在这里的朋友
上一指标公式:均线盈亏公式 飞狐盈亏指标 源码
下一指标公式:简单主图-简简单单的主图希望对大家有公式 飞狐指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文时空之窗-主图公式 飞狐之窗指标 源码仅供学习研究。