Skip to content
All library documents

A Center of Gravity Channel Re-Entry Signal for Intraday Trading

Article MQL5 code base

Summary

This MetaTrader 4 discussion sketches an intraday strategy using a Center of Gravity indicator with five parallel lines. A long signal is intended when a one-period moving average of lows crosses back above the channel’s lower boundary; the suggested short condition is the reverse, using highs and the upper boundary. The author describes the idea as a way to trade a return into the trend channel and mentions trailing stops as a possible later addition.

The included expert-advisor example reads the indicator’s outer lines and compares them with current moving averages, but the author reports that it opens no trades in testing or on a demo account. The snippet does not implement an explicit crossing test; it checks a current-level relationship, and its short side is commented out. It is a request for debugging and a preliminary concept, not evidence that the entry logic works. Risk controls, timeframe handling, and trailing behavior are also absent from the example.

Key ideas

  • The proposed long setup uses a low-based one-period average returning above the lower Center of Gravity line.
  • The corresponding short idea reverses the signal around the upper line using highs.
  • The sample advisor compares current values but does not explicitly test for a crossing.
  • The author reports no trades in testing or demo use, and the example omits several risk and execution controls.

Tags

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