How to deactivate EDIT FORMULA option which allows us to view the code

Hi,
I want to share remote access of my PC to others.
So I just want to disable the EDIT FORMULA option.
So users can't right click on chart and view my formula.
Is there a way to do it?
Kindly suggest if anyone knows.
Regards,
Gloria filamino.

A quick way that I can think of, is create a copy of your formula as backup.

Then edit your Formula,
and fill it up with a lot of comments until the actual code is a few pages below.
You can also toss in some garbage code :smiley:

This will work if your real intention is just remote access and you're present there.

OR

move file to another AFL and use #include to import code

OR

Other more complex ways is ultimately creating a .DLL

1 Like

Hello @Gloriafilamino I don't know any way of disabling the EDIT formula option (apart from making a custom DLL) but you can make seeing and editing the code more difficult. You can for example move some vital parts of your code to an external file, which can be stored anywhere on your drive (even on a removable usb drive) and include this file or these files using #include or #include_once.

https://www.amibroker.com/guide/afl/_include.html
https://www.amibroker.com/guide/afl/_include_once.html

Here is an example:

Similar topics:

Regards

1 Like

Thanks for the help.
I have never used INCLUDE.
I will give a try.
Thanks for your time.

Thanks for the help.
I have never used INCLUDE.
I will give a try.
Thanks for your time