Trend Sensor - Stock / Price Value

I’ve set up a trend binary sensor for my sensor which monitors the price of stocks

The stocks update every 30 minutes

What I’d like it for the binary sensor to turn on if there is enough of an increase that is out of the norm

I haven’t played yet with max_samples or sample_duration and have seen that it can take time to become accurate

Does anyone done something like this already and have suggestions to make it accurate?