Hide input variables to clean up settings

 

Hello MQL community! This is my first question here, and hopefully its not a stupid one.


The Problem:

My EA is available here: [link to the Market product was deleted by moderator] and everything works great, however due to the nature of me EA, the settings list is massive. Looking at it is simply ugly and I would love to clean it up for a better user experience. (Mql4 and Mt4)


My Goal:

I would like to hide settings that are not currently being used.


My failed attempt:

extern input UseMACross=True;
if(UseMACross==True)
{
        extern input maFast=10;
        extern input Maslow=28;
}

However it seems "if: statements are not allowed in a global scope, and extern variables are not allowed within an "if" statement.

Does anyone know another way around this or is it not possible in the mql4 language?

 
Stephen Davies:

Hide input variables to clean up settings

You cannot do this dynamically (unless you build your own dashboard).

You can use #ifdef and #ifndef pre-processors, then recompile.

 
Anthony Garot:

You cannot do this dynamically (unless you build your own dashboard).

You can use #ifdef and #ifndef pre-processors, then recompile.

Thank you for the suggestion, going to read up on it now :)