is_short should be a boolean

This commit is contained in:
Matthias 2022-12-26 14:02:47 +01:00
parent 19913e8dc5
commit 63f114395a

View File

@ -279,7 +279,7 @@ def load_backtest_data(filename: Union[Path, str], strategy: Optional[str] = Non
)
# Compatibility support for pre short Columns
if 'is_short' not in df.columns:
df['is_short'] = 0
df['is_short'] = False
if 'leverage' not in df.columns:
df['leverage'] = 1.0
if 'enter_tag' not in df.columns: