How can I get the highest high for a specific time span, e.g. from 08:00 - 10:00 am using a pyalogtrade or ta-lib indicator.
Of course I could write two if statements to check the time on the current bar, but I thought there must be a more elegant way to do it.