Change Candle Color based on Bullish Bearish Rejection

Job ID: 36800618

Budget: $10 – $30 USD

I would like to modify this script to change candle color whenever this is bullish rejection and bearish rejection with red and green respectively.
The bullish rejection would be defined by when a new order block is formed, price touches it and does not close above it but falls back. Vice versa for the bearish
Related categories: C++ Programming Pine Script