能帮我做一个通达信瀑布线的选股公式吗? 20
要求:pbx1>pbx2>pbx3>pbx4>pbx5>pbx6;选出当天或者指定日期全部符合要求的全部股票。如果能选出第一次出现符合上述要求个股,那是最好的,我觉得有点...
要求:pbx1>pbx2>pbx3>pbx4>pbx5>pbx6;选出当天或者指定日期全部符合要求的全部股票。如果能选出第一次出现符合上述要求个股,那是最好的,我觉得有点难,所以补充一个条件:当上述要求符合的当天,出现通达信专家系统的买入符号(红色向上箭头);当pbx1下穿pbx2当天,出现卖出符号(绿色向下箭头)
展开
1个回答
展开全部
PBX1:=(EMA(CLOSE,4)+MA(CLOSE,4*2)+MA(CLOSE,4*4))/3;
PBX2:=(EMA(CLOSE,6)+MA(CLOSE,6*2)+MA(CLOSE,6*4))/3;
PBX3:=(EMA(CLOSE,9)+MA(CLOSE,9*2)+MA(CLOSE,9*4))/3;
PBX4:=(EMA(CLOSE,13)+MA(CLOSE,13*2)+MA(CLOSE,13*4))/3;
PBX5:=(EMA(CLOSE,18)+MA(CLOSE,18*2)+MA(CLOSE,18*4))/3;
PBX6:=(EMA(CLOSE,24)+MA(CLOSE,24*2)+MA(CLOSE,24*4))/3;
{第一次出现符合}
YT:=PBX1>=PBX2 AND PBX2>=PBX3 AND PBX3>=PBX4 AND PBX4>=PBX5 AND PBX5>=PBX6;
选股:CROSS(PBX5,PBX6)AND YT;
PBX2:=(EMA(CLOSE,6)+MA(CLOSE,6*2)+MA(CLOSE,6*4))/3;
PBX3:=(EMA(CLOSE,9)+MA(CLOSE,9*2)+MA(CLOSE,9*4))/3;
PBX4:=(EMA(CLOSE,13)+MA(CLOSE,13*2)+MA(CLOSE,13*4))/3;
PBX5:=(EMA(CLOSE,18)+MA(CLOSE,18*2)+MA(CLOSE,18*4))/3;
PBX6:=(EMA(CLOSE,24)+MA(CLOSE,24*2)+MA(CLOSE,24*4))/3;
{第一次出现符合}
YT:=PBX1>=PBX2 AND PBX2>=PBX3 AND PBX3>=PBX4 AND PBX4>=PBX5 AND PBX5>=PBX6;
选股:CROSS(PBX5,PBX6)AND YT;
追问
谢谢你大半夜了给我答案。经过测试,发现选出的股很少。我自己看了一下通达信软件,似乎那个红绿箭头要在专家系统公式中设置,能不能教我一下怎么设置?条件是:瀑布线多头形成的当天或者第二天出现红色买入箭头,瀑布线pbx1下穿pbx2的当天或者次日出现绿色箭头
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询