Drop-down populates another drop-down.
Interesting . Unfortunately you get "Objects and arrays are not allowed in inputs" (in mq4 , guess its the same on mq5 ,will try it).
Theres a lot being upgraded in mt5 though ,would not be suprised if they added this , and input tabs (that'd be usefull too)
my humble attempt :
enum animal_color { ac_leopard=0,//YellowWithDots ac_black=1,//Black ac_white=2,//White ac_gray=3//Gray }; enum animal_size { as_small=0,//Small as_medium=1,//Medium as_big=2//Big }; class animal { public: animal_size Size; animal_color Color; //animal constructor animal(animal_size s,animal_color c){Size=s;Color=c;} }; input animal Leopard(as_small,ac_leopard);//Leopard
Thanks for replying. So I can't dynamically create a dependent drop-down list. That sucks. I'll investigate this further and if I find a solution (or create one), I'll post it here. I wasn't trying to do anything crazy. Basically, based on the trading style (Scalping/Day Trading/Swing Trading) generate a second drop-down that would give you the associated strategies for that trade-style.
Yes , a custom input screen might be what you need ,issue with that is that when you stop for settings and when you continue with existing settings is a bit fuzzy and must be clearly communicated to the user
Thanks for replying. So I can't dynamically create a dependent drop-down list. That sucks. I'll investigate this further and if I find a solution (or create one), I'll post it here. I wasn't trying to do anything crazy. Basically, based on the trading style (Scalping/Day Trading/Swing Trading) generate a second drop-down that would give you the associated strategies for that trade-style.
Hello all!
I hope I'm posting it at the right place. I tried searching for it on the forum but it seems no one has tried to attempt this, I'm trying to populate one drop-down (as input) with another drop-down (as input). Has anyone been able to succeed in this? Or it's something I can only do after an EA has loaded? If that's the case, has anyone tried and succeeded?
Thanks.