May I please  receive help with accessing the previous candle's high and low, and the current price's low and its and price.
The following is my current code:
history = self.history("XAUUSD", 3, Resolution.MINUTE)

        self.current_price = history.iloc[-1]["close"]

        self.current_low = history.iloc[-1]["low"]

        self.current_high = history.iloc[-1]["high"]

        self.previous_high = history.iloc[-2]["high"]

        self.previous_low = history.iloc[-2]["low"]