先上Code
------------------------------
variable:GrowMonthRate(0),GrowYearRate(0),EPS_4season(0);
GrowMonthRate = GetField("月營收年增率","M");
GrowYearRate = GetField("累計營收年增率","M");
EPS_4season = summation(GetField("每股稅後淨利(元)","Q"),4);
if average(volume,5) > 750 and close > 10 and close < 200 then
if EPS_4season > 1 and GrowYearRate > -5 then
//if close < average(close,5) and close < average(close,10) then
if close/EPS_4season <16 then
print(file("C:\SysJust\XQLite\XS\Print\print.log"),symbol,date,closed(0),GrowYearRate,volume,EPS_4season);
ret = 1;
------------------------------
XQ程式上的畫面(如附檔)
但很明顯的,我跑出來的print腳本結果跟這邊不同(如附檔)
直接篩選到符合條件的,print應該才是對的,想請問是哪出了問題讓XQ跑出來的結果不同呢?
謝謝

3 評論