Skip to content
All library documents

Center of Gravity Cross Signals in an Expert Advisor

Article MQL5 code base

Summary

This entry describes an Expert Advisor that uses the Center of Gravity indicator. It generates a signal when a bar closes with the indicator crossing its signal line, making the bar close the stated confirmation point. The entry specifies that the compiled indicator file is needed for the EA to run.

Key ideas

  • The Expert Advisor bases its signals on the Center of Gravity indicator.
  • A signal occurs at bar close when the indicator crosses its signal line.
  • The described test used default EA inputs and omitted stop loss and take profit.
  • The entry reports a test for USDCHF on a four-hour chart during 2011, but gives no numerical results or performance analysis.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.