Calculate the number of bullish candles on a chart

 
Hello

Can you help me to know how to calculate the number of bullish candles on a chart in mql4?

In advance thank you very much for the help.
 
  1. Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help 2017.04.21

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum 2018.05.12

  2. Is it so hard you couldn't even attempt it?
    Not compiled, not tested, just typed.
    int count_bullish(int n, int iBeg=0){
       int count = 0;
       for(; n > 0; ++iBeg, --n) if(Close[iBeg] > Open[iBeg]) ++count;
       return count;
    }
    Not compiled, not tested, just typed.
 
William Roeder:

I'm very sorry for your inconvenience.


However, I really appreciate your help.


I will gladly test your code.

Reason: