mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 13:08:04 +00:00
[CodeFactor] Apply fixes to commit 5d086a1
This commit is contained in:
@@ -174,6 +174,6 @@ public sealed class Uo : AbstractBase
|
||||
|
||||
// Calculate weighted sum
|
||||
double weightSum = _weight1 + _weight2 + _weight3;
|
||||
return ScalingFactor * ((_weight1 * avg1 + _weight2 * avg2 + _weight3 * avg3) / weightSum);
|
||||
return ScalingFactor * (((_weight1 * avg1) + (_weight2 * avg2) + (_weight3 * avg3)) / weightSum);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user