Partial Close Error with odd numbers
-
Hi, guys!
I'm working with partial closes and some instrument like XTIUSD have 0.50 as minimum lote size in the broker that i'm using.
But this case applies to another instrument as well.My lote size is calculated by % related to stop loss size. If I have any order with odd number, and my setup is to close 50% it will no work.
Ex: 0.11. When It reached the partial point it gives me an error and don't do nothing.Is there any way to "round" the parcial close? In case of the correct amount was not possible, give the Ea some alternative to close to most near of that amount. For 0.11, close 0.05 or 0.06.
Any ideas? thanks
-
I open 2 trades and close one.
-
@johnle1024 Hi!
Could you please show how you do it? Two Buy/sell blocks?
-
-
@johnle1024 Hi!
Thank you for your contribution. -
@eklonsousa Np, I got some questions answered and also there is a ton of info in the forums... just making sure I do my part.
-
Hi!
Any insights? How to round partial lot to close?
-
Hi Guys!
Any ideas how to divide by minimum broker lot size the pending order lot size before it open and then do the math to set the correct amount?
