Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


Median Moving Average - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch

votes: 9
2018.03.01 11:40
MedianMA.mq5 (8.39 KB)view

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 Software Corp.
Original code:

Moving Average Candles Moving Average Candles

A moving average drawn as candlesticks on a chart.

Logarithmic Regression Logarithmic Regression

Logarithmic regression channel.


RWI (Random Walk Index)

Square Weighted MA Square Weighted MA

Square Weighted Moving Average.