Download MetaTrader 5

User Friendly Input Variable Names

To add comments, please log in or register
No PC at hand? Communicate with friends using your mobile phone!
Richard Read
322
Richard Read 2015.07.13 04: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 

Keith Watford
Moderator
9627
Keith Watford 2015.07.13 04:58  
#property strict
 
You have probably not included this
Richard Read
322
Richard Read 2015.07.13 05:57  
Perfect! Thank you GumRai!
To add comments, please log in or register