Allow disabling stop loss exits
This commit is contained in:
@@ -138,6 +138,7 @@ class Settings:
|
||||
time_series_probe_size_multiplier: float
|
||||
time_series_rebound_fallback_enabled: bool
|
||||
stop_loss_percent: float
|
||||
stop_loss_exit_enabled: bool
|
||||
take_profit_percent: float
|
||||
trailing_stop_percent: float
|
||||
min_hold_seconds: int
|
||||
@@ -289,6 +290,7 @@ def load_settings(env_file: str | Path | None = None) -> Settings:
|
||||
time_series_probe_size_multiplier=_float_env("TIME_SERIES_PROBE_SIZE_MULTIPLIER", 0.40),
|
||||
time_series_rebound_fallback_enabled=_bool_env("TIME_SERIES_REBOUND_FALLBACK_ENABLED", True),
|
||||
stop_loss_percent=_float_env("STOP_LOSS_PERCENT", 0.04),
|
||||
stop_loss_exit_enabled=_bool_env("STOP_LOSS_EXIT_ENABLED", True),
|
||||
take_profit_percent=_float_env("TAKE_PROFIT_PERCENT", 0.035),
|
||||
trailing_stop_percent=_float_env("TRAILING_STOP_PERCENT", 0.015),
|
||||
min_hold_seconds=_int_env("MIN_HOLD_SECONDS", 180),
|
||||
|
||||
Reference in New Issue
Block a user