This article is now obsolete. ChartsAccess 2.0 works fine with custom indicators that have literal input parameters.
The version 1.0 of ChartsAccess Metatrader Add-on does not support custom indicators that have at least one literal input parameter. You can recognize literal (string) input parameters by the “ab” icon on the indicator input list:
We are working to get rid of this limitation in the version 2 of our Add-on. In the meanwhile here are simple steps that will allow you to use such indicators with chartsaccess.com.
You need to have a source file for your custom indicator. If you don’t have source code the only option is to wait for version 2 of ChartsAccess Add-on. You can subscribe to our newsletter below to get notified about the release.
Your custom indicator must not use literal input parameters for anything but comments or documentation for other inputs. In this workaround we will remove all literal input parameters from your indicator to make it work with ChartsAccess service. If you are not sure if any of literal parameters are used by indicator for calculations do not worry – it will turn out after doing steps described below.
Optional step: If you are using Vista or Windows 7 and your Metatrader is installed in Program Files I recommend reinstalling it to C:\users\your_user_name This will save you a lot of headaches related to new windows security system (called UAC).
Make it work
Right click on your indicator in the Metatrader navigator window and select “Modify”:
An editor with the indicator source file will appear. Save the file under new name – this way you can always use original file in case when something go wrong.
Custom indicator inputs are usually near the beginning of the file. All inputs begins with a word “extern”. Literal parameters are defined in lines that starts with “extern string”. Navigate from the beginning of the file and locate all lines that starts with “extern string”:
Now you will ”turn off” those parameters. This will remove entries from the custom indicator input list. To do it just add two slashes at the beginning of the line. The entire line will turn into grey:
Save the file and click “compile”. You should see “0 errors” in the bottom editor window:
If there was an error it usually means that your custom indicator is using literal parameter for calculations or other operations. In this case you need to contact author to make necessary changes to the code. You can undo all changes or just delete modified file if you saved it under different name than original.
Now you can switch back to the terminal and re-add your custom indicator to the chart. Remember to use the one with new name. On the input list there should be no more literal input parameters. After adding ChartsAccess Expert Advisor to the chart you will be able to access it from mobile or web browser.