Too many inputs, how reduce them?
-
Hello,
My EA have too many inputs, cause multiple conditions, I have BUY NOW 4 times, SELL NOW 4 times for example. How can I reduce them to only 1 BUY NOW and 1 SELL NOW (conditionning I have the same parameters)
Look!

Thanks
-
@bagheria On the upper left you have constants, name as you like, in your block right click and insert the constant.

-
Thanks but it doesn't work. Need I add variables too? How? Cause on your sreenshot "buy_lot" is in blue, not brown as in Constant
-
@bagheria No sorry that was just a project I was doing, do it as a constant, and then add orange. You only need Variables if EA is to change the value at some point.
-
@jstap Thank you. It works but I need a little help. You will find a part of the project below. It opens in reality 2 trades each time (except grid trades). Because I would like he choose between fixed lot and balance volume. When I change the inputs in my EA on MT4 platform with fixed lots (BUY or SELL lots) at 0.01 and Volume balance (BUY or SELL volume) at 0, it takes 2 trades... How can I do? I just want it takes Fixed lot there.

-
@bagheria Think this is what you are trying to do, I do it like this.

-
Ok, it doesn't work. Look. Is that right?

No trades opened. But where can I precise the number of lots I want? Look below

-
Finally it works cause I add some parameters. You are a master!!!!! Thank you so much!
-
@bagheria Your welcome