Substitute Values in variable.

Forums ProRealTime English forum ProBuilder support Substitute Values in variable.

  • This topic has 5 replies, 2 voices, and was last updated 8 years ago by avatarxel.
Viewing 6 posts - 1 through 6 (of 6 total)
  • #5023
    xel

    Hi!

    Is there a way in ProBuilder to generate a variable, say “V” with “1” from a series that have values of “0” or “NotANumber” ?

    As a example:  V = if volume == 0 or “not a number” then 1

    Thanks!

    #5028

    You can’t have string affected to variable. So your “V” variable would never record something else than numbers.

    Maybe you could post an example of what you expect exactly and I’ll could be more precise 🙂

    #5029
    xel

    Im porting one of my indicators that use Volume to plot data, but some tickers do not have volume reported or just as cero in TV. (Some Indexes, Forex, etc).  So, for this kind of situations, I want to report volume as 1 given multiplication weighting in my algorithm.

    #5030
    xel

    I don’t know if this statement works, ProBuilder editor doesn’t give me any error by now.  Not finished yet but…

     

    #5031

    You don’t have to test if Vo = undefined. The platform would never return this kind of value. If there are no values, then the variable would return 0. See my example in the picture below on forex.

    #5034
    xel

    GREAT!  That will do the trick!

    Thanks again Nicolas!

     

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