Ehlers Even Better Sinewave syntax

Forums ProRealTime English forum ProOrder support Ehlers Even Better Sinewave syntax

Viewing 6 posts - 1 through 6 (of 6 total)
  • #118835

    Hello very brainy and esteemed colleagues,

    I would like to incorporate the Ehlers Even Better Sinewave in my strategy and I’ve got as far as

    indicator4 = CALL “Ehlers Even Better Sinewave”[50,.8, -.8]

    but what I ultimately need is something like:

    c13 = (SineWave > -8)
    c14 = (SineWave < .8)

    So I assume I need something linking SineWave to indicator4 … but how do I do that?

     

    #118840

    Is that what you want?

     

    #118844

    That was the first thing I tried but I get an error saying “Ehlers Even Better Sinewave returns 4 values but your code needs 1”.

    As far as I can see, the 4 values associated with that indicator seem to be SineWave, Level Up, Level Down and Mid Level, so I assume that SineWave is the one that I want, no?

    #118850

    Probably…! But you should refer to the returned values of the Sinewave indicator, you get the called variables in the same order than in the RETURN instruction of the indicator.

    You could also have a look in the documentation: CALL to get a better understanding on how to use CALL.

    1 user thanked author for this post.
    #118854

    Thanks @Nicolas for pointing me in the right direction! (like, duh, try reading  the manual)

    For anyone else who may be interested, it works like this:

    So now we know.

    #118859

    just RTFM! 😆

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login