## New version 18 available now

Subscription & data-feed pricing Class schedule

Margin rates Stock & option commissions

 How to find divergences Rate this Topic:
 Previous Topic · Next Topic Watch this topic · Print this topic ·
 Posted : Friday, April 21, 2017 12:05:51 AM
Gold Customer

Joined: 9/24/2016
Posts: 2

Hi

I'm using 5 minute chart, for last 10 bars. Can you please help me with formula for following

1) Price makes new high but MACD moves lower

2) Price makes new low but MACD is moving higher

Also, appreciate if you could point me towards backtest the formulas

Bruce_L
 Posted : Friday, April 21, 2017 9:22:24 AM

Worden Trainer

Joined: 10/7/2004
Posts: 62,474

The request could be interpreted a variety of ways, but the following TC2000 v17 Condition Formula would represent what I would think is the most literal interpretation.

H > MAXH9.1 AND MACD12.26 < MACD12.26.1

It requires price to make a new 10 bar high with the raw MACD dropping from the previous bar to the current bar. You would set this to a 5 minute time frame if you wanted to be checking a 5 minute chart.

A similar Condition Formula for the low would be as follows.

L < MINL9.1 AND MACD12.26 > MACD12.26.1

TC2000 does not have any built in backtesting features, but you can "visually backtest" the Condition Formulas by using each Condition Formula as the Boolean Formula in a Custom PCF % True Indicator. This will plot spickes on the chart where the Condition Formula was true in the past.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
 Posted : Saturday, April 22, 2017 8:29:51 AM
Gold Customer

Joined: 9/24/2016
Posts: 2

QUOTE (Bruce_L)

The request could be interpreted a variety of ways, but the following TC2000 v17 Condition Formula would represent what I would think is the most literal interpretation.

H > MAXH9.1 AND MACD12.26 < MACD12.26.1

It requires price to make a new 10 bar high with the raw MACD dropping from the previous bar to the current bar. You would set this to a 5 minute time frame if you wanted to be checking a 5 minute chart.

A similar Condition Formula for the low would be as follows.

L < MINL9.1 AND MACD12.26 > MACD12.26.1

TC2000 does not have any built in backtesting features, but you can "visually backtest" the Condition Formulas by using each Condition Formula as the Boolean Formula in a Custom PCF % True Indicator. This will plot spickes on the chart where the Condition Formula was true in the past.

Thank you very much, Bruce

Bruce_L
 Posted : Saturday, April 22, 2017 9:59:04 AM

Worden Trainer

Joined: 10/7/2004
Posts: 62,474

You're welcome.

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