多线MACD之红箭头买选股指标公式

N1:=30;

M:=12;

Q:=9;

DIFF_1:=(EMA(CLOSE,M)-EMA(CLOSE,N1));

DEA_1:=EMA(DIFF_1,Q);

macd_1:=2*(DIFF_1-DEA_1);

TJ_B1:=(HHV(MacD_1,4)<0 AND MACD_1>REF(MACD_1,1) AND REF(MACD_1,1)<REF(MACD_1,2) AND REF(MACD_1,2)<REF(MACD_1,3));

红箭头买:TJ_B1;