Description:
Are you looking for an easy way to monitor the profits generated by your Expert Advisors (EAs) on MetaTrader 4? Look no further! This nifty indicator allows you to visualize the earnings of your EA over a specified period.
Your EA's profit history is displayed right on the main chart. Plus, you can customize the colors, font size, font type, and the position of the indicator on your chart to suit your trading style.
The first version supports up to 5 magic numbers but doesn’t display the EA names on the chart. It’s designed specifically to showcase the profits of a single EA across multiple magic numbers.
Check out the image below for a visual representation:

Version 2 takes it up a notch, allowing for a maximum of 10 magic numbers. It calculates profits based on all symbols or just the symbol currently displayed on your chart. You can also include the EA name for each magic number!
- extern string datetobegin = "year1_month_day";
- extern datetime firstday = D'2011.05.01'; // 1 May 2011
- extern string finishday = "year2_month_day";
- extern datetime lastday = D'2011.08.01';
- extern string All_Pairs = "True: All Pairs -- False: Chart Symbol()";
- extern bool All_pairs = True;
- extern int Magic1 = 0;
- extern string EAnameMagic1 = "";
Here’s a look at some additional settings available in YourEAHistoryProfits:
- extern int yline = 10; // Adjusts vertical position on the chart
- extern int xcolom1 = 10; // Moves the indicator to the right based on volume
- extern int xcolom2 = 150;
- extern color TotalsUpColor = Lime;
- extern color TotalsDnColor = Red; // Distinguishes between last closed trades
- extern color ProfitUpColor = Green;
- extern color ProfitDnColor = Red;
- extern color DefaultColor = Blue;
- extern string note3 = "Font Size";
- extern int MagicNrsSize = 8;
- extern int EAnameSize = 10;
This snippet gives you a glimpse of the code behind YourEAHistoryProfits, and yes, you can pick your preferred font type too!
EA Profits is an indicator that operates in a separate window, showing both the results of closed trades and the performance of open trades. With this tool, keeping track of your trading success has never been easier!

Comments 0