I like the adjustments you made. Just one aspect that strikes me:
the candles remain behind the MAs (even if you try to switch them to foreground):
(P.S.: I think results would improve if you use fastest and 2nd fastest MA (9+36) as criterium for changing candle colour, instead of all 3, as 144 is way too slow.)