i-profit Indicator
Info
The i-profit Indicator is a Script for MetaTrader 4 that this indicator shows profit in points and in deposit currency: current, for today, for yesterday, for the three previous days separately for each, for the current week, for the current month, for the current quarter, for the current year and from a certain user-defined date. The indicator displays profit and loss values in different colors for convenience.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Script works exclusively on MetaTrader 4 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL4/Scripts folder via File ? Open Data Folder in MetaTrader 4.
How to Install and Use i-profit Indicator
1. Installation: Move your script file into the MQL/Scripts directory and restart the platform.
2. Execution: Drag the script onto a chart; it will perform a one-time action, such as closing all open orders or clearing chart objects.
3. Editing: Use MetaEditor (F4) to modify code, click "Compile," and verify no errors appear in the terminal before running.
4. Removing: Scripts stop automatically, but you can remove them manually by right-clicking the chart and choosing "Remove Script."
Frequently Asked Questions
Q: How are scripts different from EAs? A: Scripts execute a single action and then stop; EAs monitor the market and trade continuously.
Q: Can I assign a hotkey to a script? A: Yes, right-click the script in the Navigator, select "Set Hotkey," and define your preferred keyboard shortcut.
Q: Why did my script stop? A: Scripts are designed to stop immediately after finishing their programmed command; this is normal behavior.
What this tool does
This indicator shows profit in points and in deposit currency: current, for today, for yesterday, for the three previous days separately for each, for the current week, for the current month, for the current quarter, for the current year and from a certain user-defined date.
Typical Use Case
This Script excels in automated trading and technical analysis on MetaTrader 4.
Compatible Platform & Setup
This Script works on MetaTrader 4. Place the file in the MQL4/Scripts folder and restart the terminal.
Description & Settings
Related: notches indicator - another powerful script for MetaTrader 4 traders.
This indicator shows profit in points and in deposit currency: current, for today, for yesterday, for the three previous days separately for each, for the current week, for the current month, for the current quarter, for the current year and from a certain user-defined date.Also recommended: high n indicator - similar script with strong performance on MetaTrader 4.
The indicator displays profit and loss values in different colors for convenience. Non-trading days are taken into account. For example, if TODAY, YESTERDAY or any other day falls on a Saturday or Sunday, the profit for Friday will be shown.
The following parameters can be configured in the indicator:
- eipercent=6 - Calculation of the percentage of profit relative to: 0-current balance, 1-balance at the beginning of the day, 2-balance at the beginning of the week, 3-balance at the beginning of the month, 4-balance at the beginning of the quarter, 5-balance at the beginning of the year, 6-balance at the user-defined date.
- eduserdate=d'2026.12.20 09:12' - User-defined date.
- eioffsety=30 - Vertical offset of the text block.
- eistepy=12 - Step of the vertical offset of the text block.
- eix1row=3 - X-coordinate of the first column - names of indicators.
- eix2row=165 - X-coordinate of the second column - absolute values of indicators in points.
- eix3row=230 - X-coordinate of the third column - absolute values of indicators in deposit currency.
- eix4row=305 - X-coordinate of the fourth column - relative values of indicators as a percentage of the deposit size at the beginning of the period specified by the eipercent parameter.
- ectext=gray - Text color.
- ecprofit=green - Color of the positive value - profit.
- ecloss=firebrick - Color of the negative value - loss.
You may also like: order information indicator - excellent alternative for script users on MetaTrader 4.
Source Code
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property indicator_chart_window
extern int eiPercent = 0; // Расчёт процента прибыли относительно:
extern datetime edUserDate=D'2012.12.20 09:12'; // Пользовательская дата
extern int eiOffsetY = 30; // Смещение текста по вертикали
extern int eiStepY = 12; // Шаг смещения текста по вертикали
extern int eiX1Row = 3; // Координата X первой колонки
extern int eiX2Row = 165; // Координата X второй колонки
extern int eiX3Row = 230; // Координата X третей колонки
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.