Here is a simple AFL exploration code that scans and retrieves the last 1 hour of Intraday high and low range on expiry day. Generating this sort of statistics can be further analyzed particularly if you are a weekly options trader.

Amibroker AFL Code for Last 1 Hour Intraday Range on Expiry Day
//Coded by Rajandran R - Founder - Marketcalls / Creator - OpenAlgo
//Coded on 22nd Feb 2023
//Website - www.marketcalls.in / www.openalgo.in
//Exploration Module
_SECTION_BEGIN("Computing Last 1 Hour Range on Weekly Expiry");
starttime = 143000;
endtime = 153000;
hi = HighestSince(TimeNum()==starttime,High);
lo = lowestSince(TimeNum()==starttime,low);
range = hi-lo;
Filter = TimeNum()==endtime AND DayOfWeek()==4;
AddColumn(Close,"LTP");
AddColumn(Hi,"High Value");
AddColumn(Lo,"Low Value");
AddColumn(range,"Last Hour Range");
_SECTION_END();