trading_system_1.epl: add CurrentTickWindow
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
-- test.epl - sample setup
|
-- trading_system_1.epl
|
||||||
--
|
--
|
||||||
-- Statements must be separated by an empty line.
|
-- Statements must be separated by an empty line.
|
||||||
|
|
||||||
@ -24,6 +24,15 @@ create constant variable int SMASize = 5
|
|||||||
-- How many ticks to store for Ref() access
|
-- How many ticks to store for Ref() access
|
||||||
create constant variable int RefSize = 5
|
create constant variable int RefSize = 5
|
||||||
|
|
||||||
|
|
||||||
|
--
|
||||||
|
-- A named window that contains the current tick
|
||||||
|
--
|
||||||
|
|
||||||
|
create window CurrentTickWindow#length(1) as TickEvent
|
||||||
|
|
||||||
|
insert into CurrentTickWindow select * from TickEvent
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Trading window
|
-- Trading window
|
||||||
|
|||||||
Reference in New Issue
Block a user