Before considering writing this example I had seen multiple similar questions asking how to go about creating custom timeframes or sessions, so it seemed this might be a good topic to attempt to create a relatively generic example.
發布通知
Minor quick-fix update.
Adjusted license info in header, it's a freely usable example.
Updated variable naming conventions inside `f_captureSessionHL()` - now all prefixed with `_`