ma only bearish and bullish indicator

 

I wanted to ask for a hand to modify the classic moving average indicator. I wanted to apply it in addition to the high, low, close at an average of the maximum price close of every candle but only of bearish candles. Can anyone help me?