Gold Customer
Joined: 3/18/2005 Posts: 9
|
looking for a scan that will find stocks making all time high for that stock. Not just a 52 high, a historical high for that stock. Maybe that is in the system.
Thanks always for your help.
Don Weiss
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Well it's going to be an "all time high" based on the amount of history actually being used by StockFinder (under Settings | Data Manager | Number of Bars), but the following RealCode Rule should do this:
'# Cumulative
Static ATH As Single
If isFirstBar Then
ATH = Price.High
Else
If Price.High > ATH Then
ATH = Price.High
Pass
End If
End If
-Bruce Personal Criteria Formulas TC2000 Support Articles
|