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
Indicators

Center of Gravity (Ehlers) - indicator for MetaTrader 5

Views:
8234
Rating:
(27)
Published:
2018.11.19 19:10
Updated:
2019.01.29 16:39
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Theory:

As John Ehlers describes it:

The CG is computed in much the same way as the Ehlers Filter. The position of the balance point is the summation of the product of position within the observation window times the price at that position divided by the summation of prices across the window. The mathematical expression for this calculation is:


This version:

Calculates the Center of Gravity indicator exactly the way it is described (including the trigger line, that is used the same way as in the original description). The only deviation is that you can chose the price (while in the original description only median price is used).

Usage:

You can use color changes as signals. CoG can not be bound to some levels, hence trying to add some fixed levels to it would not lead to meaningful result.


Trend trigger factor (averages pre-filtered) Trend trigger factor (averages pre-filtered)

Trend trigger factor (averages pre-filtered)

Double smoothed stochastic Blau Double smoothed stochastic Blau

Double smoothed stochastic Blau

Center of Gravity - extended Center of Gravity - extended

Center of Gravity - extended version

SpearmanRankCorrelation_2HTF SpearmanRankCorrelation_2HTF

Two SpearmanRankCorrelation indicators from different timeframes in a single window as a cloud colored according to a trend direction