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:
8701
Rating:
(13)
Published:
2019.01.02 14:30
MA_Trend.mq5 (42.22 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The MA Trend oscillator indicator statistically compares the position of a price relative to the MAs fan, which allows to identify the current market trend. Obtained data is displayed as a colored histogram in a separate window.

It has five input parameters:

  • First MA period - the period of the first Moving Average in the fan
  • Step - period increase step for further Moving Averages in the fan
  • MA count - the number of Moving Averages in the fan
  • Method - method for calculating the Moving Averages
  • Applied price - moving averages calculation price

Calculation:

MA_Trend = Sum(S) / MA count

where:

  • If Close is above the MA
    S(N) = 1
  • If Close is below the MA
    S(N) = -1

N - the number of the Moving Average in the fan

MA - MovingAverage(Applied price, PeriodN, Method)

PeriodN = First MA period + Step * N


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

MA_Slope MA_Slope

The MA Slope indicator

Intraday_Intensity_Open_Form Intraday_Intensity_Open_Form

The Intraday Intensity Open Form indicator

Normalized_Volume Normalized_Volume

The Normalized Volume indicator

Flat Channel Flat Channel

Brief Description