Forum

Code to calculate the profit being made in trades

The following code appears to correctly report the profit being made in trades across all pairs trading on one account. But I need it to report specifically on the currency pair it is trading in. Could someone kindly amend the code to achieve this. Thanks double profitCount() { double oc = 0;

Solving Non Closure of Trades due to a FIFO Violation MT4 EA

I often open a number of trades in one direction and the EA closes out all trades in one hit. But I always get FIFO violations. I've not been so concerned as they eventually get processed within a few seconds, that is until today when it seems it didn't, Oh time for action! Could someone kindly look