Dynamicly colored OHLC price bars upon OA and MFI indicators

 

I would like to know if there is already a code or how to dynamicly color OHLC price bars upon OA and MFI indicators.

SO, I would like to have:
1) If AO is red then OHLC bar is red
2) If AO is green then OHLC bar is green

Or more advance:
1) If we have in Market Facilition Index: MFI Down, Volume Up (squat) then OHLC bar is blue, else

2) If AO is red then OHLC bar is red, else

3) If AO is green then OHLC bar is green



Reason: