Popular results
Position Sizer
Calculate risk-based position size directly in your MetaTrader platform and execute a trade in one click or a press of a button.What Is Forex
Learn what Forex is and how it works from this simple explanation.Supertrend
Download the Supertrend indicator for MT4 and MT5 to detect trend changes based on the price action.Position Size Calculator
Calculate your position size based on risk, stop-loss, account size, and the currencies involved. A simple online calculator for quick results.Gain/Loss Info
Gain/Loss Info MetaTrader indicator — displays the gains and losses for all candles where the given threshold is surpassed. The values are calculated in points and percentage. The indicator can calculate gain/loss in two modes: plain candlestick Close and Open difference, and as difference between current Close and previous Close. You can set minimum change limits (for pips and percentage), change modes, and you can also control font color of the output numbers. The indicator is available for both MT4 and MT5.
Input parameters
- PercentageLimit (default = 1.0) — minimum threshold for the change to be displayed; in percentage points.
- PointsLimit (default = 1000) — minimum threshold for the change to be displayed; in points.
- CloseToClose (default = true) — if true, the indicator will compare current Close to previous Close; if false, it will compare current Close to current Open.
- DisplayLossColor (default = clrRed) — color of the negative price change display.
- DisplayGainColor (default = clrGreen) — color of the positive price change display.
- MaxBars (default = 100) — maximum number of bars to calculate the indicator on. The higher is the number the more lagging indicator becomes.
- FontFace (default = "Verdana") — the font face to use for display.
- FontSize (default = 10) — the font size to use for display.
- ObjectPrefix (default = "GLI-") — prefix for chart objects for compatibility with other indicators.
Gain/loss info example
The chart above shows the example usage of the Gain/Loss Info indicator on GBP/USD @ W1. The percentage limit was set to 1.0% and pips limit was set to 1,500 pips. The calculation mode was set to "Close vs. previous Close." Points count for period is displayed below candles. Percentage change — above candles.
Obviously, it is nearly impossible to use this indicator to generate trading signals. Its main purpose is to simplify the analysis of the market situation and to make it easier to find some bullish and bearish patterns. Of course, you can still use the data about abnormally big changes as some sort of entry or exit signals.
Download (ver. 1.01, 2022-03-07)
Gain/Loss Info for MetaTrader 4 in .zip Gain/Loss Info for MetaTrader 4 in .mq4 Gain/Loss Info for MetaTrader 5 in .zip Gain/Loss Info for MetaTrader 5 in .mq5Discussion
Warning! If you do not know how to install this indicator, please read the MetaTrader Indicators Tutorial.
Do you have any suggestions or questions regarding this indicator? You can always discuss Gain/Loss Info with the other traders and MQL programmers on the indicators forums.
You might also be interested in our Candle Wicks Length Display indicator if you use wicks' length as a factor in your chart analysis.
Changelog
1.01 - 2022-03-07
- Added automatic adjustment of distance for chart labels.
- Added ObjectPrefix input parameter to make it compatible with other indicators.
- Added font parameters.