dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;xg:ref(dif,2)>ref(dif,1)and dif>ref(dif,1) and dif>dea and dif-dea<0.02;测试通过,希望能够帮助你!
t:=((ref(c,1)-ref(c,2))/ref(c,2)*100)>7;t1:=o>ref(h,1)and o=h and c<o and c>ref(c,1);t2:=c/l>1.03 and(min(c,o)-l)>(h-min(c,o));xgt:t and t1 and t2;已测试 600822差点: