Skip to content
All library documents

XPVT Oscillator Crossovers for Automated Trading

Article MQL5 code base

Summary

This document describes an Expert Advisor that trades signals from the XPVT oscillator. A signal occurs when the oscillator’s main and signal lines cross as a bar closes. The EA therefore uses a bar-close confirmation rule rather than acting on an intrabar crossover. To run it, the compiled XPVT indicator must be available in the platform’s indicator folder; a supporting library is mentioned for broker spreads and order-level stop-loss or take-profit settings.

The document refers to a historical test on USDJPY using four-hour bars for 2013 and says the displayed test used the EA’s default inputs without stop-loss or take-profit settings. It does not provide numerical performance statistics or enough detail to assess costs, robustness, parameter sensitivity, or out-of-sample behavior. The described crossover is a simple mechanical trigger, and the cited test context alone does not establish that it is profitable or suitable for live trading.

Key ideas

  • The EA generates trades from crossings between the XPVT oscillator’s main and signal lines.
  • It waits for the bar to close before treating a crossover as a signal.
  • The compiled oscillator indicator must be installed for the EA to operate.
  • The described historical test used USDJPY four-hour data from 2013 and omitted stop-loss and take-profit settings.
  • The document gives no numerical performance measures or robustness analysis.

Tags

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