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 |

reversals Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
ffarron
Posted : Tuesday, October 26, 2010 1:50:01 AM
Registered User
Joined: 11/7/2009
Posts: 25
Can you give me a good condition indicating an imminent trend reversal in either direction?Thank you.
Bruce_L
Posted : Tuesday, October 26, 2010 9:23:38 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I can't help you create a Condition for "an imminent trend reversal in either direction".

For us to help you create a Condition, you would need to provide an unambiguous objective definition or description of what is actually happening now that you wish to identify, not of what might or might not happen in the future.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
ffarron
Posted : Thursday, October 28, 2010 3:31:36 AM
Registered User
Joined: 11/7/2009
Posts: 25
QUOTE (Bruce_L)
I can't help you create a Condition for "an imminent trend reversal in either direction".

For us to help you create a Condition, you would need to provide an unambiguous objective definition or description of what is actually happening now that you wish to identify, not of what might or might not happen in the future.
For me a trend lasts at least three weeks. An indication of reversal might be three consecutive days of price going in opposite direction: three weeks price increase may be followed by three days down move; vice versa three weeks price decline followed by three consecutive days up. Can you write a condition for these sequences? Thank you ffarron
Bruce_L
Posted : Thursday, October 28, 2010 8:55:39 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You haven't defined what constitutes a trend, but I'll use a negative Linear Regression Slope over 15-Bars with the current Price being below the Price of the start of the Linear Regression as well as the working definition of a downtrend (with an uptrend being the reverse).

Chances are, this isn't what you see as a trend, but that's the hazard of using subjective terms. We can always refine the definition later.

You can just Copy the following RealCode from the forums and Paste it directly onto the Chart in StockFinder to create the RealCode Condition, but you will need to right-click on the Condition and select Edit to change both the Price Rate of Change (% ) Period and Lin Reg Slope Period to 15.

Writing Conditions in RealCode

'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Indicator of Reversal
'|******************************************************************
'# LRS = indicator.Library.Linear Regression Slope
'# PRoC = indicator.Library.Price Rate of Change (Percent)
Static Count As Single
Static State(1) As Integer
If isFirstBar Then
    Count = 0
    State(0) = 0
Else
    State(1) = State(0)
    State(0) = System.Math.Sign(Price.Last - Price.Last(1))
    If State(0) = State(1) Then
        Count += 1
    Else
        Count = 1
    End If
End If
If Count = 3 AndAlso _
    State(0) <> 0 AndAlso _
    State(0) = -System.Math.Sign(LRS.Value(3)) AndAlso _
    State(0) = -System.Math.Sign(PRoC.Value(3)) Then
    Pass
End If

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