Skip to content
All library documents

A Dual CG Oscillator System for Trend-Following Entries

Article MQL5 code base

Summary

This system uses two CG Oscillators for different jobs. A slower oscillator sets the prevailing trend direction from the relationship between its main and signal lines, while a faster oscillator supplies entry timing when its lines cross or touch. A trade signal is evaluated at bar close when the faster and slower signals agree and the fast trend has just changed direction. The example configuration uses an eight-hour timeframe for the slow filter and a one-hour timeframe for entries, with oscillator lengths of ten.

The Expert Advisor includes controls for long and short trades, position sizing, price deviation, and optional stop-loss and take-profit levels. The document says those protective orders were not used in the reported EURUSD test for 2015, and it refers to charts of example trades and test results without giving numerical performance statistics in the text. The description does not establish robustness across instruments or periods; oscillator settings and bar-close signals may behave differently in other market conditions.

Key ideas

  • A slow CG Oscillator defines trend direction from its main and signal lines.
  • A faster oscillator times entries when its lines cross or touch and its direction changes.
  • The system requires agreement between the fast and slow trend signals at bar close.
  • The example uses an eight-hour trend timeframe and a one-hour entry timeframe.
  • The document mentions a 2015 EURUSD test but gives no numerical performance statistics in the text.

Tags

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