编写要求:
5,10,20日均线。位置任意排列,K线上穿最底下均线的选股 。比如说10日均线在最下方,那就上穿10日均线选股公式
www.gszx.com.cn网解答:
TJ1:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND CROSS(C,MA(C,20));
TJ2:=MA(C,5)>MA(C,20) AND MA(C,20)>MA(C,10) AND CROSS(C,MA(C,10));
TJ3:=MA(C,10)>MA(C,20) AND MA(C,20)>MA(C,5) AND CROSS(C,MA(C,5));
XG:TJ1 OR TJ2 OR TJ3;