Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/7/2004 Posts: 16
|
Can you advise of a stockfinder scan for stocks reaching new 60 minute highs using hourly bars?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You'll have to explain a bit more what you mean by a "reaching new 60 minute highs using hourly bars". Wouldn't every 1-Hour bar (except the first of the day which is only 30-minutes long) contain a 60-Minute High?
If you actually want a New 60-Minute High, you would need to use a shorter Bar Interval (say the following based on a 1-Minute Bar Interval):
If Price.High > Price.MaxHigh(59, 1) Then Pass
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 16
|
Looking to scan for stocks that just exceeded their hourly bar high or 60 minute bar high. I would first scan at 10:30 eastern time, then 11:30, etc.
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
I still don't understand what you are asking. Do you want a New High for the Day on an Hourly Chart? If so, you could use the following RealCode Condition (it should actually work for any Intraday Bar Interval, not just 1-Hour):
'|*****************************************************************|
'|*** StockFinder RealCode Condition - Version 5.0 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Condition:New High for Day
'|******************************************************************
Static DayHigh As Single
Static Valid As Boolean
If isFirstbar Then
DayHigh = Single.NaN
Valid = False
Else If Price.DateValue.DayOfYear <> Price.DateValue(1).DayOfYear Then
DayHigh = Single.MinValue
Valid = True
End If
If Valid = True Then
If Price.High > DayHigh Then
DayHigh = Price.High
Pass
End If
Else
SetIndexInvalid
End If
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 6/18/2014 Posts: 2
|
high i wanted to see if i can set up a scan for stocks reaching High of day on the 1 min
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The RealCode Condition given in my Wednesday, November 24, 2010 10:42:38 AM ET post should also work in a 1-minute time frame.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |