Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Gold Customer
Joined: 10/7/2004 Posts: 10
|
Is there a way to filter a watchlist based on DAILY volume no matter what time frame is used? For example if I'm only interested in stocks with a daily volume > 500K, this works fine on a daily time frame but if I switch to for example 60 min bars more stocks will be filtered out, because the daily volume is spread over more (smaller) bars.
I would like to get away from having to create and save new lists all the time. I been toying with the idea of writing real code, summing up the volume, based on the time frame used, but that seems like over- kill, is there a better way, or am I completely missing the point on this?
Thanks,
Eric
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
- Select Add Indicator | Select... | Volume Bars | OK.
- Right-click on the Volume Bars Indicator and select Block Diagram.
- Left-click and Drag on the Time Frame input to the Volume Block.
- Select Select Block & Connect | Time Frame: Day | OK.
- Close the Block Diagram.
You should now have a Volume Indicator with an adjustable Time Frame that is independent of the Time Frame used for the Chart as a whole. Dragging and Dropping that Indicator into the RealCode Editor should create something similar to first line of the following RealCode Rule to check for the Volume in the Time Frame of this Volume Indicator.
'# VB = indicator.VolumeBars
If VB.Value >= 5000 Then Pass
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Gold Customer
Joined: 10/7/2004 Posts: 10
|
Thanks Bruce, that worked great and much easier than any of my ideas, but I never ventured to the Block Diagrams. Thanks again.
Eric
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |