[CodeFactor] Apply fixes to commit 0606491

This commit is contained in:
codefactor-io
2026-03-12 19:37:50 +00:00
parent 060649192f
commit 8f79257155
384 changed files with 1197 additions and 1215 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ public class MavpTests
var bar = gbm.Next(isNew: true);
series.Add(bar.Time, bar.Close);
// Variable period: oscillate between 5 and 20
double p = 5 + 15.0 * (0.5 + 0.5 * Math.Sin(i * 0.1));
double p = 5 + (15.0 * (0.5 + (0.5 * Math.Sin(i * 0.1))));
periodSeries.Add(bar.Time, p);
}
@@ -343,7 +343,7 @@ public class MavpTests
{
var bar = gbm.Next(isNew: true);
var tv = new TValue(bar.Time, bar.Close);
double period = 5 + 15.0 * (0.5 + 0.5 * Math.Sin(i * 0.1));
double period = 5 + (15.0 * (0.5 + (0.5 * Math.Sin(i * 0.1))));
// Method 1: Set period, then call Update
mavp1.Period = period;