Is there a code error going on?
-
I kept getting minimum lot size error alert and my minimum is 0.01 which is same with the broker's why does the EA kept doing this and it was not like this before...
Also, another bug I see is that after martingale positions are closed, the next trade lot size is a higher lot of the just closed position... which is not supposed to be so because the lot size ought to reset back to the initial...
What's wrong?
-
The "minimum" message should appear once on the first attempt to make a trade. So it depends on what you mean by "kept doing this"
Guys, in general, for any kind of problem, the best is if you make a small project, containing just the enough number of blocks showing only the problem. The idea is that I can run that EA and get the same problem. When it's only text, I must assume too many things, I don't like text descriptions of problems. It's very possible that the problem is somewhere else in the project.
-
@fxdreema this is the link to it https://fxdreema.com/shared/4r3zq7qub
-
@tec-nacks This is not even Martingale

See, that's why I prefer to see an actual example, or screenshots, or whatever it is that describes the problem in very exact way.
When you mentioned Martingale, guess what was I thinking about - the Martingale setting in "Money management". I was not thinking about custom martingale made with variables. Both things are very different.
However, something is not right with this example. On the left Sell block, which is the one with the initial 0.01 lots, you have 2 pips of TP. Ok, but in the right Sell block you don't have any stops, and I don't see any other blocks capable of closing the sells produced by this block. Once the right block creates a position, the EA cannot enter in the left path anymore, it remain in the right path where it can only create more sells with bigger and bigger lots, which are closed at the end of the test, only because the test ends.
-
@fxdreema yes...it is closed using the close position and check unrealised profit block which is not included in the file shared you and itโs not an issue.