我想把我的分钟线汇总成半小时线:
sessionsStart=09:30:00.000 13:00:00.000
barMinutes = 30
OHLC = select first(open) as open, max(high) as high, min(low) as low, last(close) as close from price_min group by symbol, dailyAlignedBar(time, sessionsStart, barMinutes*60*1000) as barStart
问题是:
1) 用sessionsStart=09:30:00.000 13:00:00.000的时候,报错:
Usage: dailyAlignedBar(X, timeOffset, n). timeOffset must be a scalar or an ascending vector with type SECOND
2)改成sessionsStart=09:30:00 13:00:00后可以,但是只有9:30和13:00区间的。求指导。
谢谢!