MACD Percentile behavior

Hello, I have created a bot with a single indicator, the MACD in the 1h TF. using the 1% percentile as the trigger for the operation. But when I review an operation that went wrong I find that it seems to have been performed far from where I think it should start.
Can anyone tell me why this is so? Thank you in advance!