Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Script | Get Last Deal History

MetaTrader Experts, Indicators, Scripts and Libraries

This is just a script to get the last deal history data, for example : profit, deal type, swap, commission, etc.

You can modify this script and use it in your EA as you want, for example to get the total profit of all history, etc.

31196