手机端
当前位置:爱约股 > 公式技巧 > 写个macd红柱少于5根且diff大于0

写个macd红柱少于5根且diff大于0

 网友求助:

求助,请老师写个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));
 

TAG:MACD DIFF
分享至:

相关推荐