Bool condition: minimal lot size or not
-
Hello community,
I want to create a bool condition for this situation:
The calculated lot size < the brokers minimal lot size (for example < 0.01 lot).
If true: the EA will use the brokers minimal lot size for the trade,
if false: the EA will not open the trade.Does anybody know a way to build this?
Thanks in forward and have a good weekend!
Greetings
Tommi -
The 'true' part does not need any boolean variable. Your MT platform will automatically select the minimum lot size available on that chart when a trade is open with a lower lot size. The platform will show a pop up windows letting you know that. That makes the requested second boolean variable easier to implement.

-
I want to prevent the trade when the calculated lot size is smaller than the ninmum lot size. After the pop up window it ist too late to prevent it.
-
-
Thank you @ambrogio !
Have a good weekend! -
@MT4Nutzer thanks as well!

