Hello,
I'd like to use an angle (relative to the horizontal) on an EMA line/curve as an entry/exit rule. What would the code for such a thing look like?
I've tried subtracting the EMA value for the previous bars (bar 2) from the last bar (bar 1), and dividing that by 1 (distance between the two bars). This doesn't seem to work well.
I've had a look at http://codebase.mql4.com/2082 , and this indicator seems good, but I am unable to figure out the algorithm or logic behind this. Could someone guide me on this?
Thanks.
I'd like to use an angle (relative to the horizontal) on an EMA line/curve as an entry/exit rule. What would the code for such a thing look like?
I've tried subtracting the EMA value for the previous bars (bar 2) from the last bar (bar 1), and dividing that by 1 (distance between the two bars). This doesn't seem to work well.
I've had a look at http://codebase.mql4.com/2082 , and this indicator seems good, but I am unable to figure out the algorithm or logic behind this. Could someone guide me on this?
Thanks.