Indicator Won't Refresh

 

Hello,

I have an indicator which purpose is to paint candle if volume goes above certain value

I have tried to modify it so that it only process the last candle (the currently forming and not closed)

The purpose is to paint it the same as my background so that it hides the candle that is not yet closed

But it covers everything after it start and I need to change Timeframe to make it work properly 

Please help me... 

Files:
Reason: