I need to know how to fill an enum or get a drop down list, with a string array :)) - page 2

 
Abir Pathak:


Once you get all the symbols list from broker. Add the strings in array: TradePairsArr

Then you can try this to check for postfixes:

For Symbols list I just hard-code everything and give users an option to specify their own pair list in case if they use BTC or stocks etc.

And if symbol is not found on broker, user will get a message that Symbol does not exist.

Hello,

thank to you about that path to get what I need. very good details.

I will use it.

Thanks again


Laurent

 
Marco vd Heijden:

You don't need that you can use SymbolInfoString() to get the base and profit currency without pre- and postfixes.

Hello,

Very usefull your way, it's like concatenate 2 strings together without post/prefixe. so usefull :)

I will use too in my code.

thanks again for all answers


Laurent