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. Get Last Deal H...
from https://tradingrobots.net/get-last-deal-history-script-for-metatrader-5/