An Expert Advisor that counts consecutive bearish or bullish candles

 

Hello, I am new to coding and still learning C, since thats what they said I should learn first but I have something that I need to build.

I am trying to build an EA that picks up buy trade after a consecutive number of bearish candle, the start of the count of the bearish candles starts after the last bullish candle.

Also vice versa in terms of sell trades (sell trade after a consecutive number of bullish candles). I have other things I will add to it but those I can do myself.

Also if I can be pointed in the direction or a post that will help me, that will also be helpful


P.S. Hope I posted this in the right section