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

LSMA - MetaTrader 5 Script - MQL5 #20422 - MT4/MT5 Resources

author EAcpu | 2 reads | 0 comments |

LSMA - indicator for MetaTrader 5

Moving average calculated by least squares method.

This indicator has two input parameters:

 Sum[i] = (Period-N)*Price[i] + (Period-N-1)*Price[i-1] + … + (1-N)*Price[i-Period+1],
N = (Period + 1)/3,
L2 = period*(period+1)/6 

LSMA - indicator for MetaTrader 5


Attachment download

📎lsma.mq5 (7.56 KB)

Source: MQL5 #20422

LSMA - MetaTrader 5 Script - MQL5 #20422 Usage and Filtering Advice

LSMA - MetaTrader 5 Script - MQL5 #20422 is a resource related to foreign exchange indicators. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.

Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based only on titles or short-term profit descriptions.

Verification code Refresh