have someone an idea or codes snippet for me that an ea only open so much trades that i have define in an input value.
Now i use this
if(OrdersTotal() >= maxOrders)
but it looks like it is not working very well.
Find the error with GetLastError()
BTW, it might need to be <= maxOrders