编写要求:
⑴ 均线条件:5日上穿24日均线,形成金叉; ⑵ 成交量条件:5日均量线上穿60日均量线,形成金叉; ⑶ MACD在0轴上,DIF(白线)上穿DEA(黄线)形成金叉;
公式在线网解答:
{5日上穿24日均线,形成金叉}cross(ma(c,5),ma(c,24)) AND ma(c,24)>REF(ma(c,24),1) AND
{5日均量线上穿60日均量线,形成金叉}cross(ma(V,5),ma(V,60)) AND ma(V,60)>REF(ma(V,60),1) AND
{MACD在0轴上,DIF(白线)上穿DEA(黄线)形成金叉}"macd.macd">0 AND cross("macd.dif","macd.dea") AND "macd.dea">REF("macd.dea",1);