Expert Advisors: Profit Loss Calculator - page 2

 
Hello, the type is missing on the MQH file called Profitlosscalculator, it is the first declaration where the constructor is, you forgot the void type. I have fixed it here.
Files:
 
k.i.s.s principle in action! nice, and still works after X years.
 
does not work in mt5
 
27217241 # does not work in mt5

Thank you for reporting. Apparently its last revision was in 2016 and over time, if they don't make the relevant changes that are being made to the MQL language it is written in, it will unfortunately stop working.

Hopefully the developer will read you and possibly update it.

 

The profitlosscaculator.mqh file gives two errors:

'UpdateProfitLoss' - unexpected token, probably type is missing? profitlosscalculator.mqh 343 24

'UpdateProfitLoss' - function already defined and has different type profitlosscalculator.mqh 343 24


 
Can you please help? It doesnt calculate the profit loss involving the commision, when i put in % of the commision, nothing changes