Drop Down Menu
-
Dear team members, greetings. I would like to know if I want to create a drop down menu, for example I would like to select 4 types of TP values in constants, how can I do that. Below is the picture where I would like to set 3 values to be select by drop down menu. Thank you.

-
You can find several past threads in the forum requesting exactly that. Just use the search tool on top of it and select those keywords on for the title. You'll find more than one.
-
@l-andorrà said in Drop Down Menu:
You can find several past threads in the forum requesting exactly that. Just use the search tool on top of it and select those keywords on for the title. You'll find more than one.
Hi Andorra, glad to have your reply. I watched your videos too on Youtube for like more than 2 years now. Once I comment there too and you replied me to visit your site lolx. Well nice to meet you here.
I checked the search option, there are answers there but none matches mine. I want this option for the Gold and other indices TP because in normal currency pairs we can use 10 pips but for Gold we have to use 100 for the same dollar profit so I need to make a drop down menu for the same so the user can select TP from there for a Gold, I dont want that area free text because traders are greedy and complain after they lose money so I want to restrict the TP pip distance. Hope you got my point.
-
Search foe enum
-
@jstap said in Drop Down Menu:
Search foe enum
Hi, I checked those too and other questionnaire posted but none have query similar to mine. I just need a drop menu with some values to select, that's it. My test project has multiple currency to trade and closing trade in on 20 pips distance but for Gold I just want to show 200 in drop menu, so when user will be trading with Gold, they can select 200. May be my answer is in others query but my words might not matching to their question so I am unable to find.
-
put this in constant, ENUM_MA_METHOD in type, MODE_SMA in value, call it what you want
-
@jstap said in Drop Down Menu:
put this in constant, ENUM_MA_METHOD in type, MODE_SMA in value, call it what you want
Ok Boss let me try, sorry for my continuous questions, just learning so having troubles. If possible, can you open your Youtube channel also to for these types of tutorials please

-
Haven't got a YouTube channel, will answer requests on here though.
-
-
@RGoo said in Drop Down Menu:
https://fxdreema.com/forum/topic/16167/easy-way-to-make-enum?_=1677151446616
Thank you so much, I am still trying to find a way to set values in drop menu for MA so the users can select only those moving average values from the menu, example I want them to use either MA 20, 40 or 60, not a free text.
-
@Champ
https://fxdreema.com/shared/nFsE9A6zca bit strange, but maybe you could do it something like this

-
@jstap said in Drop Down Menu:
Haven't got a YouTube channel, will answer requests on here though.
I did this but it is now giving compilation error

-
@RGoo said in Drop Down Menu:
@Champ
https://fxdreema.com/shared/nFsE9A6zca bit strange, but maybe you could do it something like this

Thank you so much, I will try this too, let's see
