ENUM_
-
Hi;
I want to make a bot that.In the input section of it can be choosable ..Fixed Lots,based on Balance,based on Equity ;
like the ENUM_ can do but i couldnt imagine how to do this..I can make for example 2 of them with a condition block with true or false and if true use fixed lots if not the other..But my target now is in the money management section of my code.Multiple choosable things...What is the way of and thinking logical of this
thx for your help.. -
@adentist Move over this to questions not tutorials, when a enum is created you can access each input by using numbers starting at 0: https://fxdreema.com/shared/vCCygDXjb
-
@jstap
hi;
i copy this blocks but .I couldnt make it work.What will be the constants and variables here..I can not decide..Or any custom mql code needs here?
thank you -
@adentist Start a new question, If you click the MQ button of that project you can then import it, from there you can make any changes you want.
-
@jstap Hello brother. This is the sample of 2option(i mean 2 choices).
What if it is up 4 or more choice of each ENUM?
Please show the way.
Thank you -
@jstap Otherwise, can it work on MT5?
-
@pheaktra-capo MT5 is the same, put enum list at to of constants list, you can add more, list need to be spelt different though.
-
@jstap I mean the "Condition" block, which have only 2 choice (orange dot & yellow dot). It mean it can do only 2 choices. What if it have 3 or more choices?
-
@jstap I got it now. Thank you.
-
@jstap Thanks a lot.. been looking for this Enum for dropdown menu input..