Tradingview overlay

Job ID: 31982285

Budget: €30 – €250 EUR

I need a pine script overlay for Tradingview that does the following:

1) Show the last 5 closes higher with a plot line (excluding current day/bar)
2) Show the "bar time" (in bars not days) from the last closing bar from 1) to today's/current bar
3) Plot a box around the last 5 days, where all their ranges had a common price (max gap difference of 10 cent or 0.1) (current/today's bar excluded)
Related categories: Pine Script