Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2016.02.08 11:37

GainLossInfo - indicator for MetaTrader 4

| English Español Português Русский Deutsch 日本語

votes: 12


Shows the current gain and loss for all candlesticks exceeding the specified threshold. Values are calculated in percentages and points.

The indicator can calculate gain/loss in two modes: simple difference between Open and Close prices, difference between current Close and previous Close. The user can set minimum threshold (in points and percent), change the calculation mode and control the font color for displayed values.

Input Parameters:

  • PercentageLimit (by default = 1.0) — threshold for displaying the change in percentage points.
  • PipsLimit (by default = 1000) — threshold for displaying the change in broker points.
  • CloseToClose (by default = true) — if true, the indicator will compare the current Close price with the previous Close price, if false — with the current Open price.
  • DisplayLossColor (by default = Red) — color for negative changes (losses).
  • DisplayGainColor (by default = Green) — color for positive changes (gains).
  • DisplayDistance (by default = 100) — distance from the Maximum price of a candlestick to the displayed gain/loss value in broker points.
  • MaxBars (by default = 100) — maximum number of bars to process. The higher this value, the slower the indicator will work.



  • It is almost impossible to use this indicator for getting trade signals. Its mainly intended to simplify the market analysis and to make it easier to find certain bullish or bearish patterns. Of course, everyone can try to use abnormally big changes as signals to open or close positions.

Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.