mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +00:00
xmaker: fix trade window test
This commit is contained in:
parent
c066a187d9
commit
4f1b216fbf
|
@ -46,9 +46,7 @@ func TestMarketTradeWindowSignal(t *testing.T) {
|
|||
ctx := context.Background()
|
||||
sigNum, err := sig.CalculateSignal(ctx)
|
||||
if assert.NoError(t, err) {
|
||||
// buy ratio: 1/1.5 = 0.6666666666666666
|
||||
// sell ratio: 0.5/1.5 = 0.3333333333333333
|
||||
assert.InDelta(t, 0.0083333, sigNum, 0.0001)
|
||||
assert.InDelta(t, 1.3333333, sigNum, 0.0001)
|
||||
}
|
||||
|
||||
assert.Len(t, sig.trades, 2)
|
||||
|
|
Loading…
Reference in New Issue
Block a user