GainLossInfo


The GainLossInfo indicator shows you the actual gain and loss for all candlesticks exceeding the specified threshold. The values are calculated in percentages and points.

 

This indicator can calculate gain/loss in two ways: the simple difference between Open and Close prices and the difference between current Close and previous Close. You can set minimum threshold in points and percent, also change the calculation mode and control the font color for displayed values.

 

Input Parameters:

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

You should have in mind that it is almost impossible by using this indicator to get trade signals. This indicator shall simplify the market analysis for you and to make it easier to find certain bullish or bearish patterns.

 

You can download the indicator here: https://www.mql5.com/en/code/13185