编写要求:
盘中预警,一阳三线 5 10 20 30 60 5条均线上穿其中任意三条就可以预警的指标。
公式在线网解答:
X1:=BETWEEN(MA(C,5),O,C) AND C>O;
X2:=BETWEEN(MA(C,10),O,C) AND C>O;
X3:=BETWEEN(MA(C,20),O,C) AND C>O;
X4:=BETWEEN(MA(C,30),O,C) AND C>O;
X5:=BETWEEN(MA(C,60),O,C) AND C>O;
yj:X1+X2+X3+X4+X5>=3;