Why don't triggering options and fill affect mavg and cumsum in streamEngineParser?
I use streamEngineParser to compute a moving average and cumulative volume per symbol. I pass triggeringPattern='keyCount', triggeringInterval=3000, and fill=(0.0, 0). However, inserting six records for a single symbol immediately produces six output rows. The first four moving-average values are still null rather than zero. Here is a complete example: trades = streamTable(1:0, `sym`time`close`volume, [SYMBOL, TIMESTAMP, DOUBLE, INT]) output = streamTable(100:0, `sym`time`ma`cumVol, [SYMBOL, TIMESTAMP, DOUBLE, LONG]) engine = streamEngineParser( name="q01ParamDemo", metrics=<[mavg(close, 5), c
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.