candles_step: int,
) -> tuple[float, int]:
min_label_period_candles: int = round_to_nearest_int(
- max(fit_live_predictions_candles // 18, candles_step), candles_step
+ max(fit_live_predictions_candles // 22, candles_step), candles_step
)
max_label_period_candles: int = round_to_nearest_int(
- max(fit_live_predictions_candles // 3, min_label_period_candles),
+ max(fit_live_predictions_candles // 2, min_label_period_candles),
candles_step,
)
label_period_candles = trial.suggest_int(
max_label_period_candles,
step=candles_step,
)
- label_natr_ratio = trial.suggest_float("label_natr_ratio", 3.0, 18.0, step=0.01)
+ label_natr_ratio = trial.suggest_float("label_natr_ratio", 2.0, 22.0, step=0.01)
df = df.iloc[
-(