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 |

how to find max volume Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Jason
Posted : Thursday, August 12, 2010 2:38:19 PM
Registered User
Joined: 10/7/2004
Posts: 17
I'd like to compare today's volume with the max or min volume over the last 20 days. Will the following accomplish this:

if (volume.last < volume.last(20)) then pass

Or will the above compare today's volume with the volume from 20 days ago?
Bruce_L
Posted : Thursday, August 12, 2010 2:44:36 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Your comparison would be to the Volume 20-Bars Ago. I suspect you want something similar to the following instead:

If Volume.Value < Volume.MinClose(20, 1) Then Pass

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Jason
Posted : Thursday, August 12, 2010 2:53:47 PM
Registered User
Joined: 10/7/2004
Posts: 17
Thanks...one more question...

What would be used to ask if today's volume was < the average over the last 20 days?
Bruce_L
Posted : Thursday, August 12, 2010 2:57:57 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
If Volume.Value < Volume.AVG(20) Then Pass

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Jason
Posted : Thursday, August 12, 2010 3:13:55 PM
Registered User
Joined: 10/7/2004
Posts: 17
Thanks but I get an error message assoicated with AVG....says it's not a member of 'WBI.CommonBlocks.ScriptingLine'
Bruce_L
Posted : Friday, August 13, 2010 8:35:16 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
My first guess would be that you are using StockFinder 4 as the AVG syntax was introduced in StockFinder 5. If that is not the case, you could try the following instead (but the AVG syntax without the C is working just fine for me):

If Volume.Value < Volume.AVGC(20) Then Pass

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