Merge branch 'develop' into feat/short
This commit is contained in:
@@ -58,4 +58,12 @@ def _build_backtest_dataframe(data):
|
||||
frame[column] = frame[column].astype('float64')
|
||||
if 'enter_tag' not in columns:
|
||||
frame['enter_tag'] = None
|
||||
if 'exit_tag' not in columns:
|
||||
frame['exit_tag'] = None
|
||||
|
||||
# Ensure all candles make kindof sense
|
||||
assert all(frame['low'] <= frame['close'])
|
||||
assert all(frame['low'] <= frame['open'])
|
||||
assert all(frame['high'] >= frame['close'])
|
||||
assert all(frame['high'] >= frame['open'])
|
||||
return frame
|
||||
|
||||
Reference in New Issue
Block a user