Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

macd inidicator cross Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
iceman8074
Posted : Friday, March 29, 2019 12:15:38 PM
Registered User
Joined: 9/10/2017
Posts: 4

Is there a way to create a macd indicator and then have it point when it crosses like it does in think or swim so i don't have to look that closely. 

Bruce_L
Posted : Friday, March 29, 2019 12:26:27 PM


Worden Trainer

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

We can plot dots on the chart using a Custom PCF Indicator using the Dots Plot Style, but not arrows. You can use a single Custom PCF Indicator if you don't mind the dots being the same color.

You didn't specify the type of cross, MACD through zero or MACD through its moving average (which is the same thing as the MACD Histogram through zero), so I am going with MACD through zero.

Note the division by zero error is on purpose. It is what makes it so a dot doesn't plot when the MACD doesn't cross.

IIF(XUP(MACD12.26, 0), L, IIF(XDOWN(MACD12.26, 0), H, 1 / 0))

But need two Custom PCF Indicators if the dots need to be different colors. One would use:

IIF(XUP(MACD12.26, 0), L, 1 / 0)

And the other would use:

IIF(XDOWN(MACD12.26, 0), H, 1 / 0)

Either way, you need to overlay the Custom PCF Indicators into the same pane and scale as price.

How to Overlay an Indicator (make sure to choose & Scale With)

On another note, this was already answered where you asked it previously. I have provided a link to that question and response along with a video on how to get the most out of the discussion forums

If you saw the response and it did not do what you want, please provide additional clarification. Just making the same identical post multiple times is not going to help us provide you with a better answer.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
iceman8074
Posted : Friday, March 29, 2019 12:34:31 PM
Registered User
Joined: 9/10/2017
Posts: 4

how about if it crosses its moving average. what would be the input

Bruce_L
Posted : Friday, March 29, 2019 12:48:10 PM


Worden Trainer

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

If you don't need different colors you can use this as the Formula setting in the Custom PCF Indicator.

IIF(XUP(MACD12.26, XAVG(MACD12.26, 9)), L, IIF(XDOWN(MACD12.26, XAVG(MACD12.26, 9)), H, 1 / 0))

Otherwise this would be the indicator formula for one color.

IIF(XUP(MACD12.26, XAVG(MACD12.26, 9)), L, 1 / 0)

And this would be indicator formula for the other color.

IIF(XDOWN(MACD12.26, XAVG(MACD12.26, 9)), H, 1 / 0)



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