calc percents of volume increase of a 5 min candle volume with 5 or 10 previous candle of the same time slot

Epavell

New member
Looking to calculate the percentage difference from the current day 5 min candle at open as well as the next 2 candles. 9:30-9:35, 9:35-9:40, and 9:40 - 9:45 candles volume ). The calculation is getting the last 5 days of 5 min candle volume at the same time slot and calculate the average volume . Then take the average of the five days and compare it to the current day candle volume. add a label on the chart with volume percent increase for 9:30 - " percent increase", 9:35 "percent increase" and 9:40 "percent increase"

Here is a chart of the data to help understand the goal:

Take candles 1-5 sum divided by 5 and take avg sum to find percent diff with current [0] candle. do that for the next two candles as well.
Note the volumes in the chart as in 129.00 in the first column is 129 thousand (I just rounded for the manual process) Date is 9/16 for CRWD

Not show how robust this scan can be but figured I would ask- Can we scan for multiple days back ( like 10 days of candle sums divide by that amount of candles 10 to get avg and then percent diff to current candle )and use the "Input and options screen" to modify the days back up to 10 as an example. As well as can it be that if you're on a 15 min chart it will locate average of 15 min bars rather than 5 min bars. Very much appreciate your help in this.

CRWD5 min bars
Days back 9:30 candle9:35 candle9:40 candle
0.00129.0046.0044.00
1.0038.0032.0014.00
2.0075.0021.0027.00
3.0062.0045.0029.00
4.0065.0029.0024.00
5.0093.0050.0038.00
Sum of 1-5 $ 333.00 177 $ 132.00
$ 66.60 35.4 $ 26.40
1st Candle of day2nd candle of day3 rd candle of day
This would be the label on chart 193.69%129.94%166.67%
 

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
372 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