Download MetaTrader 5

How to create property with custom multiple option

To add comments, please log in or register
Mohammad Ali
21847
Mohammad Ali  

Dear Guys,

How i create a property with custom multiple option. example My EA will two type of order 1. Stop order 2. Limit Order.

So i created a property  int Type  = 0    (0-mean Stop, 1-mean Limit order).

But now i want to text into multiple choose . like:

 

 

How can i write code like that. 

Alain Verleyen
Moderator
32828
Alain Verleyen  
capilta:

Dear Guys,

How i create a property with custom multiple option. example My EA will two type of order 1. Stop order 2. Limit Order.

So i created a property  int Type  = 0    (0-mean Stop, 1-mean Limit order).

But now i want to text into multiple choose . like:

 

 

How can i write code like that. 

With an enumeration.
To add comments, please log in or register