首先,把系統自帶的的MACD公式給抄過來
ma5:=ma(c,5);
nn:=barslast(macd1>0 and ref(macd1,1)<0)+1;
if h>ma5 and nn<=5 then 下單語句;