Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Miha Kralj
2022-11-11 11:52:02 -08:00
4 changed files with 7 additions and 9 deletions
+2 -2
View File
@@ -17,10 +17,10 @@ public class RND_Feed : TBars
double c = startvalue;
for (int i = 0; i < bars; i++)
{
double o = Math.Round(c + (c * (volatility * 0.1 * rnd.NextDouble() - 0.005)), 2);
double o = Math.Round(c + (c * (((volatility * 0.1) * rnd.NextDouble()) - 0.005)), 2);
double h = Math.Round(o + (c * volatility * rnd.NextDouble()), 2);
double l = Math.Round(o - (c * volatility * rnd.NextDouble()), 2);
c = Math.Round(l + (h - l) * rnd.NextDouble(), 2);
c = Math.Round(l + ((h - l) * rnd.NextDouble()), 2);
double v = Math.Round(1000 * rnd.NextDouble(), 2);
this.Add(DateTime.Today.AddDays(i - bars), o, h, l, c, v);
}