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.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|