Siuko
ZyraTrading.com Representative
- Messages
- 9
Dear members of the Forex Peace Army community,
I have developed an Expert Advisor (EA) that I would like to share with fellow traders, but I want to ensure it is only used for backtesting purposes and not for live trading. My goal is to protect my code while still offering users the opportunity to test the EA's performance.
Currently, in the EA's code, I have added the following condition:
I am wondering if this condition is sufficient to prevent the EA from functioning in live trading and restrict it solely to backtests. Are there any other security measures I could consider to further protect my EA when shared with others?
Any help, advice, or recommendations you could provide would be greatly appreciated. I want to ensure that my EA is used in accordance with my intentions while benefiting from the community's feedback.
Thank you sincerely for your assistance!
Best regards, Anthony
I have developed an Expert Advisor (EA) that I would like to share with fellow traders, but I want to ensure it is only used for backtesting purposes and not for live trading. My goal is to protect my code while still offering users the opportunity to test the EA's performance.
Currently, in the EA's code, I have added the following condition:
SCSS:
OnInit(){
if(!IsTesting()){return(INIT_FAILED);}
}
I am wondering if this condition is sufficient to prevent the EA from functioning in live trading and restrict it solely to backtests. Are there any other security measures I could consider to further protect my EA when shared with others?
Any help, advice, or recommendations you could provide would be greatly appreciated. I want to ensure that my EA is used in accordance with my intentions while benefiting from the community's feedback.
Thank you sincerely for your assistance!
Best regards, Anthony