backtesting.py
backtesting.py copied to clipboard
BUG: trying to round none / string(tag) / Boolean (is_contingent)
BUG: Fix attempting to round none / string(tag) / Boolean (is_contingent) in backtesting.py:408
Optional float values(limit, stop, sl, tp) can be float | None. Testing for none to not pass it to round() Boolean values (is_contingent) shouldnt be rounded. Str values (tag) shouldn't be rounded.
See: A fix for Comment