指标编写学习论坛

标题: 捉妖黑玫瑰金钻指标源码公式 [打印本页]

作者: admin    时间: 2016-5-8 16:08
标题: 捉妖黑玫瑰金钻指标源码公式
{黑玫瑰}

A:=EVERY(REF(C,1)/REF(C,2)>1.09,2) AND C>REF(C,1) AND C<O AND H/L>1.05;

B:=BARSLAST(A);

涨停:=C/REF(C,1)>1.09;

跌停:=REF(C,1)/C>1.09;

ZF3:=(C-REF(C,3))/REF(C,3)*100>20;

ZF20:=(C-REF(C,29))/REF(C,29)<1;

LNN:=(REF(VOL,0)-REF(VOL,1))/ REF(VOL,1)*100>30;

STP:=NOT(H=L OR (NAMELIKE('ST') OR NAMELIKE('*') OR NAMELIKE('S')) OR (DYNAINFO(4)=0));

JG:= O>REF(C,1);

JG1:=O>C;

ZT:=REF(H,1)=REF(C,1);

流通盘:=CAPITAL<20000000;

A1:=ZF3 AND LNN AND STP AND JG AND JG1 AND ZT AND ZF20 AND 流通盘;

DRAWTEXT(A1,L*0.97,'压力线')COLORMAGENTA;

DRAWTEXT(A1,L,'─────────────────────')COLORMAGENTA;

{条件选股}

ZF3:=(C-REF(C,3))/REF(C,3)*100>20;{今天的收盘价比三日前的收盘价高20,即三天上涨了至少20个百分点}

ZF20:=(C-REF(C,29))/REF(C,29)<1;{29个交易日内涨幅没有超过一倍}

LNN:=(REF(VOL,0)-REF(VOL,1))/ REF(VOL,1)*100>30;{今天放量的程度大于昨日的30%}

STP:=NOT(H=L OR (NAMELIKE('ST') OR NAMELIKE('*') OR NAMELIKE('S')) OR (DYNAINFO(4)=0));{非ST和停牌类个股}

JG:= O>REF(C,1);{今天开盘价在昨日收盘价之上}

JG1:=O>C;{今天收阴}

ZT:=REF(H,1)=REF(C,1);{昨日收盘价也是昨日最高价}

流通盘:=CAPITAL<20000000;


XG:ZF3 AND LNN AND STP AND JG AND JG1 AND ZT AND ZF20 AND 流通盘 ;






欢迎光临 指标编写学习论坛 (http://shgm.net/) Powered by Discuz! X3.2