Watch how to download trading robots for free
Find us on Facebook!
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:
8460
Rating:
(17)
Published:
2019.01.02 14:30
MA_Slope.mq5 (8.91 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

MA slope presents the slope of a Moving Average line. The indicator displays a colored Moving Average, the color of which depends on the point value of the MA slope between two key points of the Moving Average.

It has five input parameters:

  • Period - calculation period
  • Method - calculation method
  • Applied price - price used for calculations
  • Slope - the threshold slope value in points, after which the MA color changes
  • Slope length - shift in bars of the first key point from the current bar, used to determine the slope value (difference between these points)

Calculation:

MA = MovingAverage(Applied price, Period, Method)

Diff = MA - PrevMA

PrevMA - MovingAverage(Applied price, Period, Method) Slope length bars ago

  • If Diff is greater than Slope
    The MA color is green
  • If Diff is less than -Slope
    The MA color is red
  • Otherwise
    MA is gray

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

Intraday_Intensity_Open_Form Intraday_Intensity_Open_Form

The Intraday Intensity Open Form indicator

ZMA ZMA

The ZMA indicator

MA_Trend MA_Trend

MA Trend indicator

Normalized_Volume Normalized_Volume

The Normalized Volume indicator