Hello, I would like to create a bot that indicates in a time range, for example, between 2 and 5 am, the highest price and the lowest price and that after that time range, when the price reaches its maximum, a purchase is ordered, otherwise, when it touches the minimum of the range that activates a sale, could you guide me?