Skip to content
All library documents

Three Entry and Exit Modes for a Spearman Rank Correlation Histogram System

Article MQL5 code base

Summary

This document describes an automated trading system driven by a Spearman rank correlation histogram indicator, with signals evaluated at bar close. It presents three ways to trade the indicator: enter and exit on zero-line breaks; enter in overbought or oversold areas and exit on a zero break; or both enter and exit within those extreme zones. The selected mode is controlled by an input setting in the expert advisor.

The text notes that the compiled indicator must be available to the trading platform and that a helper library supports brokers with nonzero spreads and stop-loss or take-profit settings. It refers to historical testing on EURJPY using four-hour bars in 2017, but gives no numerical results or detailed performance analysis in the provided text. Stop-loss and take-profit orders were not used in those tests. Indicator thresholds, position sizing, and risk controls are not specified, limiting what can be inferred about the system’s behavior or robustness.

Key ideas

  • Signals are evaluated at bar close using a Spearman rank correlation histogram.
  • The system offers three entry and exit rule combinations based on zero breaks and extreme zones.
  • A mode parameter selects which rule combination the expert advisor uses.
  • The referenced test used EURJPY four-hour data, with no stop-loss or take-profit settings.
  • The document provides no numerical test results or risk analysis.

Tags

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