https://github.com/sponsors/robcaulk
"""
- version = "3.7.6"
+ version = "3.7.7"
@cached_property
def _optuna_config(self) -> dict:
return np.nan
if temperature < 0:
raise ValueError("temperature must be non-negative.")
- if np.close(temperature, 0):
+ if np.isclose(temperature, 0):
return data_array.max()
return sp.special.logsumexp(temperature * data_array) / temperature
return np.nan
if temperature < 0:
raise ValueError("temperature must be non-negative.")
- if np.close(temperature, 0):
+ if np.isclose(temperature, 0):
return data_array.min()
return -sp.special.logsumexp(-temperature * data_array) / temperature
INTERFACE_VERSION = 3
def version(self) -> str:
- return "3.3.2"
+ return "3.3.3"
timeframe = "5m"
stoploss_distance = self.get_stoploss_distance(df, trade, current_rate)
if isna(stoploss_distance):
return None
- if np.close(stoploss_distance, 0):
+ if np.isclose(stoploss_distance, 0):
return None
sign = 1 if trade.is_short else -1
return stoploss_from_absolute(
take_profit_distance = self.get_take_profit_distance(df, trade, current_rate)
if isna(take_profit_distance):
return None
- if np.close(take_profit_distance, 0):
+ if np.isclose(take_profit_distance, 0):
return None
if trade.is_short:
take_profit_price = trade.open_rate - take_profit_distance