I am looking for a way to avoid trading small pullbacks in a strong trend, using the EMA.
What I need is someone to program a Function CheckEMA:
before opening a trade, we check the EMA.
The EMA has to be pointed in the direction of the current Trend: Up in a Long Trade, down in a Short trend.
And it has to be steeper than a certain Angle.
The function that I wish to be coded returns the angle of the EMA in an integer value: Positive for Up, negative for down.
All this in a Heikin Ashi Chart.