Registered User Joined: 12/21/2004 Posts: 11
|
I have just installed stockfinder and I would like to request a formula for a search, I'm looking for a search for a 2 day simple moving average crossing over a 50 day exponential moving average on stocks valued between $35 to $100, and have an average of 100,000 daily volumn. I need a search for up and down.and search be based on the last bar on a daily chart. can this be done?
Thanks for your help
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
One way would be to just add all of the Indicators to the Chart and then right-click on each of them to create Conditions and then Drag and Drop the resulting Conditions onto each other to create a Combo Condition.
Creating Conditions
Another method would be to create RealCode Conditions. The crossing up Condition could be written as:
Writing Conditions in RealCode
'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:xUp
'|******************************************************************
If Price.AVGC(2) > Price.XAVGC(50) AndAlso _
Price.AVGC(2, 1) <= Price.XAVGC(50.1) AndAlso _
35 <= Price.Last AndAlso Price.Last <= 100 AndAlso _
Volume.AVG(90) >= 1000 Then Pass
While the crossdown Condition could be written as:
'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:xDn
'|******************************************************************
If Price.AVGC(2) < Price.XAVGC(50) AndAlso _
Price.AVGC(2, 1) >= Price.XAVGC(50.1) AndAlso _
35 <= Price.Last AndAlso Price.Last <= 100 AndAlso _
Volume.AVG(90) >= 1000 Then Pass
No matter which way you decide to create the Condition, you can use it as a Scan or as a Filter.
Scanning with Conditions
Filtering Lists
-Bruce Personal Criteria Formulas TC2000 Support Articles
|