XQ大大您好,我撰寫了一個XS腳本,我想取得30分K的跨頻率均量,如下
----------------------------------------------------------------------
Value1 = xfMin_XAverage("30",GetField("volume","30"),2);
Value2 = xfMin_XAverage("30",GetField("volume","30"),9);
Value3 = xfMin_XAverage("30",GetField("volume","30")[1],2);
Value4 = xfMin_XAverage("30",GetField("volume","30")[1],9);
if Value3 <Value4 and Value1 >Value2 then Plot1(close,"金叉");
---------------------------------------------------------------------------------------------------
但是我把它放在30分K線圖驗證時,卻在不該出現訊號的地方出現訊號,如圖

該MA2並沒有大於MA9,卻還是出現訊號,還是我的腳本有寫錯呢? 再麻煩XQ大大檢視,感謝
1 評論