Closed tlecocq-dd closed 2 months ago
I guess you're using custom pricing - so the order is still open? (that's the only instance where stoploss_abs
can be 0 - unless you use a stoploss of -1).
At any rate, while from a data perspective, it's not something that'll happen often - it still shouldn't crash ftui.
So in this instance what would be the preferred output?
-
(inferring "no stop value")-100%
(explicit)i'd assume that the actual happening is "this is the initial phase, before a stoploss is set". setting a stop at -1 - and get the math to align 100% to become 0 is rather difficult :laughing:
OK in that case I'll settle for -
😄
Addressed in https://github.com/freqtrade/ftui/commit/5859126d1dc1b01a5c4a9edb1247b52d952d105d. Will be in the next release.
FTUI ZeroDivisionError when executing _get_open_trade_dataframe
Problem Description
FTUI was working correctly yesterday, but today a zero division error occurs during execution.
Error Message
Additional Details
_get_open_trade_dataframe
function of theftui.py
file.t["stop_loss_abs"]
is zero, which causes the division by zero.Impact
The application cannot run correctly due to this error.
Possible Solution
Check if
t["stop_loss_abs"]
is equal to zero before performing the division, and handle this case appropriately.Environment