How to detect weekly inside bar candle breakout in daily timeframe?

I tried with code, that finds weekly inside bar with NR7. I need to detect where in daily, the candle breaks the range of weekly inside bar.
I could not find the exact daily candle for that. Need some help on this.

Broker Special Offers

Intraday Higher Leverage

Save up to 90% in brokerage and get higher leverage for intraday trades.

Are you a day trader?