mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 04:58:08 +00:00
docs: update category index files and fix indicator implementations (#58)
This commit is contained in:
@@ -124,14 +124,7 @@ public sealed class Roc : AbstractBase
|
||||
|
||||
for (int i = 0; i < source.Length; i++)
|
||||
{
|
||||
if (i < period)
|
||||
{
|
||||
output[i] = 0.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
output[i] = source[i] - source[i - period];
|
||||
}
|
||||
output[i] = i < period ? 0.0 : source[i] - source[i - period];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user