Subscription & data-feed pricing Class schedule

Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.

 New Highs/Lows from Pre-built Conditions Rate this Topic:
 Previous Topic · Next Topic Watch this topic · Print this topic ·
JesseChn
 Posted : Monday, April 08, 2019 10:13:48 AM
Registered User
Joined: 1/9/2018
Posts: 9

Hi,

Can I know what the PCF are for the pre-built conditions new highs and new lows?

Thanks

Bruce_L
 Posted : Monday, April 08, 2019 11:55:30 AM

Worden Trainer

Joined: 10/7/2004
Posts: 65,138

There really aren't formulas which correspond to exact way the built in new high and new low conditions work because those conditions can work with fewer bars than the period of the new high and new low.

That said, you could create conditions for the high of the current bar being at its highest value in the most recent 50 bars.

H = MAXH50

A similar formula for the low would be:

L = MINL50

Or a condition for the high of the current bar being higher than the highest high over the previous 49 bars.

H > MAXH49.1

A similar formula for the low would be:

L < MINL49.1

And you could check for the current price being above the highest high in the previous 49 bars.

C > MAXH49.1

A similar formula for the lowest price would be:

C < MINL49.1

And you could even check for the current price being at its highest value of the most recent 50 bars.

C = MAXH50

Or:

STOC50 = 100

With a similar formula for being at the lowest price being:

C = MINL50

Or:

STOC50 = 0

But all of these formulas would require at least 50 bars of data be available, while just clicking on price and selecting New High or New Low with the period set to 50 would still work even if there were less than 50 bars of data.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
JesseChn
 Posted : Tuesday, April 09, 2019 8:33:53 AM
Registered User
Joined: 1/9/2018
Posts: 9

Hi,

I was thinking more of intraday highs or lows. Is that not possible?

Thanks

Bruce_L
 Posted : Tuesday, April 09, 2019 9:45:29 AM

Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You can do something like:

C = H

Or:

STOC1 = 100

In a daily time frame to check for the current price to be the high of the trading day, but there really isn't a reliable way to write a formula to check for the high of the current intraday bar being the high of the trading day if the close isn't the high of that bar.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

 Forum Jump Customer Training & Support - Ask a Trainer - TC2000 version 12/18 - Ask a Trainer - TC2000 version 7 - Ask a Trainer - StockFinder 5.0 - PCFs, EasyScan and Custom Indicators General Discussions - Stock and Market Talk - TC2000 version 12 or 18 - TC2000 version 7 - StockFinder 5.0 - RealCode for StockFinder 5.0 Tutorial Videos - TC2000 version 12 tutorial videos - TC2000 version 7 tutorial videos 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.