Currently i am using following piece of code. It looks for the first event of ValueTrigger and saves it and ignore all the next ValueTriggered Events. Then it compares currentData.last value with first ValueTriggered event.

select
*
from
Tick as currentData unidirectional,
ValueTriggered.std:firstevent() as triggerPoint
where
currentData.last < triggerPoint.highValue;

What i want to achieve is to rest the value of triggerPoint when ever the condition is matched. I want to change std:firstevent() with some function which reset value when ever "where" condition matches(by reset i mean next ValueTriggerd Value).

有帮助吗?

解决方案

Sounds like "every ValueTriggered -> Tick(...)" A "reset" can also be done using explicit delete from a named window.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top