backtesting.py icon indicating copy to clipboard operation
backtesting.py copied to clipboard

BUG: trying to round none / string(tag) / Boolean (is_contingent)

Open ajwinkworth opened this issue 1 year ago • 0 comments

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

ajwinkworth avatar May 28 '23 01:05 ajwinkworth