Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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?
|
|
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
|
|
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?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If Volume.Value < Volume.AVG(20) Then Pass
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
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'
|
|
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
|
|
Guest-1 |