Skip to content

Commit

Permalink
0.8.29 fix bug (waditu#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbin93 committed Jul 29, 2022
1 parent d256dc8 commit e864a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_advanced_trader.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ def _strategy(symbol):
assert ct.s['空头_累计_盈亏'] == '亏损_超过800BP_任意_0'

holds_long = pd.DataFrame(ct.long_holds)
assert round(holds_long['long_pos'].mean(), 4) == 0.7351
assert round(holds_long['long_pos'].mean(), 4) == 0.7376

holds_short = pd.DataFrame(ct.short_holds)
assert round(holds_short['short_pos'].mean(), 4) == 0.7351
assert round(holds_short['short_pos'].mean(), 4) == 0.7376


def test_advanced_trader():
Expand Down

0 comments on commit e864a0d

Please sign in to comment.