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

Self-optimizing SMA - MetaTrader 5 script | Forex indicator download - MT4/MT5 resources

author EAcpu | 3 reads | 0 comments |

Self Optimized SMA - indicator for MetaTrader 5

Self Optimized SMA - indicator for MetaTrader 5

On each bar, the indicator checks all SMA periods in the range from MIN_PERIOD to MAX_PERIOD to find out which period caused the most recent bounce (up or down). If nothing is found, the column will be empty.

This indicator is designed to detect market momentum. Wherever you find that both the upper and lower bound lines are non-empty, you expect range limiting behavior.

This indicator requires a lot of processing. Therefore, choosing a MA period range that is too wide to scan larger lookback bars or changing the SMA to a more complex MA method will cause the indicator to load too late. Anyway, after loading you just update the latest bar.

Self Optimized SMA - indicator for MetaTrader 5


Attachment download

📎 ama.mq5 (6.23 KB)

Source: MQL5 #56289

Verification code Refresh