Forum

How to Close Half of a Position in MQL5

Hello everyone, I am developing a trading bot in MQL5 and I'm facing an issue with partially closing a position. My goal is to close half of a position when a certain profit threshold is reached, and to update the position's comment to reflect this partial closure. Here are the key parts of my code

EA Issues with Order Filling Modes for DJ30 Symbol

Subject: Issues with Order Filling Modes for DJ30 Symbol Hello MQL5 Community, I'm currently developing an Expert Advisor (EA) for trading the DJ30 symbol on MetaTrader 5. My EA needs to handle different order filling modes, and I want to ensure that it correctly supports the filling modes allowed