Registered User Joined: 3/30/2008 Posts: 97
|
In SF5, what would the realcode be for a condition to scan for stocks which have pulled back (retraced) from above their 20EMA, down to their 20EMA and have an ADX (14,14) of 28 or better?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You'll need to Edit the Condition to set the Smooth and DI Period to 14:
'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Pullback to EMA
'|******************************************************************
'# ADX = indicator.Library.Directional Movement ADX ADXR
If Price.Last <= Price.XAVGC(20) AndAlso _
Price.Last(1) > Price.XAVGC(20, 1) AndAlso _
ADX.Value >= 24 Then Pass
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 3/30/2008 Posts: 97
|
Thanks as bunch, Bruce!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|