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 |

realcode for a pullback to EMA Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
lordnel
Posted : Thursday, March 25, 2010 12:46:00 PM
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? 

Bruce_L
Posted : Thursday, March 25, 2010 1:54:29 PM


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
lordnel
Posted : Thursday, March 25, 2010 5:54:28 PM
Registered User
Joined: 3/30/2008
Posts: 97
Thanks as bunch, Bruce!
Bruce_L
Posted : Thursday, March 25, 2010 6:25:40 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

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