Needing Script for Following Bullish Volume Spikes

realoans1

New member
Plus
Hello Community:

I want to find a script that allows me to:

1. search for stocks that have had days with 4x or more than typical volume in a single day relative to average volume in preceding period (upwards, bullish volume).
2. be able to adjust the search time frame to any period - from one day to 360 days ago, or for a period of days, i.e. 90-100 days ago, etc.
3. a price trend line that is either flat or rising both before and after the volume spike

I would appreciate all feedback and references!

thanks,
Realoans
 
Solution
Hello Community:

I want to find a script that allows me to:

1. search for stocks that have had days with 4x or more than typical volume in a single day relative to average volume in preceding period (upwards, bullish volume).
2. be able to adjust the search time frame to any period - from one day to 360 days ago, or for a period of days, i.e. 90-100 days ago, etc.
3. a price trend line that is either flat or rising both before and after the volume spike

I would appreciate all feedback and references!

thanks,
Realoans


here are 2 studies to experiment with

can pick the length of volume average. default is 20
average uses the previous bar for the average. so it doesn't include the partial, current day.
can pick some...
Hello Community:

I want to find a script that allows me to:

1. search for stocks that have had days with 4x or more than typical volume in a single day relative to average volume in preceding period (upwards, bullish volume).
2. be able to adjust the search time frame to any period - from one day to 360 days ago, or for a period of days, i.e. 90-100 days ago, etc.
3. a price trend line that is either flat or rising both before and after the volume spike

I would appreciate all feedback and references!

thanks,
Realoans


here are 2 studies to experiment with

can pick the length of volume average. default is 20
average uses the previous bar for the average. so it doesn't include the partial, current day.
can pick some factor number, for multiplying by the average. default is 4.

----------------------

lower study
could be used as scan
if volume > volume average * 4 , then draw a spike.


Code:
#vol_spike2_lower

declare lower;

def na = Double.NaN;
def bn = BarNumber();
def v = volume;

input vol_avg_len = 20;
# start avg on prev bar
def vol_avg = floor(Average(v[1], vol_avg_len));

input vol_spike_factor = 4.0;
def isvol_spike = v > ( vol_spike_factor * vol_avg);

# scan code
plot z = isvol_spike;
#



------------------------


a volume study, used for testing.
after working, i simplified this and saved as the lower

draws a triangle on volume spike bars
draws the average
draws a line at 4 x the average


Code:
#vol_spike2_volgraph

#declare lower;

def na = Double.NaN;
def bn = BarNumber();
def v = volume;

input vol_avg_len = 20;
# start avg on prev bar
def vol_avg = floor(Average(v[1], vol_avg_len));

input vol_spike_factor = 4.0;
def isvol_spike = v > ( vol_spike_factor * vol_avg);

# scan code
#plot z = isvol_spike;

#----------------------------------

# vol graph code

plot z1 = if isvol_spike then v*1.05 else na;
z1.SetPaintingStrategy(PaintingStrategy.TRIANGLES);
z1.SetDefaultColor(Color.cyan);
z1.setlineweight(4);
z1.hidebubble();

input show_avg = yes;
plot z2 = if show_avg then vol_avg else na;

input show_avg_factor = yes;
plot z3 = if show_avg_factor then (vol_avg * vol_spike_factor) else na;


addchartbubble(0, 0,
"V " + v + "\n" +
"VF " + z3
, color.yellow, no);
#
 

Attachments

  • img1.JPG
    img1.JPG
    60.6 KB · Views: 171
Solution

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
255 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top