mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5fa572f298 | ||
|
|
61b2e737b3 | ||
|
|
5654065954 |
@@ -293,6 +293,7 @@ func (this Klines) Merge(n int) Klines {
|
||||
if n <= 1 {
|
||||
return this
|
||||
}
|
||||
|
||||
ks := Klines(nil)
|
||||
ls := Klines(nil)
|
||||
for i := 0; ; i++ {
|
||||
|
||||
@@ -210,7 +210,7 @@ func (this Trades) klinesForDay(date time.Time) Klines {
|
||||
//分组,按
|
||||
for _, v := range this {
|
||||
ms := minutes(v.Time)
|
||||
t := conv.Select(ms <= _930, _930, ms)
|
||||
t := conv.Select(ms < _930, _930, ms)
|
||||
t++
|
||||
t = conv.Select(t > _1130 && t <= _1300, _1130, t)
|
||||
t = conv.Select(t > _1500, _1500, t)
|
||||
|
||||
Reference in New Issue
Block a user