MACD金叉且连续3天MACD增大
编写要求:
有效金叉:=MACD金叉而且金叉之后连续3天MACD增大; 有效金叉日:BARSLAST(有效金叉);
公式在线网解答:
金叉:=cross(diff,dea);
tt:=barslast(金叉);
有效金叉:=every(macd>ref(macd,1),3) and tt=4;
有效金叉日:BARSLAST(有效金叉);
编写要求:
有效金叉:=MACD金叉而且金叉之后连续3天MACD增大; 有效金叉日:BARSLAST(有效金叉);
公式在线网解答:
金叉:=cross(diff,dea);
tt:=barslast(金叉);
有效金叉:=every(macd>ref(macd,1),3) and tt=4;
有效金叉日:BARSLAST(有效金叉);