MetaTrader 5 / Indicators
CenterOfGravityOSMA - indicator for MetaTrader 5
7976
Real author:
The Center of Gravity J. F. Ehlers indicator represented by a colored OSMA histogram. Smoothed difference between the main and the signal Center of Gravity lines serves as a source for the histogram.
Indicator uses the СMoving_Average class of the SmoothAlgorithms.mqh library. Working with that class was described in details in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

Fig.1. The CenterOfGravityOSMA indicator
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/13154