您好

我寫的如下,資料頻率為5分鐘
var:SMA005(0),SMA020(0),SMA010(0),SMA060(0),SMA120(0);
SMA005 = xfMin_XAverage("5",xfMin_WeightedClose("5"), 5);
SMA010 = xfMin_XAverage("5",xfMin_WeightedClose("5"), 10);
SMA020 = xfMin_XAverage("5",xfMin_WeightedClose("5"), 20);
SMA060 = xfMin_XAverage("5",xfMin_WeightedClose("5"), 60);
SMA120 = xfMin_XAverage("5",xfMin_WeightedClose("5"),120);
驗證:
Print("SMA010=", NumToStr(SMA010, 2));
Print("SMA020=", NumToStr(SMA020, 2));
Print("SMA060=", NumToStr(SMA060, 2));
Print("SMA120=", NumToStr(SMA120, 2));

但求出的值跟技術分析圖的值不同,不知哪弄錯了?
謝謝~~
1 評論