Home / Forex & Currency Exchange News / How Do You Prefer Your MetaTrader Input Parameters?

How Do You Prefer Your MetaTrader Input Parameters?

As an MQL4 and MQL5 developer, I often wonder — what is the best way of presenting the input parameters to control the behavior of the indicators and expert advisors I create? Input parameters are vitally important — Forex traders should easily understand which one does what. If you make input parameters too complex — users will flood you with questions. However, the MetaTrader platform has its own limits for the inputs’ descriptions. Moreover, fitting complete user manuals into the settings form will decrease usability for experienced traders. So, which option is the best?

Hardcore MQL developers (who code mostly for themselves) prefer obscure input parameter names. Such names contain little to no information that could be useful to laymen. Consider this set of inputs from a popular MT4 indicator Var Mov Avg:

MT4 indicator with obscure input parameter names

Only the last two parameters have names that would tell the end-user what they do. The rest is left to guesswork and trial and error.

The next step would be to call the parameters normal names. The majority of good developers do exactly this. Consider the list of inputs of Alligator (standard MetaTrader indicator):

Alligator - MT4 indicator with descriptive input parameter names

Although it require some basic understanding of what Alligator indicator is, it offers a clear picture for a potential user.

Luckily, MetaTrader allows inserting full textual descriptions as parameter names. There are two drawbacks though. First, the string length limit is just 63 characters. Second, without a name, it is difficult to refer to a parameter in the user documentation and to provide any additional info.

combination of parameter names and textual descriptions is a bit heavier but offers an advantage — you get a parameter name to refer to in the user documentation and you get an immediate description, albeit a short one, to provide some help inside the platform. Fitting into the platform’s length limit becomes even more difficult.

The following screenshot shows some input parameters for the Position Size Calculator:

Position Size Calculator with inputs parameters containing both names with textual descriptions and bare textual descriptions

The first three parameters have visible names and a descriptive commentary. Alas, the text gets cut due to the platform’s restrictions. The last two parameters lack the names but get to display full textual descriptions.

The most informative way of presenting the input parameters in MetaTrader is the multiline textual description. It requires some fiddling with the string parameters. The result is not anything elegant, and the input parameters form becomes quite bulky. However, this way, you can fit complete books inside the form. This input parameters form for the Moving Average Candlesticks indicator demonstrates the concept:

Multiline descriptions of the indicator's input parameters

As you can see, the three lines above the last input parameter give an extensive description of its possible values.

In my opinion, the best way is to go with the names accompanied by descriptions in nearly all cases. When you reach the character limit, it is worth considering multiline descriptions. The important thing is to offer a compact inputs form with as much information as you can, but still to retain some means (parameter names) of providing detailed information in the program’s manual or guide. And what is your opinion on this?

Note: There is a poll embedded within this post, please visit the site to participate in this post’s poll.

If you have some ideas on what is the best way to present a list of input parameters in MetaTrader programs, please share them using the commentary form below.

Posted on Forex blog. Click Here For Original Source Of The Article

About Louie Lewis

Louie Lewis
Successful forex trading starts with you first. Then comes the actual strategies and techniques. I have been involved with forex and forex trading for a few years now. It is a wonderful way to build wealth. The learning never stops and I want to help others along their journey into this wonderful market of opportunity.

Check Also

Average True Range Indicator: Using it Profitably

Average True Range Indicator: Using it Profitably

Let’s use the Average True Range (ATR) indicator: Why? Because (A) it’s a very helpful indicator, and (B) not a large percentage of forex traders use it, which means that using it will give you an edge that the majority of traders don’t have. Any way you can get an edge in forex trading will improve your probability of success (i.e., making MONEY!).

Leave a Reply

Your email address will not be published. Required fields are marked *

css.php