diff --git a/epl/trading_system_1.epl b/epl/trading_system_1.epl index 0bc1bbb..dccecc5 100644 --- a/epl/trading_system_1.epl +++ b/epl/trading_system_1.epl @@ -1,4 +1,4 @@ --- test.epl - sample setup +-- trading_system_1.epl -- -- 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 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