Download MetaTrader 5

Help to create global variables with separate words

To add comments, please log in or register
Find out how to use widgets at MQL5.community
Tanvir Ahmed
171
Tanvir Ahmed 2015.10.14 06:34 

Hi,

I want to create global variable's word with separation. 

I can create like below:

 

no space 

 But I want to create like below:

 with space


If any one help me this simple/ critical issue, I would be very grateful to him/ her.

Stuart Browne
5814
Stuart Browne 2015.10.14 07:04  

Hi Tanvir

First, you need to declare in your indicator/EA/script:

 

#property strict

To then get MT to display something different to the variable name in the input box, just put whatever you want to appear in an inline comment like this:

input   MA_Period   = 14; // MA Period



Or even something like:

 

input   MA_Period   = 14; // Please enter the MA Period

Hope that helps

Tanvir Ahmed
171
Tanvir Ahmed 2015.10.14 08:09  
Stuart Browne:

Hi Tanvir

First, you need to declare in your indicator/EA/script:

 

To then get MT to display something different to the variable name in the input box, just put whatever you want to appear in an inline comment like this:



Or even something like:

 

Hope that helps

Thank you very much Stuart Browne for your quick and helpful reply. its works!!. Thanks again.
Stuart Browne
5814
Stuart Browne 2015.10.14 08:11  
Tanvir Ahmed:
Thank you very much Stuart Browne for your quick and helpful reply. its works!!. Thanks again.
Very welcome :)
To add comments, please log in or register