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.
|
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.
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
|
Registered User Joined: 9/10/2017 Posts: 4
|
how about if it crosses its moving average. what would be the input
|
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
|