Download MetaTrader 5
To add comments, please log in or register
Having difficulties in understanding the Trading Signals service? Read the article!
cool_dude
70
cool_dude 2016.10.07 19:31 

Hi,

How can I create a combo box for different symbols? For example I would like a dropdown box from which I can select different symbols to trade? I am trying the following and it is not working...

input string Currency1="GBPUSD.SBg";
enum Currencies{
 GBP="GBPUSD.Sbg",
 EUR="EURUSD.Sbg",
};
input Currencies Currency1=GBP;

 

Also, in a more generic sense, how to create a combo box for other variable types apart from integer.

Thx 

Keith Watford
Moderator
7908
Keith Watford 2016.10.07 22:48  

I am not sure what you are asking

enum Currencies{
 GBP,//GBPUSD.Sbg
 EUR,//EURUSD.Sbg
};

is that what you want?

cool_dude
70
cool_dude 2016.10.08 11:48  
GumRai:

I am not sure what you are asking

is that what you want?


Hi, yes, I want to be able to choose currency symbols to trade via the combo box. 
Thx
/
To add comments, please log in or register