Clinton Okechwuku / Publications
Forum
How to get the total loss and total profit of trades in Mql5
Hi guys. So ive been trying to get the total loss/profits of my executed trade and i don't even know how to go about it. I thought i could modify this code. I got it from the mql5 codebase but it only gives the total loss/profit for pips. I need the total loss/pips in dollars
How to convert Negative to positive vales (absolute values) in Mql5
Hi guys. Im kinda new to coding EAs in Mql5. But i am trying to get the absolute values of variables, mainly my 'Loss'. I know that the MathAbs() function can solve the problem but i don't know how to execute it. Here is where i am at: double Loss = (1 + total pips for loss) double MathAbs ( double