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

NonLagMA_v5 - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

NonLagMA_v5 - indicator for MetaTrader 5

Trend Lab

This is achieved by defining a damped cosine curve of the coefficient ratio in the linear weighted average (LWMA) equation to mitigate the delay effect of the movement.

Static filters (measured in points) help eliminate small jets of media, creating a stepped shape.

Input parameters:

//+------------------------------------------------+
//|Input parameters of the indicator|
//+------------------------------------------------+
Input integer MAPeriod = 13 ; // period
Input ENUM_MA_METHOD MA type = mode_EMA ; // average type
Enter ENUM_APPLIED_PRICE MA price = PRICE_CLOSE ; // price
input units filter = 0 ; // static filter in points
Input unit color bar return = 1 ; // color mode return bar
Enter double offset = 0 ; // upper/lower offset
Enter an integer Shift = 0 ; // Horizontal movement of the indicator (in bars)

The indicator was first implemented in MQL4 and released in the code base on September 21, 2006.

NonLagMA_v5 - indicator for MetaTrader 5

Figure 1. NonLagMA_v5 indicator


Attachment download

📎 nonlagma_v5.mq5 (9.18 KB)

Source: MQL5 #7022

Verification code Refresh