飞狐均价偏离主图指标公式,飞狐成交量判顶指标公式
admin888
|飞狐均价偏离主图指标公式,飞狐成交量判顶指标公式
飞狐均价偏离主图指标公式
INPUT:定位年(2008,1990,3400),百分比(15,5,50);
v1:=zig(4,百分比);{
调整需要的百分比转向}sj:=BARSSINCE(YEAR>=定位年);{
s:=sum(bb,sj);
ss:=s[datacount]-s+1;
a:=barssince(ss=1);
aa:=if(a>=a[LBOUND(a)+1],a,1);
sjj:=stKTYPE=1 or STKTYPE=2 or STKTYPE=3 or STKTYPE=5 or STKTYPE=11;
低1:IF(NOT(sjj),ma(c,aa),sum(AMOUNT,aa)/sum(v,aa)/100),PRECISION2,Color00FF00;
d2:=barssince(ss=1+1);
dd2:=if(d2>=d2[LBOUND(d2)+1],d2,1);
低2:IF(NOT(sjj),ma(c,dd2),sum(AMOUNT,dd2)/sum(v,dd2)/100),PRECISION2,Color00B700;
d3:=barssince(ss=1+2);
dd3:=if(d3>=d3[LBOUND(d3)+1],d3,1);
低3:IF(NOT(sjj),ma(c,dd3),sum(AMOUNT,dd3)/sum(v,dd3)/100),PRECISION2,Color8BC800;
{}bb1:=v1>ref(v1,1) and v1>refx(v1,1);
s1:=sum(bb1,sj);
ss1:=s1[datacount]-s1+1;
a1:=barssince(ss1=1);
aa1:=if(a1>=a1[LBOUND(a1)+1],a1,1);
高1:IF(NOT(sjj),ma(c,aa1),sum(AMOUNT,aa1)/sum(v,aa1)/100),PRECISION2,Color00FFFF;
d21:=barssince(ss1=1+1);
dd21:=if(d21>=d21[LBOUND(d21)+1],d21,1);
高2:IF(NOT(sjj),ma(c,dd21),sum(AMOUNT,dd21)/sum(v,dd21)/100),PRECISION2,Color00D4FF;
d31:=barssince(ss1=1+2);
dd31:=if(d31>=d31[LBOUND(d31)+1],d31,1);
高3:IF(NOT(sjj),ma(c,dd31),sum(AMOUNT,dd31)/sum(v,dd31)/100),PRECISION2,Color0098FF;
{}bc:=barslast(SYSPARAM(1)=barpos)+1;
fc:=sum(v,bc)/capital*100;
hsl:=refx(fc,bc[datacount]-1);
jjc:=sum(AMOUNT,bc)/sum(v,bc)/100;
均价:=refx(jjc,bc[datacount]-1);//光标后均价
偏离:=(C-均价)/均价*100;
{}DRAWTEXT(ISLASTBAR,均价,'均价 \n偏离 \n'+NUMTOSTR(偏离[DATACOUNT],1)+'%'),PXUP20,SHIFT1,COLORWHITE;
PARTLINE(C,均价),Color8B9091;//均价横线
DRAWTEXT(SYSPARAM(1)=barpos,均价,' \n换手'+NUMTOSTR(hsl,2)+'%'),SHIFT1,PXUP10,ColorFF89FF;
DRAWTEXT(SYSPARAM(1)=barpos,均价,'均价:'+NUMTOSTR(均价,2)+'元 '),PXUP8,ALIGN2,Color0098FF;
飞狐成交量判顶指标公式
m1:=5;
m2:=35;
m3:=135;
volUME:=VOL;
量:vol,VOLstICK;
启:ma(VOLUME,m1),colorwhite,LINETHICK2;
m20:MA(VOLUME,20),colorgreen;
洗:MA(VOLUME,m2),COLORYELLOW,LINETHICK2;
异:MA(VOLUME,m3),COLORRED,LINETHICK2;
{股价多头排列}Tjq:=ma(c,20)>ref(ma(c,20),1) and ma(c,60)>ref(ma(c,60),1) and ma(c,120)>ref(ma(c,120),1) and ma(c,20)> ma(c,60) and ma(c,60)> ma(c,120) and ma(c,10)> ma(c,20) and ma(c,5)> ma(c,10) and c> ma(c,5);
{5日内大成交量阴线数量}dysl:=count(v>ma(vol,35) and c
{ 5日内大成交量阳线数量}dhsl:=count(v>ma(vol,35) and c>ref(c,1),5);
{ 10日内大成交量阴线数量}DysL2:=count(v>ma(vol,35) and c
{ 10日内大成交量阳线数量}Dhsl2:=count(v>ma(vol,35) and c>ref(c,1),10);
{成交量异常2}Tjq2:=Dysl>dhsl or dysl2>dhsl2;
Tjqq:=tjq and tjq1 and tjq2;
Drawicon(tjqq,0.95*hhv(vol,40),3);
Drawtext(tjqq,0.95*hhv(vol,40),'顶'),colorcyan,linethick3;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。