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 |

ATR Scan Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Reynolds05
Posted : Monday, September 27, 2010 1:23:45 AM
Registered User
Joined: 3/6/2005
Posts: 16
I am trying to create/write a scan in Real code that will scan for stocks where the 9 day ATR is greater than a 14 day ATR and both the 9 day ATR and the 14 day ATR are greater than the 20 day ATR.
Bruce_L
Posted : Monday, September 27, 2010 8:51:54 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You will have to Edit the Condition once it is created to change the ATR Periods for each ATR.

Writing Conditions in RealCode
Scanning with Conditions

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Three ATR Comparison
'|******************************************************************
'# ATR9 = indicator.Library.Average True Range
'# ATR14 = indicator.Library.Average True Range
'# ATR20 = indicator.Library.Average True Range
If ATR9.Value > ATR14.Value AndAlso _
    ATR14.Value > ATR20.Value 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.