Splitting up grid orders so that the EA will respect the maximum lot size allowed by broker AND a virtual grid question
-
Hi Radoslav,
I am trying to make a grid-based EA, using the "pending orders in grid" block, in which "(every next) Volume Size" is doubled using the Gradation Setting. Some brokers though only allow the volume size per trade to be conciderably small (like 10.0 lots). Can you give me any advice on how I can make the EA respect the broker-sided volume limitation and make the EA use multiple trades instead when the limit is gonna be reached?
For example: When a pending order in the grid has a lot size of 8.00 and the next grid level should be traded with doubled the volume (16 lots), can you think of a way to make the EA use 2 trades to get to that 16 lots instead of 1 trade? Also for the next grid level the volume size should be 32 lots. In this case there would be at least 4 trades needed to get to 32 lots if we want to respect that maximum lot limitation of 10.I made a complex construction using multiple formula blocks to achieve this, but it got real messy and inefficient, so any advice would be much appreciated!
I hope the above makes sense. I didn't know how else to explain it
Also, (as if I didn't take enough of your time already with the question above), I would really like to make the whole grid invisible somehow and use market orders instead of pending orders while still having the ability to use the handy "Gradation Settings" for every next order and without making a big mess with a huge formula-chain. Any advice on this would be really really appreciated as well!
Thanks again for your time,
Best regards,Saf
-
Maximum lot for a single order, this is something new and obviously very very stupid

There is one momeny management option - Custom sequence. But I don't know what to do with this max-lot thing. I guess that SYMBOL_VOLUME_MAX is what we are talking about