mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-18 18:48:05 +00:00
[CodeFactor] Apply fixes to commit 9697fac
This commit is contained in:
@@ -244,7 +244,7 @@ public sealed class Htit : AbstractBase
|
||||
if (_state.Index >= 12)
|
||||
{
|
||||
// NaN will propagate if IT buffer contains NaN
|
||||
return (4.0 * _itBuffer[^1] + 3.0 * _itBuffer[^2] + 2.0 * _itBuffer[^3] + _itBuffer[^4]) * 0.1;
|
||||
return ((4.0 * _itBuffer[^1]) + (3.0 * _itBuffer[^2]) + (2.0 * _itBuffer[^3]) + _itBuffer[^4]) * 0.1;
|
||||
}
|
||||
|
||||
return price; // May be NaN if no valid input yet
|
||||
|
||||
Reference in New Issue
Block a user