腳本如下
ma6020 = xfMin_XAverage("60",GetField("Close","60"),20); //計算60分鐘線20期收盤價的指數移動平均EMA
ma6060 = xfMin_XAverage("60",GetField("Close","60"),60); //計算60分鐘線60期收盤價的指數移動平均EMA
plot21(ma6020,"60k-EMA20");
plot22(ma6060,"60k-EMA60");
if ma6020 cross Above ma6060 then//金叉
plot23(c,"60k20x60");
if ma6020 cross Below ma6060 then//死叉
plot24(c,"60k60x20");
//
在5/10/15/30K顯示~正常
在60K以上就都會數值會錯誤
請問是因為甚麼原因
2 評論