mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
fix truncate
This commit is contained in:
parent
0fffc379fc
commit
5ffd751701
|
@ -343,7 +343,7 @@ func (k *KLineWindow) Truncate(size int) {
|
|||
if start < 0 {
|
||||
start = 0
|
||||
}
|
||||
*k = (*k)[end-5 : end]
|
||||
*k = (*k)[start : end]
|
||||
}
|
||||
|
||||
func (k KLineWindow) GetBody() float64 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user