Warning: the function returns 2 values but your code needs 1

Forums ProRealTime English forum ProOrder support Warning: the function returns 2 values but your code needs 1

  • This topic has 2 replies, 2 voices, and was last updated 7 years ago by avatarBard.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #31270

    Hi

    I wanted to add a second condition to a system buy condition and it gave me a warning (pls see screenshot). Any ideas why? (The Oscillator is bounded between -1 and +1)

    Thanks.

    The original code was:

    And then I wanted to add a filter (the oscillator):

    which was placed at the top of the system code and the Oscillator added to a Std Dev condition:

    #31284

    Hi,

    I don’t know the Ehler’s univ osc supersmoother, but I am going to guess its “return” line contains 2 variables? If the answer is yes, then if you want the first one of these 2, try with:

    or if you want the second one rather than the first:

    #31310

    Thanks very much Noobywan, example #1 above has fixed it because it was returning the actual signal line value plus the zero line value (the latter needing to be ignored). It is normally written, when created by simple programming, as:

Viewing 3 posts - 1 through 3 (of 3 total)

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