联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

Q Q:396950280

网址:www.yzhibiao.com

搜索 Search

波段抄底的公式,供股友们股池参考!波段地量 大盘涨跌比例MACD

2014-9-19 10:13:41点击:

    

波段地量(日线):有时候信号有点多,结合总口诀和后续指标参考!

REFLINE:0;
ZF:=(c/ref(c,1)-1)*100;
v21:=ema(v,21);
b21:=v/v21;
{5日均线角度}
M5:=MA(CLOSE,5);
x5:=MA(M5,2);
s5:=slope(x5,2)*10;
{系统MACD引用}
diff:="macd.diff";
dea:="macd.dea";
macd:="macd.macd";

{金死叉}
sc:=cross(dea,diff);
jc:=cross(diff,dea);

jbars:=barslast(jc);{上一次金叉周期}

lsbars:=ref(barslast(sc),jbars)+jbars;{上上一次死叉周期}

uptmp:=ref(llvbars(macd,lsbars-jbars),jbars)+jbars;{上涨起始点周期}

{过滤长周期和特殊K线}
upbars:=if(uptmp>13 or uptmp=1,13,uptmp);

{基本限制,同时过滤涨幅和上涨乏力地量--均线角度向下(s5<-0.2)}
base:=s5<-0.2 and ZF>-2;

{波段:上涨起始点以来的地量}
阶段地量:if( base and llv(v,upbars)=v and b21<0.65 ,1,0),colormagenta;

{辅助:相对地量}
相对地量:=base and b21<=0.5;
stickline(相对地量,0,0.5,6,0),coloryellow;

DRAWTEXTABS(0,0,'注:相对地量'),coloryellow;
DRAWTEXTABS(80,0,'阶段地量'),colormagenta;


大盘涨跌比例MACD:

input:SHORT(12,1,999),LONG(26,1,999),M(9,1,999);
涨跌比例:if(date>1140101,100*INDEXADV/(INDEXADV+INDEXDEC),0),colorcyan,linethick0,precis2;
DIFF :EMA(涨跌比例,SHORT) - EMA(涨跌比例,LONG),colorwhite;
DEA  : EMA(DIFF,M),coloryellow;
MACD : 2*(DIFF-DEA), COLORSTICK;