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
Indicators

AwesomeModPips - indicator for MetaTrader 5

Views:
13526
Rating:
(27)
Published:
2014.08.12 13:31
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This indicator is a modification of classical Awesome Oscillator indicator. It computes the smoothed difference of two exponential moving averages.

The indicator has 3 inputs: shortmean and longmean stand for the periods of two exponential moving averages (by default 30 and 60, respectively). The last input, meanAO, indicate the period of the smoothed moving average for the difference (in pips) between the shortmean-longmean EMA's.

The code has essentially three buffers:

  • ExtFastBuffer is the exponential moving average with period shortmean;
  • ExtSlowBuffer is the exponential moving average with period longmean;
  • ExtAOBuffer defined as

ExtAOBuffer[i]=(ExtFastBuffer[i]-ExtSlowBuffer[i])/_Point/10;

Finally, using the "include <MovingAverages.mqh>", we compute the smoothed moving average of this last array (ExtAOBuffer) obtaning the indicator. 

In the following image you can show this indicator in a daily chart of USDJPY with inputs 5 and 34 for the exponential means and 7 for the mean of the difference between them.

AwesomeModPips indicator

You can compare the indicator with the classical Awesome indicator which has as inputs for the exponential averages 5 and 34 in the following image.

AwesomeModPips indicator

Here, you can show an image with the parameters by default (30-60-30):

AwesomeModPips indicator

PipsToAverage PipsToAverage

This indicator measures the (smoothed) distance in pips between the close and an exponential moving average.

Rate_AOModPips Rate_AOModPips

This indicator measures the rate of change of AwesomeModPips indicator.

Linear Regression Linear Regression

The indicator uses the least squares method for the construction of the "most suitable" straight line through a series of points of price values​​.

Color Linear Regression Color Linear Regression

Color version of the Linear Regression indicator.