@cesar_defez
Solved.
The problem was solved by adding the condition to set the variables to zero.
I upload the project in case you are interested.
shared/J7qxLglUc
Thank you
@cesar_defez
Solved.
The problem was solved by adding the condition to set the variables to zero.
I upload the project in case you are interested.
shared/J7qxLglUc
Thank you
@l-andorrà Yeah that's right.
I want to see lots open for buy and lots open for sale
Hello. Well that.
I try to make a comment that indicates the lots that I have in long and short.
As lots are added, it takes it into account, and as I close, when there are no more open lots, I have lots to close.
I attach the project and a screenshot.
I'm going crazy and can't find the error. Can someone help me and correct it.
Thank you

@l-andorrà
Thank you.
I hope someone knows how to answer me.
Thank you
Hello.
I was wondering if an ea can launch a script.
As scripts can be launched by configuring a shortcut, I was wondering if it could be done from fxdreema.
Thank you
Hello. Can someone explain to me how the timeframe option of some boxes works.
example.

In the condition box we find a timeframe dropdown.
I thought that the EA could be placed in a timeframe of h1, and by configuring this box with timeframe m1, this prompt would take me values of m1. But I must be wrong, because when I do this, the EA doesn't work.
Can someone tell me how it is used and what it is for.
Thank you
Yes, but it is very curious that it only works well on demo accounts.
the same platform, with the EA loaded, I connect a real account, and it does not keep the rounding, I return to the demo account, and it is corrected. same asset, same bloker, same platform, same EA.
¿¿¿¿¿
curious
Hello, I need help to make an EA, to manage losses.
the idea to manage these losses are:
When I put a buy operation to cover I organize it by group .. (group1).
If the operation to hedge is a sale, it will be group 2.
When I close a group 1 trade, I determine the profit from that trade (or deals).
and I dedicate 50% of the profit to carry out a partial closing of buy-in-losses.
In addition, it will close from where the opening price is farthest from the current price.
same in shorts.
I close group 2, I determine profits and 50% of the profits I use to close the equivalent of lot sell.
example-
I close group 1 with $ 100
$ 50 will be of benefit, and $ 50 to assume closing losses in long trades.
it may be the case that more than one operation of group # is closed. and evidently there are group # operations previously closed, which do not have to be taken into account at this time (as they were already calculated at the time of closing).
I leave you a sketch to illustrate the situation.
If anyone is interested in helping me, we can share ideas.
Thank you so much

Hello. The rounding thing works when he wants and how he wants. it already has me desperate.
the same EA, (which I leave you in the link), on two different platforms, from the bloker ism, gives me different results.
in one it works perfectly. (demo account).
in another it works badly. (real account).
I share the project, and a screenshot of the two results.
If someone can explain why this happens, I would greatly appreciate it.
link : https://fxdreema.com/shared/fzbSfsvVc

