mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 13:08:04 +00:00
test: setup common stability and robustness properties tracking
This commit is contained in:
@@ -119,4 +119,4 @@ public class MfiIndicatorTests
|
||||
Assert.Equal(21, indicator.MinHistoryDepths);
|
||||
Assert.Equal(21, ((IWatchlistIndicator)indicator).MinHistoryDepths);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -409,4 +409,4 @@ public class MfiTests
|
||||
|
||||
Assert.True(mfi.IsHot);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ public class MfiValidationTests
|
||||
var retCode = Functions.Mfi<double>(
|
||||
highData, lowData, closeData, volumeData,
|
||||
0..^0, taOut, out var outRange, period);
|
||||
Assert.Equal(Core.RetCode.Success, retCode);
|
||||
Assert.Equal(TALib.Core.RetCode.Success, retCode);
|
||||
|
||||
(int offset, int length) = outRange.GetOffsetAndLength(taOut.Length);
|
||||
Assert.True(length > 100, $"TALib MFI produced only {length} values");
|
||||
@@ -192,4 +192,4 @@ public class MfiValidationTests
|
||||
|
||||
Assert.False(allEqual, "Different periods should produce different results");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user