is_short should be a boolean
This commit is contained in:
parent
19913e8dc5
commit
63f114395a
@ -279,7 +279,7 @@ def load_backtest_data(filename: Union[Path, str], strategy: Optional[str] = Non
|
|||||||
)
|
)
|
||||||
# Compatibility support for pre short Columns
|
# Compatibility support for pre short Columns
|
||||||
if 'is_short' not in df.columns:
|
if 'is_short' not in df.columns:
|
||||||
df['is_short'] = 0
|
df['is_short'] = False
|
||||||
if 'leverage' not in df.columns:
|
if 'leverage' not in df.columns:
|
||||||
df['leverage'] = 1.0
|
df['leverage'] = 1.0
|
||||||
if 'enter_tag' not in df.columns:
|
if 'enter_tag' not in df.columns:
|
||||||
|
Loading…
Reference in New Issue
Block a user