Require minimum net profit for forecast exits
This commit is contained in:
@@ -142,6 +142,7 @@ class Settings:
|
||||
take_profit_percent: float
|
||||
trailing_stop_percent: float
|
||||
min_hold_seconds: int
|
||||
min_exit_net_percent: float
|
||||
entry_cooldown_seconds: int
|
||||
max_daily_drawdown_usdt: float
|
||||
min_cash_reserve_usdt: float
|
||||
@@ -294,6 +295,7 @@ def load_settings(env_file: str | Path | None = None) -> Settings:
|
||||
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),
|
||||
min_exit_net_percent=_float_env("MIN_EXIT_NET_PERCENT", 0.20),
|
||||
entry_cooldown_seconds=_int_env("ENTRY_COOLDOWN_SECONDS", 180),
|
||||
max_daily_drawdown_usdt=_float_env("MAX_DAILY_DRAWDOWN_USDT", 6.0),
|
||||
min_cash_reserve_usdt=_float_env("MIN_CASH_RESERVE_USDT", 5.0),
|
||||
|
||||
Reference in New Issue
Block a user