Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/7/2004 Posts: 91
|
Bruce - would it be possible to get a scan for stocks trading between $10 - $45 per share that have had an intraday high/low spread of 5% or more over the last 20 trading days.... tia
mully
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Does the High need to be at least 5% above the Low for all of the previous 20-Bars or does the High need to be on average at least 5% above the Low for the previous 20-Bars?
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 91
|
I'm sorry, just the average please, thanks again
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The following RealCode Condition is intended to use a Daily Bar Interval:
'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:Intraday Spread
'|******************************************************************
Static Avg As Single
If isFirstBar Then
Avg = 0
End If
Avg += 5 * (Price.High / Price.Low - 1)
If CurrentIndex >= 19 Then
If CurrentIndex >= 20 Then
Avg -= 5 * (Price.High(20) / Price.Low(20) - 1)
End If
If 10 <= Price.Last AndAlso _
Price.Last <= 45 AndAlso _
Avg >= 5 Then
Pass
End If
Else
SetIndexInvalid
End If
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 91
|
works perfect Bruce, thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |