网友求助:
同时出现一阳穿三线和均线 5,10,20,30.向上拐.
MA5:=EMA(C,5);
MA10:=EMA(C,10);
MA30:=EMA(C,30);
MA60:=EMA(C,60);
YCX:=MA5>=REF(MA5,1);
H1:=MAX(MAX(MA5,MA10),MA30);
L1:=MIN(MIN(MA5,MA10),MA30);
一阳穿三线:H1<C AND O<L1 AND YCX AND MA30>REF(MA30,1);
和
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
SC AND MA5>MA10 AND MA10>MA20 AND MA20>MA30;
同时出现2个条件的预警公式
解答如下:
MA5:=EMA(C,5);
MA10:=EMA(C,10);
MA20:=EMA(C,20);
MA30:=EMA(C,30);
MA60:=EMA(C,60);
YCX:=MA5>=REF(MA5,1);
H1:=MAX(MAX(MA5,MA10),MA30);
L1:=MIN(MIN(MA5,MA10),MA30);
一阳穿三线:H1<C AND O<L1 AND YCX AND MA30>REF(MA30,1) AND MA5>MA10 AND MA10>MA20 AND MA20>MA30 AND MA5>REF(MA5,1) AND MA10>REF(MA10,1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1) ;