Skip to content
All library documents

Fractal WPR Entry Signals in a MetaTrader Expert Advisor

Article MQL5 code base

Summary

This document describes a simple Expert Advisor that uses a fractal Williams Percent Range oscillator to generate entries. It sells when the oscillator crosses downward through its overbought threshold and buys when it crosses upward through its oversold threshold. The signal is evaluated at bar close, so the described approach waits for a completed bar rather than reacting intrabar.

The article also explains how to embed the indicator in the compiled EA as a resource, allowing the expert to run without a separate indicator file. It mentions a 2015 AUDUSD H3 test and shows chart examples, but provides no numerical performance figures in the text. The stated test used default EA inputs and omitted stop-loss and take-profit settings. Results from that single historical setup do not establish robustness across markets, periods, costs, or parameter choices; the document gives no risk-adjusted statistics or out-of-sample evaluation.

Key ideas

  • The EA sells when the fractal WPR crosses down through its overbought level.
  • It buys when the oscillator crosses up through its oversold level.
  • Signals are formed when a bar closes with the required level crossing.
  • The indicator can be embedded in the compiled EA as a resource.
  • The described 2015 AUDUSD H3 test used defaults and no stop loss or take profit.

Tags

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