changed the wording in
if required_candle_call_count > 5: as per matthias suggestion. adjusted the elif part too, since this would have to be worded similarly. If a native speaker thinks there is a better wording, be our guest.
This commit is contained in:
@@ -879,13 +879,13 @@ class Exchange:
|
|||||||
# Only allow 5 calls per pair to somewhat limit the impact
|
# Only allow 5 calls per pair to somewhat limit the impact
|
||||||
raise ConfigurationError(
|
raise ConfigurationError(
|
||||||
f"This strategy requires {startup_candles} candles to start, "
|
f"This strategy requires {startup_candles} candles to start, "
|
||||||
"which is more than 5x "
|
f"which is more than 5x ({candle_limit * 5 - 1} candles) "
|
||||||
f"the amount of candles {self.name} provides for {timeframe} "
|
f"the amount of candles {self.name} provides for {timeframe}."
|
||||||
f"at a startup_candle_count limit of {candle_limit * 5 - 1}."
|
|
||||||
)
|
)
|
||||||
elif required_candle_call_count > 1:
|
elif required_candle_call_count > 1:
|
||||||
raise ConfigurationError(
|
raise ConfigurationError(
|
||||||
f"This strategy requires {startup_candles} candles to start, which is more than "
|
f"This strategy requires {startup_candles} candles to start, "
|
||||||
|
f"which is more than ({candle_limit - 1} candles) "
|
||||||
f"the amount of candles {self.name} provides for {timeframe}."
|
f"the amount of candles {self.name} provides for {timeframe}."
|
||||||
)
|
)
|
||||||
if required_candle_call_count > 1:
|
if required_candle_call_count > 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user