Cancel if volume too small, because I don't want to round it up to 0.01
-
Hi all,
I need some helps.
Problem: My EA is calculating order volume size based on risk percentage. So far so good, however sometimes the calculation is resulting to smaller than 0.01 (the metatrader standard minimum), then broker round it up to 0.01.
For example: For US30, the EA calculated that the volume should be 0.003, because it isn't possible, the broker round it up to 0.01.
Request: Is there any function that can identify the volume size, so if the volume size is smaller than 0.01, I better not taking the order at all instead just round it up.
Any helps would be appreciated!
Thanks!
-
@drankman Yes, you can do this:

You are requiring the bot to use lot sizes bigger or equal to 0.01 to move to the next block.
-
@drankman I think you are using the native function inside the buy/sell blocks, right? In this case, in my opinion, there is no way to prevent the lot from being rounded and triggered. Sure, instead, you can calculate the lot size via formula blocks, then set a lot size condition just above the buy/sell blocks. (These calculations are a matter for programmers)
-
@l-andorrà thank you!
I'll try this one next week. i'll let you know how it goes.@ambrogio yes, I am using the function inside buy and sell block, thats actually my problem.
I have similar idea with what you mentioned, I ll try that one.Thank you both!
have a great weekend -
@drankman you're welcome!
-
@drankman You're welcome.