In my daily strategy - only want to take the trade in the first 15 or 30 or 45 minutes based on the volume 150% of 30 day average.
Is there any indicator that can estimates today's overall possible volume based on first 15, 30 or 45 minutes of intraday data.
Or Is there any indicator like today's volume buzz etc. I have tried searching and going through various posts but could not figure it out so far.
I appreciate any help.
Size:
Color:
The following might work:
1. First you might want to sum the volume of the first NN minutes. Here's a how-to on
Accessing Intraday data from Daily. Establish a counter, loop over the intraday Bars, sum the intraday Volume while counting the bars, break when counter == NN bars i.e. NN minutes. Save the result in a Daily DataSeries.
2. Next, how about using
PercentRank on the Daily series to find out how does the partial day's volume corresponds to some previous values (e.g. period = 30)?
Size:
Color:
As an alternative to #2, averaging the values using any MA is a more direct way of getting there.
Size:
Color:
Thanks Eugene. As I have seen volume buzz on other sites, I thought there might be a direct indicator available.
As you suggested above, I will work on it tonight. It will take a while for me as I am still trying to understand various things here.
Size:
Color:
I recall creating a Volume Buzz type indicator for Version 4, so I can dig that up later. You'd need to use intraday data, however, to use it. Note that you can run a Daily strategy using intraday data, however, if you're creating trades "mid day" based on intraday data, then it's an intraday strategy.
To make sure we're talking about the same thing, as I understand it, Volume Buzz gives you an average trading volume for an instrument at certain times of the day. For example, the 5-day Volume Buzz at 10:00am would be the sum of all the volume from 09:30 to 10:00 from the previous 5 days of trading divided by 5. Likewise, at 10:30, it would be the 5-day average of the total volume from 09:30 to 10:30. Sound like what you're looking for?
Size:
Color:
Thanks Cone. That is exactly I am looking for. I want to take a intraday trade based on today's volume action and hold it for several days with stop loss in place. I want to select the stocks based on daily bar's which have 20MA above the 50MA and currently oversold (Stoc-D crossover above oversold). Can you please point me to right direction on this? How can I get to the volume buzz callculation that is available in WL 4.0. As I mentioned, this is my first experiment with strategy and WL and trying to understand quite a bit how it works.
Size:
Color:
Probably creating a indicator like today's virtual volume based on intraday 5min-bars cumulative volume then divide by num of bars in the cumulative data then multiply with 78 ( 5 minute intervals in a trading day )
then Virtual Volume % = Virtual Volume *100 / average daily volume (30day)
Hopefully, these things work. But I still have to put it in the code format.
I appreciate Any help or pointers.
Size:
Color:
Give this a shot using an intraday chart, any interval. There are actually 2 indicators in here. One that gives you the total actual daily volume at a specified time of day (plotted in black), and the other plotted in blue is the average daily volume at a specified time of day.
CODE:
Please log in to see this code.
It's not the most efficient formulation, so it can be optimized if speed is critical.
Size:
Color:
Here's another formulation that runs more quickly, but the Volume Buzz doesn't match the previous one. (Edit: Now corrected)
CODE:
Please log in to see this code.
This formulation has been corrected. The problem:
WAS:
ibar = bar - Bars.IntradayBarNumber(bar) - 1;
SHOULD BE:
ibar = ibar - Bars.IntradayBarNumber(ibar) - 1;
Size:
Color: