Count Position/Orders NOT working on .ex5
-
@fxDreema Now I understood after a long time!

It would be even better for MT5 to volume count as well. -
Hi there

trying to solve this issue:
my program logic:
If it have more than 3 orders/positions openned, it won't open any others. But It's just not happening. It keeps opening orders like crazy.
my program is damn simple: https://fxdreema.com/shared/gQgtCUamc
FxDreema could you take a look please?

-
In MQL5 you can have 1 position per symbol. If you buy 10 times, this still results into 1 position. You can only have more than 1 position if they belong to different symbols (markets).
I guess you are thinking that the block counts the number of deals who resulted into the current position. Visually multiple arrows are printed. But no, the block does not check this.
By the way I was never thinking about this. If I have to make this block again, I think I would make it this way, to detect how many deals there are in a position. Or I can make "Check trades count", but the last time I was working with those deals it was horrible, so I'm not sure how well such thing can be done