質問

I am new with Esper so i am unable to solve a simple problem. All i have to do is to get the difference of current close of bar with the previous close of bar. Whats the smartest way to approach this problem in esper?

Result= CurrentBar.Close - PreviousBar.Close.

EDIT:

I am using following piece of code will this work?

select
prev(0,close) - prev(1,close) as return,
security
from
Bar.win:length(2); 
役に立ちましたか?

解決

The "prev()" special function.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top