编写要求:
收盘价上穿bbi,macd金叉
公式在线网解答:
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26); DEA :=EMA(DIFF,9); MACD :=2*(DIFF-DEA); BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4; XG:CROSS(DIFF,DEA) AND CROSS(c,bbi) ;