Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
https://github.com/sponsors/robcaulk
"""
- version = "3.7.56"
+ version = "3.7.57"
@cached_property
def _optuna_config(self) -> dict:
depth_factor = calculate_depth_factor(pos)
if len(pivots_indices) < 2:
return np.clip(
- round(min_depth * depth_factor), min_depth, max_depth
+ round(np.median([min_depth, max_depth]) * depth_factor),
+ min_depth,
+ max_depth,
).astype(int)
previous_periods = np.diff(pivots_indices[-3:])
INTERFACE_VERSION = 3
def version(self) -> str:
- return "3.3.56"
+ return "3.3.57"
timeframe = "5m"
depth_factor = calculate_depth_factor(pos)
if len(pivots_indices) < 2:
return np.clip(
- round(min_depth * depth_factor), min_depth, max_depth
+ round(np.median([min_depth, max_depth]) * depth_factor),
+ min_depth,
+ max_depth,
).astype(int)
previous_periods = np.diff(pivots_indices[-3:])