Skip to content
All library documents

Three-State MaRsi Trend-Change Signals for USDCHF

Article MQL5 code base

Summary

This document describes an Expert Advisor that trades changes in direction identified by a three-state MaRsi-Trigger indicator. It generates a signal when a bar closes and the indicator registers a trend reversal. To reduce processing work, the Expert Advisor calculates signals from the underlying technical indicators instead of calling the MaRsi indicator directly; a colored version is used to display signals during testing.

The page shows deal-history and test-result figures and identifies a 2011 test on USDCHF using four-hour bars. It gives no numerical performance statistics, benchmark, transaction-cost assumptions, or details about the exit rules and risk controls. The example therefore explains the signal implementation more clearly than it establishes whether the approach is profitable or robust. Results from one currency pair and one historical year cannot show how it would behave across market regimes or in live trading.

Key ideas

  • The system uses a three-state indicator to detect changes in trend direction.
  • A trade signal is generated when a bar closes and the indicator registers a direction change.
  • The Expert Advisor calculates signals from underlying indicators rather than invoking the MaRsi indicator itself.
  • A colored indicator is used for visual review during system testing.
  • The document presents a USDCHF four-hour test for 2011 but provides no numerical performance measures.

Tags

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