OPEN-SOURCE SCRIPT

High Volume and Price Spike Alert

This script is incomplete. Right now it useful for one time frame. For instance, you can customize it to alert you if there is a certain price increase with a certain volume multiplier within a certain time frame.

For example, if a stock rises 4%, within 5 minutes, and the volume is 10x that of the previous 30 day average volume, you will get an alert.

You can change the time intervals, stock percentile increase, and volume multiplier as you wish.

You will want to tweak it based on the likelihood of rapid or slower gains. For instance, large cap stocks will not move as fast as 'trending' stocks that have peaked in volume. For instance, recently (February 2025), %BBAI you would want tight thresholds.

This is my first ever pine script, so bear with me.

I am trying to get all of the time intervals into one, but so far no luck. I have a different indicator for each time interval I chose (i.e., 3, 5, 15, 60, 120, 240 minutes etc.).

If you can take my script and make them into one, I would be very grateful!

Cheers, and I hope you find it useful!

-Suv

Aviso legal