mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-03 04:41:23 +00:00
chore: slightly improve docstring
This commit is contained in:
@@ -1208,7 +1208,7 @@ class LocalTrade:
|
||||
def calc_close_rate_for_roi(self, target_roi: float) -> float:
|
||||
"""
|
||||
Calculate the required close price to reach a target ROI.
|
||||
Matches the logic used in `calc_profit_ratio()`.
|
||||
Must match the logic used in `calc_profit_ratio()`.
|
||||
|
||||
:param target_roi: The desired return on investment (as a decimal, e.g., 0.05 for 5%)
|
||||
:return: Close price (rate) required to achieve the target ROI
|
||||
|
||||
Reference in New Issue
Block a user