This example demonstrates how to create a trading strategy in ProBuilder that utilizes an externally referenced, protected indicator. The strategy executes a buy order based on the signal from the protected indicator and sets specific profit and loss targets.
// 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 your 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.
The code snippet above outlines a method to protect the logic of a trading indicator while allowing others to use it within their strategies. Here’s a breakdown of how it works:
This approach is particularly useful for strategy developers who wish to maintain the confidentiality of their proprietary indicators while still providing tools for traders to use in their own trading setups.
Check out this related content for more information:
https://www.prorealcode.com/topic/how-to-create-hidden-strategy-for-trading/#post-130213
Visit Link