Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
I need to know that this indicator to calculate how many times in a given time in the past, how many there are and how many red candles green candles there are, at any time, to a low of one year.
In particular it should also calculate how many times in a given period and now, the candle is green and how many times is red.
The frequency of the time that, in a given period and time, the candle is green and how many times it is red.
The percentage of time that the candle is green and the percentage of time that is red, with respect to a specific time period, and in the past and compared with the period of time that you are considering.
Example, in 2016 at 10 usd asset / CAD has made 365 of 300 candles red and green 65, with x times in a row was red, the former green times. And beyond the stated percentage.
I need to know what makes a specific candle at a specific time that I chose.
I don't want to know what in a space of a year, the EUR / USD candle shred 1:00 a number of red and green candles and percentage at that precise moment that I want to take into consideration
(for example, during the whole year that I always want to consider the spark plugs 13 and not all present in an arc as you did)