Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
- Views:
- 5900
- Rating:
- Published:
- 2018.06.06 13:55
-
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](https://c.mql5.com/i/code/indicator.png)
Instantaneous Trendline by J. Ehlers.
![HMA](https://c.mql5.com/i/code/indicator.png)
Alan Hull's Moving Average is a non-lagging moving average.
![Mod_ATR_Trailing_Stop](https://c.mql5.com/i/code/indicator.png)
An indicator of StopLoss levels.
![Universal 1.64](https://c.mql5.com/i/code/expert.png)
Universal trailing of positions and pending orders.