Page 1 of 1

Calculate Price to produce HMA cross?

Posted: Mon Jun 23, 2008 1:42 pm
by mrlogik
Hey guys. Great work here!

I'm working on a strategy that uses two HMA lines of different lengths.
What I'm trying to do now is create an indicator that finds the price value that would make the two HMA lines to cross each other.

Basically, on a bar by bar basis I want to plot a point where the price would have to go in order to have the faster HMA cross the slower HMA.

Unfortunately, my math is not as strong as it use to be so I have been unsuccessful. Does anyone know have a formula that can do this calculation for me?

I have attached an indicator with the function to calculate an HMA.

Thanks again.
Anthony