From a9365e44fea8a2272146ec61efd36eea3dc71369 Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Mon, 23 Jul 2018 01:07:40 -0700 Subject: [PATCH] trading_system_1.epl: add CurrentTickWindow --- epl/trading_system_1.epl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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