Skip to content
All library documents

A Williams Percent Range Expert Advisor Using Threshold Crossings

Article MQL5 code base

Summary

This document outlines a simple foreign exchange Expert Advisor built around Williams Percent Range (WPR). It sells when the oscillator crosses downward through an overbought level and buys when it crosses upward through an oversold level. The signal is assessed at bar close after the relevant level has been crossed.

The description notes that a supporting trade library can accommodate nonzero spreads and allow stop loss and take profit settings when opening a position. It also says the referenced tests used default inputs and omitted stop loss and take profit, and identifies an AUD/USD three-hour test for 2015. Although testing charts are mentioned, the document provides no numerical performance measures or detailed test methodology. Those omissions limit what can be concluded about profitability, robustness, or the effects of transaction costs and risk controls.

Key ideas

  • The Expert Advisor uses Williams Percent Range threshold crossings to generate trades.
  • A downward crossing of an overbought level triggers a sell signal.
  • An upward crossing of an oversold level triggers a buy signal.
  • Signals are formed at bar close after the threshold is crossed.
  • The referenced test used default inputs and did not use 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.