Sergey Golubev
Moderator
121875
Sergey Golubev  

ATR adaptive SMA - indicator for MetaTrader 5

ATR adaptive SMA - indicator for MetaTrader 5

One of the moving averages that is not often made adaptive is SMA (Simple Moving Average). The reason for that is that it is bound to bars values (unlike, for example EMA - that is used in numerous adaptive averages - that can use fractional periods too) and that makes the calculations a bit complicated and, in some cases the results are going to be "nervous" - they tend to changes slope in some periods very quickly.

That makes it a bit difficult to use it too : using the slope of such an average as a criteria for a trading decision would lead to "change of mind" on almost every bar - and that is not what anybody would like to do. This version makes a possible solution for that : since adaptive SMA is "faster" than the "regular" SMA, you can use the crosses of adaptive to regular SMA as a criteria for trend. Results seem to be acceptable.

ATR adaptive SMA
ATR adaptive SMA
  • www.mql5.com
One of the moving averages that is not often made adaptive is SMA (Simple Moving Average). The reason for that is that it is bound to bars values (unlike, for example EMA - that is used in numerous adaptive averages - that can use fractional periods too) and that makes the calculations a bit complicated and, in some cases the results are going...
Sergey Golubev
Moderator
121875
Sergey Golubev  

McGinley dynamic (official) - indicator for MetaTrader 5

The McGinley Dynamic indicator is a type of moving average that was designed to track the market better than existing moving average indicators. It is a technical indicator that improves upon moving average lines by adjusting for shifts in market speed....

Original formula:



Improved formula:

McGinley dynamic (official)
McGinley dynamic (official)
  • www.mql5.com
The cause to make this : When almost all the descriptions of some indicator are something like this : then one starts to wonder what is in that indicator that makes it so "good". There is a significant confusion at how the available versions are calculated, and it seems, that as far as metatrader is concerned, the formula used is almost always...
Sergey Golubev
Moderator
121875
Sergey Golubev  

Classic Moving Averages with colors - indicator for MetaTrader 5

The five classic moving averages are present:

  • Simple moving average
  • Exponential moving average
  • Smoothed moving average
  • Linear weighted moving average
  • Smoothed moving average

The indicator displays a colored moving average.

It has three parameters:

  • Period calculation period
  • Method calculation method
  • Price applied prise used for calculation

This version is faster and code is more flexible and reusable


Classic Moving Averages with colors
Classic Moving Averages with colors
  • www.mql5.com
The indicator displays a colored moving average.
Jemima Xmoon
49
Jemima Xmoon  
Sergey Golubev:

Classic Moving Averages with colors - indicator for MetaTrader 5

The five classic moving averages are present:

  • Simple moving average
  • Exponential moving average
  • Smoothed moving average
  • Linear weighted moving average
  • Smoothed moving average

The indicator displays a colored moving average.

It has three parameters:

  • Period calculation period
  • Method calculation method
  • Price applied prise used for calculation

This version is faster and code is more flexible and reusable



Thanks, it looks a good job

Sergey Golubev
Moderator
121875
Sergey Golubev  

TRIX Four Colors - indicator for MetaTrader 5

TRIX Four Colors - indicator for MetaTrader 5

The iTRIX (Triple Exponential Average, TRIX) indicator is made in the form of a colored histogram (using the DRAW_COLOR_HISTOGRAM drawing style). In total, the histogram can have four colors.