How to create hidden strategy for trading

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #130207 quote
    kaaiii
    Participant
    New

    Hi, from how I understand it a strategy must be open to be able to use it for trading (Please correct me if this is not the case).

    Is someone able to point me in the right direction about how I can hide the logic of my strategy in an indicator (or another way) so that it’s not visible and can’t be copied by anyone and include that in my strategy.

    Any links or code/ pseudocode examples would be awesome since I can’t find too much on the subject and am completely new to the platform.

    Cheers

    Kai

    #130213 quote
    robertogozzi
    Moderator
    Master

    This is and indicator (named Example):

    // indicator returns 1 when a crossover occurs
    //
    return close crosses over average[200]

    export it so that it cannnot be modified (you can also select to enable/disable multiple copies).

    Then create you strategy:

    Signal = CALL "Example"
    IF Signal THEN
       BUY 1 Contract AT Market
    ENDIF
    SET TARGET pPROFIT 100
    SET STOP   pLOSS   50

    Now you can give anyone your protected indicator (distribute only the .ITF file) + the strategy as a text file to be used as a strategy.

    The user will never know WHY that signal is generated.

    kaaiii, se8astian and Nicolas thanked this post
    #130223 quote
    kaaiii
    Participant
    New

    Thank you robertogozzi 🙂

    #142487 quote
    se8astian
    Participant
    Junior

    Hello  robertogozzi,

    I was wondering if the indicator code could be also like this:

    // indicator returns 1 when date before end of year 2020
    //
    return date<20201231
    #142492 quote
    robertogozzi
    Moderator
    Master

    Yes, it will return 1 when true, 0 otherwise.

    The CALLing strategy needs to check that the returned value is <> 0.

    It’s important that your protected indicator does something else and returns further data, otherwise it is useless since the strategy is readble and modifiable and the line with “CALL” could be simply deleted or commented out to skip the check.

    #208767 quote
    wtangsiri
    Participant
    Junior

    Hi Robertogozzi,
    when i distribute my algo, the indicator is still unhidden, why ?

    #208792 quote
    robertogozzi
    Moderator
    Master

    In my example above line 1 is:

    Signal = CALL "Example"

    since exports both the strategy and the indicator, making it visible, you should
    replace that line with:

    Signal = 1//CALL "Example"

    then export both the strategy and the protected indicator, then instruct your client to edit that line and remove 1// in the ITF file.

    #208838 quote
    Monobrow
    Participant
    Senior

    Hi guys,

     

    great post! however, I would like to know how I can limit the date that the indicator / algo is valid for? say I want it to expire in 1 week, how do I do that?

     

    thanks

    #208853 quote
    Monobrow
    Participant
    Senior

    Dont worry, solved using date params, cheers

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

How to create hidden strategy for trading


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
kaaiii @kaaiii Participant
Summary

This topic contains 8 replies,
has 4 voices, and was last updated by Monobrow
3 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/06/2020
Status: Active
Attachments: No files
Logo Logo
Loading...