网友求助:
求助,请老师写个macd红柱少于5根(就是第一根红柱到第5根红柱之间,不包括前面的绿柱)且diff大于0
解答如下:
"MACD.MACD">0 AND
(CROSS("MACD.MACD",0)AND "MACD.DIFF">0 OR REF(CROSS("MACD.MACD",0)AND "MACD.DIFF">0,1)OR REF(CROSS("MACD.MACD",0)AND "MACD.DIFF">0,2) OR REF(CROSS("MACD.MACD",0)AND "MACD.DIFF">0,3) OR REF(CROSS("MACD.MACD",0)AND "MACD.DIFF">0,4));