Skip to content
All library documents

Weight Oscillator Crossings for Automated EURJPY Entries

Article MQL5 code base

Summary

This document describes a basic expert advisor that trades crossings of a weighted oscillator’s overbought and oversold levels. It sells when the oscillator crosses downward through the overbought threshold and buys when it crosses upward through the oversold threshold. A signal is recognized when the bar closes, so the method uses confirmed rather than intrabar crossings.

The text identifies a higher-timeframe indicator as a visual aid for strategy testing and explains how the compiled expert can bundle its indicator dependencies. It reports that an example test used default inputs on EURJPY at a six-hour interval during 2015, with neither stop loss nor take profit enabled. The document includes no numerical performance statistics or analysis of robustness, transaction costs, or risk. The described test is therefore limited evidence, and the entry rules alone do not establish profitability or define a complete risk-management approach.

Key ideas

  • Sell when the weighted oscillator crosses downward through its overbought level.
  • Buy when it crosses upward through its oversold level.
  • The strategy waits for the bar to close before recognizing a crossing signal.
  • The higher-timeframe indicator is described as a visual testing aid.
  • The reported EURJPY test used default settings and omitted stop loss and take profit.

Tags

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