股票论坛

标题: 请高手帮忙合并两个选股公式,谢谢! [打印本页]

作者: 开心强可哥    时间: 2016-10-11 20:32
标题: 请高手帮忙合并两个选股公式,谢谢!
请高手帮忙合并以下两个选股公式为一个选股公式,谢谢!

公式1:
B1:=IF(REF(C,1)>H,0,H-REF(C,1));
B2:=C-L;
JB:=B1+B2;
S1:=IF(REF(C,1)<L,0,REF(C,1)-L);
S2:=H-C;
JJS:=S1+S2;
买进率:=JB/(JB+JJS);
Z1:=H-L;
Z2:=C-O;
Z3:=Z2/Z1;
Z4:=Z3*V;
Z5:=SUM(INDEXADV-INDEXDEC,0);
Z6:=Z4+REF(Z5,1);
XG:(L+C+H)/3=LLV((H+L+C)/3,20) AND Z6>LLV(Z6,20) AND 买进率>=0.40;

公式2:
A1:=MA(CLOSE,5);
A2:=MA(CLOSE,30);
A3:=CLOSE<A1 AND A1<A2;
A4:=BARSLAST(V>=HHV(V,60) AND C>O);
XG:V/REF(V,A4)<=0.2 AND C>O AND A3 AND C/REF(C,1)<=1.02 AND C<MA(C,5) AND (O-L)/ABS(C-O)>=0.5;

作者: (百川)    时间: 2016-10-11 20:32
{合并副图}
B1:=IF(REF(C,1)>H,0,H-REF(C,1));
B2:=C-L;
JB:=B1+B2;
S1:=IF(REF(C,1)<L,0,REF(C,1)-L);
S2:=H-C;
JJS:=S1+S2;
买进率:=JB/(JB+JJS);
Z1:=H-L;
Z2:=C-O;
Z3:=Z2/Z1;
Z4:=Z3*V;
Z5:=SUM(INDEXADV-INDEXDEC,0);
Z6:=Z4+REF(Z5,1);
公式1:=(L+C+H)/3=LLV((H+L+C)/3,20) AND Z6>LLV(Z6,20) AND 买进率>=0.40;
A1:=MA(CLOSE,5);
A2:=MA(CLOSE,30);
A3:=CLOSE<A1 AND A1<A2;
A4:=BARSLAST(V>=HHV(V,60) AND C>O);
公式2:=V/REF(V,A4)<=0.2 AND C>O AND A3 AND C/REF(C,1)<=1.02 AND C<MA(C,5) AND (O-L)/ABS(C-O)>=0.5;
合并预警:公式1 AND 公式2;
DRAWTEXT(合并预警,(公式1 AND 公式2)*0.33,'合并预警');
作者: (百川)    时间: 2016-10-12 07:39
{合并预警}
B1:=IF(REF(C,1)>H,0,H-REF(C,1));
B2:=C-L;
JB:=B1+B2;
S1:=IF(REF(C,1)<L,0,REF(C,1)-L);
S2:=H-C;
JJS:=S1+S2;
买进率:=JB/(JB+JJS);
Z1:=H-L;
Z2:=C-O;
Z3:=Z2/Z1;
Z4:=Z3*V;
Z5:=SUM(INDEXADV-INDEXDEC,0);
Z6:=Z4+REF(Z5,1);
公式1:=(L+C+H)/3=LLV((H+L+C)/3,20) AND Z6>LLV(Z6,20) AND 买进率>=0.40;
A1:=MA(CLOSE,5);
A2:=MA(CLOSE,30);
A3:=CLOSE<A1 AND A1<A2;
A4:=BARSLAST(V>=HHV(V,60) AND C>O);
公式2:=V/REF(V,A4)<=0.2 AND C>O AND A3 AND C/REF(C,1)<=1.02 AND C<MA(C,5) AND (O-L)/ABS(C-O)>=0.5;
合并:公式1 AND 公式2;
作者: (百川)    时间: 2016-10-12 07:54
载图




欢迎光临 股票论坛 (http://100000w.com/) Powered by Discuz! X3.2