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 |

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