Split 1 trade into multiple smaller trades after reaching max Lot size
-
Hi fellow traders!
I have a question that I just cant find the answer for on the internet.lets say I am trading with an MT5 robot and my broker has a lot size limit at 50 lots.
Is there any way I can do the following: After 50 lot split the trades into smaller trades, like for example 2 25lot trades, and every time the EA would open a position with bigger lot size than 50 lot, like lets say it would open a trade with 300 lot. instead trying to open one big trade (that is not possible at the broker) It would have to open 12 25lot trades.
I really appreciate If you have any advice on this.
Have a nice day!
-
Sure. You can do it via condition blocks. Should all the 'new' trades be opening the exact same lot size? In you example you mention 12 trades with 25 lots each. Should be that case all the time?
-
Thank you very much for answering.
Actually it doesnt matter what size the smaller trades will be, the only thing that matters is that the EA wont be trying to open any trade with more than 50 lots.
I would really appreciate if you can help me this
-
But if I understand it correctly you mean that each INDIVIDUAL trade cannot be triggered with more than 50 lots, right? That means that for example 6 open trades will sum up 300 lots. Don't you mean maybe that the OVERALL lot size for ALL open trades shouldn't exceed 50 lots?
-
Yes, I mean the individual trades can not be opened with more than 50 lot.
Because the broker only has the limit that 1 trade can not be opened with 50 lot, they dont restrict overall positions size.
thanks for helping
-
Then it's easy. Simply use a condition block before both 'buy/sell now' block so that if lot size is bigger than 50 then it should be 50. You will have to create a variable to do it.
-
Can you please show me how to do it,I tried a couple times but I cant seem to get it right.
I can also pay for this information I know everyone s time is precious.
Thanks in advance!
-
Ok. Let's begin with two possible scenarios to begin with:
- There is no open trade and the first trade is triggered. The maximum lot size for that trade will be 50 lots. Is that correct?
- There are 3 open trades right now. The combined lot size for all of them is 50 lots. No additional trades can be open. Is that correct?
I guess the answer for both previous questions is yes. In that case the problem is which lot size will be needed when more than one trade is supposed to be open but you have no idea how many will be open later. Can you confirm there should be a max limit for open trades to open?
-
Thanks for helping!
-
Yes, that is correct
-
For this statement the answer is no, because the 50 lot is not about the combined lot size, but about the lot size of individual trades. For example once a lot size would reach reache a certain size, bigger than 50 lots the EA should split lot size of the next trade/trades and open lets say two identical 30 lot trades instead of one 60 lot trade.
So basically I would need a solution to ensure that the EA would not open an individual trade with more than 50 lots.
-
-
In that case you will need to use a variable like this:
https://fxdreema.com/shared/GGqnXAubc
That variable will control if it is below 50 or not. If it is bigger than 50 then that trade will not be open.
-
Thanks!
And the part that it should open multiple smaller trades instead of 1 big 50 lot trade, is that possible to do or that is impossible?
When the EA would open one trade that would be bigger than 50 lot, instead it would divide it into smaller pieces, with the same sl, tp, and everything. So we would get multiple identical smaller trades instead of one big trade.
-
Sure. You can do that by connecting as many condition blocks doing exactly that to the yellow output dot in the condition block of my example.