mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-13 16:18:05 +00:00
Merge branch 'main' of https://github.com/mihakralj/QuanTAlib
This commit is contained in:
@@ -368,7 +368,7 @@ public sealed class RrsiTests
|
||||
}
|
||||
for (int i = 20; i < 50; i++)
|
||||
{
|
||||
ind.Update(new TValue(DateTime.UtcNow.AddMinutes(i), 100.0 + (i - 20) * 2.0));
|
||||
ind.Update(new TValue(DateTime.UtcNow.AddMinutes(i), 100.0 + ((i - 20) * 2.0)));
|
||||
}
|
||||
Assert.True(ind.Last.Value > 0, $"Strong uptrend should be positive, got {ind.Last.Value}");
|
||||
}
|
||||
@@ -383,7 +383,7 @@ public sealed class RrsiTests
|
||||
}
|
||||
for (int i = 20; i < 50; i++)
|
||||
{
|
||||
ind.Update(new TValue(DateTime.UtcNow.AddMinutes(i), 100.0 - (i - 20) * 2.0));
|
||||
ind.Update(new TValue(DateTime.UtcNow.AddMinutes(i), 100.0 - ((i - 20) * 2.0)));
|
||||
}
|
||||
Assert.True(ind.Last.Value < 0, $"Strong downtrend should be negative, got {ind.Last.Value}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user