need an indicator

 
Hi everybody, I am building a system and i need a specific indicator.

This indicator must take “n” bars and calculate for every bar (open price –close price) and I need it to add the positivs and show it and the negativs and show it (seperatly).
I need also this indicator to move back in time so there is also a variable of time.

So:

Variables: “ nbre of bars ”, “ off set in bars ”

It must show: “ Ʃ up bars “ and “ Ʃ down bars “

Ex :

Nmdre of bars = 63

Off set in bars =12

(just an example values are not correct )

https://www.mql5.com/en/charts

 
faisal31:
Hi everybody, I am building a system and i need a specific indicator.


OK, so code it, if you can't then get someone else to do it for you: code an indicator for me in mql4
 
where can i learn to code ?
 
faisal31:
where can i learn to code ?

The free Book and Documentation
 
faisal31: i need
learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Reason: