Registered User Joined: 8/26/2016 Posts: 1
|
Is there a way to add a symbol such as an arrow to the chart when a moving average crosses over another moving average?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The easiest way to do this would be to add a Custom PCF % True Indicator to the chart.
The Boolean Formula setting would depend on the moving averages. For exmalpe, the following would check for a 10 period exponential moving average crossing up through 20 period simple moving average.
XUP(XAVGC10, AVGC20)
Another method would use a Custom PCF Indicator instead and plot dots on the chart (you would need to set the Plot Style to Dots). This would plot the dot at the midpoint between the two averages.
IIF(XUP(XAVGC10, AVGC20), (XAVGC10 + AVGC20) / 2, 1 / 0)
Note the 1 / 0 is going to generate an error when the cross up doesn't happen. This is what makes it so don't plot.
Unlike the Custom PCF % True Indicator technique, you will need to overlay this into the same pane and scale as price.
How to Overlay an Indicator (make sure to select & Scale With)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|