飞狐股票公式一品波段副图

  Var1:=(CLOSE*2+HIGH+LOW)/4;{当日股价中线}

  SK:EMA(Var1,13)-EMA(Var1,73);{13日均线-73日均线,求差}

  SD:EMA(SK,2);{SK的2日均线}

  dx1:=cross(sk,sd) and sk《-0.04 and (c-ref(c,1))/ref(c,1)*100》=3;

  {sk与sd低位金叉,当日涨幅大于+3%}

  dx2:=cross(sk,sd) and sk《=-0.14;{sk与sd超跌低位金叉}

  dx3:=cross(sk,sd) and sk《=0.05 and (v/ma(v,5)》2 or (c-ref(c,1))/ref(c,1)

  *100》=3.5);

  {sk与sd中位金叉,并且放量上涨。(当日量大于5日均量2倍,或者涨幅大于+3.5%)}

  短线:(dx1 or dx2 or dx3)*0.5,color00ff00;

  {满足条件dx1dx2dx3之一,设定为短线买入条件。}

  买入:(cross(sk,sd) and barslast(cross(sd,sk))》=8)*0.2,colorwhite;

  加码:(cross(sk,sd) and barslast(cross(sd,sk))《8)*0.3,coloryellow;

  {以下设置副图显示方式}

  drawtext(短线》0 ,0.8,‘短线’),color00ff00;

  drawtext(买入》0 ,0.5,‘买入’),colorwhite;

  drawtext(加码》0 ,0.5,‘加码’),coloryellow;

  更多飞狐股票公式相关知识请关注。