Current location - Trademark Inquiry Complete Network - Futures platform - Macd bergamot takes the stock formula of Tongda letter and makes two stock selection formulas. Come on, turning red is stock selection.
Macd bergamot takes the stock formula of Tongda letter and makes two stock selection formulas. Come on, turning red is stock selection.
{Turn red and choose stocks}

DIFF:= EMA (closing, 12)-EMA (closing, 26);

DIF:=EMA (closing, 12)-EMA (closing, 26);

DEA:=EMA(DIF,9);

MACD:= 2 *(DIF-DEA);

FH 1:=REF(MACD, 1)& lt; REF(MACD, 2) and REF(MACD, 2) < REF(MACD, 3) and REF(MACD, 3) < References (MACD, 4);

FH2:=MACD >=0 and count (MACD >; REF(MACD, 1), 1)= 1;

FH3:=FH 1 and FH2 and EMA(C, 13)>REF(EMA(C, 13),1);

FH4:=FH 1 and FH2 and ABS ((dif-DEA)/c) < 0.0 18;

FH5:=FH 1 and FH2 and MACD <; 0. 10;

Turn red: (FH3 or FH4 or FH5);

{Come on, stock selection}

DIFF:= EMA (closing, 12)-EMA (closing, 26);

DIF:=EMA (closing, 12)-EMA (closing, 26);

DEA:=EMA(DIF,9);

Come on: Cross (DIF, DEA) and DIF>;; 0;