Afirma + documentation +semver: patch

This commit is contained in:
Miha Kralj
2024-09-24 16:41:26 -07:00
parent 07efb4b0de
commit 133c65ceaf
250 changed files with 14425 additions and 713 deletions
+4 -1
View File
@@ -1,3 +1,5 @@
using System.CommandLine.Rendering.Views;
namespace QuanTAlib;
public class GbmFeed : TBarSeries
@@ -6,7 +8,7 @@ public class GbmFeed : TBarSeries
private readonly Random _random;
private double _lastClose, _lastHigh, _lastLow;
public GbmFeed(double initialPrice = 100.0, double mu = 0.05, double sigma = 0.2)
public GbmFeed(double initialPrice = 100.0, double mu = 0.05, double sigma = 0.2) : base()
{
_lastClose = _lastHigh = _lastLow = initialPrice;
_mu = mu;
@@ -20,6 +22,7 @@ public class GbmFeed : TBarSeries
public void Add(int count)
{
DateTime startTime = DateTime.UtcNow - TimeSpan.FromHours(count);
TBar lastBar = new();
for (int i = 0; i < count; i++)
{
Add(startTime, true);