Skip to content
All library documents

Trading an Oscillator Color Change on Bar Close

Article MQL5 code base

Summary

This Expert Advisor uses signals from the ColorJJRSX oscillator. A signal forms when a bar closes and the indicator's direction and color have changed. The EA therefore relies on a completed bar for its entry signal rather than reacting to an intrabar color change. It also requires the compiled ColorJJRSX indicator file to be available in the platform's indicator directory.

The document refers to historical test results for USDJPY on a four-hour chart in 2013 and says the default EA inputs were used. Stop loss and take profit were not enabled in those tests. However, the figures or detailed performance statistics are not included in the text, so the results cannot be assessed from the available description. It also notes a supporting library for brokers with nonzero spreads and for setting protective orders alongside position opening. The signal rule is described, but there is no explanation of parameter sensitivity, execution assumptions, or robustness across other instruments and periods.

Key ideas

  • The EA generates a signal at bar close when the ColorJJRSX direction and color change.
  • The compiled ColorJJRSX indicator is a required dependency.
  • The referenced historical test used USDJPY on a four-hour chart in 2013 and default inputs.
  • Stop loss and take profit were not used in the described test.
  • The document provides no detailed statistics to evaluate the test results.

Tags

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