mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
test: add tests for high/low logic
This commit is contained in:
@@ -581,6 +581,8 @@ def test_calculate_max_drawdown2():
|
|||||||
# No winning trade ...
|
# No winning trade ...
|
||||||
drawdown = calculate_max_drawdown(df1, date_col="open_date", value_col="profit")
|
drawdown = calculate_max_drawdown(df1, date_col="open_date", value_col="profit")
|
||||||
assert drawdown.drawdown_abs == 0.055545
|
assert drawdown.drawdown_abs == 0.055545
|
||||||
|
assert drawdown.high_value == 0.0
|
||||||
|
assert drawdown.current_high_value == 0.0
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
|||||||
Reference in New Issue
Block a user