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:
- 6281
- Rating:
- Published:
- 2018.03.01 11:40
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
Median MA is a moving average, which is calculated using the median price for a given period.
A sorted array of prices for the specified period is used for calculating the moving average. A value from the array of prices with the following index is used:
- (N-1)/2 - for an odd N;
- ([N/2] + [N/2 + 1])/2 - for an even N.
The indicator has two input parameters:
- Period - calculation period;
- Applied price - price used for calculations.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/19891
![Moving Average Candles](https://c.mql5.com/i/code/indicator.png)
A moving average drawn as candlesticks on a chart.
![Logarithmic Regression](https://c.mql5.com/i/code/indicator.png)
Logarithmic regression channel.