mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-19 11:08:05 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -116,7 +116,7 @@ public sealed class RvgiIndicatorTests
|
||||
var now = DateTime.UtcNow;
|
||||
for (int i = 0; i < 30; i++)
|
||||
{
|
||||
double basePrice = 100.0 + i * 0.5;
|
||||
double basePrice = 100.0 + (i * 0.5);
|
||||
indicator.HistoricalData.AddBar(
|
||||
now.AddMinutes(i),
|
||||
open: basePrice,
|
||||
|
||||
@@ -239,7 +239,7 @@ public sealed class RvgiValidationTests(ITestOutputHelper output)
|
||||
|
||||
for (int i = 0; i < 50; i++)
|
||||
{
|
||||
double basePrice = 100.0 + i * 0.5;
|
||||
double basePrice = 100.0 + (i * 0.5);
|
||||
rvgi.Update(new TBar(
|
||||
DateTime.UtcNow.AddMinutes(i),
|
||||
open: basePrice,
|
||||
@@ -261,7 +261,7 @@ public sealed class RvgiValidationTests(ITestOutputHelper output)
|
||||
|
||||
for (int i = 0; i < 50; i++)
|
||||
{
|
||||
double basePrice = 200.0 - i * 0.5;
|
||||
double basePrice = 200.0 - (i * 0.5);
|
||||
rvgi.Update(new TBar(
|
||||
DateTime.UtcNow.AddMinutes(i),
|
||||
open: basePrice + 2.0,
|
||||
|
||||
Reference in New Issue
Block a user