Watch how to download trading robots for free
Find us on Telegram!
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:
17179
Rating:
(27)
Published:
2010.01.26 11:18
Updated:
2016.11.22 07:32
momentum.mq5 (2.87 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The Momentum technical indicator measures the amount that a security’s price has changed over a given time period.

There are basically two ways to use the Momentum indicator:

  • You can use the Momentum indicator as a trend-following oscillator similar to the Moving Average Convergence/Divergence (MACD). Buy when the indicator bottoms and turns up and sell when the indicator peaks and turns down. You may want to plot a short-term moving average of the indicator to determine when it is bottoming or peaking.

If the Momentum indicator reaches extremely high or low values (relative to its historical values), you should assume a continuation of the current trend. For example, if the Momentum indicator reaches extremely high values and then turns down, you should assume prices will probably go still higher. In either case, only trade after prices confirm the signal generated by the indicator (e.g., if prices peak and turn down, wait for prices to begin to fall before selling).

  • You can also use the Momentum indicator as a leading indicator. This method assumes that market tops are typically identified by a rapid price increase (when everyone expects prices to go higher) and that market bottoms typically end with rapid price declines (when everyone wants to get out). This is often the case, but it is also a broad generalization.

As a market peaks, the Momentum indicator will climb sharply and then fall off - diverging from the continued upward or sideways movement of the price. Similarly, at a market bottom, Momentum will drop sharply and then begin to climb well ahead of prices. Both of these situations result in divergences between the indicator and prices.

Momentum Technical Indicator

Calculation:

Momentum is calculated as a ratio of today’s price to the price several (N) periods ago.

MOMENTUM = CLOSE (i) / CLOSE (i - n) * 100

where:

  • CLOSE(i) - the closing price of the current bar;
  • CLOSE(i-N) - the closing bar price N periods ago.

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

Money Flow Index (MFI) Money Flow Index (MFI)

The Money Flow Index (MFI) is the technical indicator, which indicates the rate at which money is invested into a security and then withdrawn from it.

Mass Index Mass Index

The Mass Index is developed to catch the trend reversal points. It is based on changes between maximum and minimum prices. If the amplitude gets wider, the mass index grows; if it gets narrower, the index gets smaller. The mass index was created by Donald Dorcy.

On Balance Volume (OBV) On Balance Volume (OBV)

The On Balance Volume Indicator (OBV) is a momentum technical indicator that relates volume to price change.

Moving Average of Oscillator (OsMA) Moving Average of Oscillator (OsMA)

The Moving Average of Oscillator (OsMA) is the difference between the oscillator and its smoothed value.