limit positions per trade


Hello everyone

can someone please tell me an ea or script that allows to limit the number of positions per trade?

for example not to exceed 10 positions for a single trade

thank you so much


This is the list of all functions of MQl5 with a short description to search with Ctrl+F.

But you can use PositionsTotal().