style patterns

This commit is contained in:
Miha Kralj
2026-01-25 16:01:45 -08:00
parent 2836f253c4
commit e59665c8f0
399 changed files with 6892 additions and 1323 deletions
@@ -184,4 +184,4 @@ public class BbandsIndicatorTests
Assert.True(double.IsFinite(series.GetValue(0)));
}
}
}
}
+1 -1
View File
@@ -72,4 +72,4 @@ public class BbandsIndicator : Indicator, IWatchlistIndicator
WidthSeries!.SetValue(bbands.Width.Value, bbands.IsHot, ShowColdValues);
PercentBSeries!.SetValue(bbands.PercentB.Value, bbands.IsHot, ShowColdValues);
}
}
}
+1 -1
View File
@@ -318,4 +318,4 @@ public class BbandsTests
Assert.Equal(batchResult[^1].Value, streamingBbands.Middle.Value, precision: 8);
Assert.Equal(middleArray[^1], streamingBbands.Middle.Value, precision: 8);
}
}
}
@@ -372,4 +372,4 @@ public sealed class BbandsValidationTests : IDisposable
}
_output.WriteLine("Bbands Batch(TSeries) validated successfully against Ooples");
}
}
}
+2 -2
View File
@@ -204,7 +204,7 @@ public sealed class Bbands : AbstractBase
{
step ??= TimeSpan.FromSeconds(1);
DateTime startTime = DateTime.UtcNow;
for (int i = 0; i < source.Length; i++)
{
Update(new TValue(startTime + i * step.Value, source[i]), isNew: true);
@@ -320,4 +320,4 @@ public sealed class Bbands : AbstractBase
lower[i] = middle[i] - offset;
}
}
}
}