Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Profit Loss Calculator - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 2 reads | 0 comments |

Profit Loss Calculator - expert for MetaTrader 5

This panel was created by "motives" of CalculateProfit_EA Expert Advisor in the article "Limitations and Verification of Expert Advisors" It was created not for opening/closing positions, but for preliminary calculation of profit/loss and visualization of stop loss and take profit levels. This calculator contains:

You can download all files into the Experts folder, but it is better to create a separate folder for them, for example...\MetaTrader 5\MQL5\Experts\ProfitLossCalculator

Therefore, this panel is also useful for those who set stop losses and targets by price levels and for those who calculate stop loss levels based on the loss of available funds in a single trade.

Profit Loss Calculator - expert for MetaTrader 5

For the calculator based on the CSpinEdit standard library, the CDoubleSpinEdit class is written. Its differences from the original class are as follows:

Maybe, it might be useful to someone.


Attachment download

📎 doublespinedit.mqh (11.57 KB)

📎 profitlosscalculator.mqh (30.21 KB)

📎 profitlosscalculator.mq5 (2.34 KB)

Source: MQL5 #1637

Verification code Refresh