Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Intraday Up/Down Volume Analysis on Optionable Items Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
scastlem
Posted : Wednesday, February 10, 2010 7:47:35 PM
Registered User
Joined: 1/3/2008
Posts: 34
I want to create an indicator that plots the sum of the up volume for a give bar minus the sum of the down volume for a given bar for all the stocks in the Optionable Items watchlist.  I use one-minute charts and only want to sum up the volume for each bar (and not the volume so far for the day).  For a bar to be up, its close must be higer than the close one minute ago, and for a down bar, the close must be lower than the close one minute ago.

Thank you.
Bruce_L
Posted : Thursday, February 11, 2010 9:49:55 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You can Plot an Average by right-clicking on the following RealCode Indicator and selecting Create Custom Index | Optionable Items | Next | All Stocks in WatchList | Next | Finish.

Dim Output As Single = 0
If Price.Last > Price.Last(1) Then
    Output += Volume.Value
Else If Price.Last < Price.Last(1) Then
    Output -= Volume.Value
End If
Plot = Output

If you really need it to be a sum, you would need to know how many items are in the WatchList (currently 3195) to use in the RealCode.

Dim Output As Single = 0
If Price.Last > Price.Last(1) Then
    Output += Volume.Value
Else If Price.Last < Price.Last(1) Then
    Output -= Volume.Value
End If
Plot = 3195 * Output

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
scastlem
Posted : Monday, February 15, 2010 1:33:20 AM
Registered User
Joined: 1/3/2008
Posts: 34
Bruce,

Thank you for the indicator.  I followed the instructions to Create Custom Index but did not have success.  I was able to go to Add Indicator | Create in RealCode | New RealCode Indicator (which gave me the name My Indicator in the Name box |  and then pasted the code here.

Will this way work too because I seemed to get a graph?

Also, would  you be able to help me with a second indicator.  Using the same list of Optionable Items, I want to create a customized TRIN (#Advancing Issues / #Declining Issues) / (Volume of Advancing Issues / Volume of Declining Issues) where the close of each bar during the day is compared with the close of the previous intraday bar (as compared with the closing price for yesterday) and the data used in the calculation of the TRIN comes only from the most recent bar.  For instance, a stock is advancing if the close is higher than the close one minute ago.  In this case, this advancing issue is added to the sum of all of the advancing issues for this bar and the volume is added to the total of all the advancing volume for this bar (and the same logic applies to declining issues.)

Thank you.

Scott
Bruce_L
Posted : Monday, February 15, 2010 1:06:16 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The RealCode Indicator will produce a graph. The results are for that symbol. You need to create a Custom Index out of it to get results for the WatchList as a whole. What is happening? Are you getting error messages when you right-click on the RealCode Indicator and follow the directions for converting it into a Custom Index?

It's rather slow, but you should be able to Open the attached Chart directly into a running copy of StockFinder.

Attachments:
scastlem Arms Index.sfChart - 100 KB, downloaded 432 time(s).



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
scastlem
Posted : Wednesday, February 17, 2010 12:38:12 AM
Registered User
Joined: 1/3/2008
Posts: 34
Bruce,

Thank you for the Arms Index.  I was able to open the chart using the posted link.  

The indicator could not keep up on the one-minute chart during the trading day.   If I switch to a 15-minute chart, can I set the Refresh Rate (under Edit Arms Index) to 5 minutes or do I need to keep the Refresh Rate the same as the interval of my chart?  If I update every 5 minutes and my bar interval is set to 15 minutes, are the results based on calculations made on data generated by the bar up to that point in time (i.e. when only 10 minutes have passed in a 15-minute bar)?  Also, I was watching the volume for the symbols uder Main WatchList.  Does the volume get reset to zero at the end of every bar?

Thanks again for your help.

Scott
Bruce_L
Posted : Wednesday, February 17, 2010 9:46:26 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
QUOTE (scastlem)
If I switch to a 15-minute chart, can I set the Refresh Rate (under Edit Arms Index) to 5 minutes or do I need to keep the Refresh Rate the same as the interval of my chart?

You can have a different reset rate for your WatchList than the Time Frame of your Chart.

QUOTE (scastlem)
If I update every 5 minutes and my bar interval is set to 15 minutes, are the results based on calculations made on data generated by the bar up to that point in time (i.e. when only 10 minutes have passed in a 15-minute bar)?

It is going to use the most recent data available at the time of the calculation.

QUOTE (scastlem)
If I update every 5 minutes and my bar interval is set to 15 minutes, are the results based on calculations made on data generated by the bar up to that point in time (i.e. when only 10 minutes have passed in a 15-minute bar)?

I'm not entirely sure what is meant by the question, but the Volume of a Bar in the Volume Bars Indicator is based on the Volume of just that Bar.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.