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 |

Scanning the Market (Day trading way) Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
sambro
Posted : Monday, December 28, 2009 2:32:31 PM
Registered User
Joined: 8/31/2006
Posts: 8

Dear Bruce

 

We appreciate your hard work and commitment to your customers.

You are the main reason for using SF4 or SF beta 5

 

I am looking for a scan that does the followings

 

  • Prices are rising for couple of days (higher highs and higher lows)
  • The 20 or 50 day moving average is also rising
  • Then prices pulled back to the rising moving average for two or more days
  • Stochastic is then oversold
  • Then there is a spike in volume such as 1.5 times 50-day moving average of volume

 

 

Thanks for your help and time

 

Sincerely

 

Sambro

Bruce_L
Posted : Monday, December 28, 2009 4:54:06 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
QUOTE (sambro)
You are the main reason for using SF4 or SF beta 5

Do you want this for SF4 or SF5 (there could be significant differences).

QUOTE (sambro)
Prices are rising for couple of days (higher highs and higher lows)
The 20 or 50 day moving average is also rising

These would appear to be simultaneous.

QUOTE (sambro)
Then prices pulled back to the rising moving average for two or more days

How long between the first two conditions and this condition?

What constitutes "pulled back"? Must Price be below the Moving Average?

QUOTE (sambro)
Stochastic is then oversold

What are the settings of the Stochastic? What do you see as oversold? You used the word "then". Is this simultaneous with or after the pullback? If it is after, how long?

QUOTE (sambro)
Then there is a spike in volume such as 1.5 times 50-day moving average of volume

Basically the same questions about the meaning of "then" in this section as in the previous section.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
sambro
Posted : Monday, December 28, 2009 10:23:09 PM
Registered User
Joined: 8/31/2006
Posts: 8

Dear Bruce

 

We appreciate your hard work and commitment to your customers.

You are the main reason for using SF4

 

I am looking for a scan that does the followings for SF4

 

  • Prices are rising for couple of days (higher highs and higher lows) and the 20 or 50 day moving average is also rising at the same time.
  • Then prices pulled back: prices fall back to the moving average after breaking above it and consolidate for 2 or more days on the rising moving average.
  • During the consolidation, the stochastic index must be oversold (see below for settings). That is, consolidation and stochastic oversold happen together.
  • There is volume spike (1.5 times 50-day moving average of volume) when prices breakout to the upside after consolidation.

 

Stochastic settings;

Stochastic period - 21 days

%K slowing periods - 3 days

%D - 5 days

All are simple moving averages

Overbought level - 80%

Oversold level - 20%

 

Thanks for your help and time

 

Sincerely

 

Sambro

 

Bruce_L
Posted : Tuesday, December 29, 2009 1:26:19 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I've made a lot of guesses, but have come up with a possible interpretation of your request. If you Drag and Drop the Moving Averages and Stochastics into the RealCode Editor, it should create something similar to the first four lines of the following RealCode Rule (you'll need to change the variable names assigned to the Moving Averages from MA to what is given so the RealCode Editor has different variable names for each Moving Average to get the RealCode to work):

'# AVGC20 = indicator.MovingAverage.SMAp20
'# AVGC50 = indicator.MovingAverage.SMAp50
'# AVGV50 = indicator.MovingAverage.SMAv50
'# Stoc = indicator.Stochastics
'# Cumulative
Static Count(4) As Integer
Static Stage(1) As Integer
If isFirstBar Then
    Count(0) = 0
    Count(1) = 0
    Count(2) = 0
    Count(3) = 0
    Count(4) = 0
    Stage(0) = 0
    Stage(1) = 0
Else
    If Price.High > Price.High(1) AndAlso _
        Price.Low > Price.Low(1) Then
        Count(0) += 1
    Else
        Count(0) = 0
    End If
    If AVGC20.Value > AVGC20.Value(1) Then
        Count(1) += 1
    Else
        Count(1) = 0
    End If
    If AVGC50.Value > AVGC50.Value(1) Then
        Count(2) += 1
    Else
        Count(2) = 0
    End If
End If
If Count(0) >= 2 Then
    If Count(1) >= 1 AndAlso _
        Price.Low > AVGC20.Value AndAlso _
        Volume.Value >= 1.5 * AVGV50.Value Then
        If Stage(0) = 2 Then
            Stage(0) = 0
            Count(3) = 0
            Pass
        Else
            Stage(0) = 1
        End If
    End If
    If Count(2) >= 1 AndAlso _
        Price.Low > AVGC50.Value AndAlso _
        Volume.Value >= 1.5 * AVGV50.Value Then
        If Stage(1) = 2 Then
            Stage(1) = 0
            Count(4) = 0
            Pass
        Else
            Stage(1) = 1
        End If
    End If
End If
If Price.Low <= AVGC20.Value AndAlso _
    AVGC20.Value <= Price.High Then
    Count(3) += 1
Else
    Count(3) = 0
End If
If Price.Low <= AVGC50.Value AndAlso _
    AVGC50.Value <= Price.High Then
    Count(4) += 1
Else
    Count(4) = 0
End If
If Count(3) >= 2 AndAlso _
    Stage(0) = 1 AndAlso _
    Stoc.Value <= 20 Then
    Stage(0) = 2
End If
If Count(3) >= 2 AndAlso _
    Stage(1) = 1 AndAlso _
    Stoc.Value <= 20 Then
    Stage(1) = 2
End If

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
arusso
Posted : Wednesday, January 6, 2010 3:02:47 PM
Registered User
Joined: 10/7/2004
Posts: 7
Hi Bruce,

I'm a Gold customer for Telecharts 2000; would like to use your formula created for  "Sambro" recently...

when I paste this in there is an indication of syntaxt error.. can you help please? I don't know what or where the "realcode editor" is in the program or if at all in TC2000.   thanks!!!

'# AVGC20 = indicator.MovingAverage.SMAp20
'# AVGC50 = indicator.MovingAverage.SMAp50
'# AVGV50 = indicator.MovingAverage.SMAv50
'# Stoc = indicator.Stochastics
'# Cumulative
Static Count(4) As Integer
Static Stage(1) As Integer
If isFirstBar Then
    Count(0) = 0
    Count(1) = 0
    Count(2) = 0
    Count(3) = 0
    Count(4) = 0
    Stage(0) = 0
    Stage(1) = 0
Else
    If Price.High > Price.High(1) AndAlso _
        Price.Low > Price.Low(1) Then
        Count(0) += 1
    Else
        Count(0) = 0
    End If
    If AVGC20.Value > AVGC20.Value(1) Then
        Count(1) += 1
    Else
        Count(1) = 0
    End If
    If AVGC50.Value > AVGC50.Value(1) Then
        Count(2) += 1
    Else
        Count(2) = 0
    End If
End If
If Count(0) >= 2 Then
    If Count(1) >= 1 AndAlso _
        Price.Low > AVGC20.Value AndAlso _
        Volume.Value >= 1.5 * AVGV50.Value Then
        If Stage(0) = 2 Then
            Stage(0) = 0
            Count(3) = 0
            Pass
        Else
            Stage(0) = 1
        End If
    End If
    If Count(2) >= 1 AndAlso _
        Price.Low > AVGC50.Value AndAlso _
        Volume.Value >= 1.5 * AVGV50.Value Then
        If Stage(1) = 2 Then
            Stage(1) = 0
            Count(4) = 0
            Pass
        Else
            Stage(1) = 1
        End If
    End If
End If
If Price.Low <= AVGC20.Value AndAlso _
    AVGC20.Value <= Price.High Then
    Count(3) += 1
Else
    Count(3) = 0
End If
If Price.Low <= AVGC50.Value AndAlso _
    AVGC50.Value <= Price.High Then
    Count(4) += 1
Else
    Count(4) = 0
End If
If Count(3) >= 2 AndAlso _
    Stage(0) = 1 AndAlso _
    Stoc.Value <= 20 Then
    Stage(0) = 2
End If
If Count(3) >= 2 AndAlso _
    Stage(1) = 1 AndAlso _
    Stoc.Value <= 20 Then
    Stage(1) = 2
End If
arusso
Posted : Wednesday, January 6, 2010 3:19:20 PM
Registered User
Joined: 10/7/2004
Posts: 7
Dear Bruce, I'm also quite visual, so putting these questions into text for me will tax your patience, but here's what I'm hoping to create.  I'd like a pcf that will identify stocks that are about to enter into an uptrend (higher highs & higher lows). The stock will have a low, then test that low successfully by then taking out significant resistance on the upside. I suppose we can define what is significant resistance...perhaps 20 bars?? I'd like to see the 200 period moving avg flattening out. I'd like to see the 5 period m.a., trending up through the 20 period m.a., and the 20 above or maybe better, moving up through the 50. 

If any of these parameters are in conflict or don't make sense, please let me know; I'm not real good at describing what I see on a chart that works ideally for me, but I know it when I see it. Thanks so much,

Al
Bruce_L
Posted : Thursday, January 7, 2010 3:32:01 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
QUOTE (arusso)
I'm a Gold customer for Telecharts 2000; would like to use your formula created for  "Sambro" recently...

when I paste this in there is an indication of syntaxt error.. can you help please? I don't know what or where the "realcode editor" is in the program or if at all in TC2000.

RealCode is designed for use in StockFinder and will not work in TeleChart. I cannot think of a practical automated method of converting what is given to TeleChart.

QUOTE (arusso)
I'm not real good at describing what I see on a chart that works ideally for me, but I know it when I see it.

Unfortunately I can really only help you create something if it can be unanmbiguously and objectively defined. There really isn't a way to search for subjective ("I know it when I see it") type definitions until they are converted into something objective for which we can actually search.

In addition, I suspect from your explanations so far that while we might be able to come up with some objective interpretations of your descriptions, the result would probably be something that could not be implementable in a practical manner in TeleChart (although I could be wrong in this). In any case, a less ambiguous description of the desired pattern would be required to proceed any further.

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