Topic
Extract data around extrema
- This topic has 3 replies and 2 voices and was last updated 13 years, 10 months ago ago by Anonym.
-
AuthorPosts
-
05.07.2011 at 08:52 #33463AnonymGuest
Hello,
I’d like to extract data before and after 1000 from extrema.
I created following formula but it doesn’t work.
Dim myP = GlobalExtrema(‘Dataset1’,EVENT_POSITIVE,EVENT_INDEX)
Dim S, F
S = myP – 1000
F = myP + 1000
‘Dataset1′[S, F]Please tell me what’s wrong with it 😥
Masahiro
05.07.2011 at 08:52 #33466AnonymGuestHello,
I’d like to extract data before and after 1000 from extrema.
I created following formula but it doesn’t work.
Dim myP = GlobalExtrema(‘Dataset1’,EVENT_POSITIVE,EVENT_INDEX)
Dim S, F
S = myP – 1000
F = myP + 1000
‘Dataset1′[S, F]Please tell me what’s wrong with it 😥
Masahiro
05.07.2011 at 09:10 #33464Bernhard KantzParticipantThe GlobalExtrema-function returns a data series with the indices. Therefore you have to change your FPScript formula as follows:
Dim myP = GlobalExtrema(‘Dataset1’, EVENT_POSITIVE, EVENT_INDEX)[b][0][/b]
05.07.2011 at 11:35 #33465AnonymGuestThank you.
Now it works fine!
-
AuthorPosts
- You must be logged in to reply to this topic.