User Friendly Input Variable Names

Back to topics list To post a new topic, please log in or register
avatar
30
read1985 2015.07.13 06:25
 

Hi,

 

I've seen this feature in MQL4 post build 600 -

It is possible to set another way to display names of input parameters in the Inputs tab. To do this, a string comment is used, which should be located after the description of an input parameter in the same line. Thus, names more understandable for a user can be matched to input parameters."

Example:

//--- input parameters
input int            InpMAPeriod=13;         // Smoothing period
input int            InpMAShift=0;           // Line horizontal shift
input ENUM_MA_METHOD InpMAMethod=MODE_SMMA;  // Smoothing method

 

 However I can't seem to get it to work.. Here is my code:

 

input int level=25; // Alert Level
input int adxp=14; // ADX Period
input enum_TimeFrame TimeFrame=15;// Time Frame
input bool popup=true; // Use Popup Message
input bool sms; // Use Cellphone Alert
input bool email; // Use Email Alert
bool AlertOn=false;

 

 

 

Any idea what I am doing wrong? I am using version 4 build 840.

 

Thanks

 

Richard 

avatar
Moderator
3423
GumRai 2015.07.13 06:58 #
 
#property strict
 
You have probably not included this
avatar
30
read1985 2015.07.13 07:57 #
 
Perfect! Thank you GumRai!
Back to topics list  

To add comments, please log in or register