@john-5 I'm facing the same issue.
Did you find any solution?
@john-5 I'm facing the same issue.
Did you find any solution?
@l-andorrà Great ideas and make all sense!
I need to consider it as it will be an expert focused in index.
The issue with a controlling EA is to backtest the strategy with this kind of Equity control. I'll have no way to test and optimize with this parallel control.
Thanks for your inputs
I appreciate it !
Please, could anybody give me an insight?
Thank you!
Hi guys!
I'm using an EA with almost 10 instruments. I want to add a feature that will close a % of all orders from any intruments when the equity reaches a determined %.
I've checked "Check Profit (unrealized)" and it will work for the first step, but the block "Close Partially" don't have the option to execute the partial close to all trades.
Any ideas?
Thank you!
@l-andorrà Yes, I'm thinking about it.
But the "Add volume" block don't have any stop loss or tp setup. I can't choose. It will only add volume (of course rs) to the main trade but it is only opening a new trade without relation with the main one.
Actually it is opening, giving the "parental ID" to new volume into comments, but without the same stop loss (without any stop loss, actually) from the parental trade.
Maybe a bug? @fxDreema
Hi!
I'm using "Add Volume" block but it isn't trailling the stop as the original trade. It don't open this new trade with the same stop loss level.
Is there any special way to use it?
@miro1360 Thank you so much for all your support!
@miro1360 Thank you, Miro! It worked for 0.10 lot step.
How can I detect the lot step for each instrument?
I'll run this EA in FX Pairs (0.01 lot stop) index (0.10 lot step) and also XTIUSD (0.50 lotstep)
I'm sure that there will be few Custom SQL Code blocks to split this management. But how can I detect the lot step and make it work automatically?
Or there is a way to detect error from "Journal" tab? In order to keep the block flow running and managing that
Thank you so much!
@miro1360 Hi Miro!
It worked with 0.01 lot step instruments.
How can I made it to work with 0.10 lot step?
In this case, I've opened 1.50 trade and tried to close 50%. then :
@miro1360 Thanks, Miro! I will try!
Just let me ask you one more thing: I have some instruments like XTIUSD in Ic Markets that have 0.50 as lot step.
In case of a 1.50 open trade, the partial close tries to close 0.75 will give the error...will this function work also with this scenario?
Thank you!
Hi guys!
I need to partial close a trade, but I need to use the MathRound function to avoid "invalid volume" error.
I'm trying something like this and it is not working: (yes, I'm newbie with MQL code)

I've also tried this:

I'm preety sure that is some sintax error.
Could you please give some help?
Thank you!
@spuzy Hi!
Actually, I want to gather symbol info like Limit Size, volume step and etc...
Something like work with ' SymbolInfoDouble'
Hi guys!
I want to limit the max lot size for pending orders as the max available in the broker.
How can I get that?
Thank you so much
@martin-1 Great, Martin!
Please, could you share an example using mathround code?
Thank you so much!
I`m facing the same issue as described here .
could you help me with this?
@fxDreema said "the EA is programmed to see the lot step". I'm working with several instruments as Forex Pais, Comoddities and index...
Some lot step are 0.10, another 0.50....
And I'm getting a lot of "Invalid volume" while partial close.
And the parcial close % depends of each instrument. Some are 50%, others 65%. Others 88%.
I mean...I need to find a way to get this partial close working.
Could you please help me?
Thank you so much!
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?
Hi!
Any insights? How to round partial lot to close?