Custom Indiator with Series Input

Forums ProRealTime English forum ProBuilder support Custom Indiator with Series Input

Tagged: ,

Viewing 3 posts - 16 through 18 (of 18 total)
  • #88041

    But a strategy does read all settings at launch time, so you cannot change CUSTOMCLOSE at runtime, you’ll have to quit it, change settings, then launch it again due to lack of interaction among strategies and user/other strategies/indicators.

    #88042

    Ok, PRT does not operate on arrays. I think that means what I am attempting to accomplish is not possible yet.

    Also, when have I not put parameters within brackets?

    Am I limited in what I can set customclose to? I believe so. If so, this does not work for my purposes.

    For example, if I want to use (close * 2.7) then yes your function works great! But if I want to later use (open / 1.3) or the squareroot(open * close) then I would need to write a custom function for each math operator.

    Ideally, we just create one function, create the values (array) we want to pass in and function call never changes only the array. In other words, I do not want to hard code the multiplication into a multiplication function. Then also create a division function, etc. But if this is the only way then just tell me and I can survive.

    Also, changing code at runtime is not my concern. I thought we already covered that above.

    #88043

    The other solution would be to add an input parameter that runs a big switch statement for the math operator I desire. I am just trying to avoid writing this as it can also be limiting.

Viewing 3 posts - 16 through 18 (of 18 total)

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