mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 13:08:04 +00:00
[CodeFactor] Apply fixes to commit 0606491
This commit is contained in:
@@ -209,7 +209,7 @@ public class CviIndicatorTests
|
||||
for (int i = 20; i < 35; i++)
|
||||
{
|
||||
double basePrice = 100;
|
||||
double range = 1 + (i - 20) * 0.5; // Gradually increasing range
|
||||
double range = 1 + ((i - 20) * 0.5); // Gradually increasing range
|
||||
indicator.HistoricalData.AddBar(now.AddMinutes(i), basePrice, basePrice + range, basePrice - range, basePrice, 1000);
|
||||
indicator.ProcessUpdate(new UpdateArgs(UpdateReason.HistoricalBar));
|
||||
}
|
||||
@@ -240,7 +240,7 @@ public class CviIndicatorTests
|
||||
for (int i = 20; i < 35; i++)
|
||||
{
|
||||
double basePrice = 100;
|
||||
double range = Math.Max(1, 10 - (i - 20) * 0.5); // Gradually decreasing range
|
||||
double range = Math.Max(1, 10 - ((i - 20) * 0.5)); // Gradually decreasing range
|
||||
indicator.HistoricalData.AddBar(now.AddMinutes(i), basePrice, basePrice + range, basePrice - range, basePrice, 1000);
|
||||
indicator.ProcessUpdate(new UpdateArgs(UpdateReason.HistoricalBar));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user