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

2011.09.05 16:14
Indicators

LRMA - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Views:
4841
Rating:
votes: 17
\MQL5\Include\
lrma.mq5 (4.56 KB)view

This indicator is calculated the following way:

LRMA[bar] = 3.0 * LWMA(Price[bar]) - 2.0 * SMA(Price[bar])

where:

  • LWMA() - linearly weighted smoothing;
  • SMA() - simple smoothing;
  • PRICE[] - price series value;
  • bar - current bar index.

This indicator clearly shows market trends dividing a price chart into two sectors.  If a price is above the indicator line, the trend is going upwards. If a price is below the indicator line, the trend is going downwards.

The indicator uses the classes from the SmoothAlgorithms.mqh and IndicatorsAlgorithms.mqh libraries (they must be placed to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly descirbed in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

LRMA (linear regression moving average)

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/429

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Example of MACD Automated Example of MACD Automated

Code example of MACD automated with advanced money management function.

Pivot Star Pivot Star

Pivot indicator. Standard, Fibonacci, Camarilla, Woody's, Demark. Calculates pivot points from previous bar of chosen period (M5 - MN).