mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-20 11:38:05 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
+4
-4
@@ -125,10 +125,10 @@ public class BarIndicatorTests
|
||||
/// <returns>A randomly generated TBar.</returns>
|
||||
private TBar GenerateRandomBar(bool isNew)
|
||||
{
|
||||
double open = GetRandomDouble() * 200 - 100;
|
||||
double close = GetRandomDouble() * 200 - 100;
|
||||
double high = Math.Max(open, close) + GetRandomDouble() * 10;
|
||||
double low = Math.Min(open, close) - GetRandomDouble() * 10;
|
||||
double open = (GetRandomDouble() * 200) - 100;
|
||||
double close = (GetRandomDouble() * 200) - 100;
|
||||
double high = Math.Max(open, close) + (GetRandomDouble() * 10);
|
||||
double low = Math.Min(open, close) - (GetRandomDouble() * 10);
|
||||
long volume = GetRandomNumber(0, 10000);
|
||||
|
||||
return new TBar(Time: DateTime.Now, Open: open, High: high, Low: low, Close: close, Volume: volume, IsNew: isNew);
|
||||
|
||||
Reference in New Issue
Block a user