mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 20:48:04 +00:00
style patterns
This commit is contained in:
@@ -184,4 +184,4 @@ public class BbandsIndicatorTests
|
||||
Assert.True(double.IsFinite(series.GetValue(0)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user