mid:= (o+c)/2;
hsl:=if(capital=0,v/sum(v,100),v/capital);
ljhs := hsl;
cyc1 := mid;
ljhs2:= hsl;
cyc2 := mid;
ljhs3:= hsl;
cyc3 := mid;
ljhsm:= hsl;
cycm := mid;
<%
vmid = ffl.vardata("mid")
vhsl = ffl.vardata("hsl")
vljhs = ffl.vardata("ljhs")
vljhs2 = ffl.vardata("ljhs2")
vljhs3 = ffl.vardata("ljhs3")
vljhsm = ffl.vardata("ljhsm")
vcyc1 = ffl.vardata("cyc1")
vcyc2 = ffl.vardata("cyc2")
vcyc3 = ffl.vardata("cyc3")
vcycm = ffl.vardata("cycm")
last=ubound(vmid)
for i=1 to last
vljhs(i) = vljhs(i -1) * (1 - vhsl(i)) * 7 / 8 + vhsl(i)
vcyc1(i) = (vmid(i) * vhsl(i) + vcyc1(i-1) * vljhs(i -1) * (1 - vhsl(i)) * 7 / 8) / vljhs(i)
vljhs2(i) = vljhs2(i -1) * (1 - vhsl(i)) * 20 / 21 + vhsl(i)
vcyc2(i) = (vmid(i) * vhsl(i) + vcyc2(i-1) * vljhs2(i -1) * (1 - vhsl(i)) * 20 / 21) / vljhs2(i)
vljhs3(i) = vljhs3(i -1) * (1 - vhsl(i)) * 59 / 60 + vhsl(i)
vcyc3(i) = (vmid(i) * vhsl(i) + vcyc3(i-1) * vljhs3(i -1) * (1 - vhsl(i)) * 59 / 60) / vljhs3(i)
vljhsm(i) = vljhsm(i -1) * (1 - vhsl(i)) + vhsl(i)
vcycm(i) = (vmid(i) * vhsl(i) + vcycm(i-1) * vljhsm(i -1) * (1 - vhsl(i))) / vljhsm(i)
next
ffl.vardata("ljhs") = vljhs
ffl.vardata("ljhs2") = vljhs2
ffl.vardata("ljhs3") = vljhs3
ffl.vardata("ljhsm") = vljhsm
ffl.vardata("cyc1") = vcyc1
ffl.vardata("cyc2") = vcyc2
ffl.vardata("cyc3") = vcyc3
ffl.vardata("cycm") = vcycm
%>
cyc8:cyc1,colorff00ff,linethick3,;
cyc21:=cyc2;
cyc60:=cyc3;
cyc0:cycm,colorcyan,linethick3;
varbq:=c=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3)) or ref(c,1)=llv(c,4) and c<ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<>hhv(c,4) and c<ref(c,1) or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2);
主力吸筹:=varbq and c>o and h>=c and l<=o;
vardq:=ref(c,1)=hhv(c,4) and c<ref(c,2) or (ref(c,2)=hhv(c,4) and ref(c,1)>ref(c,3) or ref(c,3)=hhv(c,4) and ref(c,1)>ref(c,2)) and ref(c,2)>=ref(c,4) and c<ref(c,1);
var9q:=c= hhv(c,4)and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3)) or ref(c,1)=hhv(c,4) and close>=ref(c,2) or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1) or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2);
tyx3:=ma(ref(hhv((c+l+o+h)/4,40),1),3);
varaq:=c=hhv(c,4) and ref(c,1)=llv(c,4);
varcq:=ref(c,1)=llv(c,4) and c>=ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<=ref(c,3) and ref(c,2)<ref(c,4) and c>=ref(c,1);
绿买:varcq,linethick0;
vardq:=ref(c,1)=hhv(c,4) and c<ref(c,2) or (ref(c,2)=hhv(c,4) and ref(c,1)>ref(c,3) or ref(c,3)=hhv(c,4) and ref(c,1)>ref(c,2)) and ref(c,2)>=ref(c,4) and c<ref(c,1);
蓝抛:vardq,linethick0;
drawtext(绿买,low,'b'),coloryellow;
drawtext(蓝抛,high,'s'),coloryellow;
上轨:ma(ref(hhv(c,30),1),2),colorwhite;
下轨:ma(ref(llv(c,30),1),2),colorgray;
a1:=c=hhv(c,13);
a2:=barslast(a1);
a3:=if(a2>0,ref(c,a2),ref(c,a2));
a4:=cross(c,ref(a3,1));
一号旗:=a4 and count(a4,5)=1;
drawtext(一号旗=1,l-0.3,'蓝旗'),colorblue;
b1:=c=hhv(c,21);
b2:=barslast(b1);
b3:=if(b2>0,ref(c,b2),ref(c,b2));
b4:=cross(c,ref(b3,1));
二号旗:=b4 and count(b4,5)=1;
drawtext(二号旗=1,l-0.4,'黄旗'),coloryellow;
c1:=c=hhv(c,34);
c2:=barslast(c1);
c3:=if(c2>0,ref(c,c2),ref(c,c2));
c4:=cross(c,ref(c3,1));
三号旗:=c4 and count(c4,5)=1;
drawtext(三号旗=1,l-0.5,'粉旗'),colormagenta;
d1:=c=hhv(c,89);
d2:=barslast(d1);
d3:=if(d2>0,ref(c,d2),ref(c,d2));
d4:=cross(c,ref(d3,1));
四号旗:=d4 and count(d4,5)=1;
drawtext(四号旗=1,l-0.4,'五面八面彩旗'),colorred;
金:drawtext(close>上轨,low,'金'),coloryellow;
stickline(ref(count(c<tyx3,5)=5,1) and c>tyx3 and c>o,c,o,5,0),coloryellow;
tyx2:=ma(ref(hhv((c+l+o+h)/4,10),1),3);
stickline(ref(count(c<tyx2,5)=5,1) and c>tyx2 and c>o,c,o,5,0),colorblue;
tyx1:=ma(ref(hhv((c+l+o+h)/4,3),1),3);
stickline(ref(count(c<tyx1,5)=5,1) and c>tyx1 and c>o,c,o,5,0), colore66878;
tyx4:=ma(ref(hhv((c+l+o+h)/4,1),1),3);
stickline(ref(count(c<tyx4,5)=5,1) and c>tyx4 and c>o,c,o,5,0), colorwhite;
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文天谭K线主图公式下载 飞狐天谭线主图指标 源码仅供学习研究。