The buy now and sell now blocks do not calculate lotsize on gold correctly
-
The buy now and sell now blocks do not calculate lotsize on gold correctly. When I use percentage risk of the account balance, equity or free margin the lotsizes calculated are way to big. How is this possible? This also very much frustrates me because I actually put a lot of time and money into optimizing EA's that apparently do not work how they are supposed to?!

Anyone with the same issue? pls comment
-
The do for me, add a shared link to see what you have done.
-
@jstap here is the link! https://fxdreema.com/shared/Dfik7ySV
-
I am using for example the parameters seen at the top:

-

It is opening 30 lots with a 1000 pip stoploss???
-

With these inputs -
When I use these settings in the buy now block it should calculate the lotsize required for a max 1% risk based on balance right?

-
@luc123 The first opened position looks to be the right lotsize of around 3.2 lots. but the second position is 10x bigger?
-
Definitely doesn't look good. It shouldn't behave like that. Is this the whole project or just part of it?
-
@l-andorrĂ The shared link is the entire project, every block can be found on the "on tick" tab. And I have some constants defined, thats it
-
Should I maybe rebuild the project in a new project? Because it is just bugged somehow?
-
Yes, probably the best solution is rebuilding the whole project from scratch. Probably some blocks were corrupt in your project. Definitely it should behave like that.
-
I will try to rebuild the project on a blank project, I will let you know the results!
-
@luc123 Sure. Don't hesitate to be back here to let us know.