飞狐十字军东征主图指标公式,飞狐成本均线主图指标公式
admin888
|飞狐十字军东征主图指标公式,飞狐成本均线主图指标公式
飞狐十字军东征主图指标公式
INPUT:N(90,0,250);
均价:=(2*C+(C+H+L+O)/4+O)/4;
R:=(2*L+3*均价)/5;R1:=(2*H+3*均价)/5;
A:=SUMBARS(V,CAPITAL);AA:=V/(CAPITAL*0.84);
神奇线:IF(stKTYPE=0,ma((R+r1)/2,COUNT(BARPOS,n)),dma((SUM(R,COUNT(BARPOS,A))/COUNT(BARPOS,A)+SUM(R1,COUNT(BARPOS,A))/COUNT(BARPOS,A))/2,AA)),COLOR7F00FF,LINETHICK2;
反神奇:=ema(神奇线-(eMA((R+r1)/2,2)-神奇线),3),COLORAAAA00;
PARTLINE(反神奇>神奇线,神奇线),COLORFFCCAA,LINETHICK2;
高:HHV((R+r1)/2,COUNT(BARPOS,n)),COLORMAGENTA;
低:LLV((R+r1)/2,COUNT(BARPOS,n)),COLOR00AA99;
中枢:(高+低)/2,COLORWHITE,LINETHICK2;
最高:=if(STKTYPE=0,高,HHV((R+r1)/2,COUNT(BARPOS,a))),COLORMAGENTA,LINEDOT;
最低:=if(STKTYPE=0,低,llV((R+r1)/2,COUNT(BARPOS,a))),COLOR00AA99,LINEDOT;
十字线:(最高+最低)/2,COLORYELLOW,LINETHICK;
PARTLINE((R+r1)/2>十字线,十字线),COLORYELLOW,crOSSDOT;
PARTLINE((R+r1)/2<十字线,十字线),COLOR00bb00,CROSSDOT;
飞狐成本均线主图指标公式
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)
nextffl.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;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。