请高手高手 把下面2个 选股公式 组合成一个 预警公式? 20
第一个:A1:=MA(CLOSE,5);A2:=MA(CLOSE,10);A3:=MA(CLOSE,20);A4:=MA(CLOSE,30);CLOSE>A1ANDA1>...
第一个:
A1:=MA(CLOSE,5);
A2:=MA(CLOSE,10);
A3:=MA(CLOSE,20);
A4:=MA(CLOSE,30);
CLOSE>A1 AND A1>A2 AND A2>A3 AND A3>A4 AND CLOSE>OPEN;
第二个:
{长上影线 + 次日突破上影顶}
A1:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20) AND MA(C,5)>MA(C,10);
A2:=REF((H-MAX(O,C))/MAX(O,C)*100>3,1) AND REF((MIN(O,C)-L)/L*100<2,1);
A3:=O<REF(O,1) AND C>REF(H,1);
XG1:A1 AND A2 AND A3; 展开
A1:=MA(CLOSE,5);
A2:=MA(CLOSE,10);
A3:=MA(CLOSE,20);
A4:=MA(CLOSE,30);
CLOSE>A1 AND A1>A2 AND A2>A3 AND A3>A4 AND CLOSE>OPEN;
第二个:
{长上影线 + 次日突破上影顶}
A1:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20) AND MA(C,5)>MA(C,10);
A2:=REF((H-MAX(O,C))/MAX(O,C)*100>3,1) AND REF((MIN(O,C)-L)/L*100<2,1);
A3:=O<REF(O,1) AND C>REF(H,1);
XG1:A1 AND A2 AND A3; 展开
2个回答
展开全部
可以将第二个选股公式中的条件A2和A3加入到第一个选股公式中,形成一个综合的预警公式。修改后的公式如下:
A1:=MA(CLOSE,5);
A2:=MA(CLOSE,10);
A3:=MA(CLOSE,20);
A4:=MA(CLOSE,30);
A5:=REF((H-MAX(O,C))/MAX(O,C)100>3,1) AND REF((MIN(O,C)-L)/L100<2,1);
A6:=O<REF(O,1) AND C>REF(H,1);
CLOSE>A1 AND A1>A2 AND A2>A3 AND A3>A4 AND CLOSE>OPEN AND A5 AND A6;
解释一下新加入的条件A5和A6的含义:
A5:表示前一日的K线出现了长上影线,并且当前价格突破了前一日的高点。这是一种短期内的强势信号,可以看做是对上涨趋势的确认。
A6:表示当前K线的实体部分高于前一日的最高价,同时收盘价高于前一日的最高价。这也是一种强势信号,表明股价正在向上突破。
综合以上条件,可以得到一个较为严格的选股策略,过滤掉一些假突破和震荡行情。
展开全部
A1:=MA(CLOSE,5);
A2:=MA(CLOSE,10);
A3:=MA(CLOSE,20);
A4:=MA(CLOSE,30);
B1:=CLOSE>A1 AND A1>A2 AND A2>A3 AND A3>A4 AND CLOSE>OPEN;
B2:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20) AND MA(C,5)>MA(C,10);
B3:=REF((H-MAX(O,C))/MAX(O,C)100>3,1) AND REF((MIN(O,C)-L)/L100<2,1);
B4:=O<REF(O,1) AND C>REF(H,1);
预警公式: B1 AND B2 AND B3 AND B4;
A2:=MA(CLOSE,10);
A3:=MA(CLOSE,20);
A4:=MA(CLOSE,30);
B1:=CLOSE>A1 AND A1>A2 AND A2>A3 AND A3>A4 AND CLOSE>OPEN;
B2:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20) AND MA(C,5)>MA(C,10);
B3:=REF((H-MAX(O,C))/MAX(O,C)100>3,1) AND REF((MIN(O,C)-L)/L100<2,1);
B4:=O<REF(O,1) AND C>REF(H,1);
预警公式: B1 AND B2 AND B3 AND B4;
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询