Custom Indiator with Series Input

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #88041 quote
    robertogozzi
    Moderator
    Master

    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 quote
    dburgh
    Participant
    Average

    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 quote
    dburgh
    Participant
    Average

    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)
  • You must be logged in to reply to this topic.

Custom Indiator with Series Input


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
dburgh @dburgh Participant
Summary

This topic contains 17 replies,
has 2 voices, and was last updated by dburgh
7 years, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/04/2019
Status: Active
Attachments: No files
Logo Logo
Loading...