Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

EMA_With_Trend_Adjustment - MetaTrader 5 Script - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

EMA_With_Trend_Adjustment - indicator for MetaTrader 5

EMA_With_Trend_Adjustment - indicator for MetaTrader 5

EMA_With_Trend_Adjustment - Moving average exponentially smoothed and modified by its trend component.

This indicator has four configuration parameters:

 EMATA = Alpha * Price + (1-Alpha) * (PrevEMATA + Trend)
Trend = Beta * (EMATA - PrevEMATA) + (1 - Beta) * PrevTrend

Where:

 Price - SMA (1, applied price) 

EMA_With_Trend_Adjustment - indicator for MetaTrader 5

Figure 1. Trend component not used.

EMA_With_Trend_Adjustment - indicator for MetaTrader 5

Figure 2. Using the Trend component.


Attachment download

📎 ema_with_trend_adjustment.mq5 (8.62 KB)

Source: MQL5 #21232

Verification code Refresh