设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

飞狐股票公式 成本均线主图指标公式

2014-7-9 14:40:43 股票入门 http://rumen.southmoney.com

  南方财富网飞狐股票公式,带来:成本均线主图指标公式。

  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)) * 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)

  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

  %》

  cyc5:cyc1,coloryellow;

  cyc13:cyc2,COLORMAGENTA;

  cyc34:cyc3,colorgreen;

  cyc∞:cycm,COLORCYAN;

  更多飞狐股票公式,请关注南方财富网。

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。