Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Retracement Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ocfisher
Posted : Friday, December 10, 2010 9:55:26 PM
Registered User
Joined: 2/1/2010
Posts: 37

How could I scan for issues that have made a high (within the last specific time- say 2 years), and then have retraced a specific amount- say 20% from the high- and are now hovering around that lower level?  This is for Stockfinder 5.

Thanks in advance.

Bruce_L
Posted : Monday, December 13, 2010 10:39:22 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I guess it would depend on your specific definitions of "made a high", "hovering around that lower level" and how simple or complicated you want to make the Scan. One of the simplest interpretations I can think of would be to just check for the Lowest Low in the last two years being at least 20% below the Highest High in the last two years and checking for the current Price to be within 5% of that Low (you could change that percentage rather easily):

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:Retracement
'|******************************************************************
If CurrentIndex >= 500 Then
If Price.MinLow(500) <= .8 * Price.MaxHigh(500) AndAlso _
    Price.Last <= 1.05 * Price.MinLow(500) Then
        Pass
    End If
Else
    SetIndexInvalid
End If

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ocfisher
Posted : Thursday, December 16, 2010 9:25:12 AM
Registered User
Joined: 2/1/2010
Posts: 37
Thank you.  I'll see if I can work with that.
Bruce_L
Posted : Thursday, December 16, 2010 9:40:57 AM


Worden Trainer

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

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ocfisher
Posted : Monday, January 3, 2011 9:23:01 PM
Registered User
Joined: 2/1/2010
Posts: 37
I tried to copy and paste your formula but I get error messages.  Not sure if I'm doing something wrong or not.  Would you please check the formula for any errors?
Thanks.
Bruce_L
Posted : Tuesday, January 4, 2011 9:10:30 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I don't receive any error messages. My guess would be that you are attempting to use the RealCode as a RealCode Indicator or RealCode Paint Scheme as the Pass syntax is only valid as part of a RealCode Condition.

Try Copying the RealCode and then Pasting it directly to the Chart. This should automatically create the RealCode Condition without you needing to open up the RealCode Editor at all.

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