Previous candle close all timeframes

Job ID: 33986784

Budget: $30 – $250 USD

Should be simple for someone who can code. I am looking for trend changing candles to paint a box / rectangle across the chart until the trend is broken. This should be able to be placed on any timeframe. It would be great to have the ability to choose from 1 min, 5 min, 15 min, 30 min, 1 hour, 2 hour, 4 hour, and daily zones. I would like for Tradingview (pine script)and possibly Think or Swim (thinkscript). Hopefully I explained that well, Please look at the attached pictures
Related categories: C Programming Metatrader Mathematics Pine Script