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 |

All Time High Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
sradke
Posted : Saturday, December 15, 2007 3:34:05 PM
Registered User
Joined: 3/4/2005
Posts: 13
Is there a way to do a search for stocks making an all-time high in Telechart?
Bruce_L
Posted : Monday, December 17, 2007 8:02:02 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
I do not know of a way to write a Personal Criteria Formula for an "all time high". That said, you may wish to try the following:

Watch this short video: Sort by Visual Value to find new highs and lows in price and indicators

Once its over, open TeleChart, make your charts quarterly and zoom all the way out (zoom 1).

Do a Visual Value sort of Price.

This will bring stocks at or near their all-time high to the top.

It is possible to search for "all time highs" (or at least the highest high in the available data) using Blocks.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
BerkoBob
Posted : Sunday, August 17, 2008 4:22:36 PM
Registered User
Joined: 3/29/2007
Posts: 19
How do you find an all time high in Blocks?
Bruce_L
Posted : Monday, August 18, 2008 9:08:11 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
BerkoBob,
There are quite a few ways, but one of the following RealCode Conditions should work (but the results will be limited to the data set being used by the Condition):

'At All Time High
'#Cumulative
Static High As Single
If isFirstBar Then High = Price.High
If Price.High = High Then Pass
High = System.Math.Max(High,Price.High)

'New All Time High
'#Cumulative
Static High As Single
If isFirstBar Then
    High = Price.High
    Pass
End If
If Price.High > High Then Pass
High = System.Math.Max(High,Price.High)

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
BerkoBob
Posted : Monday, August 18, 2008 11:31:02 AM
Registered User
Joined: 3/29/2007
Posts: 19
Hi Bruce,

Thanks.  I get the following error:

"Static local variable "High" is already declared."

What do you suggest?

Bob
Bruce_L
Posted : Monday, August 18, 2008 11:36:09 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
BerkoBob,
It reads like you pasted both Conditions in the same RealCode Condition. The topic has two Conditions (each starting with a commented out description) with a blank line in between them.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
BerkoBob
Posted : Monday, August 18, 2008 11:41:53 AM
Registered User
Joined: 3/29/2007
Posts: 19
Oh yes, I see.  Oops.  Sorry about that.

What's the difference between the two conditions?
Bruce_L
Posted : Monday, August 18, 2008 11:45:33 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
BerkoBob,
At All Time High will return True if the current High is the all time high even if the High has been reached before.

New All Time High will only return True if the current High is higher than any previous High.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
BerkoBob
Posted : Monday, August 18, 2008 11:52:14 AM
Registered User
Joined: 3/29/2007
Posts: 19
Thank you.  That's Great!
Bruce_L
Posted : Monday, August 18, 2008 11:58:34 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
BerkoBob,
You're welcome.

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