I was hoping to get some direction on how to determine how to get the closing price that "tips" an average in the opposite direction before it actually happens and plots on the chart.
For example: if we use a HMA(20) average and the average is pointing down. On an upclose the average will swing up at some point. That may be 2 or 3 ticks higher than the curent close. Specifically I would like to be able to determine the tipping point ( the closing price) for when HMA(20)[0] > HMA(20)[1].
I am thinking that i need to maintain my own dataseries of the close and then loop thru the ticks to see when the moving average actually swings in the oppiste direction?
Am I on the correct track or is there an easier way? Might someone know of an existing example either in the reference library or in on something that has been written in an existing in the forums?
Thank you kindly in advance for your help
Sammy
Comment