mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-21 20:18:05 +00:00
[CodeFactor] Apply fixes to commit 9697fac
This commit is contained in:
@@ -23,7 +23,7 @@ public sealed class JbandsIndicator : Indicator, IWatchlistIndicator
|
||||
|
||||
private Jbands? _indicator;
|
||||
|
||||
public int MinHistoryDepths => (int)Math.Ceiling(20.0 + 80.0 * Math.Pow(Period, 0.36));
|
||||
public int MinHistoryDepths => (int)Math.Ceiling(20.0 + (80.0 * Math.Pow(Period, 0.36)));
|
||||
public override string ShortName => $"Jbands({Period},{Phase})";
|
||||
|
||||
public JbandsIndicator()
|
||||
|
||||
@@ -99,7 +99,7 @@ public sealed class Jbands : ITValuePublisher, IDisposable
|
||||
_logLengthDivider = Math.Log(Math.Max(_lengthDivider, 1e-12));
|
||||
_logSqrtDivider = Math.Log(Math.Max(sqrtDivider, 1e-12));
|
||||
|
||||
WarmupPeriod = (int)Math.Ceiling(20.0 + 80.0 * Math.Pow(period, 0.36));
|
||||
WarmupPeriod = (int)Math.Ceiling(20.0 + (80.0 * Math.Pow(period, 0.36)));
|
||||
|
||||
_handler = Handle;
|
||||
Name = $"Jbands({period},{phase})";
|
||||
|
||||
Reference in New Issue
Block a user