FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro Support
Knowledge
Community
About us
References
Jobs
General Contact
List Of Retailers
FlexPro Support
EN
DE
FR
Placeholder
Products and Solutions
Support and Downloads
Company
Magazine
Contact Us
Language
MyWeisang

Account settings

Topic

Extract data around extrema

Home page Community FPScript Extract data around extrema

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33463
    Anonym
    Guest

    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

    #33466
    Anonym
    Guest

    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

    #33464
    Bernhard Kantz
    Participant

    The 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]

    support@weisang.com

    #33465
    Anonym
    Guest

    Thank you.

    Now it works fine!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.