Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
6045
Rating:
(17)
Published:
2018.06.06 13:55
LSMA.mq5 (7.56 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

A Moving Average calculated by the least squares method.

The indicator has two input parameters:

  • Period - calculation period;
  • Applied price - price used for calculations.

Calculation:

LSMA[i]=Sum/L2

where

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

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20422

ITrendMA ITrendMA

Instantaneous Trendline by J. Ehlers.

HMA HMA

Alan Hull's Moving Average is a non-lagging moving average.

Mod_ATR_Trailing_Stop Mod_ATR_Trailing_Stop

An indicator of StopLoss levels.

Universal 1.64 Universal 1.64

Universal trailing of positions and pending orders.