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 lastvljhs(i) = vljhs(i -1) * (1 - vhsl(i)) * 4 / 5 + vhsl(i)vcyc1(i) = (vmid(i) * vhsl(i) + vcyc1(i-1) * vljhs(i -1) * (1 - vhsl(i)) * 4 / 5) / vljhs(i)vljhs2(i) = vljhs2(i -1) * (1 - vhsl(i)) * 12 / 13 + vhsl(i)vcyc2(i) = (vmid(i) * vhsl(i) + vcyc2(i-1) * vljhs2(i -1) * (1 - vhsl(i)) * 12 / 13) / vljhs2(i)vljhs3(i) = vljhs3(i -1) * (1 - vhsl(i)) * 33 / 34 + vhsl(i)vcyc3(i) = (vmid(i) * vhsl(i) + vcyc3(i-1) * vljhs3(i -1) * (1 - vhsl(i)) * 33 / 34) / 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)nextffl.vardata("ljhs") = vljhsffl.vardata("ljhs2") = vljhs2ffl.vardata("ljhs3") = vljhs3ffl.vardata("ljhsm") = vljhsmffl.vardata("cyc1") = vcyc1ffl.vardata("cyc2") = vcyc2ffl.vardata("cyc3") = vcyc3ffl.vardata("cycm") = vcycm%> cyc5:cyc1,coloryellow;cyc13:cyc2,COLORMAGENTA;cyc34:cyc3,colorgreen;cyc∞:cycm,COLORCYAN;股票公式结合软件的应用属于进阶阶段的股票学了,我们整理网上提出的飞狐成本均线主图指标公式的问题一些解决方案仅供辅助你学习飞狐公式参考,具体内容可能需要具体解决或者找网上其他高手帮忙,也感谢文字和图片来源于股旁网的一些资源分享,帮助新手快速学习提高炒股技能。
声明:飞狐成本均线主图指标公式的文字和图片来源于网络,版权归原作者所有,仅代表个人观点,于本站无关。
随便说说