Need help for alert for MACD against MA Rate this Topic:
 Previous Topic · Next Topic Watch this topic · Print this topic ·
tsben88
 Posted : Wednesday, April 03, 2019 9:41:49 AM
Registered User
Joined: 6/6/2017
Posts: 3
Need help .

I wish to write a formulation with the MACD that goes against the Moving Average, forming a "hook" for my hourly chart.

Attached are the pictures.

I would appreciate if you could assist me.

Thanks.

tsben88
 Posted : Wednesday, April 03, 2019 9:58:20 AM
Registered User
Joined: 6/6/2017
Posts: 3

QUOTE (tsben88)

Need help .

I wish to write a formulation with the MACD that goes against the Moving Average, forming a "hook" for my hourly chart.

Attached are the pictures.

I would appreciate if you could assist me.

Thanks.

Bruce_L
 Posted : Wednesday, April 03, 2019 11:22:58 AM

Worden Trainer

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

So the idea is that it is that the MACD is moving toward its trigger line and then starts moving away?

If so, being above the MACD would be the following.

`TrueInRow(MACD12.26 > AVG(MACD12.26, 9), 3) = 3 AND MACD12.26 > MACD12.26.1 AND MACD 12.26.1 < MACD12.26.2`

And being below the MACD would be the following.

`TrueInRow(MACD12.26 < AVG(MACD12.26, 9), 3) = 3 AND MACD12.26 < MACD12.26.1 AND MACD 12.26.1 > MACD12.26.2`

You could combine these using OR and some parantheses to check for either possibility in the same formula.

`(TrueInRow(MACD12.26 > AVG(MACD12.26, 9), 3) = 3 AND MACD12.26 > MACD12.26.1 AND MACD 12.26.1 < MACD12.26.2) OR (TrueInRow(MACD12.26 < AVG(MACD12.26, 9), 3) = 3 AND MACD12.26 < MACD12.26.1 AND MACD 12.26.1 > MACD12.26.2)`

You need to make sure the time frame of the formula is set to hourly if you want it to match an hourly chart.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
tsben88
 Posted : Wednesday, April 03, 2019 1:04:06 PM
Registered User
Joined: 6/6/2017
Posts: 3

QUOTE (Bruce_L)

So the idea is that it is that the MACD is moving toward its trigger line and then starts moving away?

If so, being above the MACD would be the following.

`TrueInRow(MACD12.26 > AVG(MACD12.26, 9), 3) = 3 AND MACD12.26 > MACD12.26.1 AND MACD 12.26.1 < MACD12.26.2`

And being below the MACD would be the following.

`TrueInRow(MACD12.26 < AVG(MACD12.26, 9), 3) = 3 AND MACD12.26 < MACD12.26.1 AND MACD 12.26.1 > MACD12.26.2`

You could combine these using OR and some parantheses to check for either possibility in the same formula.

`(TrueInRow(MACD12.26 > AVG(MACD12.26, 9), 3) = 3 AND MACD12.26 > MACD12.26.1 AND MACD 12.26.1 < MACD12.26.2) OR (TrueInRow(MACD12.26 < AVG(MACD12.26, 9), 3) = 3 AND MACD12.26 < MACD12.26.1 AND MACD 12.26.1 > MACD12.26.2)`

You need to make sure the time frame of the formula is set to hourly if you want it to match an hourly chart.

Thanks Bruce!

Bruce_L
 Posted : Wednesday, April 03, 2019 1:05:03 PM

Worden Trainer

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

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.