How to create hidden strategy for trading
Forums › ProRealTime English forum › ProBuilder support › How to create hidden strategy for trading
- This topic has 8 replies, 4 voices, and was last updated 1 year ago by Monobrow.
-
-
05/06/2020 at 11:21 AM #130207
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
05/06/2020 at 11:53 AM #130213This is and indicator (named Example):
Example123// 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:
123456Signal = CALL "Example"IF Signal THENBUY 1 Contract AT MarketENDIFSET TARGET pPROFIT 100SET STOP pLOSS 50Now 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.
05/06/2020 at 1:07 PM #13022308/24/2020 at 11:13 PM #142487Hello robertogozzi,
I was wondering if the indicator code could be also like this:
Indicator Example123// indicator returns 1 when date before end of year 2020//return date<2020123108/24/2020 at 11:38 PM #142492Yes, 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.
01/30/2023 at 2:47 PM #20876701/31/2023 at 4:04 AM #208792In my example above line 1 is:
1Signal = CALL "Example"since exports both the strategy and the indicator, making it visible, you should
replace that line with:1Signal = 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.
01/31/2023 at 12:49 PM #20883801/31/2023 at 1:48 PM #208853 -
AuthorPosts
Find exclusive trading pro-tools on