Forum

How to close positions by symbol and remove pending orders in MQL5?

Hello everyone, I am working on an MQL5 chart-panel experiment and need clarification about trade handling. I need two separate functions: 1. Close only positions belonging to the current chart symbol. 2. Close all positions across all symbols and remove all pending orders. For the current-symbol