Creating a combo box for an EA

 

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 

 

I am not sure what you are asking

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

is that what you want?

 
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
Reason: