Welcome to the NinjaTrader forums!
If you are looking for custom coding services, please consider a NinjaScript consultant.
Unfortunately we could not code for you, but are happy to help guide you in the right direction.
For working with time ranges and time objects, the following samples should assist:
Comment