mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-25 05:48:06 +00:00
[CodeFactor] Apply fixes to commit 9697fac
This commit is contained in:
@@ -48,11 +48,11 @@ public sealed class CfbIndicator : Indicator, IWatchlistIndicator
|
||||
protected override void OnInit()
|
||||
{
|
||||
// Generate lengths array
|
||||
int count = (MaxLength - MinLength) / Step + 1;
|
||||
int count = ((MaxLength - MinLength) / Step) + 1;
|
||||
int[] lengths = new int[count];
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
lengths[i] = MinLength + i * Step;
|
||||
lengths[i] = MinLength + (i * Step);
|
||||
}
|
||||
|
||||
_cfb = new Cfb(lengths);
|
||||
|
||||
@@ -299,7 +299,6 @@ public sealed class Cfb : ITValuePublisher, IDisposable
|
||||
return new TSeries(t, v);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the indicator state using the provided value series history.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user