mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-23 04:58:08 +00:00
[CodeFactor] Apply fixes to commit 9697fac
This commit is contained in:
@@ -211,7 +211,7 @@ public sealed class Adxvma : AbstractBase
|
||||
double sc = Math.Max(0.0, Math.Min(adxVal / 100.0, 1.0));
|
||||
|
||||
// Adaptive EMA
|
||||
double result = double.IsNaN(_state.Result) ? sourceValue : _state.Result + sc * (sourceValue - _state.Result);
|
||||
double result = double.IsNaN(_state.Result) ? sourceValue : _state.Result + (sc * (sourceValue - _state.Result));
|
||||
|
||||
// Update state
|
||||
_state = new AdxvmaState(
|
||||
|
||||
Reference in New Issue
Block a user