Topic
Extract data around extrema
Startseite ' Community ' FPScript ' Extract data around extrema
- Dieses Thema hat 3 Antworten sowie 2 Teilnehmer und wurde zuletzt vor vor 13 Jahren, 10 Monaten von Anonym aktualisiert.
-
AutorBeiträge
-
05.07.2011 um 08:52 Uhr #33463AnonymGast
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 um 08:52 Uhr #33466AnonymGastHello,
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 um 09:10 Uhr #33464Bernhard KantzTeilnehmerThe 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 um 11:35 Uhr #33465AnonymGastThank you.
Now it works fine!
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.