Skip to content
All library documents

A SimpleBars Expert Advisor Using Bar-Color Changes

Article MQL5 code base

Summary

This Expert Advisor uses the SimpleBars trend indicator and generates a signal when a completed bar changes color. It describes the required compiled indicator placement and notes that a supporting trade library can accommodate brokers with nonzero spreads and allow stop-loss and take-profit settings alongside order entry.

The document refers to tests using the advisor's default inputs on XAUUSD six-hour bars in 2013. It states that those tests did not use stop loss or take profit, but the actual chart results are not included in the text. The description therefore explains the signal and setup, while offering limited evidence for performance. It gives no detailed entry or exit rules beyond the color-change trigger, and the cited historical test alone cannot establish robustness or suitability for live trading.

Key ideas

  • The strategy signal occurs when a completed SimpleBars bar changes color.
  • The advisor requires the compiled SimpleBars indicator to be installed in the platform's indicator directory.
  • A supporting library is described as enabling nonzero-spread broker use and protective order settings.
  • The referenced test used XAUUSD six-hour data from 2013 without stop loss or take profit.
  • The text supplies no numerical performance statistics or evidence of robustness.

Tags

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