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