Good afternoon,
I would like to share an idea and seek your guidance or support regarding a challenge I am currently facing with my trading robots. I am leveraging small accounts using robots configured with a risk-to-reward ratio of 3:1 for Stop Loss and Take Profit levels. However, I have encountered a specific problem that might require your assistance.
The issue arises with managing the number of open orders across different currency pairs. My goal is to limit the robots to only one open order at a time, regardless of the currency pair. For instance, if a robot has an active trade on EUR/USD, it should not open another trade on any other pair until the first one is closed.
The addition of this feature would help streamline risk management and prevent overexposure across multiple pairs. If you believe this functionality is not suitable to be included directly in the portfolio or robot settings, could you kindly guide me on how to implement it into the MQL5 source code?
I have some programming knowledge in MQL5, but I am not a professional developer and have struggled to incorporate this feature myself. Any help, including example code snippets or advice on structuring this logic, would be highly appreciated.
Thank you for your time and assistance!