Explore Daily candle in a Weekly candle - Help

#1
Can someone help me write an AFL for the below condition?
Condition (when AFL is 'Explored') to filter and display SCRIPS:
(i) Weekly ROC % >= 25%
(ii) The same Weekly candle needs to have at least one Daily ROC % as an Upper Circuit*.
* Range has to be:
a) 5% => 4.90 - 5%
b) 10% => 9.50 - 10%
c) 20% => 18 - 20%

Note:
Invalid UC candle:
Candle ranged to 14% (UC for the day: 20% range) and EOD closed at 10%, then not a UC candle.

Valid UC candle:
Candle ranged to 10% (UC range) and EOD closed at 9.60%, then consider this as UC candle (in this thread scenario alone).