Protecting cBot

Created at 08 Aug 2022, 15:02
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
siglotcapital's avatar

siglotcapital

Joined 20.02.2021

Protecting cBot
08 Aug 2022, 15:02


Good day,
 

I will like to know if a protected cBot can be decompiled or cracked (i.e. the protection made void).
I am about releasing my cBot to the public but i am scared it might be cracked by some programmer.
Is there anything like a fully secured cBot that can not be cracked.


@siglotcapital
Replies

PanagiotisCharalampous
08 Aug 2022, 16:14

Hi siglotcapital,

There is nothing uncrackable but it is not easy to crack a .algo file.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

siglotcapital
08 Aug 2022, 16:29

RE:

PanagiotisCharalampous said:

Hi siglotcapital,

There is nothing uncrackable but it is not easy to crack a .algo file.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


Ok if that's the case, you're saying its more difficult to crack .algo file compared to .MQL file right?

Secondly what's now the best method to protect ones file if you don't want it stolen or cracked. I am sure their people who sells their protected Algo files out there and there must be a way they're are protecting it to avoid theft or piracy.

Please kindly enlighten me on the best method to go about this.


@siglotcapital

PanagiotisCharalampous
08 Aug 2022, 16:34

Hi siglotcapital,

An .algo file is already encrypted and secured so there is not much more you can do. I don't know how secure MQL files are.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

firemyst
09 Aug 2022, 03:21 ( Updated at: 09 Aug 2022, 03:22 )

RE: RE:

siglotcapital said:

PanagiotisCharalampous said:

Hi siglotcapital,

There is nothing uncrackable but it is not easy to crack a .algo file.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


Ok if that's the case, you're saying its more difficult to crack .algo file compared to .MQL file right?

Secondly what's now the best method to protect ones file if you don't want it stolen or cracked. I am sure their people who sells their protected Algo files out there and there must be a way they're are protecting it to avoid theft or piracy.

Please kindly enlighten me on the best method to go about this.

You can also run your code through an obfuscator and then compile it into cTrader. This way, if they do manage to crack a .algo file, at least the code would be obfuscated to make it more annoying for them to figur eout.

Also, since Spotware has the necessary keys to decrypt any .algo code files, it'll also make it more difficult for them to "peak" at and understand your source code as well (if you're worried about that)


@firemyst

PanagiotisCharalampous
09 Aug 2022, 08:24

Hi firemyst,

I think that the problem we are trying to avoid is not to copy and reuse the strategy and not so much the academic interest regarding how it works. If somebody decrypts the file, then it is easy to copy and reuse even if the code is obfuscated. If I was so worried about my IP rights on a strategy, I would not distribute it as an .algo file but through a client-server signal pushing architecture instead.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous

siglotcapital
10 Aug 2022, 02:56

RE:

PanagiotisCharalampous said:

Hi firemyst,

I think that the problem we are trying to avoid is not to copy and reuse the strategy and not so much the academic interest regarding how it works. If somebody decrypts the file, then it is easy to copy and reuse even if the code is obfuscated. If I was so worried about my IP rights on a strategy, I would not distribute it as an .algo file but through a client-server signal pushing architecture instead.

Best Regards,

Panagiotis 

Join us on Telegram and Facebook

I'm really fascinated by this suggestion so based on your own opinion, so how best do yo think this can be executed (i mean "client-server signal pushing architecture)" on cTrader.
Secondly will this option work effectively if i have a large user base who will all be receiving signals from a single server.


@siglotcapital

PanagiotisCharalampous
10 Aug 2022, 08:23

Hi siglotcapital,

I can't advise what is the best way since I have no idea what are you doing :) For example, you could send your signals through TCP.

Secondly will this option work effectively if i have a large user base who will all be receiving signals from a single server

Of course, this is how cTrader and every other trading platform work. Instead of streaming prices and trading information, you can stream signals. 

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous