网友求助:
想恳请老师把B买点和红点优化一下。如下图所示,以20均线上升趋势为基础,在20均线处产生的红点和B为信号做个选股。通俗点说就是靠着20均线的买点。谢谢 红点选股源码a:="LTFunc6@FORLT2";
s1:="LTFunc6@LT_S1";
hs:="LTFunc6@LT_HS";
ls:="LTFunc6@LT_LS";
p1:="LTFunc6@LT_P1";
ddXh:="ddX.ddX">0;
D:=ddXh;
停牌:=(DYNAINFO(4)=0);
s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1 and D and not(停牌);
B点选股源码a:="LTFunc6@FORLT2";
s1:="LTFunc6@LT_S1";
hs:="LTFunc6@LT_HS";
ls:="LTFunc6@LT_LS";
p1:="LTFunc6@LT_P1";
ddXh:="ddX.ddX">0;
D:=ddXh;
停牌:=(DYNAINFO(4)=0);
p1=1 and ref(p1,1)=0 and D and not(停牌);
解答如下:
a:="LTFunc6@FORLT2";
s1:="LTFunc6@LT_S1";
hs:="LTFunc6@LT_HS";
ls:="LTFunc6@LT_LS";
p1:="LTFunc6@LT_P1";
ddXh:="ddX.ddX">0;
D:=ddXh;
停牌:=(DYNAINFO(4)=0);
xg:p1=1 and ref(p1,1)=0 and D and not(停牌) and ma(c,20)>ref(ma(c,20),1) and cross(c,ma(c,20));